﻿.intro-screen {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.22), transparent 32%),
        radial-gradient(circle at 80% 16%, rgba(99, 102, 241, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(2, 8, 23, 0.99), rgba(3, 15, 34, 0.97));
    transition: opacity 0.45s ease, visibility 0.45s ease;
    overflow: hidden;
}

.intro-screen-visual,
.intro-screen-panel {
    position: relative;
    z-index: 1;
}

.intro-screen-visual {
    position: absolute;
    inset: 0;
    perspective: 1800px;
    transform-style: preserve-3d;
    transition: transform 1.18s cubic-bezier(0.22, 1, 0.36, 1), filter 1.18s ease, opacity 1.18s ease;
}

.intro-video-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.54;
    mix-blend-mode: screen;
    transform: translateZ(-80px) scale(1.03);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.9s ease, opacity 0.9s ease;
}

.intro-media-video,
.intro-media-tint {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.intro-media-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
    transform: translateZ(-180px) scale(1.08);
    filter:
        saturate(0.96)
        contrast(1.08)
        brightness(0.48)
        sepia(0.12)
        hue-rotate(156deg);
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), filter 1s ease, opacity 1s ease;
}

.intro-media-tint {
    background:
        linear-gradient(180deg, rgba(2, 8, 23, 0.18), rgba(0, 0, 0, 0.42)),
        radial-gradient(circle at 50% 46%, rgba(56, 189, 248, 0.14), rgba(56, 189, 248, 0) 36%),
        radial-gradient(circle at 50% 88%, rgba(37, 99, 235, 0.28), rgba(37, 99, 235, 0) 54%);
    mix-blend-mode: screen;
}

.intro-entry-vignette,
.intro-lens-flare,
.intro-horizon-glow,
.intro-enter-flash,
.intro-depth-fog {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.intro-entry-vignette {
    background:
        radial-gradient(circle at center, rgba(2, 1, 0, 0) 0 24%, rgba(2, 1, 0, 0.18) 48%, rgba(2, 1, 0, 0.74) 100%),
        linear-gradient(180deg, rgba(3, 15, 34, 0.08), rgba(2, 1, 0, 0.54));
    mix-blend-mode: multiply;
}

.intro-lens-flare {
    background:
        radial-gradient(circle at 50% 42%, rgba(191, 219, 254, 0.2), transparent 14%),
        radial-gradient(circle at 50% 48%, rgba(56, 189, 248, 0.16), transparent 28%),
        linear-gradient(90deg, rgba(56, 189, 248, 0), rgba(191, 219, 254, 0.18), rgba(56, 189, 248, 0));
    opacity: 0.7;
    filter: blur(8px);
    animation: intro-lens-breathe 5.8s ease-in-out infinite;
}

.intro-horizon-glow {
    top: auto;
    height: 40%;
    background: radial-gradient(circle at 50% 100%, rgba(37, 99, 235, 0.34), rgba(37, 99, 235, 0) 62%);
    transform: translateZ(-40px);
    opacity: 0.72;
}

.intro-enter-flash {
    background:
        radial-gradient(circle at 50% 50%, rgba(250, 252, 255, 0.94), rgba(188, 232, 255, 0.38) 16%, rgba(188, 232, 255, 0) 34%),
        linear-gradient(180deg, rgba(186, 230, 253, 0.16), rgba(186, 230, 253, 0));
    opacity: 0;
    mix-blend-mode: screen;
    filter: blur(10px);
}

.intro-depth-fog {
    opacity: 0.26;
    filter: blur(26px);
    transition: opacity 1.1s ease, filter 1.1s ease, transform 1.1s ease;
}

.intro-depth-fog-top {
    bottom: auto;
    height: 28%;
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.16), rgba(125, 211, 252, 0));
    transform: translateZ(40px);
}

.intro-depth-fog-bottom {
    top: auto;
    height: 32%;
    background: linear-gradient(180deg, rgba(2, 8, 23, 0), rgba(2, 8, 23, 0.66));
    transform: translateZ(30px);
}

.intro-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 50%, black 25%, transparent 78%);
    opacity: 0.48;
}

.intro-film-noise {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px),
        radial-gradient(circle at 72% 64%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px);
    background-size: 28px 28px, 36px 36px;
    mix-blend-mode: screen;
    opacity: 0.14;
    animation: intro-noise-drift 10s linear infinite;
}

.intro-orbit,
.intro-glow {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.intro-orbit {
    border: 1px solid rgba(56, 189, 248, 0.24);
    animation: intro-orbit-spin 16s linear infinite;
}

.intro-orbit-a {
    width: 56vw;
    height: 56vw;
    max-width: 760px;
    max-height: 760px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.intro-orbit-b {
    width: 34vw;
    height: 34vw;
    max-width: 460px;
    max-height: 460px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 10s;
    animation-direction: reverse;
}

.intro-glow {
    filter: blur(48px);
    opacity: 0.65;
}

.intro-glow-a {
    width: 220px;
    height: 220px;
    background: rgba(56, 189, 248, 0.16);
    left: 14%;
    top: 18%;
    animation: intro-float 9s ease-in-out infinite;
}

.intro-glow-b {
    width: 260px;
    height: 260px;
    background: rgba(99, 102, 241, 0.14);
    right: 14%;
    bottom: 12%;
    animation: intro-float 11s ease-in-out infinite reverse;
}

.intro-scanline {
    position: absolute;
    inset: -20% 0 auto;
    height: 22%;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.16), rgba(56, 189, 248, 0));
    filter: blur(12px);
    animation: intro-scan 5.5s ease-in-out infinite;
}

.intro-data-stream {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.56), rgba(56, 189, 248, 0));
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.28);
    opacity: 0.42;
}

.intro-data-stream::before,
.intro-data-stream::after {
    content: "";
    position: absolute;
    left: -7px;
    width: 16px;
    height: 68px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(186, 230, 253, 0), rgba(186, 230, 253, 0.88), rgba(186, 230, 253, 0));
    filter: blur(1px);
}

.intro-data-stream-a {
    left: 16%;
}

.intro-data-stream-a::before {
    animation: intro-stream-fall 4.4s linear infinite;
}

.intro-data-stream-a::after {
    animation: intro-stream-fall 6.2s linear infinite 1.8s;
}

.intro-data-stream-b {
    right: 18%;
}

.intro-data-stream-b::before {
    animation: intro-stream-fall 5.2s linear infinite 0.6s;
}

.intro-data-stream-b::after {
    animation: intro-stream-fall 7.1s linear infinite 2.3s;
}

.intro-blueprint-city {
    position: absolute;
    left: 50%;
    bottom: 6%;
    width: min(920px, 82vw);
    height: 34vh;
    min-height: 220px;
    transform: translateX(-50%) translateZ(-20px) rotateX(60deg);
    transform-style: preserve-3d;
    pointer-events: none;
    opacity: 0.7;
    transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.95s ease;
}

.intro-city-tower,
.intro-city-ground {
    position: absolute;
    border: 1px solid rgba(56, 189, 248, 0.18);
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.08), rgba(96, 165, 250, 0.01));
    box-shadow: inset 0 0 0 1px rgba(186, 230, 253, 0.05);
}

.intro-city-tower::before,
.intro-city-tower::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    border-top: 1px solid rgba(186, 230, 253, 0.18);
}

.intro-city-tower::before {
    top: 28%;
}

.intro-city-tower::after {
    top: 58%;
}

.intro-city-tower {
    bottom: 46px;
}

.intro-city-tower.tower-a { left: 4%; width: 8%; height: 34%; }
.intro-city-tower.tower-b { left: 15%; width: 10%; height: 52%; }
.intro-city-tower.tower-c { left: 29%; width: 9%; height: 44%; }
.intro-city-tower.tower-d { right: 30%; width: 11%; height: 64%; }
.intro-city-tower.tower-e { right: 15%; width: 9%; height: 48%; }
.intro-city-tower.tower-f { right: 4%; width: 12%; height: 38%; }

.intro-city-ground {
    left: 0;
    right: 0;
    bottom: 0;
    height: 36px;
    border-radius: 10px;
    transform: perspective(600px) rotateX(74deg);
    transform-origin: center top;
}

.intro-core-chamber {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 360px;
    height: 360px;
    transform: translate(-50%, -50%) translateZ(40px);
    transform-style: preserve-3d;
    pointer-events: none;
    transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), filter 0.95s ease;
}

.intro-core-ring,
.intro-core-floor,
.intro-core-armature,
.intro-core-node,
.intro-core-beam,
.intro-core-energy-shell,
.intro-core-scale {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.intro-core-ring {
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.18);
}

.intro-core-ring-a {
    width: 120px;
    height: 120px;
    animation: intro-core-spin 8s linear infinite;
}

