.eye-page {
    padding-top: 22px;
}

.body-immersive-layout {
    background: #07131d;
}

.page-shell-immersive {
    padding-bottom: 0;
}

.eye-page-switcher {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.eye-category-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.eye-category-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(22, 116, 168, 0.12);
    box-shadow: 0 18px 40px rgba(18, 53, 72, 0.07);
}

.eye-category-card.is-current {
    background: linear-gradient(180deg, rgba(22, 116, 168, 0.1), rgba(29, 156, 141, 0.1));
}

.eye-category-card.is-planned {
    opacity: 0.82;
}

.eye-category-card h3 {
    margin: 10px 0 8px;
}

.eye-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(22, 116, 168, 0.16);
    background: rgba(255, 255, 255, 0.78);
    color: var(--text-soft);
    font-weight: 700;
}

.eye-page-link.is-active,
.eye-page-link:hover {
    color: var(--brand-dark);
    background: linear-gradient(135deg, rgba(22, 116, 168, 0.14), rgba(29, 156, 141, 0.16));
}

.eye-studio-shell {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.eye-studio-sidebar,
.eye-studio-main {
    padding: 24px;
}

.eye-sidebar-block + .eye-sidebar-block,
.eye-sidebar-block + .eye-sidebar-stats {
    margin-top: 20px;
}

.eye-sidebar-block h2,
.eye-sidebar-block h3,
.eye-studio-header h2 {
    margin: 8px 0 0;
}

.eye-module-list {
    display: grid;
    gap: 10px;
}

.eye-module-button {
    width: 100%;
    border: 1px solid rgba(22, 116, 168, 0.14);
    border-radius: 14px;
    padding: 13px 14px;
    text-align: left;
    font-weight: 700;
    color: var(--text-soft);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(234, 243, 247, 0.9));
}

.eye-module-button.is-active,
.eye-module-button:hover {
    color: var(--brand-dark);
    border-color: rgba(22, 116, 168, 0.32);
    box-shadow: 0 14px 34px rgba(18, 53, 72, 0.08);
    transform: translateY(-1px);
}

.eye-sidebar-stats {
    display: grid;
    gap: 12px;
}

.eye-mini-card {
    padding: 14px 15px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(11, 40, 55, 0.96), rgba(15, 67, 95, 0.94));
    color: rgba(255, 255, 255, 0.94);
}

.eye-mini-card strong,
.eye-mini-card span {
    display: block;
}

.eye-mini-card p {
    margin: 6px 0 10px;
    color: rgba(255, 255, 255, 0.78);
}

.eye-mini-card span {
    color: rgba(168, 227, 217, 0.98);
    font-size: 0.92rem;
    font-weight: 700;
}

.eye-live-metrics {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eye-live-metrics article {
    padding: 12px;
    border-radius: 14px;
    background: rgba(22, 116, 168, 0.08);
    border: 1px solid rgba(22, 116, 168, 0.12);
}

.eye-live-metrics span,
.eye-control span {
    display: block;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.eye-live-metrics strong,
.eye-control strong {
    display: block;
    margin-top: 6px;
    font-size: 1.08rem;
}

.eye-studio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.eye-stage-frame {
    position: relative;
    min-height: 520px;
    border-radius: 30px;
    border: 6px solid rgba(198, 166, 92, 0.75);
    overflow: hidden;
}

.eye-stage-paper {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 246, 250, 0.98)),
        repeating-linear-gradient(-35deg, rgba(26, 66, 102, 0.028) 0, rgba(26, 66, 102, 0.028) 14px, transparent 14px, transparent 36px);
}

.eye-stage-night {
    background:
        radial-gradient(circle at top, rgba(82, 213, 255, 0.16), transparent 28%),
        linear-gradient(180deg, #08161f, #0f2433);
    border-color: rgba(85, 199, 231, 0.32);
}

.eye-stage-overlay,
.eye-stage-note {
    position: absolute;
    left: 24px;
    top: 24px;
    max-width: 420px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 42px rgba(18, 53, 72, 0.08);
}

.eye-stage-overlay-compact {
    max-width: 280px;
    padding: 12px 14px;
}

.eye-stage-night .eye-stage-note {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(7, 25, 36, 0.58);
}

.eye-stage-overlay strong {
    display: block;
    margin-bottom: 6px;
}

.eye-stage-target {
    position: absolute;
    left: 0;
    top: 0;
    width: 74px;
    height: 74px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #1674a8, #1d9c8d);
    box-shadow: 0 24px 50px rgba(22, 116, 168, 0.34);
    transform: translate(-999px, -999px);
}

.eye-stage-target-large {
    width: 96px;
    height: 96px;
    font-size: 2.5rem;
}

.eye-stage-target.is-gold {
    background: linear-gradient(135deg, #c08a2c, #f1c96e);
    box-shadow: 0 24px 50px rgba(192, 138, 44, 0.34);
}

.eye-stage-target.is-violet {
    background: linear-gradient(135deg, #4557c4, #9f6de1);
    box-shadow: 0 24px 50px rgba(98, 90, 214, 0.34);
}

.eye-stage-target.is-ice {
    background: linear-gradient(135deg, #32a7d5, #9ae5ff);
    box-shadow: 0 24px 50px rgba(55, 164, 218, 0.34);
}

.eye-control-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) 1.4fr;
    gap: 12px;
    margin-top: 14px;
    padding: 16px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(15, 56, 72, 0.98), rgba(13, 35, 49, 0.96));
    color: rgba(255, 255, 255, 0.96);
}

.eye-control {
    display: grid;
    gap: 8px;
}

.eye-control input,
.eye-control select {
    width: 100%;
}

.eye-control input[type="range"] {
    accent-color: #49c1a9;
}

.eye-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: end;
    justify-content: flex-end;
}

