/* ==========================================================================
   CPIC Cinematic Director Super-Skill
   Layout: Standalone Section Header + 3D Top-Offset Card Stack Deck (商业TVC同款堆叠)
   Palette: Monochrome / Obsidian Charcoal & Pure Crisp White (No Gold, No Green)
   ========================================================================== */

.cpic-skill-section {
    margin-top: 3.5rem;
    margin-bottom: 4.5rem;
    position: relative;
    width: 100%;
}

/* ---------------- Standalone Section Header (No Box Frame) ---------------- */
.cpic-section-header {
    margin-bottom: 1rem;
}

.cpic-kicker-tag {
    font-family: var(--font-display, "Cinzel", serif);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.cpic-section-title {
    font-family: 'AlibabaPuHuiTi-Heavy', var(--font-ui) !important;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 900 !important;
    color: #ffffff;
    letter-spacing: 0.08em;
    -webkit-text-stroke: 0.3px #ffffff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
    margin: 0 0 0.8rem 0;
    line-height: 1.25;
}

.cpic-section-desc {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    max-width: 860px;
    line-height: 1.75;
    letter-spacing: 0.01em;
}

/* ---------------- Deck Navigation Bar (无边框 + 底部半截线) ---------------- */
.cpic-deck-nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.65rem;
}

.cpic-nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.4rem 0.2rem;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    transition: color 0.25s ease;
    white-space: nowrap;
    box-shadow: none;
}

.cpic-nav-tab:hover {
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    border: none;
    box-shadow: none;
}

.cpic-nav-tab.is-active {
    color: #ffffff;
    background: transparent;
    border: none;
    font-weight: 600;
    box-shadow: none;
}

/* 激活态底部半截线 */
.cpic-nav-tab.is-active::after {
    content: "";
    position: absolute;
    bottom: -0.7rem;
    left: 50%;
    transform: translateX(-50%);
    width: 32px; /* 半截线 */
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
}

.nav-tab-idx {
    font-family: monospace;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.38);
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    transition: color 0.25s ease;
}

.cpic-nav-tab.is-active .nav-tab-idx {
    color: #ffffff;
    background: transparent;
    border: none;
}

.nav-tab-label {
    letter-spacing: 0.03em;
}

/* ==========================================================================
   3D Top-Offset Card Stack Deck
   ========================================================================== */
.cpic-deck-wrap {
    position: relative;
    max-width: 100%;
    margin: 0.35rem auto 2.5rem;
    padding-top: 52px; /* 留出清晰的层叠卡片外露头部高度 */
    box-sizing: border-box;
}

.cpic-deck-stage {
    position: relative;
    width: 100%;
    min-height: 520px;
}

/* Card Element */
.cpic-deck-card {
    border-radius: 12px;
    background: #0a0b0e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
    box-sizing: border-box;
    transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 500ms ease, 
                filter 500ms ease, 
                box-shadow 650ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 400ms ease;
    transform-origin: 50% 100%;
    position: relative;
}

/* 顶部高光切边线：强化层叠物理边缘光效 */
.cpic-deck-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 15%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0.35) 85%, transparent 100%);
    z-index: 20;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Top / Active Front Card (pos-0) - Facing user upright */
.cpic-deck-card.is-pos-0 {
    position: relative;
    z-index: 10;
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    filter: none;
    pointer-events: auto;
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.cpic-deck-card.is-pos-0 .cpic-deck-card-body {
    pointer-events: auto;
}

/* First Stacked Behind Card (pos-1) - Naturally tilted & peeking at the TOP */
.cpic-deck-card.is-pos-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 6;
    opacity: 0.92;
    transform: translate3d(-8px, -24px, 0) rotate(-0.8deg) scale(0.992);
    filter: brightness(0.85) contrast(1);
    cursor: pointer;
    pointer-events: auto;
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.8), 0 20px 60px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.cpic-deck-card.is-pos-1 .cpic-deck-card-body {
    pointer-events: none;
    user-select: none;
}