.intro-core-ring-b {
    width: 182px;
    height: 182px;
    border-style: dashed;
    animation: intro-core-spin 14s linear infinite reverse;
}

.intro-core-ring-c {
    width: 254px;
    height: 254px;
    opacity: 0.68;
    animation: intro-core-pulse 4.8s ease-in-out infinite;
}

.intro-core-ring-d {
    width: 318px;
    height: 126px;
    border-color: rgba(186, 230, 253, 0.2);
    transform: translate(-50%, -50%) rotateX(74deg) translateZ(-34px);
    animation: intro-core-floor-spin 11s linear infinite;
}

.intro-core-floor {
    width: 292px;
    height: 292px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.1);
    background:
        radial-gradient(circle, rgba(14, 76, 146, 0.22), rgba(3, 12, 26, 0) 68%),
        repeating-radial-gradient(circle, rgba(37, 99, 235, 0.12) 0 2px, transparent 2px 18px);
    box-shadow: inset 0 0 48px rgba(37, 99, 235, 0.18);
    transform: translate(-50%, -50%) rotateX(76deg) translateZ(-44px);
}

.intro-core-armature {
    width: 336px;
    height: 336px;
    transform: translate(-50%, -50%) translateZ(12px);
    animation: intro-core-armature-rotate 20s linear infinite;
}

.intro-core-arm {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 172px;
    height: 18px;
    margin-left: -18px;
    transform-origin: 18px 50%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(191, 219, 254, 0.34), rgba(37, 99, 235, 0.1));
    box-shadow:
        0 0 18px rgba(37, 99, 235, 0.16),
        inset 0 0 0 1px rgba(186, 230, 253, 0.14);
}

.intro-core-arm::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(224, 242, 254, 0.78), rgba(37, 99, 235, 0.22));
    transform: translate(-35%, -50%);
    box-shadow: 0 0 24px rgba(96, 165, 250, 0.24);
}

.intro-core-arm em {
    position: absolute;
    right: -18px;
    top: 50%;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(186, 230, 253, 0.18);
    background: rgba(4, 18, 38, 0.84);
    color: rgba(224, 242, 254, 0.9);
    font-style: normal;
    font-size: 10px;
    letter-spacing: 0.16em;
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
}

.intro-core-arm.arm-a { transform: rotate(18deg) translateX(12px); }
.intro-core-arm.arm-b { transform: rotate(108deg) translateX(12px); }
.intro-core-arm.arm-c { transform: rotate(198deg) translateX(12px); }
.intro-core-arm.arm-d { transform: rotate(288deg) translateX(12px); }

.intro-core-node {
    width: 26px;
    height: 26px;
    background: radial-gradient(circle, rgba(240, 249, 255, 1), rgba(56, 189, 248, 0.28));
    box-shadow: 0 0 36px rgba(56, 189, 248, 0.48);
    z-index: 3;
}

.intro-core-beam {
    width: 12px;
    height: 320px;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.58), rgba(56, 189, 248, 0));
    filter: blur(2px);
    opacity: 0.6;
    z-index: 1;
}

.intro-core-beam-secondary {
    width: 4px;
    height: 360px;
    background: linear-gradient(180deg, rgba(224, 242, 254, 0), rgba(224, 242, 254, 0.84), rgba(224, 242, 254, 0));
    filter: blur(0.8px);
    opacity: 0.94;
}

.intro-core-energy-shell {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(224, 242, 254, 0.46), rgba(56, 189, 248, 0.12) 58%, rgba(56, 189, 248, 0) 78%);
    box-shadow:
        0 0 36px rgba(56, 189, 248, 0.3),
        inset 0 0 26px rgba(255, 255, 255, 0.1);
    animation: intro-core-shell-breathe 3.2s ease-in-out infinite;
}

.intro-core-scale {
    width: 354px;
    height: 354px;
    transform: translate(-50%, -50%) translateZ(10px);
    animation: intro-core-spin 18s linear infinite reverse;
}

.intro-core-scale-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: rgba(4, 18, 38, 0.72);
    color: rgba(224, 242, 254, 0.88);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transform-origin: center center;
    backdrop-filter: blur(10px);
}

.intro-core-scale-mark.mark-a { transform: translate(-50%, -50%) translate(0, -176px); }
.intro-core-scale-mark.mark-b { transform: translate(-50%, -50%) translate(124px, -124px); }
.intro-core-scale-mark.mark-c { transform: translate(-50%, -50%) translate(176px, 0); }
.intro-core-scale-mark.mark-d { transform: translate(-50%, -50%) translate(124px, 124px); }
.intro-core-scale-mark.mark-e { transform: translate(-50%, -50%) translate(0, 176px); }
.intro-core-scale-mark.mark-f { transform: translate(-50%, -50%) translate(-124px, 124px); }
.intro-core-scale-mark.mark-g { transform: translate(-50%, -50%) translate(-176px, 0); }
.intro-core-scale-mark.mark-h { transform: translate(-50%, -50%) translate(-124px, -124px); }

.intro-door {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 34%;
    background:
        linear-gradient(180deg, rgba(5, 17, 36, 0.7), rgba(2, 8, 23, 0.84)),
        linear-gradient(90deg, rgba(56, 189, 248, 0.16), rgba(56, 189, 248, 0));
    border: 1px solid rgba(56, 189, 248, 0.14);
    box-shadow: inset 0 0 0 1px rgba(186, 230, 253, 0.06);
    pointer-events: none;
    transition: transform 1.08s cubic-bezier(0.2, 0.8, 0.15, 1), opacity 1.08s ease, box-shadow 1.08s ease;
    z-index: 2;
    opacity: 0.78;
    backdrop-filter: blur(8px);
}

.intro-door-left {
    left: 0;
    transform-origin: left center;
}

.intro-door-right {
    right: 0;
    transform-origin: right center;
}

.intro-door-seam {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(224, 242, 254, 0), rgba(224, 242, 254, 0.82), rgba(224, 242, 254, 0));
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.36);
}

.intro-door-left .intro-door-seam {
    right: 0;
}

.intro-door-right .intro-door-seam {
    left: 0;
}

.intro-brand-mark {
    position: absolute;
    left: 50%;
    top: 12%;
    transform: translateX(-50%) translateZ(70px);
    display: grid;
    gap: 6px;
    text-align: center;
    pointer-events: none;
    transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.95s ease;
}

.intro-brand-mark span {
    color: rgba(186, 230, 253, 0.92);
    font-size: 16px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.intro-brand-mark strong {
    color: rgba(240, 249, 255, 0.98);
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: 0.08em;
    text-shadow: 0 0 28px rgba(56, 189, 248, 0.22);
}

.intro-hud-stack {
    position: absolute;
    top: 14%;
    display: grid;
    gap: 14px;
    width: min(240px, 22vw);
}

.intro-hud-left {
    left: 6%;
}

.intro-hud-right {
    right: 6%;
}

.intro-hud-card {
    border-radius: 18px;
    border: 1px solid rgba(56, 189, 248, 0.18);
    background: rgba(4, 18, 38, 0.66);
    padding: 14px 16px;
    box-shadow: 0 18px 42px rgba(2, 8, 23, 0.22);
    backdrop-filter: blur(10px);
    animation: intro-hud-float 9s ease-in-out infinite;
}

.intro-hud-card:nth-child(2) {
    animation-delay: 1.3s;
}

.intro-hud-card span {
    display: block;
    color: var(--text-dim);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.intro-hud-card strong {
    display: block;
    margin-top: 8px;
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

.intro-screen-panel {
    width: min(760px, 100%);
    display: grid;
    gap: 18px;
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(5, 17, 36, 0.92), rgba(2, 8, 23, 0.9));
    border: 1px solid rgba(56, 189, 248, 0.22);
    box-shadow: 0 32px 80px rgba(2, 8, 23, 0.48);
    backdrop-filter: blur(12px);
    transform: translateZ(120px);
    transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.95s ease, filter 0.95s ease;
}

.intro-progress-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.intro-progress-bar span {
    display: block;
    width: 25%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.72), rgba(56, 189, 248, 0.96));
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.34);
    transition: width 0.35s ease;
}

