/* Alongside the original settings gear; the animation remains in its own root. */
body.coolwj-header-fixed.poem-home-page { padding-top: 0; }

#root {
    position: relative;
    overflow-x: clip;
}

.poem-home-actions {
    position: fixed;
    left: var(--poem-actions-left, 70px);
    bottom: var(--poem-actions-bottom, 8px);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-stack);
}

.poem-home-actions > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 56px;
    min-height: 44px;
    padding: 0 8px;
    border-radius: 22px;
    background: rgba(24, 28, 33, .8);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    letter-spacing: .03em;
    white-space: nowrap;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
    transition: background-color .16s ease;
    -webkit-tap-highlight-color: transparent;
}

.poem-home-actions > a > .fa { font-size: 15px; }
.poem-home-actions > a[hidden] { display: none; }
.poem-home-actions > a:hover,
.poem-home-actions > a:focus-visible {
    color: #fff;
    background: rgba(24, 28, 33, .92);
    text-decoration: none;
}
.poem-home-actions > a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.poem-theme-footer {
    position: fixed;
    right: 6px;
    bottom: 8px;
    z-index: 3;
}

.poem-theme-footer .home-style-trigger {
    width: 40px;
    height: 44px;
    border-radius: 22px;
    background: var(--theme-soft, rgba(24, 28, 33, .8));
    color: var(--theme-link, #fff);
    opacity: 1;
}

.poem-theme-footer .home-style-trigger:is(:hover, :focus-visible) {
    background: var(--theme-nav, rgba(24, 28, 33, .92));
    color: var(--theme-link, #fff);
}

@media (max-width: 360px) {
    .poem-home-actions { gap: 2px; }
    .poem-home-actions > a { min-width: 48px; gap: 2px; padding: 0 3px; }
    .poem-theme-footer .home-style-trigger { width: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    .poem-home-actions > a { transition: none; }
    #root .App * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