.eye-actions .btn {
    min-height: 46px;
}

.eye-module-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.eye-module-card {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(22, 116, 168, 0.12);
    background: rgba(255, 255, 255, 0.82);
}

.eye-module-card.is-active {
    border-color: rgba(22, 116, 168, 0.28);
    background: linear-gradient(180deg, rgba(22, 116, 168, 0.08), rgba(29, 156, 141, 0.08));
}

.eye-module-card h3 {
    margin: 10px 0 8px;
}

.eye-fixation-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    margin-top: -9px;
    border-radius: 999px;
    background: #f0f7ff;
    box-shadow: 0 0 0 10px rgba(94, 212, 255, 0.09);
}

.eye-reactive-target {
    position: absolute;
    width: 78px;
    height: 78px;
    border: 0;
    border-radius: 999px;
    background: rgba(86, 210, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(150, 228, 255, 0.14);
    transform: scale(0.84);
    opacity: 0.4;
    transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.eye-reactive-target::before {
    content: '';
    position: absolute;
    inset: 13px;
    border-radius: inherit;
    border: 3px solid rgba(201, 241, 255, 0.2);
}

.eye-reactive-target.is-active {
    opacity: 1;
    transform: scale(1);
    background: rgba(87, 214, 157, 0.24);
    box-shadow:
        0 0 0 10px rgba(87, 214, 157, 0.12),
        0 24px 44px rgba(3, 12, 19, 0.34);
}

.eye-reactive-target.is-lime.is-active {
    background: rgba(116, 236, 140, 0.26);
}

.eye-reactive-target.is-ice.is-active {
    background: rgba(99, 210, 255, 0.28);
}

.eye-reactive-target.is-ember.is-active {
    background: rgba(255, 167, 95, 0.28);
}

.eye-reactive-target.is-square,
.eye-reactive-target.is-square::before {
    border-radius: 24px;
}

.eye-reactive-target.is-pulse.is-active::before {
    animation: eyePulse 0.95s ease infinite;
}

@keyframes eyePulse {
    0% { transform: scale(0.9); opacity: 0.45; }
    70% { transform: scale(1.18); opacity: 0; }
    100% { transform: scale(1.18); opacity: 0; }
}

.slot-left { left: 44px; top: calc(50% - 39px); }
.slot-right { right: 44px; top: calc(50% - 39px); }
.slot-top { top: 36px; left: calc(50% - 39px); }
.slot-bottom { bottom: 36px; left: calc(50% - 39px); }
.slot-top-left { left: 54px; top: 52px; }
.slot-top-right { right: 54px; top: 52px; }
.slot-bottom-left { left: 54px; bottom: 52px; }
.slot-bottom-right { right: 54px; bottom: 52px; }

.eye-stage-frame.is-immersive {
    position: fixed;
    inset: 0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
}

body.eye-immersive-open {
    overflow: hidden;
}

.eye-player-page {
    min-height: 100vh;
    padding: 18px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 14px;
    background:
        radial-gradient(circle at top, rgba(22, 116, 168, 0.2), transparent 26%),
        linear-gradient(180deg, #07131d, #0b1d2a);
}

.eye-player-topbar,
.eye-player-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 24px;
    background: rgba(7, 19, 29, 0.8);
    border: 1px solid rgba(126, 193, 221, 0.18);
    color: rgba(255, 255, 255, 0.94);
}

.eye-player-topbar h1 {
    margin: 8px 0 0;
    font-size: clamp(1.8rem, 2.6vw, 2.8rem);
}

.eye-player-actions,
.eye-player-controls,
.eye-player-metrics {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.eye-player-metrics article {
    min-width: 100px;
}

.eye-player-metrics span {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.8rem;
}

.eye-player-metrics strong {
    display: block;
    margin-top: 4px;
    font-size: 1.1rem;
}

.eye-player-stage {
    position: relative;
    min-height: calc(100vh - 220px);
    border-radius: 30px;
    border: 6px solid rgba(198, 166, 92, 0.84);
    overflow: hidden;
}

.eye-player-toolbar .eye-control {
    min-width: 180px;
}

@media (max-width: 1080px) {
    .eye-category-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eye-studio-shell {
        grid-template-columns: 1fr;
    }

    .eye-control-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eye-actions {
        justify-content: stretch;
    }
}

@media (max-width: 760px) {
    .eye-page-link {
        width: 100%;
    }

    .eye-category-strip,
    .eye-module-grid {
        grid-template-columns: 1fr;
    }

    .eye-control-bar,
    .eye-live-metrics {
        grid-template-columns: 1fr;
    }

    .eye-player-controls,
    .eye-player-metrics,
    .eye-player-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .eye-player-topbar,
    .eye-player-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .eye-player-stage {
        min-height: calc(100vh - 260px);
    }

    .eye-stage-frame {
        min-height: 420px;
    }

    .eye-stage-target {
        width: 62px;
        height: 62px;
        font-size: 1.7rem;
    }

    .eye-reactive-target {
        width: 64px;
        height: 64px;
    }

    .slot-left { left: 18px; }
    .slot-right { right: 18px; }
    .slot-top-left { left: 24px; top: 70px; }
    .slot-top-right { right: 24px; top: 70px; }
    .slot-bottom-left { left: 24px; bottom: 42px; }
    .slot-bottom-right { right: 24px; bottom: 42px; }
}