.intro-boot-list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.intro-boot-list li {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(7, 16, 31, 0.72);
    padding: 11px 14px;
    color: var(--text-soft);
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.intro-boot-list li.is-ready {
    border-color: rgba(56, 189, 248, 0.3);
    color: #e0f2fe;
    background: rgba(8, 35, 69, 0.62);
}

.intro-action-row {
    justify-content: flex-start;
}

.intro-action-row .primary-button {
    min-width: 220px;
    box-shadow: 0 18px 44px rgba(2, 8, 23, 0.36), 0 0 0 1px rgba(56, 189, 248, 0.14) inset;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.intro-action-row .primary-button:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: saturate(1.06) brightness(1.04);
    box-shadow: 0 24px 56px rgba(2, 8, 23, 0.42), 0 0 26px rgba(56, 189, 248, 0.22);
}

.intro-action-row .primary-button.is-pressed {
    transform: translateY(2px) scale(0.976);
    filter: brightness(0.96) saturate(1.04);
    box-shadow: 0 10px 22px rgba(2, 8, 23, 0.28), 0 0 18px rgba(56, 189, 248, 0.18) inset;
}

body.intro-media-fallback .intro-media-video {
    display: none;
}

.intro-status-text {
    color: var(--text-soft);
    min-height: 22px;
}

body.intro-pending .office-shell,
body.intro-pending .mobile-tabbar {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    pointer-events: none;
    filter: blur(18px);
}

body.intro-entering .intro-door-left {
    transform: translateX(-104%) rotateY(58deg);
    opacity: 0.08;
    box-shadow: 0 0 48px rgba(56, 189, 248, 0.18);
}

body.intro-entering .intro-door-right {
    transform: translateX(104%) rotateY(-58deg);
    opacity: 0.08;
    box-shadow: 0 0 48px rgba(56, 189, 248, 0.18);
}

body.intro-entering .intro-screen-visual {
    transform: scale(1.08);
    filter: saturate(1.1) contrast(1.06);
    animation: intro-impact-shake 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.intro-entering .intro-video-canvas {
    transform: translateZ(-220px) scale(1.28);
    filter: saturate(1.1) brightness(0.9) blur(7px);
    opacity: 1;
}

body.intro-entering .intro-media-video {
    transform: translateZ(-320px) scale(1.2);
    filter:
        saturate(0.92)
        contrast(1.14)
        brightness(0.42)
        sepia(0.42)
        hue-rotate(-18deg)
        blur(10px);
}

body.intro-entering .intro-grid-lines,
body.intro-entering .intro-lens-flare,
body.intro-entering .intro-horizon-glow {
    transform: scale(1.08);
    opacity: 0.92;
}

body.intro-entering .intro-enter-flash {
    animation: intro-enter-flash-burst 0.42s ease-out both;
}

body.intro-entering .intro-data-stream,
body.intro-entering .intro-blueprint-city,
body.intro-entering .intro-brand-mark,
body.intro-entering .intro-media-tint {
    filter: blur(5px);
}

body.intro-entering .intro-depth-fog-top {
    opacity: 0.54;
    filter: blur(38px);
    transform: translateZ(80px) translateY(-12px);
}

body.intro-entering .intro-depth-fog-bottom {
    opacity: 0.72;
    filter: blur(44px);
    transform: translateZ(90px) translateY(18px);
}

body.intro-entering .intro-blueprint-city {
    transform: translateX(-50%) translateZ(40px) rotateX(68deg) scale(1.18);
    opacity: 0.94;
}

body.intro-entering .intro-core-chamber {
    transform: translate(-50%, -50%) translateZ(260px) scale(1.24);
    filter: saturate(1.22) brightness(1.15) drop-shadow(0 48px 90px rgba(2, 8, 23, 0.62));
}

body.intro-entering .intro-core-armature,
body.intro-entering .intro-core-scale {
    filter: drop-shadow(0 0 26px rgba(125, 211, 252, 0.18));
}

body.intro-entering .intro-brand-mark {
    transform: translateX(-50%) translateY(-14px) translateZ(160px) scale(1.04);
    opacity: 0.5;
}

body.intro-entering .intro-screen-panel {
    transform: translateZ(280px) scale(1.08);
    opacity: 0.06;
    filter: blur(22px);
}

body.has-entered .office-shell,
body.has-entered .mobile-tabbar {
    opacity: 1;
    transform: none;
    filter: none;
    pointer-events: auto;
}

body.has-entered .intro-screen {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Intro override: enterprise-grade cinematic loading */
.intro-screen {
    background:
        radial-gradient(circle at 50% 18%, rgba(96, 165, 250, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(3, 10, 24, 0.98), rgba(2, 8, 20, 0.98));
}

.intro-screen-visual {
    transform: scale(1);
    filter: saturate(0.92);
}

.intro-video-canvas {
    opacity: 0.24;
    mix-blend-mode: screen;
    transform: translateZ(-70px) scale(1.015);
}

.intro-media-video {
    opacity: 0.94;
    transform: translateZ(-140px) scale(1.04);
    filter:
        saturate(0.8)
        contrast(1.08)
        brightness(0.34)
        hue-rotate(166deg);
}

.intro-media-tint {
    background:
        linear-gradient(180deg, rgba(3, 10, 24, 0.22), rgba(3, 10, 24, 0.48)),
        radial-gradient(circle at 50% 44%, rgba(59, 130, 246, 0.12), transparent 26%),
        radial-gradient(circle at 50% 100%, rgba(37, 99, 235, 0.22), transparent 46%);
}

.intro-entry-vignette {
    background:
        radial-gradient(circle at center, rgba(3, 10, 24, 0) 0 22%, rgba(3, 10, 24, 0.22) 54%, rgba(2, 8, 20, 0.84) 100%),
        linear-gradient(180deg, rgba(2, 8, 20, 0.16), rgba(2, 8, 20, 0.54));
}

.intro-lens-flare {
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.12), transparent 10%),
        radial-gradient(circle at 50% 46%, rgba(96, 165, 250, 0.14), transparent 24%),
        linear-gradient(90deg, rgba(96, 165, 250, 0), rgba(255, 255, 255, 0.12), rgba(96, 165, 250, 0));
    opacity: 0.54;
    filter: blur(14px);
}

.intro-horizon-glow {
    height: 34%;
    background: radial-gradient(circle at 50% 100%, rgba(37, 99, 235, 0.26), rgba(37, 99, 235, 0) 58%);
    opacity: 0.46;
}

.intro-depth-fog {
    opacity: 0.18;
}

.intro-grid-lines {
    background-image:
        linear-gradient(rgba(147, 197, 253, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 197, 253, 0.06) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at 50% 54%, black 12%, transparent 82%);
    opacity: 0.3;
}

.intro-data-stream {
    width: 1px;
    opacity: 0.2;
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.16);
}

.intro-data-stream::before,
.intro-data-stream::after {
    width: 12px;
    left: -5px;
    height: 56px;
    background: linear-gradient(180deg, rgba(191, 219, 254, 0), rgba(191, 219, 254, 0.4), rgba(191, 219, 254, 0));
}

.intro-blueprint-city {
    bottom: 4%;
    width: min(980px, 86vw);
    height: 30vh;
    opacity: 0.28;
    transform: translateX(-50%) translateZ(-36px) rotateX(68deg);
}

.intro-city-tower,
.intro-city-ground {
    border-color: rgba(96, 165, 250, 0.12);
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.06), rgba(96, 165, 250, 0));
    box-shadow: none;
}

.intro-core-chamber {
    width: 420px;
    height: 420px;
    transform: translate(-50%, -50%) translateZ(58px);
    filter: drop-shadow(0 34px 90px rgba(2, 8, 20, 0.56));
}

.intro-core-ring {
    border-color: rgba(125, 211, 252, 0.2);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.12);
}

.intro-core-ring-a {
    width: 134px;
    height: 134px;
}

.intro-core-ring-b {
    width: 214px;
    height: 214px;
    border-style: solid;
    opacity: 0.56;
}

.intro-core-ring-c {
    width: 306px;
    height: 306px;
    opacity: 0.24;
}

.intro-core-floor {
    width: 332px;
    height: 332px;
    background:
        radial-gradient(circle, rgba(37, 99, 235, 0.14), rgba(3, 12, 26, 0) 70%),
        repeating-radial-gradient(circle, rgba(96, 165, 250, 0.06) 0 1px, transparent 1px 20px);
    box-shadow:
        inset 0 0 54px rgba(37, 99, 235, 0.12),
        0 24px 48px rgba(2, 8, 20, 0.24);
}

.intro-core-armature {
    width: 352px;
    height: 352px;
    opacity: 0.7;
}

.intro-core-arm {
    width: 168px;
    height: 8px;
    margin-left: -10px;
    background: linear-gradient(90deg, rgba(191, 219, 254, 0.3), rgba(59, 130, 246, 0.06));
    box-shadow:
        0 0 16px rgba(59, 130, 246, 0.12),
        inset 0 0 0 1px rgba(191, 219, 254, 0.1);
}

.intro-core-arm::before {
    width: 14px;
    height: 14px;
    transform: translate(-22%, -50%);
    box-shadow: 0 0 16px rgba(96, 165, 250, 0.18);
}

.intro-core-arm em {
    display: none;
}

