/* Opt-in desktop header: no shared header, sidebar or mobile overrides. */
.fuuvo-colour-topbar { display: none; }

@media (min-width: 921px) {
    [data-fuuvo-colour-surface] .fuuvo-colour-topbar {
        --colour-topbar-ink: #405b63;
        position: relative;
        z-index: 25;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        flex: 0 0 auto;
        width: 100%;
        height: 72px;
        min-height: 72px;
        padding: 12px 22px 8px;
        border: 0;
        background: transparent;
        box-shadow: none;
        color: var(--colour-topbar-ink);
        box-sizing: border-box;
    }
    /* The existing rail owns a fixed expand button when its drawer is closed. */
    body:not(.home-drawer-open) [data-fuuvo-colour-surface]:has(> #fuuvo-workspace-rail) .fuuvo-colour-topbar {
        padding-left: 56px;
    }
    .fuuvo-colour-topbar :is(.fuuvo-colour-topbar-left, .fuuvo-colour-topbar-right) {
        display: flex;
        align-items: center;
        min-width: 0;
    }
    .fuuvo-colour-topbar .fuuvo-colour-topbar-right { gap: 18px; margin-left: auto; }
    .fuuvo-colour-topbar :is(button, a) { font-family: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
    .fuuvo-colour-topbar :is(.fuuvo-colour-topbar-back, .fuuvo-colour-topbar-safety) {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 40px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--colour-topbar-ink);
        font-size: 13px;
        font-weight: 500;
        line-height: 1.3;
        white-space: nowrap;
        cursor: pointer;
    }
    .fuuvo-colour-topbar .fuuvo-colour-topbar-back > svg { width: 22px; height: 22px; flex: 0 0 22px; }
    .fuuvo-colour-topbar .fuuvo-colour-topbar-safety > svg { width: 20px; height: 20px; flex: 0 0 20px; color: #147ce5; }
    .fuuvo-colour-topbar .fuuvo-colour-motion-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 34px;
        padding: 8px 10px;
        border: 0;
        border-radius: 99px;
        background: transparent;
        color: var(--colour-topbar-ink);
        box-shadow: none;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.2;
        white-space: nowrap;
        cursor: pointer;
    }
    .fuuvo-colour-topbar .fuuvo-colour-motion-dot { width: 12px; height: 12px; flex: 0 0 12px; border-radius: 50%; background: conic-gradient(#08e2b5,#25baff,#a568ff,#ff6faa,#ffdb32,#08e2b5); }
    .fuuvo-colour-topbar .fuuvo-colour-motion-switch { display: block; width: 27px; height: 16px; padding: 3px; flex: 0 0 27px; border-radius: 99px; background: #147ce5; box-sizing: border-box; }
    .fuuvo-colour-topbar .fuuvo-colour-motion-switch::after { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: translateX(11px); transition: transform .2s; }
    .fuuvo-colour-topbar .fuuvo-colour-motion-toggle[aria-pressed="false"] .fuuvo-colour-motion-switch { background: #8b9da0; }
    .fuuvo-colour-topbar .fuuvo-colour-motion-toggle[aria-pressed="false"] .fuuvo-colour-motion-switch::after { transform: translateX(0); }
    .fuuvo-colour-topbar .fuuvo-colour-motion-toggle:disabled { opacity: .7; cursor: default; }
    .fuuvo-colour-topbar .fuuvo-colour-topbar-login { display: inline-flex; align-items: center; justify-content: center; min-width: 82px; min-height: 40px; padding: 0 20px; border: 0; border-radius: 24px; background: #142b4e; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
    .fuuvo-colour-topbar :is(.fuuvo-colour-topbar-back, .fuuvo-colour-topbar-safety, .fuuvo-colour-motion-toggle):not(:disabled):hover { color: #096bc9; }
    .fuuvo-colour-topbar .fuuvo-colour-topbar-login:hover { background: #1c3c67; }
    .fuuvo-colour-topbar :is(a, button, summary):focus-visible { outline: 3px solid #0e7b84; outline-offset: 4px; }
    :is(html, body)[data-ui-theme="dark"] .fuuvo-colour-topbar,
    body[data-theme="dark"] .fuuvo-colour-topbar { --colour-topbar-ink: #c4d7df; }
    :is(html, body)[data-ui-theme="dark"] .fuuvo-colour-topbar .fuuvo-colour-topbar-login,
    body[data-theme="dark"] .fuuvo-colour-topbar .fuuvo-colour-topbar-login { background: #245faa; }
    :is(html, body)[data-ui-theme="dark"] .fuuvo-colour-topbar :is(.fuuvo-colour-topbar-back, .fuuvo-colour-topbar-safety, .fuuvo-colour-motion-toggle):not(:disabled):hover,
    body[data-theme="dark"] .fuuvo-colour-topbar :is(.fuuvo-colour-topbar-back, .fuuvo-colour-topbar-safety, .fuuvo-colour-motion-toggle):not(:disabled):hover { color: #8fc7ff; }
}

@media (min-width: 921px) and (max-width: 1100px) {
    .fuuvo-colour-topbar .fuuvo-colour-topbar-right { gap: 10px; }
    .fuuvo-colour-topbar .fuuvo-colour-topbar-safety > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .fuuvo-colour-topbar .fuuvo-colour-motion-switch::after { transition: none; }
}
