#seba-site-nav { display: none !important; }

#seba-float-trigger,
#seba-float-panel {
    --seba-ink: #111827;
    --seba-gold: #e8c45a;
    --seba-line: #e7e0cf;
    --seba-paper: #f8f6ef;
    font-family: system-ui, sans-serif;
    box-sizing: border-box;
}

#seba-float-trigger {
    position: fixed;
    z-index: 9991;
    top: 16px;
    right: clamp(14px, 3vw, 40px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid #f4d78b;
    border-radius: 12px;
    background: var(--seba-gold);
    color: var(--seba-ink);
    box-shadow: 0 5px 20px #11182728;
    font-size: .9rem;
    font-weight: 750;
    cursor: pointer;
}

#seba-float-trigger:hover { background: #f4d78b; }
#seba-float-trigger:focus-visible,
#seba-float-panel :is(a, button, summary):focus-visible {
    outline: 2px solid #936205;
    outline-offset: 3px;
}

#seba-float-trigger .seba-icon,
#seba-float-panel .seba-icon {
    width: 1em;
    height: 1em;
    flex: 0 0 1em;
    fill: currentColor;
    display: block;
}

#seba-float-backdrop {
    position: fixed;
    z-index: 9992;
    inset: 0;
    background: #11182799;
    backdrop-filter: blur(3px);
}

#seba-float-backdrop[hidden] { display: none; }

#seba-float-panel {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 9993;
    width: min(408px, 94vw);
    height: 100vh;
    height: 100dvh;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--seba-paper);
    color: var(--seba-ink);
    text-align: left;
    box-shadow: -20px 0 64px #11182745;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .25s ease;
}

#seba-float-panel.is-open {
    transform: translateX(0);
    visibility: visible;
}

#seba-float-panel .seba-float-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: max(16px, env(safe-area-inset-top)) clamp(14px, 5vw, 24px) 16px;
    background: var(--seba-ink);
    color: #fff;
    border-bottom: 3px solid var(--seba-gold);
    font-size: clamp(1.15rem, 4vw, 1.4rem);
}

#seba-float-close {
    display: inline-grid;
    place-items: center;
    flex: 0 0 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #f8f6ef50;
    border-radius: 11px;
    color: var(--seba-gold);
    background: #ffffff10;
    cursor: pointer;
}

#seba-float-close:hover { background: #ffffff24; }

#seba-float-panel .seba-float-nav {
    display: grid;
    align-content: start;
    gap: 9px;
    width: auto;
    margin: 0;
    padding: 16px clamp(12px, 4vw, 20px) max(20px, env(safe-area-inset-bottom));
    background: transparent;
    box-shadow: none;
}

#seba-float-panel :is(.seba-float-home, .seba-float-group > summary) {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    min-height: 57px;
    padding: 9px 12px;
    margin: 0;
    text-align: left;
    color: var(--seba-ink);
    font-size: .97rem;
    font-weight: 720;
    text-decoration: none;
    list-style: none;
    cursor: pointer;
}

#seba-float-panel .seba-float-home,
#seba-float-panel .seba-float-group {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    border: 1px solid var(--seba-line);
    border-radius: 14px;
    background: #fff;
}

#seba-float-panel .seba-float-home {
    display: flex;
    background: #fff4cf;
    border-color: #e7c760;
}

#seba-float-panel .seba-float-group > summary::-webkit-details-marker { display: none; }
#seba-float-panel .seba-float-group > summary::marker { content: ''; }
#seba-float-panel .seba-float-group > summary::after { content: none !important; }

#seba-float-panel .seba-float-group > summary:hover,
#seba-float-panel .seba-float-group[open] > summary {
    background: #fdf8e9;
    border-radius: 13px;
}

#seba-float-panel .seba-float-badge {
    display: inline-grid;
    place-items: center;
    flex: 0 0 36px;
    height: 36px;
    border-radius: 10px;
    background: #f5ebcd;
    color: #67490b;
    font-size: 1rem;
}

#seba-float-panel .seba-float-home .seba-float-badge { background: var(--seba-gold); }
#seba-float-panel .seba-float-chevron {
    margin-inline-start: auto;
    color: #725a24;
    font-size: .72rem;
    transition: transform .2s ease;
}
#seba-float-panel .seba-float-group[open] > summary .seba-float-chevron { transform: rotate(180deg); }

#seba-float-panel .seba-float-links {
    display: grid;
    gap: 2px;
    padding: 4px 9px 9px;
    margin: 0;
}

#seba-float-panel .seba-float-links a {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 8px 12px;
    margin: 0;
    border-radius: 8px;
    color: var(--seba-ink);
    text-decoration: none;
    font-size: .94rem;
}

#seba-float-panel .seba-float-links a:is(:hover, :focus-visible, [aria-current="page"]) {
    background: #fff4cf;
    color: #5c3e02;
}

#seba-float-panel a[aria-current="page"] { font-weight: 750; }

@media (max-width: 600px) {
    #seba-float-trigger { top: 10px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    #seba-float-panel, #seba-float-panel .seba-float-chevron { transition: none; }
}

#seba-float-panel .seba-float-links .seba-yesim-sub {
    margin: 0;
    border-left: 3px solid var(--seba-gold);
    background: #fdf8e9;
}

#seba-float-panel .seba-float-links .seba-yesim-sub > summary {
    min-height: 44px;
    box-sizing: border-box;
    align-items: center;
    padding: 8px 12px;
    color: var(--seba-ink);
}

body.admin-bar #seba-float-panel {
    top: 32px;
    height: calc(100dvh - 32px);
}

@media (max-width: 782px) {
    body.admin-bar #seba-float-panel {
        top: 46px;
        height: calc(100dvh - 46px);
    }
}

body.admin-bar #seba-float-trigger { top: 48px; }

@media (max-width: 782px) {
    body.admin-bar #seba-float-trigger { top: 56px; }
}