.intro-core-node {
    width: 22px;
    height: 22px;
    box-shadow: 0 0 26px rgba(96, 165, 250, 0.32);
}

.intro-core-beam {
    width: 10px;
    height: 348px;
    background: linear-gradient(180deg, rgba(96, 165, 250, 0), rgba(96, 165, 250, 0.42), rgba(96, 165, 250, 0));
    opacity: 0.44;
}

.intro-core-beam-secondary {
    width: 3px;
    height: 388px;
    background: linear-gradient(180deg, rgba(224, 242, 254, 0), rgba(224, 242, 254, 0.8), rgba(224, 242, 254, 0));
}

.intro-core-energy-shell {
    width: 96px;
    height: 96px;
    background: radial-gradient(circle, rgba(224, 242, 254, 0.34), rgba(59, 130, 246, 0.12) 58%, rgba(59, 130, 246, 0) 78%);
    box-shadow:
        0 0 28px rgba(59, 130, 246, 0.24),
        inset 0 0 18px rgba(255, 255, 255, 0.08);
}

.intro-core-scale {
    width: 392px;
    height: 392px;
    opacity: 0.72;
}

.intro-core-scale-mark {
    min-width: 0;
    width: 20px;
    height: 2px;
    padding: 0;
    border: none;
    background: linear-gradient(90deg, rgba(191, 219, 254, 0.7), rgba(191, 219, 254, 0));
    color: transparent;
    border-radius: 999px;
    backdrop-filter: none;
    box-shadow: none;
}

.intro-door {
    width: 30%;
    background:
        linear-gradient(180deg, rgba(3, 10, 24, 0.76), rgba(3, 10, 24, 0.92)),
        linear-gradient(90deg, rgba(96, 165, 250, 0.1), rgba(96, 165, 250, 0));
    border-color: rgba(96, 165, 250, 0.12);
    box-shadow:
        inset 0 0 0 1px rgba(191, 219, 254, 0.04),
        0 0 0 1px rgba(2, 8, 20, 0.4);
    opacity: 0.86;
    backdrop-filter: blur(10px);
}

.intro-brand-mark {
    top: 8%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(3, 10, 24, 0.42);
    border: 1px solid rgba(147, 197, 253, 0.1);
    box-shadow: 0 12px 30px rgba(2, 8, 20, 0.24);
    backdrop-filter: blur(12px);
}

.intro-brand-mark span {
    color: rgba(224, 242, 254, 0.92);
    font-size: 12px;
    letter-spacing: 0.3em;
}

.intro-bgm-audio {
    display: none;
}

.intro-brand-mark strong,
.intro-hud-stack {
    display: none;
}

.intro-screen-panel {
    width: min(560px, calc(100% - 32px));
    gap: 16px;
    justify-items: center;
    text-align: center;
    padding: 32px 34px;
    background:
        linear-gradient(180deg, rgba(4, 11, 26, 0.7), rgba(4, 11, 26, 0.88));
    border: 1px solid rgba(147, 197, 253, 0.14);
    box-shadow:
        0 32px 90px rgba(2, 8, 20, 0.54),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(18px);
}

.intro-screen-panel .eyebrow {
    color: rgba(191, 219, 254, 0.72);
}

.intro-screen-panel .page-title {
    letter-spacing: 0.08em;
}

.intro-progress-meta {
    width: min(360px, 100%);
    display: grid;
    gap: 6px;
    justify-items: center;
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px solid rgba(147, 197, 253, 0.12);
    background:
        linear-gradient(180deg, rgba(8, 15, 30, 0.82), rgba(5, 12, 24, 0.72));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 14px 32px rgba(2, 8, 20, 0.18);
    position: relative;
    overflow: hidden;
}

.intro-progress-meta::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -28%;
    width: 38%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(147, 197, 253, 0.14), rgba(255, 255, 255, 0));
    transform: skewX(-28deg);
    animation: intro-hud-sheen 4.8s ease-in-out infinite;
}

.intro-progress-meta strong {
    color: rgba(239, 246, 255, 0.98);
    font-size: 30px;
    line-height: 1;
    letter-spacing: 0.08em;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    text-shadow: 0 0 22px rgba(96, 165, 250, 0.2);
}

.intro-progress-meta span {
    color: rgba(191, 219, 254, 0.72);
    font-size: 13px;
    letter-spacing: 0.12em;
}

.intro-progress-bar {
    width: min(360px, 100%);
    height: 6px;
    border: none;
    background: rgba(148, 163, 184, 0.12);
    position: relative;
    overflow: hidden;
}

.intro-progress-bar span {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.72), rgba(96, 165, 250, 0.96));
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.28);
}

.intro-progress-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(191, 219, 254, 0.08) 0 10px, transparent 10px 22px);
    opacity: 0.72;
    pointer-events: none;
}

.intro-boot-list-compact {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.intro-boot-list-compact li {
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 12px 10px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(7, 16, 31, 0.54);
    position: relative;
    overflow: hidden;
}

.intro-boot-list-compact li span {
    color: rgba(191, 219, 254, 0.68);
    font-size: 11px;
    letter-spacing: 0.14em;
}

.intro-boot-list-compact li strong {
    color: rgba(226, 232, 240, 0.92);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.intro-boot-list-compact li::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 12px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.42);
    box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.06);
}

.intro-boot-list-compact li::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.82), rgba(96, 165, 250, 0.1));
    transform-origin: left center;
    transform: scaleX(0.16);
    opacity: 0.58;
}

.intro-boot-list-compact li[data-step-state="active"]::before {
    background: rgba(191, 219, 254, 0.9);
    box-shadow:
        0 0 0 7px rgba(96, 165, 250, 0.08),
        0 0 18px rgba(96, 165, 250, 0.28);
    animation: intro-step-pulse 1.8s ease-in-out infinite;
}

.intro-boot-list-compact li[data-step-state="active"]::after {
    transform: scaleX(0.72);
    animation: intro-step-progress 1.6s ease-in-out infinite;
}

.intro-boot-list-compact li[data-step-state="idle"] {
    opacity: 0.78;
}

.intro-boot-list-compact li[data-step-state="idle"]::after {
    transform: scaleX(0.08);
    opacity: 0.34;
}

.intro-boot-list-compact li.is-ready {
    border-color: rgba(96, 165, 250, 0.24);
    background: rgba(9, 30, 58, 0.66);
    box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.04);
}

.intro-boot-list-compact li.is-ready::before {
    background: rgba(224, 242, 254, 0.98);
    box-shadow:
        0 0 0 7px rgba(96, 165, 250, 0.1),
        0 0 16px rgba(96, 165, 250, 0.24);
}

.intro-boot-list-compact li.is-ready::after {
    transform: scaleX(1);
    opacity: 1;
}

.intro-boot-list-compact li.is-ready strong {
    color: rgba(224, 242, 254, 0.98);
}

.intro-action-row {
    justify-content: center;
}

.intro-action-row .primary-button {
    min-width: 240px;
}

.intro-status-text {
    min-height: 20px;
    color: rgba(191, 219, 254, 0.78);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .intro-boot-list-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .intro-screen-panel {
        width: min(100%, calc(100% - 20px));
        padding: 24px 18px;
    }

    .intro-boot-list-compact {
        grid-template-columns: 1fr;
    }
}

@keyframes intro-step-pulse {
    0%, 100% { transform: scale(1); opacity: 0.92; }
    50% { transform: scale(1.14); opacity: 1; }
}

@keyframes intro-step-progress {
    0% { transform: scaleX(0.18); opacity: 0.56; }
    50% { transform: scaleX(0.86); opacity: 1; }
    100% { transform: scaleX(0.26); opacity: 0.62; }
}

@keyframes intro-hud-sheen {
    0%, 100% { transform: translateX(0) skewX(-28deg); opacity: 0; }
    20% { opacity: 0; }
    50% { transform: translateX(240%) skewX(-28deg); opacity: 1; }
    80% { opacity: 0; }
}

body.intro-entering .intro-screen-visual {
    transform: scale(1.06);
    filter: saturate(1.04) contrast(1.06);
}

body.intro-entering .intro-media-video {
    transform: translateZ(-280px) scale(1.16);
    filter:
        saturate(0.88)
        contrast(1.14)
        brightness(0.28)
        hue-rotate(166deg)
        blur(9px);
}

body.intro-entering .intro-video-canvas {
    transform: translateZ(-190px) scale(1.16);
    filter: brightness(0.82) blur(5px);
    opacity: 0.68;
}

body.intro-entering .intro-blueprint-city,
body.intro-entering .intro-media-tint,
body.intro-entering .intro-brand-mark {
    filter: blur(4px);
}

body.intro-entering .intro-core-chamber {
    transform: translate(-50%, -50%) translateZ(220px) scale(1.18);
    filter: saturate(1.12) brightness(1.08) drop-shadow(0 52px 96px rgba(2, 8, 20, 0.7));
}