.cpic-deck-card.is-pos-1:hover {
    opacity: 1;
    transform: translate3d(-10px, -30px, 0) rotate(-1deg) scale(0.995);
    filter: brightness(0.96) contrast(1.02);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 -14px 35px rgba(0, 0, 0, 0.85), 0 0 28px rgba(255, 255, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Second Stacked Behind Card (pos-2) - Further tilted & peeking at the HIGHEST TOP */
.cpic-deck-card.is-pos-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 4;
    opacity: 0.82;
    transform: translate3d(-16px, -46px, 0) rotate(-1.6deg) scale(0.982);
    filter: brightness(0.72) contrast(1);
    cursor: pointer;
    pointer-events: auto;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.85), 0 15px 50px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.cpic-deck-card.is-pos-2 .cpic-deck-card-body {
    pointer-events: none;
    user-select: none;
}

.cpic-deck-card.is-pos-2:hover {
    opacity: 0.96;
    transform: translate3d(-18px, -52px, 0) rotate(-1.8deg) scale(0.986);
    filter: brightness(0.9) contrast(1.02);
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.9), 0 0 24px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Card Header Bar (Always visible at the top of each stacked card) */
.cpic-card-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1.6rem;
    background: #0f1015;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    user-select: none;
    transition: padding 0.3s ease;
}

/* On stacked behind cards, tighten topbar padding so elements sit higher in the visible slice */
.cpic-deck-card.is-pos-1 .cpic-card-topbar,
.cpic-deck-card.is-pos-2 .cpic-card-topbar {
    padding: 0.68rem 1.6rem;
}

.cpic-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.cpic-topbar-index {
    font-family: monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    transition: color 0.3s ease;
}

.cpic-deck-card.is-pos-1 .cpic-topbar-index,
.cpic-deck-card.is-pos-2 .cpic-topbar-index {
    color: rgba(255, 255, 255, 0.85);
}

.cpic-topbar-slash {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
}

.cpic-topbar-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.cpic-deck-card.is-pos-1 .cpic-topbar-title,
.cpic-deck-card.is-pos-2 .cpic-topbar-title {
    color: rgba(255, 255, 255, 0.92);
}

.cpic-deck-card.is-pos-1:hover .cpic-topbar-title,
.cpic-deck-card.is-pos-2:hover .cpic-topbar-title {
    color: #ffffff;
}

.cpic-topbar-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 0.25rem;
}

.cpic-topbar-right {
    display: flex;
    align-items: center;
}

.cpic-topbar-tag {
    font-size: 0.74rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    letter-spacing: 0.04em;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Front Card (pos-0): Clean current indicator with glowing white dot */
.cpic-deck-card.is-pos-0 .cpic-topbar-tag {
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cpic-deck-card.is-pos-0 .cpic-topbar-tag::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.cpic-deck-card.is-pos-0 .cpic-topbar-tag::after {
    content: "当前展示";
}

/* Stacked Behind Cards (pos-1 & pos-2): Frosted Glass Interactive Identity Pills */
.cpic-deck-card.is-pos-1 .cpic-topbar-tag,
.cpic-deck-card.is-pos-2 .cpic-topbar-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

/* Dynamic Identity Titles on Stacked Peeking Tabs */
.cpic-deck-card.is-pos-1[data-deck-card="proof"] .cpic-topbar-tag::after,
.cpic-deck-card.is-pos-2[data-deck-card="proof"] .cpic-topbar-tag::after {
    content: "01 画布实测 ↗";
}

.cpic-deck-card.is-pos-1[data-deck-card="arch"] .cpic-topbar-tag::after,
.cpic-deck-card.is-pos-2[data-deck-card="arch"] .cpic-topbar-tag::after {
    content: "02 底座架构 ↗";
}

.cpic-deck-card.is-pos-1[data-deck-card="prompt"] .cpic-topbar-tag::after,
.cpic-deck-card.is-pos-2[data-deck-card="prompt"] .cpic-topbar-tag::after {
    content: "03 Prompt解析 ↗";
}

/* Hover State on Stacked Behind Pills */
.cpic-deck-card.is-pos-1:hover .cpic-topbar-tag,
.cpic-deck-card.is-pos-2:hover .cpic-topbar-tag {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.65);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.25), inset 0 1px 0 #ffffff;
    transform: translateY(-1px);
}

