.desktop-fold-shell {
    width: 100%;
}

.fold-center {
    width: 100%;
    display: flex;
    justify-content: center;
}

.fold-panel {
    display: none;
}

.fold-eyebrow {
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #adb6c3;
    margin-bottom: 12px;
}

.fold-title {
    font-size: 28px;
    font-weight: 650;
    line-height: 1.25;
    color: #6d7888;
    margin-bottom: 12px;
}

.fold-subtitle {
    font-size: 14px;
    line-height: 1.75;
    color: #9aa5b5;
}

.fold-stack {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.fold-guide-item,
.fold-focus {
    position: relative;
    padding: 16px 16px 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.fold-guide-item::before,
.fold-focus::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 4px;
    border-radius: 999px;
    background: rgba(124, 164, 208, 0.09);
}

.fold-guide-item.is-active,
.fold-focus.is-active {
    transform: translateY(-3px);
    border-color: rgba(132, 164, 201, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(244, 248, 253, 0.78));
    box-shadow: 0 10px 24px rgba(86, 127, 171, 0.05);
}

.fold-guide-item.is-active::before,
.fold-focus.is-active::before {
    background: linear-gradient(to bottom, #b5d3ec, #9ebddc);
}

.fold-guide-step {
    font-size: 12px;
    font-weight: 700;
    color: #93afd0;
    margin-bottom: 8px;
    letter-spacing: 0.08em;
}

.fold-guide-item strong,
.fold-focus strong {
    display: block;
    font-size: 17px;
    color: #788494;
    margin-bottom: 6px;
}

.fold-guide-item p,
.fold-focus p {
    font-size: 13px;
    line-height: 1.7;
    color: #9ca7b5;
}

.fold-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(120, 162, 207, 0.08);
    color: #96abc4;
    font-size: 12px;
    font-weight: 600;
    margin-top: 20px;
}

.fold-notes {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.fold-note {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.06);
    color: #9ca6b4;
    font-size: 12px;
    line-height: 1.7;
}

.fold-footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 12px;
    line-height: 1.8;
    color: #b0b8c4;
}

html.desktop-mode {
    height: 100%;
    overflow: hidden;
    background: #eef1f5;
}

html.desktop-mode body.tri-fold-body {
    min-height: 100vh;
    height: 100vh;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: none !important;
    display: flex;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
    padding: 20px 24px;
    box-sizing: border-box;
    overflow: hidden;
    background-image:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.95), rgba(237, 240, 245, 0.94) 42%, rgba(220, 226, 235, 0.98) 100%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(214, 221, 231, 0.92));
    background-color: #eef1f5;
}

html.desktop-mode .desktop-fold-shell {
    --fold-height: var(--tri-fold-height, calc(100vh - 40px));
    --side-panel-width: var(--tri-fold-side-width, clamp(236px, 22vw, 320px));
    --center-width: var(--tri-fold-center-width, 414px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.4vw, 18px);
    width: min(1400px, 100%);
    height: 100%;
    max-height: 100%;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    perspective: 2400px;
}

html.desktop-mode .fold-center {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    width: var(--center-width);
    min-width: var(--center-width);
    filter: drop-shadow(0 24px 40px rgba(15, 23, 42, 0.18));
}

html.desktop-mode .tri-fold-device {
    width: var(--center-width) !important;
    max-width: var(--center-width) !important;
    height: var(--fold-height) !important;
    max-height: var(--fold-height) !important;
    margin: 0 !important;
    border-radius: var(--tri-fold-radius, 30px) !important;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
}

html.desktop-mode body.tri-fold-body.preview-fullscreen {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    background: #000 !important;
}

html.desktop-mode body.tri-fold-body.preview-fullscreen .desktop-fold-shell {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    gap: 0 !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    overflow: hidden !important;
    perspective: none !important;
}

html.desktop-mode body.tri-fold-body.preview-fullscreen .fold-panel {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html.desktop-mode body.tri-fold-body.preview-fullscreen .fold-center {
    flex: 1 1 auto !important;
    width: 100vw !important;
    min-width: 100vw !important;
    filter: none !important;
}

html.desktop-mode body.tri-fold-body.preview-fullscreen .tri-fold-device {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    max-height: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

html.desktop-mode .fold-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 var(--side-panel-width);
    width: var(--side-panel-width);
    min-width: var(--side-panel-width);
    max-width: var(--side-panel-width);
    height: var(--fold-height);
    padding: 28px 22px 24px;
    border-radius: 30px;
    overflow: hidden;
    color: #98a2b0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(244, 247, 251, 0.72) 46%, rgba(230, 236, 244, 0.78) 100%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    visibility: hidden;
}

html.desktop-mode .fold-panel.is-copy-ready {
    visibility: visible;
}

html.desktop-mode .fold-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 36%, rgba(120, 162, 207, 0.035) 100%);
    pointer-events: none;
}

html.desktop-mode .fold-panel::after {
    content: '';
    position: absolute;
    top: 22px;
    bottom: 22px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), rgba(107, 114, 128, 0.34), rgba(255, 255, 255, 0.05));
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.55);
}

html.desktop-mode .fold-panel-left {
    transform-origin: right center;
    transform: rotateY(24deg) translateX(10px);
}

html.desktop-mode .fold-panel-left::after {
    right: 12px;
}

html.desktop-mode .fold-panel-right {
    transform-origin: left center;
    transform: rotateY(-24deg) translateX(-10px);
}

html.desktop-mode .fold-panel-right::after {
    left: 12px;
}

html.desktop-mode .fold-panel > div {
    position: relative;
    z-index: 1;
}

html.desktop-mode .footer-copyright {
    display: none !important;
    left: 50%;
    right: auto;
    width: auto;
    max-width: calc(100% - 40px);
    transform: translateX(-50%);
    bottom: 16px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

@media (max-width: 1150px) {
    html.desktop-mode .fold-title {
        font-size: 24px;
    }
}

@media (max-width: 980px) {
    html.desktop-mode body.tri-fold-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    html.desktop-mode .desktop-fold-shell {
        justify-content: flex-start;
        --fold-height: var(--tri-fold-height, calc(100vh - 40px));
    }
}