body.intro-entering .intro-screen-panel {
    transform: translateZ(220px) scale(1.04);
    opacity: 0.04;
    filter: blur(18px);
}

.office-shell {
    width: min(1440px, calc(100vw - 32px));
    margin: 18px auto 96px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
}

.topbar {
    padding: 26px 28px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.page-title { font-size: clamp(28px, 4vw, 42px); }
.page-subtitle {
    max-width: 760px;
    margin: 10px 0 0;
    font-size: 16px;
}

.topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    min-width: 300px;
}

.beginner-guide-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.beginner-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.beginner-guide-item {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(7, 16, 31, 0.72);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.beginner-guide-item strong {
    font-family: var(--font-display);
    font-size: 17px;
}

.beginner-guide-item p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.75;
}

.mode-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.mode-chip {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(7, 16, 31, 0.78);
    color: var(--text-soft);
    font: inherit;
    padding: 7px 12px;
}

.mode-chip.active {
    color: var(--text);
    border-color: rgba(34, 211, 238, 0.34);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.12) inset;
}

.simple-role-board,
.stage-simple-board {
    display: none;
}

.role-strip-panel[data-view-mode="simple"] .simple-role-board,
.stage-card[data-view-mode="simple"] .stage-simple-board {
    display: grid;
}

.role-strip-panel[data-view-mode="simple"] .role-strip {
    display: none;
}

.simple-role-board {
    grid-template-columns: 1fr;
    gap: 10px;
}

.simple-role-strip {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.simple-role-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.simple-role-stat {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(7, 16, 31, 0.68);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.simple-role-stat strong {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--text);
}

.simple-role-stat em {
    font-style: normal;
    color: var(--text-soft);
    font-size: 12px;
}

.simple-role-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.simple-role-pill,
.stage-simple-chip {
    min-width: 0;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(7, 16, 31, 0.78);
    color: var(--text-soft);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 220px;
}

.simple-role-pill.is-blocked {
    border-color: rgba(251, 113, 133, 0.3);
}

.simple-role-pill strong {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--text);
}

.simple-role-pill span {
    font-size: 12px;
    color: var(--text-dim);
}

.simple-role-pill p {
    margin: 0;
    font-size: 12px;
    line-height: 1.65;
}

.stage-card {
    position: relative;
    overflow: hidden;
}

.stage-simple-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stage-simple-card {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(7, 16, 31, 0.76);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stage-simple-card strong {
    font-family: var(--font-display);
    font-size: 16px;
}

.stage-simple-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.75;
}

.stage-simple-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stage-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.stage-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.stage-effect-banner {
    position: absolute;
    left: 50%;
    top: 18%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0;
}

.stage-card.is-chant .stage-effect-banner {
    background: rgba(249, 115, 22, 0.18);
    border: 1px solid rgba(249, 115, 22, 0.38);
    color: #ffedd5;
    animation: stage-banner-rise 1.95s ease forwards;
}

.stage-card.is-morale .stage-effect-banner {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.38);
    color: #d8ffe7;
    animation: stage-banner-rise 1.8s ease forwards;
}

.stage-card.is-vision .stage-effect-banner {
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.38);
    color: #fff2c2;
    animation: stage-banner-rise 1.9s ease forwards;
}

.stage-card.is-report .stage-effect-banner {
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.38);
    color: #d7f4ff;
    animation: stage-banner-rise 1.8s ease forwards;
}

.stage-card.is-inspect .stage-effect-banner {
    background: rgba(244, 114, 182, 0.16);
    border: 1px solid rgba(244, 114, 182, 0.34);
    color: #ffe0f0;
    animation: stage-banner-rise 1.85s ease forwards;
}

.stage-effect-particle {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    opacity: 0;
}

.stage-card.is-chant .stage-effect-particle {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.96), rgba(251, 146, 60, 0));
    animation: chant-burst 1.7s ease-out forwards;
}

.stage-card.is-morale .stage-effect-particle {
    background: radial-gradient(circle, rgba(52, 211, 153, 0.95), rgba(16, 185, 129, 0));
    animation: morale-burst 1.6s ease-out forwards;
}

.stage-card.is-vision .stage-effect-particle {
    width: 18px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.95), rgba(251, 191, 36, 0.1));
    animation: vision-ribbon 1.9s ease-out forwards;
}

.stage-card.is-report .stage-effect-particle {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.92), rgba(56, 189, 248, 0));
    animation: morale-burst 1.5s ease-out forwards;
}

.stage-card.is-inspect .stage-effect-particle {
    width: 16px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(244, 114, 182, 0.08), rgba(244, 114, 182, 0.92), rgba(244, 114, 182, 0.08));
    animation: vision-ribbon 1.7s ease-out forwards;
}

.stage-card.is-chant::after,
.stage-card.is-morale::after,
.stage-card.is-vision::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.stage-card.is-chant::after {
    background:
        radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.18), rgba(249, 115, 22, 0) 52%),
        linear-gradient(90deg, rgba(251, 191, 36, 0), rgba(251, 191, 36, 0.12), rgba(251, 191, 36, 0));
    animation: chant-wave 1.8s ease;
}

.stage-card.is-morale::after {
    background: radial-gradient(circle at 50% 55%, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0));
    animation: stage-glow-pulse 1.6s ease;
}

.stage-card.is-vision::after {
    background: linear-gradient(120deg, rgba(251, 191, 36, 0), rgba(251, 191, 36, 0.18), rgba(251, 191, 36, 0));
    animation: stage-sweep 1.8s ease;
}

.stage-card.is-report::after {
    background: radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.16), rgba(56, 189, 248, 0));
    animation: stage-glow-pulse 1.5s ease;
}

.stage-card.is-inspect::after {
    background: linear-gradient(120deg, rgba(244, 114, 182, 0), rgba(244, 114, 182, 0.16), rgba(244, 114, 182, 0));
    animation: stage-sweep 1.7s ease;
}

@keyframes stage-banner-rise {
    0% { opacity: 0; transform: translateX(-50%) translateY(12px) scale(0.94); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(1.04); }
}

@keyframes morale-burst {
    0% { opacity: 0; transform: translateY(12px) scale(0.4); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-120px) scale(1.8); }
}

@keyframes chant-burst {
    0% { opacity: 0; transform: translateY(0) scale(0.4); }
    20% { opacity: 1; }
    55% { opacity: 1; transform: translateY(-42px) scale(1.2); }
    100% { opacity: 0; transform: translateY(-96px) scale(1.9); }
}

@keyframes vision-ribbon {
    0% { opacity: 0; transform: translateX(-30px) scaleX(0.6); }
    20% { opacity: 1; }
    100% { opacity: 0; transform: translateX(120px) scaleX(1.6); }
}

@keyframes stage-glow-pulse {
    0% { opacity: 0; }
    40% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes stage-sweep {
    0% { opacity: 0; transform: translateX(-18%); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateX(18%); }
}

@keyframes chant-wave {
    0% { opacity: 0; transform: scale(0.92); }
    25% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.06); }
}

.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.78fr);
    grid-template-areas:
        "stage side";
    gap: 18px;
    align-items: start;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.78fr);
    gap: 18px;
    align-items: start;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.side-column {
    grid-area: side;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.side-column .timeline-card {
    min-height: 420px;
}

.stage-card,
.collaboration-card,
.lobster-card,
.memo-card,
.guest-card,
.role-detail-card,
.timeline-card,
.role-strip-panel {
    padding: 22px;
}

.memo-summary {
    white-space: pre-wrap;
    line-height: 1.95;
    color: var(--text);
    min-height: 96px;
    max-height: 128px;
    overflow: auto;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(7, 16, 31, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.14);
    cursor: pointer;
}

.memo-summary::-webkit-scrollbar,
.reader-body::-webkit-scrollbar {
    width: 8px;
}

.memo-summary::-webkit-scrollbar-thumb,
.reader-body::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.22);
    border-radius: 999px;
}

.guest-strip-item,
.timeline-item,
.history-item,
.role-detail-item {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(7, 16, 31, 0.72);
    padding: 14px 16px;
}

.guest-strip-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.guest-strip-item strong,
.timeline-item strong,
.role-detail-item strong {
    font-weight: 600;
    font-size: 15px;
}

.meta-line {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}

.timeline-card {
    padding-top: 18px;
}

.collaboration-card,
.timeline-card {
    scroll-margin-top: 18px;
}

.stage-card {
    grid-area: stage;
}

.reader-card {
    margin-top: 14px;
    border-radius: 18px;
    border: 1px solid rgba(34, 211, 238, 0.16);
    background: rgba(7, 16, 31, 0.72);
    padding: 16px;
}