/* Card Body */
.cpic-deck-card-body {
    padding: 2rem 2.2rem;
    color: rgba(255, 255, 255, 0.85);
    background: #0a0b0e;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* ==========================================================================
   CARD 1: Live Canvas & Baseline Output Proof
   ========================================================================== */
.cpic-live-workbench {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.workbench-subtabs {
    display: flex;
    gap: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.65rem;
    overflow-x: auto;
}

.subtab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.84rem;
    font-weight: 500;
    padding: 0.4rem 0.2rem;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    transition: color 0.25s ease;
    white-space: nowrap;
    box-shadow: none;
}

.subtab-btn:hover {
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    border: none;
}

.subtab-btn.active {
    background: transparent;
    border: none;
    color: #ffffff;
    font-weight: 600;
}

/* 激活态底部半截线 */
.subtab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -0.7rem;
    left: 50%;
    transform: translateX(-50%);
    width: 32px; /* 半截线 */
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
}

.workbench-case-pane {
    display: none;
    animation: fadeInStage 0.3s ease;
}

.workbench-case-pane.active {
    display: block;
}

@keyframes fadeInStage {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.split-proof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
    align-items: start;
}

.proof-col {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.proof-col-header {
    background: rgba(14, 16, 21, 0.95);
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.proof-col-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
    margin: 0;
}

.proof-media-wrap {
    position: relative;
    background: #000000;
    min-height: 290px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.proof-node-img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.4s ease;
    display: block;
}

.proof-node-img:hover {
    transform: scale(1.02);
}

.zoom-floating-hint {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    padding: 0.28rem 0.65rem;
    border-radius: 4px;
    pointer-events: none;
}

.proof-video {
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: contain;
    background: #000000;
    display: block;
}

.proof-col-footer {
    padding: 1rem 1.25rem;
    background: rgba(10, 11, 15, 0.75);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.proof-eval-block {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.proof-eval-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.03em;
    margin: 0;
}

.proof-eval-list {
    margin: 0;
    padding-left: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.proof-eval-list li {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.62;
}

/* 全局实测基准说明条 (Bottom summary banner) */
.proof-global-summary {
    margin-top: 1.6rem;
    padding: 0.95rem 1.3rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid #ffffff;
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.proof-summary-badge {
    font-family: monospace;
    font-size: 0.74rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.06em;
    white-space: nowrap;
    opacity: 0.9;
}

.proof-summary-text {
    font-size: 0.79rem;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.65;
    margin: 0;
    flex: 1;
    min-width: 280px;
}

/* Proof Thumbnails Rack (for Case B multi-artifact verification) */
.proof-thumbs-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: rgba(14, 16, 21, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.proof-thumb-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.35rem 0.4rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.25s ease;
    text-align: center;
}

.proof-thumb-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.proof-thumb-item.is-active {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.12);
}

.proof-thumb-preview {
    width: 100%;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    background: #000000;
}

.proof-thumb-title {
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.proof-thumb-item.is-active .proof-thumb-title {
    color: #ffffff;
    font-weight: 600;
}

/* ==========================================================================
   CARD 2: Architecture & State Governance
   ========================================================================== */
.cpic-arch-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 1.8rem;
    align-items: start;
}

.cpic-card-box {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.cpic-card-box-header {
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cpic-card-box-title {
    font-family: var(--font-serif, "Cormorant Garamond", serif);
    font-size: 1.22rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.03em;
    margin: 0;
}

.cpic-flow-list {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cpic-flow-item {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.85rem 0 0.95rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.25s ease;
}

.cpic-flow-item:last-child {
    border-bottom: none;
}

.cpic-flow-item:hover {
    background: transparent;
}

.flow-item-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.45rem;
}

.flow-step-badge {
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    background: transparent;
    border: none;
    padding: 0;
    margin-right: 0.25rem;
    opacity: 0.8;
}

.flow-item-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.flow-item-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    margin: 0;
}

.flow-item-desc strong {
    color: #ffffff;
    font-weight: 600;
}

/* Warnings / Guardrails Banner */
.cpic-guideline-banner {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    border-left: 2px solid #ffffff;
    border-radius: 0;
    padding: 0.9rem 1.2rem;
}

.guideline-body h5 {
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0 0 0.4rem 0;
}

.guideline-body p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    line-height: 1.68;
    margin: 0;
}

/* ==========================================================================
   CARD 3: Production Prompt Studio & Annotations
   ========================================================================== */
.cpic-prompt-studio {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.8rem;
    align-items: start;
}

.prompt-terminal {
    background: #050608;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: #0f1015;
    padding: 0.75rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.t-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.75;
}
.t-dot.red { background: #ef4444; }
.t-dot.yellow { background: #f59e0b; }
.t-dot.green { background: #10b981; }

.terminal-title {
    font-family: monospace;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.06em;
}

.copy-prompt-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.72rem;
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-prompt-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.prompt-content-scroll {
    max-height: 520px;
    overflow-y: auto;
    padding: 1.2rem 1.4rem;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.85);
    white-space: pre-wrap;
    word-break: break-word;
}

.prompt-highlight-row {
    margin-bottom: 1.1rem;
    padding: 0.5rem 0.7rem;
    border-radius: 4px;
    border-left: 2px solid transparent;
    transition: background 0.25s ease, border-left 0.25s ease;
}

.prompt-highlight-row.target-highlight {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #ffffff;
}

.p-meta { color: #ffffff; font-weight: 700; }
.p-tag { color: rgba(255, 255, 255, 0.85); text-decoration: underline; text-underline-offset: 3px; }
.p-time { color: #ffffff; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.p-negative { color: rgba(255, 255, 255, 0.8); }

/* Annotation Cards Side */
.prompt-annotations-side {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 560px;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.annotation-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.annotation-card:hover,
.annotation-card.active {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #ffffff;
    border-top-color: rgba(255, 255, 255, 0.25);
    border-right-color: rgba(255, 255, 255, 0.25);
    border-bottom-color: rgba(255, 255, 255, 0.25);
    transform: translateX(3px);
}

.annotation-card-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.annotation-num {
    font-family: monospace;
    font-size: 0.66rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.annotation-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: #ffffff;
}

.annotation-desc {
    font-size: 0.77rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.58;
    margin: 0;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
    .cpic-deck-wrap {
        padding-top: 52px;
    }

    .cpic-deck-card.is-pos-1 {
        transform: translate3d(-6px, -24px, 0) rotate(-0.8deg) scale(0.988);
    }
    .cpic-deck-card.is-pos-1:hover {
        transform: translate3d(-8px, -28px, 0) rotate(-1deg) scale(0.992);
    }

    .cpic-deck-card.is-pos-2 {
        transform: translate3d(-12px, -46px, 0) rotate(-1.6deg) scale(0.975);
    }
    .cpic-deck-card.is-pos-2:hover {
        transform: translate3d(-14px, -50px, 0) rotate(-1.8deg) scale(0.98);
    }

    .cpic-arch-grid,
    .cpic-prompt-studio,
    .split-proof-grid {
        grid-template-columns: 1fr;
    }

    .cpic-deck-card-body {
        padding: 1.5rem 1.4rem;
    }
}

@media (max-width: 768px) {
    .cpic-deck-wrap {
        padding-top: 48px;
    }

    .cpic-deck-card.is-pos-1 {
        transform: translate3d(0, -22px, 0) rotate(0deg) scale(0.98);
    }
    .cpic-deck-card.is-pos-1:hover {
        transform: translate3d(0, -26px, 0) rotate(0deg) scale(0.985);
    }

    .cpic-deck-card.is-pos-2 {
        transform: translate3d(0, -42px, 0) rotate(0deg) scale(0.96);
    }
    .cpic-deck-card.is-pos-2:hover {
        transform: translate3d(0, -46px, 0) rotate(0deg) scale(0.965);
    }

    .cpic-deck-card-body {
        padding: 1.2rem 1rem;
    }

    .cpic-card-topbar {
        padding: 0.8rem 1rem;
    }

    .cpic-topbar-subtitle {
        display: none;
    }

    .workbench-subtabs {
        flex-wrap: nowrap;
    }
}
