/* Industry wireframe — world-class tab rail + premium generated panels */

.showcase-visual {
    align-items: flex-start !important;
}

/* ── Stage layout ── */
.wf-stage {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

/* ── Left tab rail ── */
.wf-stage .wf-rail {
    flex-shrink: 0;
    width: 138px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 6px;
}

.wf-stage .wf-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wf-stage .wf-tab {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 11px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.wf-stage .wf-tab:hover {
    border-color: #93c5fd;
    color: #1668B2;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(22, 104, 178, 0.12);
}

.wf-stage .wf-tab.is-active {
    background: linear-gradient(135deg, #1668B2 0%, #1d4ed8 55%, #2563eb 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 28px rgba(22, 104, 178, 0.38);
    transform: translateX(5px);
}

.wf-stage .wf-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    opacity: 0.95;
}

.wf-stage .wf-status {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.64rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.45;
    padding: 0 4px;
}

.wf-stage .wf-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #37B54A;
    box-shadow: 0 0 0 3px rgba(55, 181, 74, 0.22);
    animation: wf-pulse 2s ease infinite;
    flex-shrink: 0;
    margin-top: 3px;
}

@keyframes wf-pulse {
    50% { opacity: 0.4; transform: scale(0.92); }
}

/* ── Viewport ── */
.wf-stage .wf-viewport {
    flex: 1;
    min-width: 0;
}

.wf-stage .wf-panels {
    position: relative;
}

.wf-stage .wf-panel {
    display: none;
}

.wf-stage .wf-panel.is-active {
    display: block;
    animation: wf-panel-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wf-panel-in {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

/* ── Mockup frames inside stage ── */
.wf-stage .mockup-browser,
.wf-stage .mockup-dashboard,
.wf-stage .mockup-phone {
    transform: none !important;
    max-width: 100%;
    width: 100%;
}

.wf-stage .wf-browser {
    height: 400px;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 24px 48px -12px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(226, 232, 240, 0.9);
}

.wf-stage .wf-browser .ui-header {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    min-height: 44px;
}

.wf-stage .wf-browser.wf-browser-dark .ui-header {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    border-bottom-color: #334155 !important;
}

.wf-stage .wf-url {
    flex: 1;
    margin-left: 12px !important;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.68rem !important;
    color: #64748b !important;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.wf-stage .wf-browser-dark .wf-url {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

.wf-stage .wf-browser-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Screen shell ── */
.wf-stage .wf-screen {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 45%, #f1f5f9 100%);
    position: relative;
}

.wf-stage .wf-screen::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(22, 104, 178, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.wf-stage .wf-screen-dark {
    background: linear-gradient(165deg, #0f172a 0%, #1e293b 50%, #0f172a 100%) !important;
}

.wf-stage .wf-screen-dark::before {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
}

.wf-stage .wf-screen-inner {
    padding: 18px 20px 20px;
    position: relative;
    z-index: 1;
}

/* ── Screen header ── */
.wf-stage .wf-screen-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.wf-stage .wf-screen-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.wf-stage .wf-screen-dark .wf-screen-title {
    color: #f8fafc;
}

.wf-stage .wf-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(55, 181, 74, 0.12);
    border: 1px solid rgba(55, 181, 74, 0.28);
    font-size: 0.62rem;
    font-weight: 700;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.wf-stage .wf-live-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #37B54A;
    box-shadow: 0 0 6px rgba(55, 181, 74, 0.6);
}

.wf-stage .wf-screen-sub {
    font-size: 0.72rem;
    color: #64748b;
    margin: -10px 0 14px;
    font-weight: 500;
}

.wf-stage .wf-screen-dark .wf-screen-sub {
    color: #94a3b8;
}

/* ── KPI cards ── */
.wf-stage .wf-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
}

.wf-stage .wf-kpi {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 12px 12px 11px !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.wf-stage .wf-kpi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1668B2, #37B54A);
    opacity: 0.85;
}

.wf-stage .wf-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(22, 104, 178, 0.14) !important;
    border-color: #bfdbfe !important;
}

.wf-stage .wf-kpi-dark {
    background: rgba(30, 41, 59, 0.85) !important;
    border-color: #334155 !important;
}

.wf-stage .wf-kpi-top {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.wf-stage .wf-kpi-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #1668B2, #2563eb);
    flex-shrink: 0;
}

.wf-stage .wf-kpi-label {
    display: block !important;
    font-size: 0.58rem !important;
    color: #64748b !important;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
    line-height: 1.3;
}

.wf-stage .wf-kpi-dark .wf-kpi-label {
    color: #94a3b8 !important;
}

.wf-stage .wf-kpi-val {
    display: block !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.wf-stage .wf-kpi-dark .wf-kpi-val {
    color: #f8fafc !important;
}

.wf-stage .wf-kpi-delta {
    display: inline-flex !important;
    align-items: center;
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    font-style: normal !important;
    color: #059669 !important;
    background: rgba(5, 150, 105, 0.1);
    padding: 2px 7px;
    border-radius: 999px;
    margin-top: 2px;
}

.wf-stage .wf-kpi-delta.is-down {
    color: #dc2626 !important;
    background: rgba(220, 38, 38, 0.1);
}

/* ── Chart block ── */
.wf-stage .wf-chart-block {
    margin-bottom: 14px;
}

.wf-stage .wf-chart-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.wf-stage .wf-chart-label {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    letter-spacing: 0.02em;
}

.wf-stage .wf-chart-meta {
    font-size: 0.62rem;
    color: #94a3b8;
    font-weight: 600;
}

.wf-stage .wf-chart {
    display: flex !important;
    align-items: flex-end !important;
    gap: 6px !important;
    height: 100px !important;
    padding: 14px 14px 10px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}

.wf-stage .wf-chart-dark {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: #334155 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}

.wf-stage .wf-bar {
    flex: 1 !important;
    border-radius: 6px 6px 2px 2px !important;
    min-height: 10px !important;
    background: linear-gradient(180deg, #60a5fa 0%, #1668B2 100%) !important;
    transform-origin: bottom;
    transform: scaleY(0.15);
    opacity: 0.5;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.wf-stage .wf-bar.is-lit {
    transform: scaleY(1);
    opacity: 1;
}

.wf-stage .wf-bar:nth-child(3n) {
    background: linear-gradient(180deg, #6ee7a0 0%, #37B54A 100%) !important;
}

.wf-stage .wf-bar:nth-child(5n) {
    background: linear-gradient(180deg, #93c5fd 0%, #2563eb 100%) !important;
}

/* ── Module table with progress ── */
.wf-stage .wf-table {
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}

.wf-stage .wf-tr {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 11px 14px !important;
    font-size: 0.8rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wf-stage .wf-tr:hover {
    background: #f0f9ff !important;
}

.wf-stage .wf-tr.wf-th {
    background: linear-gradient(180deg, #f8fafc, #f1f5f9) !important;
    font-weight: 800 !important;
    color: #475569 !important;
    font-size: 0.65rem !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wf-stage .wf-tr:last-child {
    border-bottom: none !important;
}

.wf-stage .wf-tr-name {
    flex: 1;
    font-weight: 600;
    color: #0f172a;
}

.wf-stage .wf-tr-pct {
    font-weight: 800;
    color: #1668B2;
    min-width: 36px;
    text-align: right;
}

.wf-stage .wf-tr-bar-wrap {
    flex: 0 0 72px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.wf-stage .wf-tr-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1668B2, #37B54A);
    width: 0;
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.wf-stage .wf-tr-bar.is-lit {
    width: var(--wf-pct, 50%);
}

/* ── Notifications ── */
.wf-stage .wf-notif-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wf-stage .wf-notif {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 13px 14px !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.wf-stage .wf-notif::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 14px 0 0 14px;
}

.wf-stage .wf-notif-warn::before { background: linear-gradient(180deg, #f59e0b, #ef4444); }
.wf-stage .wf-notif-info::before { background: linear-gradient(180deg, #60a5fa, #1668B2); }
.wf-stage .wf-notif-ok::before { background: linear-gradient(180deg, #4ade80, #37B54A); }

.wf-stage .wf-notif-warn { background: linear-gradient(135deg, #fffbeb 0%, #ffffff 60%) !important; border-color: #fde68a !important; }
.wf-stage .wf-notif-info { background: linear-gradient(135deg, #eff6ff 0%, #ffffff 60%) !important; border-color: #bfdbfe !important; }
.wf-stage .wf-notif-ok { background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 60%) !important; border-color: #bbf7d0 !important; }

.wf-stage .wf-notif-dark {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: #334155 !important;
}

.wf-stage .wf-notif-dark strong { color: #f8fafc !important; }
.wf-stage .wf-notif-dark p { color: #94a3b8 !important; }

.wf-stage .wf-notif-active {
    border-color: #1668B2 !important;
    box-shadow: 0 0 0 3px rgba(22, 104, 178, 0.18), 0 8px 22px rgba(22, 104, 178, 0.12) !important;
}

.wf-stage .wf-notif-read { opacity: 0.42; }

.wf-stage .wf-notif-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
    color: #fff;
}

.wf-stage .wf-notif-warn .wf-notif-badge { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.wf-stage .wf-notif-info .wf-notif-badge { background: linear-gradient(135deg, #60a5fa, #1668B2); }
.wf-stage .wf-notif-ok .wf-notif-badge { background: linear-gradient(135deg, #4ade80, #37B54A); }

.wf-stage .wf-notif-body {
    flex: 1;
    min-width: 0;
}

.wf-stage .wf-notif strong {
    display: block !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 3px !important;
    line-height: 1.3;
}

.wf-stage .wf-notif p {
    margin: 0 !important;
    font-size: 0.73rem !important;
    color: #64748b !important;
    line-height: 1.4;
}

.wf-stage .wf-notif-btn {
    margin-left: auto !important;
    padding: 8px 14px !important;
    background: linear-gradient(135deg, #1668B2 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    flex-shrink: 0;
    font-family: inherit !important;
    box-shadow: 0 4px 12px rgba(22, 104, 178, 0.28) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.wf-stage .wf-notif-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 6px 18px rgba(22, 104, 178, 0.38) !important;
    filter: brightness(1.05);
}

.wf-stage .wf-ack-btn {
    width: 100% !important;
    margin-top: 6px !important;
    padding: 12px 16px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    color: #475569 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    transition: all 0.25s ease;
    appearance: none;
    -webkit-appearance: none;
}

.wf-stage .wf-ack-btn:hover {
    background: linear-gradient(135deg, #1668B2, #2563eb) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 6px 20px rgba(22, 104, 178, 0.3);
}

/* ── In-mockup interactive states ── */
.wf-stage .wf-play-btn {
    cursor: pointer !important;
    transition: background 0.3s ease, transform 0.2s ease !important;
}

.wf-stage .wf-play-btn:hover { transform: scale(1.02) !important; }

.wf-stage .wf-playing { background: #1668B2 !important; }

.wf-stage .wf-side-active {
    background: #1668B2 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.wf-stage [data-wf-side] { transition: background 0.2s ease, box-shadow 0.2s ease; }

.wf-stage .wf-check-btn.wf-checked {
    background: #1668B2 !important;
    border-color: #1668B2 !important;
    position: relative;
}

.wf-stage .wf-check-btn.wf-checked::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-stage .wf-ctrl-active {
    background: #1668B2 !important;
    transform: scale(1.1);
}

.wf-stage [data-wf-ctrl] { transition: transform 0.2s ease, background 0.2s ease; }

.wf-stage [data-wf-tap].wf-tap-active {
    transform: scale(0.98);
    box-shadow: 0 0 0 3px rgba(22, 104, 178, 0.35);
}

.wf-stage [data-wf-tap]:hover { transform: scale(1.02); }

/* ── Scroll reveal ── */
.showcase-row:not(.in-view) { opacity: 0; transform: translateY(24px); }
.showcase-row.in-view {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 720px) {
    .wf-stage {
        flex-direction: column;
        align-items: stretch;
    }

    .wf-stage .wf-rail {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .wf-stage .wf-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        flex: 1;
    }

    .wf-stage .wf-tab {
        width: auto;
        flex: 1;
        min-width: 90px;
        justify-content: center;
    }

    .wf-stage .wf-tab.is-active,
    .wf-stage .wf-tab:hover { transform: none; }

    .wf-stage .wf-kpi-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wf-stage .wf-status-dot,
    .wf-stage .wf-panel.is-active,
    .wf-stage .wf-bar,
    .wf-stage .wf-tr-bar,
    .wf-stage .wf-hero-bar { animation: none; transition: none; }
    .showcase-row { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════
   HERO COMMAND CENTER — interactive wireframe above fold
   ══════════════════════════════════════════════════════════ */

.hero-wireframe-wrap {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    min-height: 420px;
    transform: none !important;
}

.hero-wireframe-wrap .visual-glow-orb,
.hero-wireframe-wrap .holographic-grid {
    pointer-events: none;
    z-index: 0;
}

.hero-wireframe-visual {
    position: relative;
    z-index: 2;
    width: 100%;
    align-items: flex-start !important;
}

.hero-wireframe-visual .wf-stage {
    max-width: 100%;
    gap: 16px;
}

.hero-wireframe-visual .wf-rail {
    width: 124px;
    padding-top: 4px;
}

.hero-wireframe-visual .wf-browser,
.hero-wireframe-visual .mockup-dashboard {
    height: 400px;
}

/* Hero overview dashboard */
.wf-hero-dashboard {
    height: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    border-radius: 16px !important;
    box-shadow:
        0 28px 56px -16px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(226, 232, 240, 0.9) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.wf-hero-chrome {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    gap: 10px !important;
}

.wf-hero-url {
    flex: 1;
    font-size: 0.68rem !important;
    font-weight: 600;
    color: #64748b !important;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-left: 8px !important;
}

.wf-hero-badge {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--hero-accent, #1668B2);
    color: var(--hero-accent, #1668B2);
    background: color-mix(in srgb, var(--hero-accent, #1668B2) 8%, white);
    white-space: nowrap;
}

.wf-hero-body {
    flex: 1;
    display: flex;
    min-height: 0;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
}

.wf-hero-sidebar {
    width: 88px;
    flex-shrink: 0;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #0f172a;
    border-right: 1px solid #1e293b;
}

.wf-hero-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 10px 6px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #94a3b8;
    font-size: 0.58rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.wf-hero-nav:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.wf-hero-nav.wf-side-active {
    background: var(--hero-accent, #1668B2) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--hero-accent, #1668B2) 40%, transparent);
}

.wf-hero-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 800;
}

.wf-hero-nav.wf-side-active .wf-hero-nav-icon {
    background: rgba(255, 255, 255, 0.2);
}

.wf-hero-main {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    overflow-y: auto;
}

.wf-hero-main-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.wf-hero-main-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.wf-hero-main-sub {
    margin: 4px 0 0;
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 500;
}

.wf-hero-action {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--hero-accent, #1668B2);
    background: #fff;
    color: var(--hero-accent, #1668B2);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wf-hero-action:hover,
.wf-hero-action.wf-hero-action-active {
    background: var(--hero-accent, #1668B2);
    color: #fff;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--hero-accent, #1668B2) 35%, transparent);
}

.wf-hero-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.wf-hero-kpi {
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.wf-hero-kpi:hover,
.wf-hero-kpi.wf-hero-stat-active {
    border-color: var(--hero-accent, #1668B2);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--hero-accent, #1668B2) 18%, transparent);
    transform: translateY(-1px);
}

.wf-hero-kpi-label {
    display: block;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 4px;
}

.wf-hero-kpi strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.wf-hero-kpi-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    margin-top: 8px;
    overflow: hidden;
}

.wf-hero-kpi-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--hero-accent, #1668B2), #37B54A);
    border-radius: 999px;
    transition: width 0.5s ease;
}

.wf-hero-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 10px;
    flex: 1;
    min-height: 0;
}

.wf-hero-chart {
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.wf-hero-chart.wf-hero-stat-active {
    border-color: var(--hero-accent, #1668B2);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--hero-accent, #1668B2) 20%, transparent);
}

.wf-hero-chart-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

.wf-hero-chart-head em {
    font-style: normal;
    color: #94a3b8;
    font-weight: 600;
}

.wf-hero-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 5px;
    min-height: 72px;
}

.wf-hero-bar {
    flex: 1;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--hero-accent, #1668B2) 70%, #fff), var(--hero-accent, #1668B2));
    transform-origin: bottom;
    transform: scaleY(0.2);
    opacity: 0.4;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.wf-hero-bar.is-lit {
    transform: scaleY(1);
    opacity: 1;
}

.wf-hero-feed {
    padding: 10px;
    border-radius: 12px;
    background: #0f172a;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.wf-hero-feed-head {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 8px;
}

.wf-hero-feed-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.wf-hero-feed-item {
    font-size: 0.65rem;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: background 0.2s ease;
}

.wf-hero-feed-item:hover,
.wf-hero-feed-item.wf-hero-log-active {
    background: rgba(255, 255, 255, 0.1);
}

.wf-hero-feed-ok { color: #4ade80; }
.wf-hero-feed-warn { color: #fbbf24; }

.wf-hero-terminal {
    padding: 10px 12px;
    border-radius: 10px;
    background: #0f172a;
    font-family: ui-monospace, monospace;
    font-size: 0.62rem;
    cursor: pointer;
}

.wf-hero-terminal-line {
    display: flex;
    gap: 8px;
    padding: 2px 0;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.wf-hero-terminal-line:hover,
.wf-hero-terminal-line.wf-hero-log-active {
    color: #e2e8f0;
}

.wf-hero-line-no {
    color: #475569;
    min-width: 12px;
}

.wf-hero-terminal code {
    color: #c4b5fd;
}

@media (max-width: 900px) {
    .hero-wireframe-visual .wf-stage {
        flex-direction: column;
    }

    .hero-wireframe-visual .wf-rail {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .wf-hero-kpi-row {
        grid-template-columns: 1fr;
    }

    .wf-hero-split {
        grid-template-columns: 1fr;
    }

    .wf-hero-sidebar {
        flex-direction: row;
        width: 100%;
        padding: 8px;
    }

    .wf-hero-nav {
        flex: 1;
        flex-direction: row;
        padding: 8px;
    }
}

/* ══ Unique panel layout skins (not clone dashboards) ══ */

.wf-heatmap {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    margin-bottom: 10px;
}

.wf-heat-cell {
    aspect-ratio: 1;
    border-radius: 4px;
    background: #1e293b;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.wf-heat-cell:hover { transform: scale(1.08); }
.wf-heat-0 { background: #1e293b; }
.wf-heat-1 { background: #334155; }
.wf-heat-2 { background: #475569; }
.wf-heat-3 { background: #b45309; }
.wf-heat-4 { background: #dc2626; }

.wf-heat-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.62rem;
    color: #94a3b8;
    font-weight: 600;
}

.wf-tape {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: ui-monospace, monospace;
    font-size: 0.68rem;
}

.wf-tape-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.wf-tape-buy { background: rgba(34, 197, 94, 0.12); color: #15803d; }
.wf-tape-sell { background: rgba(239, 68, 68, 0.1); color: #b91c1c; }

.wf-chain {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.wf-block {
    flex-shrink: 0;
    width: 100px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #fff);
    border: 1px solid #bfdbfe;
    cursor: pointer;
}

.wf-block-hash { font-weight: 800; font-size: 0.75rem; color: #1668B2; }
.wf-block-meta { font-size: 0.62rem; color: #64748b; margin-top: 4px; }
.wf-chain-link { color: #94a3b8; font-size: 0.8rem; }

.wf-bed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.wf-bed {
    padding: 14px 8px;
    text-align: center;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.wf-bed-free { background: #f0fdf4; color: #15803d; }
.wf-bed-occupied { background: #eff6ff; color: #1668B2; }
.wf-bed-alert { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }

.wf-vitals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.wf-vital-card {
    padding: 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.wf-vital-card span { display: block; font-size: 0.62rem; color: #64748b; font-weight: 700; text-transform: uppercase; }
.wf-vital-card strong { font-size: 1.1rem; color: #0f172a; }

.wf-timeline { display: flex; flex-direction: column; gap: 10px; }

.wf-tl-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
}

.wf-tl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1668B2;
    margin-top: 4px;
    flex-shrink: 0;
}

.wf-tl-warn .wf-tl-dot { background: #f59e0b; }
.wf-tl-item strong { display: block; font-size: 0.8rem; }
.wf-tl-item p { margin: 2px 0 0; font-size: 0.68rem; color: #64748b; }

.wf-wh-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.wf-wh-zone {
    padding: 16px 10px;
    border-radius: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    text-align: center;
    cursor: pointer;
}

.wf-wh-zone span { display: block; font-weight: 800; font-size: 0.9rem; }
.wf-wh-zone em { font-size: 0.65rem; color: #64748b; font-style: normal; }
.wf-wh-low { background: #fff7ed; border-color: #fed7aa; }

.wf-tier-ladder { display: flex; flex-direction: column; gap: 8px; }

.wf-tier {
    display: flex;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.wf-tier-active {
    background: linear-gradient(135deg, #fef3c7, #fff);
    border-color: #f59e0b;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}

.wf-breakout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.wf-breakout {
    padding: 14px;
    border-radius: 12px;
    background: #1e293b;
    color: #e2e8f0;
    cursor: pointer;
}

.wf-breakout-live { background: #1668B2; color: #fff; box-shadow: 0 4px 16px rgba(22, 104, 178, 0.35); }
.wf-breakout span { display: block; font-weight: 700; font-size: 0.82rem; }
.wf-breakout em { font-size: 0.65rem; opacity: 0.8; font-style: normal; }

.wf-floor-map {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.wf-floor-cell {
    aspect-ratio: 1;
    border-radius: 8px;
    background: linear-gradient(135deg, #1668B2, #37B54A);
    cursor: pointer;
}

.wf-floor-caption { font-size: 0.68rem; color: #64748b; margin: 0; }

.wf-turbine-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.wf-turbine {
    padding: 12px 8px;
    border-radius: 12px;
    background: #f1f5f9;
    text-align: center;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.wf-turbine-on { background: #f0fdf4; border-color: #86efac; }
.wf-turbine span { display: block; font-size: 0.65rem; font-weight: 700; color: #64748b; }
.wf-turbine strong { font-size: 0.85rem; color: #0f172a; }

.wf-route-map {
    position: relative;
    height: 120px;
    margin: 8px 0;
}

.wf-route-line {
    position: absolute;
    top: 50%;
    left: 8%;
    right: 8%;
    height: 3px;
    background: linear-gradient(90deg, #1668B2, #37B54A);
    border-radius: 999px;
}

.wf-route-node {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    background: #fff;
    border: 2px solid #1668B2;
    cursor: pointer;
}

.wf-route-start { left: 4%; }
.wf-route-mid { left: 42%; }
.wf-route-end { right: 4%; background: #1668B2; color: #fff; }

.wf-content-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.wf-poster {
    aspect-ratio: 2/3;
    border-radius: 10px;
    background: linear-gradient(180deg, #1e293b, #334155);
    display: flex;
    align-items: flex-end;
    padding: 8px;
    cursor: pointer;
}

.wf-poster span { font-size: 0.6rem; font-weight: 700; color: #fff; }
.wf-poster-live { box-shadow: 0 0 0 2px #ef4444; }

.wf-queue { display: flex; flex-direction: column; gap: 8px; }

.wf-queue-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.wf-queue-warn { background: #fff7ed; border-color: #fed7aa; }
.wf-queue-row strong { font-size: 0.8rem; }
.wf-queue-row span { font-size: 0.72rem; color: #64748b; font-weight: 600; }

.wf-chat { display: flex; flex-direction: column; gap: 8px; }

.wf-chat-bubble {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 14px;
    cursor: pointer;
}

.wf-chat-them { align-self: flex-start; background: #f1f5f9; }
.wf-chat-me { align-self: flex-end; background: #1668B2; color: #fff; }
.wf-chat-bubble strong { display: block; font-size: 0.65rem; opacity: 0.8; }
.wf-chat-bubble p { margin: 4px 0 0; font-size: 0.75rem; }
.wf-chat-me p { color: #e2e8f0; }

/* ── Overview shell (showcase_shell.php) ── */
.wf-overview-shell {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}
.wf-overview-shell .ui-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}
.wf-shell-url {
    flex: 1;
    font-size: 0.72rem;
    color: #64748b;
    font-family: ui-monospace, monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wf-shell-body { padding: 1.25rem 1.5rem 1.5rem; }
.wf-shell-label {
    display: block;
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}
.wf-shell-hint {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    color: #64748b;
}
.wf-shell-skeleton { display: flex; flex-direction: column; gap: 0.65rem; }
.wf-shell-bar {
    height: 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
    background-size: 200% 100%;
    animation: wf-shell-shimmer 1.8s ease infinite;
}
.wf-shell-bar--short { width: 55%; }
.wf-shell-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-top: 0.35rem;
}
.wf-shell-grid > div {
    height: 72px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}
@keyframes wf-shell-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .wf-shell-bar { animation: none; }
}