.reader-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.reader-head h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 18px;
}

.reader-body {
    max-height: min(68vh, 920px);
    overflow: auto;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.memo-reader-body {
    color: var(--text);
    line-height: 1.95;
    white-space: pre-wrap;
}

.reader-entry {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(7, 16, 31, 0.88);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reader-entry-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.reader-entry-head strong {
    font-family: var(--font-display);
    font-size: 15px;
}

.reader-entry-subline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-dim);
    font-size: 12px;
}

.reader-entry-body {
    color: var(--text);
    line-height: 1.85;
    white-space: pre-wrap;
    word-break: break-word;
}

.reader-empty {
    color: var(--text-soft);
    line-height: 1.7;
}

.control-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    width: 100%;
}

.control-entry-button {
    min-height: 62px;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    text-align: left;
}

.control-entry-button span { font-size: 12px; color: var(--text-soft); }

.manju-entry-card {
    min-height: 62px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(7, 16, 31, 0.78);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.manju-entry-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.manju-entry-card-head strong {
    display: block;
    font-size: 15px;
}

.manju-entry-card-head p,
.manju-entry-meta,
.manju-entry-links,
.manju-entry-checks,
.manju-entry-actions {
    margin: 0;
}

.manju-entry-card-head p,
.manju-entry-meta {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.6;
}

.manju-entry-meta {
    display: grid;
    gap: 4px;
}

.manju-entry-qc {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(10, 18, 35, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.manju-entry-qc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.manju-entry-qc-row strong {
    font-size: 12px;
    color: var(--text-soft);
}

.manju-entry-qc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    color: var(--text-soft);
    background: rgba(148, 163, 184, 0.12);
}

.manju-entry-qc-badge.pass {
    color: #7dd3a7;
    background: rgba(22, 163, 74, 0.18);
}

.manju-entry-qc-badge.warning {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.18);
}

.manju-entry-qc-badge.fail {
    color: #fca5a5;
    background: rgba(220, 38, 38, 0.18);
}

.manju-entry-qc-reason {
    margin: 0;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.6;
}

.manju-entry-version-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.manju-entry-version-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    color: var(--text-dim);
    background: rgba(148, 163, 184, 0.10);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.manju-entry-version-pill.active {
    color: var(--accent);
    border-color: rgba(56, 189, 248, 0.28);
    background: rgba(56, 189, 248, 0.14);
}

.manju-entry-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.18);
    color: var(--accent);
    font-size: 12px;
    white-space: nowrap;
}

.manju-entry-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.manju-entry-link {
    min-height: auto;
    padding: 8px 12px;
}

.manju-entry-link.muted {
    color: var(--text-dim);
    font-size: 12px;
    align-self: center;
}

.manju-entry-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.manju-entry-dialog {
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(8, 15, 31, 0.98);
    box-shadow: 0 24px 80px rgba(2, 6, 23, 0.38);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.manju-entry-dialog-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.manju-entry-dialog-head h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 22px;
}

.manju-entry-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.manju-entry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.manju-entry-textarea {
    min-height: 220px;
}

.manju-entry-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.manju-entry-advanced {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(9, 17, 33, 0.56);
}

.manju-entry-advanced summary {
    cursor: pointer;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.manju-entry-grid-advanced {
    margin-top: 12px;
}

.manju-entry-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 13px;
}

.manju-entry-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.manju-entry-modal-open {
    overflow: hidden;
}

@media (max-width: 1279px) {
    .beginner-guide-grid {
        grid-template-columns: 1fr;
    }

    .simple-role-summary,
    .stage-simple-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "stage"
            "side"
            "collab";
    }

    .side-column {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .side-column .timeline-card {
        min-height: 0;
    }
}

@media (max-width: 860px) {
    .office-shell {
        width: calc(100vw - 20px);
        margin-top: 10px;
    }

    .topbar {
        padding: 20px;
        flex-direction: column;
    }

    .topbar-actions,
    .control-entry-grid {
        width: 100%;
        min-width: 0;
    }

    .manju-entry-grid {
        grid-template-columns: 1fr;
    }

    .manju-entry-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mode-switch {
        justify-content: flex-start;
    }

    .simple-role-summary,
    .stage-simple-board {
        grid-template-columns: 1fr;
    }

    .reader-head {
        flex-direction: column;
    }

    .side-column {
        grid-template-columns: 1fr;
    }

    .stage-card,
    .collaboration-card,
    .lobster-card,
    .memo-card,
    .guest-card,
    .role-detail-card,
    .timeline-card,
    .role-strip-panel,
    .beginner-guide-card {
        padding: 18px;
    }
}

/* 2026-03-19 manju entry cleanup */
.control-entry-grid {
    grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.15fr);
    gap: 14px;
    align-items: stretch;
}

[data-manju-summary],
[data-reverse-summary] {
    display: contents;
}

.control-entry-button {
    min-height: 108px;
    border-radius: 18px;
    border: 1px solid rgba(56, 189, 248, 0.18);
    background: linear-gradient(180deg, rgba(11, 23, 43, 0.92), rgba(7, 16, 31, 0.88));
    padding: 16px 18px;
    gap: 10px;
}

.control-entry-button span {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-soft);
}

.manju-entry-card {
    min-height: 108px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(10, 19, 36, 0.96), rgba(7, 16, 31, 0.9));
    padding: 16px 18px;
    gap: 14px;
}

.manju-entry-card-head {
    align-items: center;
}

.manju-entry-card-head strong {
    font-family: var(--font-display);
    font-size: 18px;
}

.manju-entry-card-head p {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.7;
}

.manju-entry-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    font-size: 12px;
}

.manju-entry-qc {
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(8, 15, 29, 0.78);
}

.manju-entry-qc-row {
    align-items: flex-start;
}

.manju-entry-qc-row strong {
    min-width: 42px;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.manju-entry-qc-badge {
    justify-content: flex-start;
    text-align: left;
    line-height: 1.5;
    padding: 5px 10px;
}

.manju-entry-links {
    align-items: center;
}

.manju-entry-overlay {
    padding: 32px 20px;
    align-items: flex-start;
    overflow-y: auto;
}

.manju-entry-dialog {
    width: min(1120px, 100%);
    max-height: none;
    margin: 24px auto;
    overflow: visible;
    border-radius: 28px;
    padding: 28px;
    gap: 20px;
}

.manju-entry-dialog-head {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.manju-entry-dialog-head-copy {
    display: grid;
    gap: 6px;
}

.manju-entry-dialog-head h3 {
    font-size: clamp(24px, 3vw, 32px);
}

.manju-entry-dialog-subtitle {
    margin: 0;
    max-width: 760px;
    color: var(--text-soft);
    line-height: 1.75;
    font-size: 13px;
}

.manju-entry-form {
    gap: 18px;
}

.manju-entry-section {
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(9, 17, 33, 0.7);
    padding: 18px;
    display: grid;
    gap: 14px;
}

.manju-entry-section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 18px;
    align-items: flex-start;
}

.manju-entry-section-head h4 {
    margin: 2px 0 0;
    font-family: var(--font-display);
    font-size: 18px;
}

.manju-entry-section-note {
    margin: 0;
    max-width: 560px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.75;
}

.manju-entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.manju-entry-grid-compact .field-stack {
    min-width: 0;
}

.manju-entry-textarea {
    min-height: 280px;
    resize: vertical;
}

.manju-entry-toggle-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.manju-entry-toggle-group {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(7, 16, 31, 0.68);
    padding: 14px;
    display: grid;
    gap: 12px;
}

.manju-entry-toggle-group strong {
    font-family: var(--font-display);
    font-size: 15px;
}

.manju-entry-checks {
    display: grid;
    gap: 10px;
}

.manju-entry-check {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(10, 18, 35, 0.8);
    line-height: 1.55;
}

.manju-entry-check input {
    accent-color: #38bdf8;
    margin-top: 1px;
}

.manju-entry-advanced {
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(9, 17, 33, 0.78);
}

.manju-entry-advanced summary {
    font-size: 14px;
}

.manju-entry-grid-advanced {
    margin-top: 14px;
}

.manju-entry-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(180deg, rgba(8, 15, 31, 0), rgba(8, 15, 31, 0.96) 22%, rgba(8, 15, 31, 0.98));
}

.manju-entry-actions .form-note {
    flex: 1 1 auto;
    line-height: 1.6;
}

@media (max-width: 1180px) {
    .control-entry-grid,
    .manju-entry-toggle-board,
    .manju-entry-grid {
        grid-template-columns: 1fr;
    }

    [data-manju-summary],
    [data-reverse-summary] {
        display: block;
    }

    .manju-entry-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .manju-entry-overlay {
        padding: 10px;
    }

    .manju-entry-dialog {
        margin: 0;
        width: 100%;
        padding: 18px;
        border-radius: 20px;
    }

    .manju-entry-section,
    .manju-entry-toggle-group {
        padding: 14px;
    }

    .manju-entry-card {
        padding: 14px;
    }
}

