.site-footer-admin-tools,
.site-footer-admin-feature-item {
    display: flex;
    align-items: center;
}

.site-footer-admin-tools {
    position: relative;
    flex: 0 0 auto;
    gap: var(--type-space-tight);
    margin-right: auto;
}

.admin-feature-toggle-form {
    display: flex;
    margin: 0;
}

.admin-feature-toggle {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: var(--type-control-padding-tight);
    border: 0;
    background: transparent;
    color: var(--theme-text);
    cursor: pointer;
}

.admin-feature-toggle:hover,
.admin-feature-toggle:focus-visible {
    color: var(--theme-text);
    background: var(--theme-surface-hover);
    border-radius: 4px;
}

.admin-feature-toggle:focus-visible {
    outline: 2px solid var(--theme-focus-ring);
    outline-offset: 3px;
}

.admin-feature-toggle-icon {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.admin-feature-toggle-hammer,
.admin-feature-toggle-book {
    display: none;
}

body[data-admin-features-visible="false"] .admin-feature-toggle-hammer {
    display: inline;
}

body[data-admin-features-visible="true"] .admin-feature-toggle-book {
    display: inline;
}

html[data-theme="dark"] .admin-feature-toggle-icon {
    filter: invert(1);
}

.admin-feature-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.hidden-pages-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.hidden-pages-trigger {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: var(--type-control-padding-tight);
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--theme-text);
    cursor: pointer;
}

.hidden-pages-trigger:hover,
.hidden-pages-trigger:focus-visible,
.hidden-pages-trigger[aria-expanded="true"] {
    background: var(--theme-surface-hover);
}

.hidden-pages-trigger:focus-visible {
    outline: 2px solid var(--theme-focus-ring);
    outline-offset: 3px;
}

.hidden-pages-icon {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid currentColor;
    font-family: var(--body-font);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.hidden-pages-list {
    position: absolute;
    z-index: 20;
    bottom: calc(100% + var(--type-space-tight));
    left: 0;
    min-width: 156px;
    margin: 0;
    padding: var(--type-space-compact);
    border: 1px solid var(--theme-admin-menu-border);
    border-radius: 4px;
    background: var(--theme-surface);
    list-style: none;
}

.hidden-pages-list:not([hidden]) {
    display: grid;
    gap: var(--type-space-tight);
}

.hidden-pages-list a {
    display: block;
    padding: var(--type-space-tight) var(--type-space-compact);
    border-radius: 4px;
    color: var(--theme-link);
    font-size: var(--code-display-font-size);
    line-height: var(--type-leading-ui);
    text-decoration: none;
    white-space: nowrap;
}

.hidden-pages-list a:hover,
.hidden-pages-list a:focus-visible {
    background: var(--theme-surface-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hidden-pages-list a:focus-visible {
    outline: 2px solid var(--theme-focus-ring);
    outline-offset: 1px;
}

@media (prefers-reduced-motion: no-preference) {
    .admin-feature-toggle {
        transition: background-color 160ms ease, color 160ms ease;
    }
}
