.section-drawer-toggle {
    position: fixed;
    left: max(0px, env(safe-area-inset-left));
    top: 50%;
    z-index: 47;
    display: grid;
    place-items: center;
    width: 46px;
    height: 76px;
    padding: 0 8px 0 0;
    border: 1px solid rgba(210,224,248,0.13);
    border-left: 0;
    border-radius: 0 24px 24px 0;
    background:
        linear-gradient(90deg, rgba(5,8,17,0.78), rgba(10,15,29,0.54));
    color: rgba(227,237,255,0.54);
    box-shadow:
        12px 0 38px rgba(0,0,0,0.16),
        inset -1px 0 rgba(255,255,255,0.025);
    backdrop-filter: blur(14px) saturate(0.9);
    opacity: 0;
    transform: translate(-15px, -50%);
    pointer-events: none;
    cursor: pointer;
    transition:
        opacity 260ms ease,
        transform 360ms cubic-bezier(0.16,0.8,0.18,1),
        color 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.section-drawer-toggle::before {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: translateX(-1px) rotate(45deg);
    transition: transform 420ms cubic-bezier(0.16,0.8,0.18,1);
}

body.has-entered .section-drawer-toggle {
    opacity: 0.42;
    transform: translate(0, -50%);
}

body.has-entered.cursor-free .section-drawer-toggle,
body.touch-mode .section-drawer-toggle,
.section-drawer-toggle:focus-visible {
    opacity: 0.92;
    pointer-events: auto;
}

.section-drawer-toggle:hover {
    color: rgba(255,249,233,0.94);
    border-color: rgba(228,237,255,0.3);
    background:
        linear-gradient(90deg, rgba(7,11,22,0.92), rgba(20,28,48,0.72));
}

body.section-drawer-open .section-drawer-toggle {
    opacity: 1;
    color: rgba(255,249,233,0.92);
    transform: translate(min(356px, calc(100vw - 24px)), -50%);
}

body.section-drawer-open .section-drawer-toggle::before {
    transform: translateX(2px) rotate(-135deg);
}

body.section-drawer-open .reticle,
body.section-drawer-open .gaze-label,
body.section-drawer-open .gaze-instruction {
    opacity: 0;
}

.section-drawer-scrim {
    position: fixed;
    inset: 0;
    z-index: 44;
    border: 0;
    background:
        linear-gradient(90deg, rgba(1,3,8,0.3), rgba(1,3,8,0.08) 42%, transparent 72%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 360ms ease;
}

body.section-drawer-open .section-drawer-scrim {
    opacity: 1;
    pointer-events: auto;
}

.section-drawer {
    position: fixed;
    inset:
        max(12px, env(safe-area-inset-top))
        auto
        max(12px, env(safe-area-inset-bottom))
        max(0px, env(safe-area-inset-left));
    z-index: 46;
    display: flex;
    flex-direction: column;
    width: min(356px, calc(100vw - 24px));
    border: 1px solid rgba(214,226,248,0.16);
    border-left: 0;
    border-radius: 0 9px 9px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 0 0, rgba(94,123,174,0.16), transparent 34%),
        linear-gradient(145deg, rgba(8,12,24,0.975), rgba(5,8,17,0.95));
    color: rgba(242,245,252,0.94);
    box-shadow:
        22px 0 78px rgba(0,0,0,0.48),
        inset -1px 0 rgba(255,255,255,0.025);
    backdrop-filter: blur(26px) saturate(0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateX(calc(-100% - 18px));
    pointer-events: none;
    transition:
        opacity 260ms ease,
        transform 560ms cubic-bezier(0.16,0.8,0.18,1),
        visibility 260ms ease;
}

body.section-drawer-open .section-drawer {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.section-drawer-header {
    position: relative;
    flex: 0 0 auto;
    padding: 25px 70px 18px 25px;
    border-bottom: 1px solid rgba(214,226,248,0.1);
}

.section-drawer-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    color: rgba(171,195,231,0.62);
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-drawer-kicker::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #a9c6ee;
    box-shadow: 0 0 12px rgba(159,194,241,0.72);
}

.section-drawer-title {
    margin: 0;
    color: #fff8e8;
    font-family: var(--editorial);
    font-size: 1.42rem;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.025em;
}

body.lang-zh-CN .section-drawer-title,
body.lang-zh-TW .section-drawer-title {
    font-family: var(--kai);
}

.section-drawer-observer {
    margin: 8px 0 0;
    color: rgba(221,229,244,0.48);
    font-family: var(--ui);
    font-size: 0.64rem;
    line-height: 1.5;
}

.section-drawer-close {
    position: absolute;
    top: 20px;
    right: 18px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(220,231,250,0.14);
    border-radius: 50%;
    background: rgba(255,255,255,0.025);
    color: rgba(231,238,250,0.58);
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.section-drawer-close::before,
.section-drawer-close::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 1px;
    background: currentColor;
}

.section-drawer-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.section-drawer-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.section-drawer-close:hover {
    color: #fff8e8;
    border-color: rgba(255,248,232,0.34);
    transform: rotate(4deg);
}

.section-drawer-list {
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px 10px 12px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(197,215,244,0.2) transparent;
}

.section-index-item,
.section-index-home {
    position: relative;
    display: grid;
    grid-template-columns: 29px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 60px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.section-index-item + .section-index-item {
    margin-top: 2px;
}

.section-index-item:hover,
.section-index-item:focus-visible,
.section-index-home:hover,
.section-index-home:focus-visible {
    border-color: rgba(202,220,248,0.15);
    background:
        linear-gradient(90deg, rgba(109,146,204,0.1), rgba(255,255,255,0.018));
    outline: none;
    transform: translateX(2px);
}

.section-index-number {
    color: rgba(177,199,233,0.43);
    font-family: var(--mono);
    font-size: 0.56rem;
    letter-spacing: 0.08em;
}

.section-index-copy {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.section-index-copy strong {
    overflow: hidden;
    color: rgba(255,249,235,0.94);
    font-family: var(--editorial);
    font-size: 0.96rem;
    font-weight: 500;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.lang-zh-CN .section-index-copy strong,
body.lang-zh-TW .section-index-copy strong {
    font-family: var(--kai);
}

.section-index-copy span {
    overflow: hidden;
    color: rgba(211,222,241,0.5);
    font-family: var(--ui);
    font-size: 0.61rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.section-index-visibility {
    display: grid;
    justify-items: end;
    gap: 3px;
    min-width: 72px;
    color: rgba(204,218,240,0.5);
    font-family: var(--mono);
    font-size: 0.49rem;
    letter-spacing: 0.06em;
    text-align: right;
    text-transform: uppercase;
}

.section-index-visibility::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #9ec6ef;
    box-shadow: 0 0 9px rgba(141,191,238,0.5);
}

.section-index-item[data-horizon-state="near"] .section-index-visibility::before {
    background: #e1bd82;
    box-shadow: 0 0 9px rgba(224,178,103,0.48);
}

.section-index-item[data-horizon-state="below"] .section-index-visibility {
    color: rgba(188,197,214,0.38);
}

.section-index-item[data-horizon-state="below"] .section-index-visibility::before,
.section-index-item[data-horizon-state="veiled"] .section-index-visibility::before {
    border: 1px solid rgba(183,196,219,0.42);
    background: transparent;
    box-shadow: none;
}

.section-index-item[data-horizon-state="veiled"] .section-index-visibility {
    color: rgba(196,202,216,0.44);
}

.section-drawer-footer {
    flex: 0 0 auto;
    padding: 11px 10px 12px;
    border-top: 1px solid rgba(214,226,248,0.1);
    background: rgba(0,0,0,0.08);
}

.section-index-home {
    grid-template-columns: 29px minmax(0, 1fr) 13px;
    min-height: 54px;
}

.section-index-home::after {
    content: '';
    width: 7px;
    height: 7px;
    border-top: 1px solid rgba(230,238,252,0.55);
    border-right: 1px solid rgba(230,238,252,0.55);
    transform: rotate(45deg);
}

.section-drawer-note {
    margin: 7px 12px 1px 40px;
    color: rgba(202,215,237,0.37);
    font-family: var(--ui);
    font-size: 0.56rem;
    line-height: 1.45;
}