.manju-entry-overlay[hidden] {
    display: none !important;
}

/* 2026-03-20 home header density fix */
.topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.topbar > div:first-child {
    max-width: none;
}

.page-subtitle {
    max-width: none;
}

.topbar-actions {
    width: 100%;
    min-width: 0;
    justify-content: stretch;
}

.topbar-actions > * {
    width: 100%;
}

.control-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-nav {
    position: sticky;
    top: 12px;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(7, 16, 31, 0.92);
    backdrop-filter: blur(18px);
    border-color: rgba(56, 189, 248, 0.16);
}

.dashboard-nav .ghost-button {
    border-color: rgba(148, 163, 184, 0.14);
    background: rgba(7, 16, 31, 0.58);
    color: var(--text-soft);
    text-decoration: none;
}

.dashboard-nav .ghost-button.is-active {
    border-color: rgba(34, 211, 238, 0.3);
    background: rgba(10, 31, 51, 0.88);
    color: var(--text);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.12) inset;
}

@media (max-width: 980px) {
    .control-entry-grid {
        grid-template-columns: 1fr;
    }
}

/* 2026-03-20 dashboard declutter */
.page-subtitle {
    color: rgba(224, 242, 254, 0.8);
    line-height: 1.8;
}

.beginner-guide-card {
    gap: 14px;
    padding: 18px 20px;
    border-color: rgba(56, 189, 248, 0.18);
    background:
        linear-gradient(180deg, rgba(8, 19, 36, 0.92), rgba(7, 16, 31, 0.82));
}

.beginner-guide-grid {
    gap: 12px;
}

.beginner-guide-inline {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) auto;
    gap: 14px 18px;
    align-items: center;
}

.beginner-guide-summary {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.8;
}

.beginner-guide-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.project-overview-card,
.alert-card,
.collaboration-summary-card {
    background:
        linear-gradient(180deg, rgba(9, 20, 38, 0.94), rgba(7, 16, 31, 0.84));
    border-color: rgba(148, 163, 184, 0.18);
}

.project-overview-card {
    border-color: rgba(56, 189, 248, 0.2);
}

.overview-summary-grid,
.overview-status-list,
.alert-list,
.collaboration-summary-grid {
    display: grid;
    gap: 12px;
}

.overview-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.overview-stat-card,
.overview-status-item,
.alert-item {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(7, 16, 31, 0.72);
    padding: 14px 16px;
}

.overview-stat-card span,
.alert-meta {
    display: block;
    color: var(--text-dim);
    font-size: 12px;
}

.overview-stat-card strong {
    display: block;
    margin-top: 6px;
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
}

.overview-status-item strong {
    display: block;
    font-size: 13px;
    color: var(--text);
}

.overview-status-item p,
.alert-item p {
    margin: 6px 0 0;
    color: var(--text-soft);
    line-height: 1.75;
}

.alert-item-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.alert-badge {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.alert-item--blocked {
    border-color: rgba(251, 113, 133, 0.28);
}

.alert-item--blocked .alert-badge {
    border-color: rgba(251, 113, 133, 0.3);
    color: #ffe1ea;
}

.alert-item--warn {
    border-color: rgba(251, 191, 36, 0.22);
}

.alert-item--warn .alert-badge {
    border-color: rgba(251, 191, 36, 0.28);
    color: #fff0c0;
}

.alert-item--ok {
    border-color: rgba(34, 197, 94, 0.22);
}

.alert-item--ok .alert-badge {
    border-color: rgba(34, 197, 94, 0.26);
    color: #d9ffe7;
}

.collaboration-summary-note {
    margin-top: 2px;
}

.beginner-guide-item {
    padding: 14px 15px;
    gap: 10px;
}

.beginner-guide-item strong {
    font-size: 16px;
}

.role-strip-panel,
.stage-card,
.memo-card,
.timeline-card,
.role-detail-card {
    background:
        linear-gradient(180deg, rgba(9, 20, 38, 0.94), rgba(7, 16, 31, 0.84));
}

.role-strip-panel {
    border-color: rgba(56, 189, 248, 0.2);
}

.stage-card,
.memo-card,
.timeline-card,
.role-detail-card {
    border-color: rgba(148, 163, 184, 0.18);
}

.main-grid {
    margin-top: 2px;
}

.main-grid > .collaboration-card {
    margin-top: 8px;
    padding-top: 18px;
    border-color: rgba(148, 163, 184, 0.12);
    background:
        linear-gradient(180deg, rgba(6, 14, 28, 0.9), rgba(5, 12, 24, 0.78));
}

.main-grid > .collaboration-card .section-head.compact {
    padding-bottom: 2px;
}

.main-grid > .collaboration-card .section-kicker {
    color: rgba(148, 163, 184, 0.82);
}

.main-grid > .collaboration-card .workspace-note {
    margin-top: -2px;
    background: rgba(7, 16, 31, 0.42);
}

.main-grid > .collaboration-card details.workspace-advanced {
    margin-top: 4px;
}

.timeline-compact-note {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(7, 16, 31, 0.54);
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 13px;
}

.section-inline-help {
    margin-top: 2px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(7, 16, 31, 0.5);
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 13px;
}

.memo-compact-note {
    margin-top: 10px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.7;
}

.stage-collapsible-body {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.stage-card.is-collapsed .stage-collapsible-body {
    display: none;
}

.stage-card.is-collapsed .stage-simple-board {
    display: grid;
}

.project-overview-advanced {
    margin-top: 2px;
}

.collaboration-page-shell .topbar-actions {
    min-width: 0;
    width: auto;
}

.collaboration-page-intro {
    padding: 18px 20px;
}

.event-tape .timeline-item.is-collapsed {
    display: none;
}

@keyframes intro-orbit-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes intro-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -14px, 0); }
}

@keyframes intro-hud-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -10px, 0); }
}

@keyframes intro-scan {
    0% { transform: translateY(-8%); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(460%); opacity: 0; }
}

@keyframes intro-stream-fall {
    0% { top: -16%; opacity: 0; }
    10% { opacity: 1; }
    100% { top: 104%; opacity: 0; }
}

@keyframes intro-noise-drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(18px, 24px, 0); }
}

@keyframes intro-core-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes intro-core-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.46; }
    50% { transform: translate(-50%, -50%) scale(1.04); opacity: 0.84; }
}

@keyframes intro-core-floor-spin {
    from { transform: translate(-50%, -50%) rotateX(74deg) rotate(0deg) translateZ(-34px); }
    to { transform: translate(-50%, -50%) rotateX(74deg) rotate(360deg) translateZ(-34px); }
}

@keyframes intro-core-shell-breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(0.94); opacity: 0.74; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

@keyframes intro-lens-breathe {
    0%, 100% { opacity: 0.46; transform: scale(0.98); }
    50% { opacity: 0.88; transform: scale(1.04); }
}

@keyframes intro-core-armature-rotate {
    from { transform: translate(-50%, -50%) translateZ(12px) rotate(0deg); }
    to { transform: translate(-50%, -50%) translateZ(12px) rotate(360deg); }
}

@keyframes intro-enter-flash-burst {
    0% { opacity: 0; transform: scale(0.86); }
    24% { opacity: 0.94; transform: scale(1.02); }
    100% { opacity: 0; transform: scale(1.18); }
}

@keyframes intro-impact-shake {
    0% { transform: scale(1.08) translate3d(0, 0, 0); }
    18% { transform: scale(1.09) translate3d(-4px, 2px, 0); }
    36% { transform: scale(1.095) translate3d(4px, -2px, 0); }
    54% { transform: scale(1.09) translate3d(-3px, 1px, 0); }
    72% { transform: scale(1.085) translate3d(2px, -1px, 0); }
    100% { transform: scale(1.08) translate3d(0, 0, 0); }
}

@media (min-width: 981px) {
    .alert-card,
    .collaboration-summary-card {
        scroll-margin-top: 24px;
    }
}

@media (max-width: 980px) {
    .dashboard-nav {
        top: 8px;
    }

    .beginner-guide-inline {
        grid-template-columns: 1fr;
    }

    .beginner-guide-actions {
        justify-content: flex-start;
    }

    .hero-grid,
    .main-grid,
    .overview-stat-grid {
        grid-template-columns: 1fr;
    }

    .intro-screen-panel {
        padding: 24px 20px;
    }

    .intro-orbit-a {
        width: 92vw;
        height: 92vw;
    }

    .intro-orbit-b {
        width: 68vw;
        height: 68vw;
    }

    .intro-blueprint-city,
    .intro-brand-mark {
        width: min(92vw, 720px);
    }

    .intro-hud-stack {
        display: none;
    }

    .intro-core-chamber {
        width: 240px;
        height: 240px;
    }

    .intro-core-beam {
        height: 240px;
    }

    .intro-core-scale {
        width: 252px;
        height: 252px;
    }

    .intro-core-armature {
        width: 248px;
        height: 248px;
    }

    .intro-core-arm {
        width: 122px;
        height: 14px;
        margin-left: -14px;
        transform-origin: 14px 50%;
    }

    .intro-core-arm em {
        right: -10px;
        padding: 3px 7px;
        font-size: 9px;
    }

    .intro-core-scale-mark {
        min-width: 38px;
        font-size: 10px;
        letter-spacing: 0.12em;
        padding: 2px 6px;
    }

    .intro-core-scale-mark.mark-a { transform: translate(-50%, -50%) translate(0, -126px); }
    .intro-core-scale-mark.mark-b { transform: translate(-50%, -50%) translate(90px, -90px); }
    .intro-core-scale-mark.mark-c { transform: translate(-50%, -50%) translate(126px, 0); }
    .intro-core-scale-mark.mark-d { transform: translate(-50%, -50%) translate(90px, 90px); }
    .intro-core-scale-mark.mark-e { transform: translate(-50%, -50%) translate(0, 126px); }
    .intro-core-scale-mark.mark-f { transform: translate(-50%, -50%) translate(-90px, 90px); }
    .intro-core-scale-mark.mark-g { transform: translate(-50%, -50%) translate(-126px, 0); }
    .intro-core-scale-mark.mark-h { transform: translate(-50%, -50%) translate(-90px, -90px); }
}

/* 2026-03-21 office cool visual upgrade */
.office-shell {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 8%, rgba(59, 130, 246, 0.16), transparent 24%),
        radial-gradient(circle at 86% 14%, rgba(34, 211, 238, 0.12), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(37, 99, 235, 0.12), transparent 40%);
}

.office-shell::before,
.office-shell::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.office-shell::before {
    background:
        linear-gradient(180deg, rgba(8, 15, 34, 0.18) 0%, rgba(8, 15, 34, 0.48) 100%),
        repeating-linear-gradient(
            90deg,
            rgba(96, 165, 250, 0.04) 0,
            rgba(96, 165, 250, 0.04) 1px,
            transparent 1px,
            transparent 88px
        ),
        repeating-linear-gradient(
            180deg,
            rgba(56, 189, 248, 0.03) 0,
            rgba(56, 189, 248, 0.03) 1px,
            transparent 1px,
            transparent 88px
        );
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
    opacity: 0.72;
}

.office-shell::after {
    background:
        radial-gradient(circle at 50% 0%, rgba(125, 211, 252, 0.16), transparent 26%),
        radial-gradient(circle at 50% 100%, rgba(37, 99, 235, 0.14), transparent 34%);
    filter: blur(16px);
    opacity: 0.9;
}

.topbar {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.28);
    background:
        linear-gradient(180deg, rgba(9, 18, 40, 0.94), rgba(8, 15, 34, 0.9)),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 34%);
    box-shadow:
        0 28px 90px rgba(3, 10, 26, 0.48),
        inset 0 1px 0 rgba(191, 219, 254, 0.08),
        inset 0 -1px 0 rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(18px);
}

.topbar::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.72), transparent);
    opacity: 0.9;
}

.topbar .eyebrow {
    letter-spacing: 0.28em;
    color: rgba(125, 211, 252, 0.92);
    text-shadow: 0 0 18px rgba(56, 189, 248, 0.2);
}

.topbar .page-title {
    background: linear-gradient(180deg, #f8fbff 0%, #c7ddff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 28px rgba(96, 165, 250, 0.16);
}

.topbar .page-subtitle {
    color: rgba(203, 213, 225, 0.84);
    max-width: 72ch;
}

.dashboard-nav {
    border: 1px solid rgba(96, 165, 250, 0.24);
    background: rgba(8, 15, 34, 0.82);
    box-shadow:
        0 18px 48px rgba(2, 6, 23, 0.34),
        inset 0 1px 0 rgba(191, 219, 254, 0.06);
    backdrop-filter: blur(18px);
}

.dashboard-nav .ghost-button {
    border-color: transparent;
    background: rgba(15, 23, 42, 0.16);
}

.dashboard-nav .ghost-button:hover {
    border-color: rgba(96, 165, 250, 0.34);
    background: rgba(37, 99, 235, 0.14);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.16);
}

.dashboard-nav .ghost-button.is-active {
    border-color: rgba(125, 211, 252, 0.52);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.26), rgba(30, 64, 175, 0.18));
    box-shadow:
        0 10px 26px rgba(37, 99, 235, 0.18),
        inset 0 0 0 1px rgba(191, 219, 254, 0.12);
}

.beginner-guide-card,
.project-overview-card,
.alert-card,
.collaboration-summary-card,
.role-strip-panel,
.stage-card,
.memo-card,
.timeline-card,
.role-detail-card,
.collaboration-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(96, 165, 250, 0.2);
    background:
        linear-gradient(180deg, rgba(10, 18, 40, 0.94), rgba(8, 15, 34, 0.9)),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 34%);
    box-shadow:
        0 24px 70px rgba(2, 6, 23, 0.34),
        inset 0 1px 0 rgba(191, 219, 254, 0.06),
        inset 0 -1px 0 rgba(15, 23, 42, 0.5);
}

.beginner-guide-card::before,
.project-overview-card::before,
.alert-card::before,
.collaboration-summary-card::before,
.role-strip-panel::before,
.stage-card::before,
.memo-card::before,
.timeline-card::before,
.role-detail-card::before,
.collaboration-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.64), transparent);
    opacity: 0.9;
    pointer-events: none;
}

.overview-stat-card,
.overview-status-item,
.alert-item,
.simple-role-board,
.stage-simple-board,
.timeline-compact-note,
.section-inline-help,
.memo-readout,
.timeline-readout {
    border-color: rgba(96, 165, 250, 0.18);
    background:
        linear-gradient(180deg, rgba(14, 24, 48, 0.92), rgba(10, 18, 40, 0.86)),
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 32%);
    box-shadow:
        inset 0 1px 0 rgba(191, 219, 254, 0.05),
        0 14px 34px rgba(2, 6, 23, 0.22);
}

.overview-stat-value,
.section-title,
.stage-simple-pill strong,
.memo-panel-header strong,
.timeline-panel-header strong {
    text-shadow: 0 0 18px rgba(96, 165, 250, 0.16);
}

.mode-chip,
.chip,
.chip-phase,
.overview-status-pill,
.stage-simple-pill,
.compact-change-pill {
    border-color: rgba(96, 165, 250, 0.24);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(11, 18, 36, 0.74));
    box-shadow: inset 0 1px 0 rgba(191, 219, 254, 0.06);
}

.mode-chip.active,
.chip.active {
    border-color: rgba(125, 211, 252, 0.46);
    background: linear-gradient(180deg, rgba(30, 64, 175, 0.32), rgba(30, 41, 59, 0.86));
    box-shadow:
        0 10px 24px rgba(37, 99, 235, 0.2),
        inset 0 0 0 1px rgba(191, 219, 254, 0.08);
}

.section-head::after {
    content: '';
    flex: 1;
    min-width: 56px;
    height: 1px;
    margin-left: 14px;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.34), transparent);
}

.office-stage-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, 0.24);
    background:
        radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.16), transparent 26%),
        linear-gradient(180deg, rgba(7, 14, 30, 0.96), rgba(4, 10, 24, 0.98));
    box-shadow:
        inset 0 0 0 1px rgba(148, 163, 184, 0.05),
        inset 0 24px 64px rgba(59, 130, 246, 0.08),
        0 34px 96px rgba(2, 6, 23, 0.44);
}

.office-stage-shell::before,
.office-stage-shell::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.office-stage-shell::before {
    inset: 0;
    background:
        linear-gradient(180deg, rgba(125, 211, 252, 0.12), transparent 16%),
        radial-gradient(circle at 50% 18%, rgba(56, 189, 248, 0.14), transparent 34%);
    opacity: 0.8;
}

.office-stage-shell::after {
    inset: auto 8% -12% 8%;
    height: 38%;
    background:
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.26), transparent 58%),
        radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.16), transparent 72%);
    filter: blur(24px);
    opacity: 0.74;
}

.office-stage-shell canvas,
.office-stage-shell img,
.office-stage-shell video {
    filter: saturate(1.08) contrast(1.04);
}

.stage-actions,
.topbar-actions,
.memo-panel-actions,
.timeline-panel-actions {
    gap: 10px;
}

