
        :root {
            --bg: #09090e;
            --surface: #111118;
            --surface2: #17171f;
            --border: #ffffff0e;
            --border-active: #ffffff20;
            --text: #e4e4ee;
            --text-muted: #686878;
            --text-dim: #35354a;
            --accent-next: #38bdf8;
            --accent-flutter: #67d9fc;
            --accent-green: #4ade80;
            --accent-amber: #fbbf24;
            --accent-coral: #fb7185;
            --accent-violet: #a78bfa;
            --mono: 'DM Mono', monospace;
            --sans: 'Cabinet Grotesk', sans-serif;
            --display: 'Fraunces', serif;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background: var(--bg);
            color: var(--text);
            font-family: var(--sans);
            font-size: 15px;
            line-height: 1.7;
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Subtle grid bg */
        body::after {
            content: '';
            position: fixed;
            inset: 0;
            background-image:
                linear-gradient(var(--border) 1px, transparent 1px),
                linear-gradient(90deg, var(--border) 1px, transparent 1px);
            background-size: 48px 48px;
            pointer-events: none;
            z-index: 0;
            mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
        }

        /* ── LAYOUT ── */
        .shell {
            display: grid;
            grid-template-columns: 268px 1fr;
            min-height: 100vh;
            position: relative;
            z-index: 1;
        }

        /* ── SIDEBAR ── */
        .sidebar {
            position: sticky;
            top: 45px;
            height: calc(100vh - 45px);
            overflow-y: auto;
            border-right: 1px solid var(--border);
            padding: 28px 0;
            display: flex;
            flex-direction: column;
            scrollbar-width: none;
            background: rgba(9, 9, 14, 0.82);
            backdrop-filter: blur(16px);
        }

        .sidebar::-webkit-scrollbar {
            display: none;
        }

        .sidebar-brand {
            padding: 0 24px 24px;
            border-bottom: 1px solid var(--border);
            margin-bottom: 18px;
        }

        .sidebar-brand .eyebrow {
            font-family: var(--mono);
            font-size: 10px;
            letter-spacing: 0.16em;
            color: var(--text-dim);
            text-transform: uppercase;
            margin-bottom: 8px;
        }

        .sidebar-brand h1 {
            font-family: var(--display);
            font-size: 18px;
            font-weight: 500;
            font-style: italic;
            line-height: 1.25;
            color: var(--text);
        }

        .sidebar-brand h1 strong {
            font-style: normal;
            font-weight: 700;
            color: var(--accent-flutter);
        }

        .nav-group {
            padding: 0 14px;
            margin-bottom: 6px;
        }

        .nav-group-label {
            font-family: var(--mono);
            font-size: 9px;
            letter-spacing: 0.2em;
            color: var(--text-dim);
            text-transform: uppercase;
            padding: 10px 10px 5px;
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 10px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.15s ease;
            border: 1px solid transparent;
            margin-bottom: 1px;
        }

        .nav-item:hover {
            background: var(--surface2);
            border-color: var(--border);
        }

        .nav-item.active {
            background: var(--surface2);
            border-color: var(--border-active);
        }

        .nav-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--text-dim);
            flex-shrink: 0;
            transition: all 0.15s;
        }

        .nav-item.active .nav-dot {
            background: var(--accent-flutter);
            box-shadow: 0 0 7px var(--accent-flutter);
        }

        .nav-item-text {
            font-size: 13px;
            color: var(--text-muted);
            transition: color 0.15s;
            flex: 1;
        }

        .nav-item.active .nav-item-text {
            color: var(--text);
            font-weight: 500;
        }

        .nav-step {
            font-family: var(--mono);
            font-size: 10px;
            color: var(--text-dim);
            flex-shrink: 0;
        }

        .nav-item.active .nav-step {
            color: var(--accent-flutter);
        }

        .progress-wrap {
            margin-top: auto;
            padding: 20px 22px 6px;
            border-top: 1px solid var(--border);
        }

        .progress-label {
            display: flex;
            justify-content: space-between;
            font-family: var(--mono);
            font-size: 10px;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .progress-track {
            height: 2px;
            background: var(--border-active);
            border-radius: 2px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent-next), var(--accent-flutter));
            border-radius: 2px;
            transition: width 0.4s ease;
            width: 0%;
        }

        /* ── MAIN ── */
        .main {
            padding: 0;
            min-height: 100vh;
        }

        .section {
            display: none;
            min-height: 100vh;
            animation: rise 0.3s ease;
        }

        .section.active {
            display: block;
        }

        @keyframes rise {
            from {
                opacity: 0;
                transform: translateY(12px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ── HERO ── */
        .section-hero {
            padding: 60px 60px 44px;
            border-bottom: 1px solid var(--border);
            position: relative;
            overflow: hidden;
        }

        .section-hero::before {
            content: '';
            position: absolute;
            top: -100px;
            right: -100px;
            width: 400px;
            height: 400px;
            border-radius: 50%;
            background: radial-gradient(circle, var(--hero-glow, #67d9fc18) 0%, transparent 65%);
            pointer-events: none;
        }

        .step-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-family: var(--mono);
            font-size: 11px;
            color: var(--accent-flutter);
            border: 1px solid #67d9fc28;
            background: #67d9fc0a;
            padding: 5px 13px;
            border-radius: 20px;
            margin-bottom: 22px;
            letter-spacing: 0.04em;
        }

        .step-pill::before {
            content: '';
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--accent-flutter);
            animation: blink 2.4s infinite;
        }

        @keyframes blink {

            0%,
            100% {
                opacity: 1
            }

            50% {
                opacity: 0.3
            }
        }

        /* THE BIG FIX: heading font */
        .section-hero h2 {
            font-family: var(--display);
            font-size: 46px;
            font-weight: 300;
            font-style: italic;
            line-height: 1.08;
            margin-bottom: 16px;
            letter-spacing: -0.01em;
            color: var(--text);
        }

        .section-hero h2 strong {
            font-weight: 700;
            font-style: normal;
            color: var(--accent-flutter);
        }

        .section-hero .subtitle {
            font-size: 15.5px;
            color: var(--text-muted);
            max-width: 540px;
            font-weight: 400;
            line-height: 1.65;
        }

        /* ── CONTENT ── */
        .section-body {
            padding: 44px 60px;
        }

        /* ── CODE COMPARE ── */
        .compare-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1px;
            background: var(--border);
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 36px;
            border: 1px solid var(--border);
        }

        .compare-col {
            background: var(--surface);
        }

        .compare-header {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 13px 22px;
            border-bottom: 1px solid var(--border);
            font-family: var(--mono);
            font-size: 11.5px;
            font-weight: 500;
            letter-spacing: 0.04em;
        }

        .compare-header.next-h {
            color: var(--accent-next);
        }

        .compare-header.flutter-h {
            color: var(--accent-flutter);
        }

        .lang-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .lang-dot.next-d {
            background: var(--accent-next);
        }

        .lang-dot.flutter-d {
            background: var(--accent-flutter);
        }

        .code-block {
            padding: 20px 22px;
            font-family: var(--mono);
            font-size: 12.5px;
            line-height: 1.85;
            color: #bfc7d4;
            overflow-x: auto;
            white-space: pre;
            scrollbar-width: thin;
            scrollbar-color: var(--border-active) transparent;
        }

        .kw {
            color: #c792ea;
        }

        .fn {
            color: #82aaff;
        }

        .str {
            color: #c3e88d;
        }

        .cmt {
            color: #546e7a;
            font-style: italic;
        }

        .num {
            color: #f78c6c;
        }

        .tp {
            color: #80cbc4;
        }

        .prop {
            color: #ffcb6b;
        }

        /* ── DIVIDER ── */
        .divider {
            display: flex;
            align-items: center;
            gap: 14px;
            margin: 40px 0 28px;
        }

        .divider h3 {
            font-family: var(--display);
            font-size: 20px;
            font-weight: 500;
            font-style: italic;
            white-space: nowrap;
            color: var(--text);
        }

        .divider-line {
            height: 1px;
            background: var(--border);
            flex: 1;
        }

        /* ── CALLOUT ── */
        .callout {
            display: flex;
            gap: 14px;
            background: var(--surface2);
            border: 1px solid var(--border);
            border-left: 3px solid var(--callout-color, var(--accent-amber));
            border-radius: 10px;
            padding: 16px 18px;
            margin-bottom: 28px;
            font-size: 13.5px;
            line-height: 1.65;
            color: var(--text-muted);
        }

        .callout-icon {
            font-size: 17px;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .callout strong {
            color: var(--text);
            font-weight: 600;
        }

        .callout code {
            font-family: var(--mono);
            font-size: 11.5px;
            color: var(--accent-flutter);
            background: #67d9fc0d;
            padding: 1px 5px;
            border-radius: 4px;
        }

        /* ── CONCEPT CARDS ── */
        .cards-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 28px;
        }

        .cards-3 {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 14px;
            margin-bottom: 28px;
        }

        .card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 22px;
            position: relative;
            overflow: hidden;
            transition: border-color 0.18s;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--card-top, var(--accent-flutter));
            opacity: 0.55;
        }

        .card:hover {
            border-color: var(--border-active);
        }

        .card-icon {
            font-size: 20px;
            margin-bottom: 10px;
            display: block;
        }

        .card h4 {
            font-family: var(--display);
            font-size: 15px;
            font-weight: 600;
            font-style: italic;
            margin-bottom: 8px;
            color: var(--text);
        }

        .card p {
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.6;
        }

        .card code {
            font-family: var(--mono);
            font-size: 11px;
            color: var(--accent-flutter);
            background: #67d9fc0d;
            padding: 1px 4px;
            border-radius: 3px;
        }

        /* ── LIFECYCLE DIAGRAM ── */
        .lifecycle-flow {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 28px;
            margin-bottom: 36px;
        }

        .lf-col {}

        .lf-title {
            font-family: var(--mono);
            font-size: 10px;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            color: var(--text-dim);
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .lf-title span {
            font-size: 15px;
        }

        .lf-step {
            position: relative;
            display: flex;
            gap: 14px;
            padding: 12px 14px 12px 14px;
            border-radius: 8px;
            transition: background 0.14s;
        }

        .lf-step:hover {
            background: var(--surface2);
        }

        /* connector line between steps */
        .lf-step+.lf-step::before {
            content: '';
            position: absolute;
            left: 26px;
            top: -10px;
            width: 1px;
            height: 10px;
            background: var(--border-active);
        }

        .lf-bullet {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            border: 1.5px solid;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: var(--mono);
            font-size: 10px;
            font-weight: 500;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .lf-bullet.fg {
            border-color: var(--accent-green);
            color: var(--accent-green);
        }

        .lf-bullet.bg {
            border-color: var(--text-dim);
            color: var(--text-dim);
        }

        .lf-bullet.kill {
            border-color: var(--accent-coral);
            color: var(--accent-coral);
        }

        .lf-bullet.flutter {
            border-color: var(--accent-flutter);
            color: var(--accent-flutter);
        }

        .lf-content {
            flex: 1;
        }

        .lf-name {
            font-family: var(--mono);
            font-size: 12.5px;
            font-weight: 500;
            margin-bottom: 3px;
        }

        .lf-name.android-c {
            color: #7bc67e;
        }

        .lf-name.ios-c {
            color: #a8b8c8;
        }

        .lf-name.flutter-c {
            color: var(--accent-flutter);
        }

        .lf-desc {
            font-size: 12.5px;
            color: var(--text-muted);
            line-height: 1.55;
        }

        .lf-badge {
            display: inline-block;
            font-family: var(--mono);
            font-size: 10px;
            padding: 2px 7px;
            border-radius: 4px;
            margin-top: 5px;
        }

        .lf-badge.fg {
            background: #4ade8015;
            color: var(--accent-green);
            border: 1px solid #4ade8030;
        }

        .lf-badge.bg {
            background: #ffffff08;
            color: var(--text-dim);
            border: 1px solid var(--border);
        }

        .lf-badge.kill {
            background: #fb718515;
            color: var(--accent-coral);
            border: 1px solid #fb718530;
        }

        /* ── PHASE BANNER ── */
        .phase-banner {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 16px;
            border-radius: 8px;
            margin: 0 0 8px;
            font-family: var(--mono);
            font-size: 11px;
            font-weight: 500;
            letter-spacing: 0.06em;
        }

        .phase-banner.fg {
            background: #4ade8012;
            border: 1px solid #4ade8025;
            color: var(--accent-green);
        }

        .phase-banner.bg {
            background: #ffffff06;
            border: 1px solid var(--border);
            color: var(--text-dim);
        }

        .phase-banner.kill {
            background: #fb718510;
            border: 1px solid #fb718522;
            color: var(--accent-coral);
        }

        /* ── NAVIGATION STACK DIAGRAM ── */
        .stack-diagram {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 28px;
            margin-bottom: 28px;
            font-family: var(--mono);
            font-size: 12.5px;
        }

        .stack-title {
            font-family: var(--sans);
            font-size: 13px;
            font-weight: 500;
            color: var(--text-muted);
            margin-bottom: 18px;
            letter-spacing: 0.03em;
        }

        .stack-col-wrap {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            align-items: end;
        }

        .stack-col {
            display: flex;
            flex-direction: column;
            gap: 4px;
            align-items: stretch;
        }

        .stack-col-label {
            font-size: 10px;
            color: var(--text-dim);
            letter-spacing: 0.12em;
            text-transform: uppercase;
            text-align: center;
            margin-top: 10px;
        }

        .stack-frame {
            padding: 8px 10px;
            border-radius: 6px;
            text-align: center;
            font-size: 11px;
            font-weight: 500;
            border: 1px solid;
            transition: opacity 0.2s;
        }

        .sf-active {
            background: #67d9fc15;
            border-color: var(--accent-flutter);
            color: var(--accent-flutter);
        }

        .sf-below {
            background: #ffffff08;
            border-color: var(--border-active);
            color: var(--text-muted);
        }

        .sf-ghost {
            background: #ffffff04;
            border-color: var(--border);
            color: var(--text-dim);
            opacity: 0.6;
        }

        .sf-root {
            background: #4ade8010;
            border-color: #4ade8040;
            color: var(--accent-green);
        }

        .stack-arrow {
            text-align: center;
            font-size: 16px;
            color: var(--text-dim);
            margin-bottom: 4px;
        }

        /* ── NESTED NAV ── */
        .nested-diagram {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 24px;
            margin-bottom: 28px;
        }

        .shell-box {
            border: 1.5px dashed var(--border-active);
            border-radius: 10px;
            padding: 16px;
            position: relative;
        }

        .shell-label {
            position: absolute;
            top: -10px;
            left: 14px;
            font-family: var(--mono);
            font-size: 10px;
            color: var(--text-dim);
            background: var(--surface);
            padding: 0 6px;
            letter-spacing: 0.1em;
        }

        .shell-inner {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-top: 6px;
        }

        .route-box {
            background: var(--surface2);
            border: 1px solid var(--border-active);
            border-radius: 8px;
            padding: 12px 14px;
        }

        .route-box.active-route {
            border-color: var(--accent-flutter);
            background: #67d9fc0c;
        }

        .route-name {
            font-family: var(--mono);
            font-size: 11.5px;
            font-weight: 500;
            margin-bottom: 5px;
        }

        .route-name.blue {
            color: var(--accent-flutter);
        }

        .route-name.muted {
            color: var(--text-dim);
        }

        .route-sub {
            display: flex;
            flex-direction: column;
            gap: 4px;
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid var(--border);
        }

        .route-sub-item {
            font-family: var(--mono);
            font-size: 10.5px;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .route-sub-item::before {
            content: '→';
            color: var(--text-dim);
            font-size: 10px;
        }

        .route-sub-item.active-sub {
            color: var(--accent-flutter);
        }

        .route-sub-item.active-sub::before {
            color: var(--accent-flutter);
        }

        /* ── TABLE ── */
        .data-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 32px;
            font-size: 13px;
        }

        .data-table th {
            text-align: left;
            font-family: var(--mono);
            font-size: 10.5px;
            letter-spacing: 0.1em;
            color: var(--text-muted);
            padding: 9px 16px;
            border-bottom: 1px solid var(--border);
            font-weight: 400;
        }

        .data-table td {
            padding: 12px 16px;
            border-bottom: 1px solid var(--border);
            vertical-align: top;
        }

        .data-table tr:last-child td {
            border-bottom: none;
        }

        .data-table tr:hover td {
            background: var(--surface2);
        }

        .pkg {
            font-family: var(--mono);
            font-size: 12px;
            color: var(--accent-flutter);
        }

        .neq {
            font-family: var(--mono);
            font-size: 11px;
            color: var(--accent-next);
            opacity: 0.8;
        }

        /* ── TAGS ── */
        .tag {
            display: inline-block;
            font-family: var(--mono);
            font-size: 10px;
            padding: 2px 7px;
            border-radius: 4px;
            margin: 2px 4px 2px 0;
        }

        .tag.green {
            background: #4ade8012;
            color: var(--accent-green);
            border: 1px solid #4ade8028;
        }

        .tag.blue {
            background: #38bdf812;
            color: var(--accent-next);
            border: 1px solid #38bdf828;
        }

        .tag.amber {
            background: #fbbf2412;
            color: var(--accent-amber);
            border: 1px solid #fbbf2428;
        }

        .tag.coral {
            background: #fb718512;
            color: var(--accent-coral);
            border: 1px solid #fb718528;
        }

        .tag.violet {
            background: #a78bfa12;
            color: var(--accent-violet);
            border: 1px solid #a78bfa28;
        }

        /* ── WIDGET GRID ── */
        .widget-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-bottom: 32px;
        }

        .widget-item {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 14px;
            transition: border-color 0.14s;
        }

        .widget-item:hover {
            border-color: var(--border-active);
        }

        .wname {
            font-family: var(--mono);
            font-size: 12px;
            color: var(--accent-flutter);
            font-weight: 500;
            margin-bottom: 3px;
        }

        .wjs {
            font-family: var(--mono);
            font-size: 10.5px;
            color: var(--accent-next);
            opacity: 0.7;
            margin-bottom: 6px;
        }

        .wdesc {
            font-size: 12px;
            color: var(--text-muted);
            line-height: 1.5;
        }

        /* ── STATE CARDS ── */
        .state-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 14px;
            margin-bottom: 32px;
        }

        .state-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 20px;
            transition: all 0.18s;
        }

        .state-card:hover {
            border-color: var(--border-active);
            transform: translateY(-2px);
        }

        .sc-label {
            font-family: var(--mono);
            font-size: 10px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.12em;
            margin-bottom: 10px;
        }

        .state-card h4 {
            font-family: var(--display);
            font-size: 20px;
            font-weight: 700;
            font-style: italic;
            margin-bottom: 7px;
        }

        .state-card p {
            font-size: 12.5px;
            color: var(--text-muted);
            line-height: 1.6;
            margin-bottom: 10px;
        }

        .state-card .eq {
            font-family: var(--mono);
            font-size: 10.5px;
            color: var(--accent-next);
            background: #38bdf80e;
            border: 1px solid #38bdf820;
            padding: 3px 9px;
            border-radius: 4px;
            display: inline-block;
        }

        /* ── SECTION NAV ── */
        .section-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 28px 60px 56px;
            border-top: 1px solid var(--border);
            margin-top: 40px;
        }

        .nav-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--surface);
            border: 1px solid var(--border);
            color: var(--text-muted);
            padding: 11px 18px;
            border-radius: 10px;
            cursor: pointer;
            font-family: var(--sans);
            font-size: 13px;
            transition: all 0.16s;
            text-decoration: none;
        }

        .nav-btn:hover {
            border-color: var(--border-active);
            color: var(--text);
        }

        .nav-btn.prev:hover {
            transform: translateX(-3px);
        }

        .nav-btn.nxt {
            background: #67d9fc0e;
            border-color: #67d9fc28;
            color: var(--accent-flutter);
        }

        .nav-btn.nxt:hover {
            background: #67d9fc18;
            transform: translateX(3px);
        }

        .nav-btn.done {
            background: #4ade800e;
            border-color: #4ade8028;
            color: var(--accent-green);
        }

        .nb-stack {
            display: flex;
            flex-direction: column;
            gap: 1px;
        }

        .nb-lbl {
            font-size: 10.5px;
            color: var(--text-dim);
            font-family: var(--mono);
        }

        .nav-btn.nxt .nb-lbl {
            color: #67d9fc80;
        }

        .nav-btn.done .nb-lbl {
            color: #4ade8080;
        }

        .nb-title {
            font-weight: 500;
        }

        @media (max-width: 900px) {
            .shell {
                grid-template-columns: 1fr;
            }

            .sidebar {
                display: none;
            }

            .section-hero,
            .section-body {
                padding: 28px 20px;
            }

            .compare-grid,
            .cards-2,
            .lifecycle-flow,
            .state-grid {
                grid-template-columns: 1fr;
            }

            .section-nav {
                padding: 20px;
                flex-direction: column;
                gap: 10px;
            }

            .widget-grid,
            .cards-3 {
                grid-template-columns: 1fr 1fr;
            }

            .stack-col-wrap {
                grid-template-columns: 1fr 1fr;
            }

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

        ::-webkit-scrollbar {
            width: 4px;
            height: 4px;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--border-active);
            border-radius: 2px;
        }
    

                        /* ── LIFECYCLE SIMULATOR ── */
                        .lc-simulator {
                            display: grid;
                            grid-template-columns: 220px 1fr;
                            gap: 20px;
                            margin-bottom: 36px;
                            align-items: start;
                        }

                        /* Phone mockup */
                        .lc-phone-wrap {
                            display: flex;
                            flex-direction: column;
                            align-items: center;
                            gap: 14px;
                            position: sticky;
                            top: 20px;
                        }

                        .lc-phone {
                            width: 160px;
                            height: 310px;
                            background: #0d0d16;
                            border: 2.5px solid #3a3a5a;
                            border-radius: 28px;
                            position: relative;
                            overflow: hidden;
                            box-shadow: 0 0 0 4px #17171f, 0 20px 60px #000a;
                            transition: all 0.4s ease;
                            flex-shrink: 0;
                        }

                        .lc-phone.state-resumed {
                            border-color: var(--accent-green);
                            box-shadow: 0 0 0 4px #17171f, 0 0 30px #4ade8040, 0 20px 60px #000a;
                        }

                        .lc-phone.state-inactive {
                            border-color: var(--accent-amber);
                            box-shadow: 0 0 0 4px #17171f, 0 0 30px #fbbf2430, 0 20px 60px #000a;
                        }

                        .lc-phone.state-paused {
                            border-color: #4a4a6a;
                            box-shadow: 0 0 0 4px #17171f, 0 20px 60px #000a;
                        }

                        .lc-phone.state-detached {
                            border-color: var(--accent-coral);
                            box-shadow: 0 0 0 4px #17171f, 0 0 20px #fb718530, 0 20px 60px #000a;
                        }

                        .lc-phone.state-hidden {
                            border-color: #2a2a4a;
                            box-shadow: 0 0 0 4px #17171f, 0 20px 60px #000a;
                            opacity: 0.6;
                        }

                        /* Phone notch */
                        .lc-phone::before {
                            content: '';
                            position: absolute;
                            top: 10px;
                            left: 50%;
                            transform: translateX(-50%);
                            width: 50px;
                            height: 8px;
                            background: #17171f;
                            border-radius: 4px;
                            z-index: 2;
                        }

                        /* Phone screen */
                        .lc-screen {
                            position: absolute;
                            inset: 0;
                            display: flex;
                            flex-direction: column;
                            align-items: center;
                            justify-content: center;
                            gap: 8px;
                            padding: 24px 12px 12px;
                            transition: all 0.4s ease;
                        }

                        .lc-screen-icon {
                            font-size: 32px;
                            transition: all 0.3s;
                        }

                        .lc-screen-status {
                            font-family: var(--mono);
                            font-size: 10px;
                            font-weight: 600;
                            letter-spacing: 0.08em;
                            text-align: center;
                            line-height: 1.4;
                            transition: color 0.3s;
                        }

                        .lc-screen-sub {
                            font-family: var(--mono);
                            font-size: 9px;
                            color: var(--text-dim);
                            text-align: center;
                            line-height: 1.5;
                        }

                        /* phone overlay for inactive/paused states */
                        .lc-overlay {
                            position: absolute;
                            inset: 0;
                            background: rgba(0, 0, 0, 0);
                            transition: background 0.4s ease;
                            pointer-events: none;
                            z-index: 1;
                            display: flex;
                            align-items: flex-top;
                            justify-content: flex-end;
                        }

                        .lc-phone.state-inactive .lc-overlay {
                            background: rgba(0, 0, 0, 0.3);
                        }

                        .lc-phone.state-paused .lc-overlay {
                            background: rgba(0, 0, 0, 0.75);
                        }

                        .lc-phone.state-detached .lc-overlay {
                            background: rgba(10, 0, 0, 0.88);
                        }

                        .lc-phone.state-hidden .lc-overlay {
                            background: rgba(0, 0, 0, 0.6);
                        }

                        /* notification shade for inactive */
                        .lc-shade {
                            position: absolute;
                            top: 0;
                            left: 0;
                            right: 0;
                            height: 0;
                            background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
                            border-bottom: 1px solid #3a3a6a;
                            transition: height 0.35s ease;
                            overflow: hidden;
                            z-index: 3;
                            display: flex;
                            align-items: flex-end;
                            padding: 8px;
                        }

                        .lc-phone.state-inactive .lc-shade {
                            height: 100px;
                        }

                        .lc-shade-content {
                            font-family: var(--mono);
                            font-size: 9px;
                            color: #8888aa;
                            width: 100%;
                        }

                        .lc-shade-notif {
                            background: #2a2a4a;
                            border-radius: 6px;
                            padding: 6px 8px;
                            margin-bottom: 4px;
                            font-size: 9px;
                            color: #aaaacc;
                        }

                        /* home screen for paused */
                        .lc-homescreen {
                            position: absolute;
                            inset: 0;
                            background: linear-gradient(135deg, #0d0d20, #1a1a3a);
                            display: flex;
                            flex-wrap: wrap;
                            gap: 10px;
                            padding: 40px 14px 14px;
                            align-content: flex-start;
                            opacity: 0;
                            transition: opacity 0.4s ease;
                            z-index: 2;
                        }

                        .lc-phone.state-paused .lc-homescreen,
                        .lc-phone.state-hidden .lc-homescreen {
                            opacity: 1;
                        }

                        .lc-app-icon {
                            width: 36px;
                            height: 36px;
                            border-radius: 10px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            font-size: 16px;
                            background: #ffffff12;
                        }

                        /* trigger buttons below phone */
                        .lc-triggers {
                            width: 160px;
                            display: flex;
                            flex-direction: column;
                            gap: 5px;
                        }

                        .lc-trigger-btn {
                            width: 100%;
                            padding: 7px 10px;
                            border-radius: 8px;
                            border: 1px solid var(--border);
                            background: var(--surface);
                            color: var(--text-muted);
                            font-family: var(--mono);
                            font-size: 10px;
                            cursor: pointer;
                            text-align: left;
                            transition: all 0.15s;
                            display: flex;
                            align-items: center;
                            gap: 6px;
                        }

                        .lc-trigger-btn:hover {
                            border-color: var(--border-active);
                            color: var(--text);
                        }

                        .lc-trigger-btn.active {
                            border-color: var(--btn-color, var(--accent-flutter));
                            color: var(--btn-color, var(--accent-flutter));
                            background: color-mix(in srgb, var(--btn-color, var(--accent-flutter)) 8%, transparent);
                        }

                        .lc-trigger-btn .trigger-dot {
                            width: 6px;
                            height: 6px;
                            border-radius: 50%;
                            background: var(--btn-color, var(--text-dim));
                            flex-shrink: 0;
                        }

                        .lc-trigger-btn.active .trigger-dot {
                            box-shadow: 0 0 6px var(--btn-color, var(--accent-flutter));
                        }

                        /* Detail panel */
                        .lc-detail {
                            display: flex;
                            flex-direction: column;
                            gap: 0;
                            min-height: 500px;
                        }

                        .lc-detail-header {
                            padding: 18px 22px;
                            border: 1px solid var(--border);
                            border-radius: 12px 12px 0 0;
                            background: var(--surface);
                            border-bottom: none;
                        }

                        .lc-detail-state-name {
                            font-family: var(--display);
                            font-size: 22px;
                            font-weight: 700;
                            font-style: italic;
                            margin-bottom: 4px;
                            transition: color 0.25s;
                        }

                        .lc-detail-desc {
                            font-size: 13.5px;
                            color: var(--text-muted);
                            line-height: 1.65;
                            margin-bottom: 12px;
                        }

                        .lc-detail-badges {
                            display: flex;
                            flex-wrap: wrap;
                            gap: 6px;
                        }

                        .lc-badge {
                            font-family: var(--mono);
                            font-size: 10px;
                            padding: 3px 9px;
                            border-radius: 4px;
                            border: 1px solid;
                        }

                        .lc-badge.android {
                            background: #78c85015;
                            color: #78c850;
                            border-color: #78c85030;
                        }

                        .lc-badge.ios {
                            background: #a8b8c815;
                            color: #a8b8c8;
                            border-color: #a8b8c830;
                        }

                        .lc-badge.flutter {
                            background: #67d9fc15;
                            color: var(--accent-flutter);
                            border-color: #67d9fc30;
                        }

                        .lc-badge.warn {
                            background: #fb718515;
                            color: var(--accent-coral);
                            border-color: #fb718530;
                        }

                        /* Tab switcher */
                        .lc-tabs {
                            display: flex;
                            border: 1px solid var(--border);
                            border-top: none;
                            border-bottom: none;
                            background: var(--surface2);
                        }

                        .lc-tab {
                            flex: 1;
                            padding: 10px 0;
                            font-family: var(--mono);
                            font-size: 11px;
                            text-align: center;
                            cursor: pointer;
                            color: var(--text-dim);
                            border-bottom: 2px solid transparent;
                            transition: all 0.15s;
                            letter-spacing: 0.04em;
                        }

                        .lc-tab:hover {
                            color: var(--text-muted);
                        }

                        .lc-tab.active {
                            color: var(--accent-flutter);
                            border-bottom-color: var(--accent-flutter);
                        }

                        /* Code/detail pane */
                        .lc-pane {
                            display: none;
                            border: 1px solid var(--border);
                            border-top: none;
                            border-radius: 0 0 12px 12px;
                            background: var(--surface);
                            overflow: hidden;
                        }

                        .lc-pane.active {
                            display: block;
                        }

                        .lc-what-panel {
                            padding: 20px 22px;
                        }

                        .lc-what-row {
                            display: grid;
                            grid-template-columns: 1fr 1fr;
                            gap: 12px;
                            margin-bottom: 12px;
                        }

                        .lc-what-col h5 {
                            font-family: var(--mono);
                            font-size: 10px;
                            letter-spacing: 0.14em;
                            text-transform: uppercase;
                            color: var(--text-dim);
                            margin-bottom: 8px;
                        }

                        .lc-what-item {
                            display: flex;
                            align-items: flex-start;
                            gap: 8px;
                            padding: 7px 10px;
                            border-radius: 7px;
                            background: var(--surface2);
                            font-size: 12.5px;
                            color: var(--text-muted);
                            line-height: 1.5;
                            margin-bottom: 5px;
                        }

                        .lc-what-item.do {
                            border-left: 2px solid var(--accent-green);
                        }

                        .lc-what-item.dont {
                            border-left: 2px solid var(--accent-coral);
                        }

                        .lc-what-item.neutral {
                            border-left: 2px solid var(--border-active);
                        }

                        .lc-what-icon {
                            font-size: 14px;
                            flex-shrink: 0;
                            margin-top: 1px;
                        }

                        /* Log panel */
                        .lc-log-panel {
                            padding: 0;
                        }

                        .lc-log-header {
                            display: flex;
                            align-items: center;
                            justify-content: space-between;
                            padding: 10px 16px;
                            border-bottom: 1px solid var(--border);
                        }

                        .lc-log-title {
                            font-family: var(--mono);
                            font-size: 11px;
                            color: var(--text-muted);
                            letter-spacing: 0.06em;
                        }

                        .lc-log-clear {
                            font-family: var(--mono);
                            font-size: 10px;
                            color: var(--text-dim);
                            background: none;
                            border: none;
                            cursor: pointer;
                            transition: color 0.15s;
                        }

                        .lc-log-clear:hover {
                            color: var(--accent-coral);
                        }

                        .lc-log-entries {
                            min-height: 180px;
                            max-height: 280px;
                            overflow-y: auto;
                            padding: 10px 16px;
                            display: flex;
                            flex-direction: column;
                            gap: 3px;
                        }

                        .lc-log-entry {
                            display: flex;
                            align-items: baseline;
                            gap: 10px;
                            font-family: var(--mono);
                            font-size: 11.5px;
                            padding: 4px 0;
                            border-bottom: 1px solid var(--border);
                            animation: logIn 0.2s ease;
                        }

                        @keyframes logIn {
                            from {
                                opacity: 0;
                                transform: translateX(-6px);
                            }

                            to {
                                opacity: 1;
                                transform: none;
                            }
                        }

                        .log-ts {
                            color: var(--text-dim);
                            font-size: 10px;
                            flex-shrink: 0;
                        }

                        .log-event {
                            flex-shrink: 0;
                            font-weight: 500;
                        }

                        .log-event.green {
                            color: var(--accent-green);
                        }

                        .log-event.amber {
                            color: var(--accent-amber);
                        }

                        .log-event.dim {
                            color: var(--text-muted);
                        }

                        .log-event.coral {
                            color: var(--accent-coral);
                        }

                        .log-event.blue {
                            color: var(--accent-flutter);
                        }

                        .log-msg {
                            color: var(--text-muted);
                            font-size: 11px;
                        }

                        /* React comparison tab */
                        .lc-react-panel {
                            padding: 0;
                        }

                        /* Hint text below phone */
                        .lc-hint {
                            font-family: var(--mono);
                            font-size: 10px;
                            color: var(--text-dim);
                            text-align: center;
                            line-height: 1.5;
                        }

                        /* transitions for detail content */
                        .lc-detail-content {
                            animation: detailIn 0.22s ease;
                        }

                        @keyframes detailIn {
                            from {
                                opacity: 0;
                                transform: translateY(6px);
                            }

                            to {
                                opacity: 1;
                                transform: none;
                            }
                        }

                        @media (max-width: 860px) {
                            .lc-simulator {
                                grid-template-columns: 1fr;
                            }

                            .lc-phone-wrap {
                                flex-direction: row;
                                align-items: flex-start;
                            }

                            .lc-what-row {
                                grid-template-columns: 1fr;
                            }
                        }
                    

                        /* ══ NAV SIMULATOR STYLES ══ */
                        .nav-sim {
                            display: grid;
                            grid-template-columns: 1fr 340px;
                            gap: 20px;
                            margin-bottom: 36px;
                            align-items: start;
                        }

                        /* ── Left panel: controls + info ── */
                        .nav-left {
                            display: flex;
                            flex-direction: column;
                            gap: 16px;
                        }

                        /* Operation buttons grid */
                        .nav-ops-grid {
                            display: grid;
                            grid-template-columns: 1fr 1fr;
                            gap: 8px;
                        }

                        .nav-op-btn {
                            padding: 12px 14px;
                            border-radius: 10px;
                            border: 1px solid var(--border);
                            background: var(--surface);
                            color: var(--text-muted);
                            font-family: var(--mono);
                            font-size: 11.5px;
                            cursor: pointer;
                            text-align: left;
                            transition: all 0.15s;
                            display: flex;
                            flex-direction: column;
                            gap: 4px;
                            position: relative;
                            overflow: hidden;
                        }

                        .nav-op-btn::before {
                            content: '';
                            position: absolute;
                            top: 0;
                            left: 0;
                            right: 0;
                            height: 2px;
                            background: var(--op-color, var(--accent-flutter));
                            opacity: 0;
                            transition: opacity 0.15s;
                        }

                        .nav-op-btn:hover {
                            border-color: var(--op-color, var(--accent-flutter));
                            color: var(--text);
                            background: var(--surface2);
                        }

                        .nav-op-btn:hover::before,
                        .nav-op-btn.just-fired::before {
                            opacity: 1;
                        }

                        .nav-op-btn.just-fired {
                            border-color: var(--op-color, var(--accent-flutter));
                            background: color-mix(in srgb, var(--op-color, var(--accent-flutter)) 8%, transparent);
                            animation: opFire 0.35s ease;
                        }

                        @keyframes opFire {
                            0% {
                                transform: scale(1);
                            }

                            35% {
                                transform: scale(1.025);
                            }

                            100% {
                                transform: scale(1);
                            }
                        }

                        .nav-op-btn:disabled {
                            opacity: 0.35;
                            cursor: not-allowed;
                            pointer-events: none;
                        }

                        .nob-name {
                            font-weight: 600;
                            font-size: 12.5px;
                            color: var(--op-color, var(--text));
                        }

                        .nob-sig {
                            font-size: 10px;
                            color: var(--text-dim);
                        }

                        .nob-desc {
                            font-size: 10.5px;
                            color: var(--text-muted);
                            line-height: 1.4;
                            margin-top: 2px;
                        }

                        /* Info panel under buttons */
                        .nav-info-box {
                            background: var(--surface);
                            border: 1px solid var(--border);
                            border-radius: 10px;
                            overflow: hidden;
                        }

                        .nav-info-header {
                            padding: 10px 16px;
                            background: var(--surface2);
                            border-bottom: 1px solid var(--border);
                            font-family: var(--mono);
                            font-size: 10px;
                            color: var(--text-dim);
                            letter-spacing: 0.12em;
                            text-transform: uppercase;
                            display: flex;
                            align-items: center;
                            justify-content: space-between;
                        }

                        .nav-info-content {
                            padding: 14px 16px;
                            animation: infoIn 0.2s ease;
                        }

                        @keyframes infoIn {
                            from {
                                opacity: 0;
                                transform: translateY(4px);
                            }

                            to {
                                opacity: 1;
                                transform: none;
                            }
                        }

                        .nav-info-op-name {
                            font-family: var(--display);
                            font-size: 18px;
                            font-weight: 700;
                            font-style: italic;
                            margin-bottom: 6px;
                        }

                        .nav-info-desc {
                            font-size: 13px;
                            color: var(--text-muted);
                            line-height: 1.6;
                            margin-bottom: 10px;
                        }

                        .nav-info-next {
                            font-family: var(--mono);
                            font-size: 10px;
                            color: var(--text-dim);
                        }

                        /* Code display */
                        .nav-code-box {
                            background: var(--surface);
                            border: 1px solid var(--border);
                            border-radius: 10px;
                            overflow: hidden;
                        }

                        .nav-code-tabs-row {
                            display: flex;
                            border-bottom: 1px solid var(--border);
                            background: var(--surface2);
                        }

                        .nav-ctab {
                            padding: 8px 14px;
                            font-family: var(--mono);
                            font-size: 10.5px;
                            color: var(--text-dim);
                            cursor: pointer;
                            border-right: 1px solid var(--border);
                            transition: all 0.14s;
                            letter-spacing: 0.04em;
                        }

                        .nav-ctab:hover {
                            color: var(--text-muted);
                        }

                        .nav-ctab.active {
                            color: var(--accent-next);
                            background: #38bdf808;
                        }

                        /* Log panel */
                        .nav-log-wrap {
                            background: var(--surface);
                            border: 1px solid var(--border);
                            border-radius: 10px;
                            overflow: hidden;
                        }

                        .nav-log-header {
                            display: flex;
                            align-items: center;
                            justify-content: space-between;
                            padding: 9px 14px;
                            background: var(--surface2);
                            border-bottom: 1px solid var(--border);
                        }

                        .nav-log-title {
                            font-family: var(--mono);
                            font-size: 10px;
                            color: var(--text-dim);
                            letter-spacing: 0.1em;
                            text-transform: uppercase;
                        }

                        .nav-log-clear {
                            font-family: var(--mono);
                            font-size: 10px;
                            color: var(--text-dim);
                            background: none;
                            border: none;
                            cursor: pointer;
                        }

                        .nav-log-clear:hover {
                            color: var(--accent-coral);
                        }

                        .nav-log-entries {
                            max-height: 160px;
                            overflow-y: auto;
                            padding: 8px 14px;
                            display: flex;
                            flex-direction: column;
                            gap: 2px;
                            scrollbar-width: thin;
                        }

                        .nav-log-row {
                            display: flex;
                            align-items: baseline;
                            gap: 8px;
                            font-family: var(--mono);
                            font-size: 11px;
                            padding: 3px 0;
                            border-bottom: 1px solid var(--border);
                            animation: logIn 0.18s ease;
                        }

                        .nav-log-ts {
                            color: var(--text-dim);
                            font-size: 10px;
                            flex-shrink: 0;
                        }

                        .nav-log-op {
                            font-weight: 600;
                            flex-shrink: 0;
                        }

                        .nav-log-msg {
                            color: var(--text-muted);
                            font-size: 10.5px;
                        }

                        /* ── Right panel: Phone mockup ── */
                        .nav-phone-panel {
                            display: flex;
                            flex-direction: column;
                            align-items: center;
                            gap: 14px;
                            position: sticky;
                            top: 20px;
                        }

                        /* Tab switcher on phone */
                        .nav-tab-switcher {
                            display: flex;
                            gap: 5px;
                            background: var(--surface2);
                            border: 1px solid var(--border);
                            border-radius: 8px;
                            padding: 4px;
                            width: 100%;
                            max-width: 340px;
                        }

                        .nav-tab-btn {
                            flex: 1;
                            padding: 7px 0;
                            border-radius: 6px;
                            border: 1px solid transparent;
                            font-family: var(--mono);
                            font-size: 10px;
                            color: var(--text-dim);
                            cursor: pointer;
                            background: none;
                            transition: all 0.15s;
                            text-align: center;
                            letter-spacing: 0.04em;
                        }

                        .nav-tab-btn:hover {
                            color: var(--text-muted);
                        }

                        .nav-tab-btn.active {
                            background: var(--surface);
                            border-color: var(--border-active);
                            color: var(--text);
                        }

                        /* Phone chrome */
                        .nav-phone {
                            width: 200px;
                            background: #0a0a12;
                            border: 2.5px solid #2a2a44;
                            border-radius: 32px;
                            box-shadow: 0 0 0 4px #15151e, 0 24px 70px #0008;
                            position: relative;
                            overflow: hidden;
                            transition: border-color 0.3s;
                        }

                        .nav-phone::before {
                            content: '';
                            position: absolute;
                            top: 12px;
                            left: 50%;
                            transform: translateX(-50%);
                            width: 56px;
                            height: 9px;
                            background: #15151e;
                            border-radius: 5px;
                            z-index: 10;
                        }

                        /* status bar */
                        .nav-statusbar {
                            display: flex;
                            justify-content: space-between;
                            padding: 6px 14px 4px;
                            font-family: var(--mono);
                            font-size: 9px;
                            color: #55556a;
                            margin-top: 24px;
                            flex-shrink: 0;
                        }

                        /* Screen area */
                        .nav-screen-area {
                            position: relative;
                            height: 460px;
                            overflow: hidden;
                        }

                        /* Individual screen cards stacked */
                        .nav-screen {
                            position: absolute;
                            inset: 0;
                            display: flex;
                            flex-direction: column;
                            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
                        }

                        /* Screens below the top slide to the left */
                        .nav-screen.below {
                            transform: translateX(-30%);
                            opacity: 0.4;
                        }

                        /* Hidden screens (stacked below below) */
                        .nav-screen.hidden {
                            transform: translateX(-50%);
                            opacity: 0;
                            pointer-events: none;
                        }

                        /* Active (top) screen */
                        .nav-screen.active {
                            transform: translateX(0);
                            opacity: 1;
                            z-index: 5;
                        }

                        /* Entering from right */
                        .nav-screen.entering {
                            transform: translateX(100%);
                            opacity: 0;
                        }

                        /* Exiting to right */
                        .nav-screen.exiting {
                            transform: translateX(105%);
                            opacity: 0;
                            z-index: 6;
                        }

                        /* Modal slides up from bottom */
                        .nav-screen.modal-enter {
                            transform: translateY(100%);
                            opacity: 0;
                        }

                        .nav-screen.modal-active {
                            transform: translateY(0);
                            opacity: 1;
                            z-index: 7;
                            border-radius: 16px 16px 0 0;
                        }

                        .nav-screen.modal-exit {
                            transform: translateY(110%);
                            opacity: 0;
                        }

                        /* AppBar inside screen */
                        .nav-appbar {
                            display: flex;
                            align-items: center;
                            gap: 10px;
                            padding: 10px 14px;
                            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
                            flex-shrink: 0;
                        }

                        .nav-back-btn {
                            width: 28px;
                            height: 28px;
                            border-radius: 50%;
                            background: rgba(255, 255, 255, 0.06);
                            border: none;
                            color: var(--accent-flutter);
                            cursor: pointer;
                            font-size: 14px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            transition: background 0.15s;
                            flex-shrink: 0;
                        }

                        .nav-back-btn:hover {
                            background: rgba(255, 255, 255, 0.12);
                        }

                        .nav-back-btn:disabled {
                            opacity: 0.2;
                            cursor: default;
                        }

                        .nav-appbar-title {
                            font-family: var(--sans);
                            font-size: 14px;
                            font-weight: 600;
                            color: var(--text);
                            flex: 1;
                        }

                        .nav-appbar-route {
                            font-family: var(--mono);
                            font-size: 9px;
                            color: var(--text-dim);
                        }

                        /* Screen body */
                        .nav-screen-body {
                            flex: 1;
                            padding: 16px 14px;
                            display: flex;
                            flex-direction: column;
                            gap: 10px;
                            overflow: hidden;
                        }

                        /* Screen-specific content */
                        .ns-section-label {
                            font-family: var(--mono);
                            font-size: 9px;
                            color: var(--text-dim);
                            letter-spacing: 0.12em;
                            text-transform: uppercase;
                            margin-bottom: 2px;
                        }

                        .ns-list-item {
                            display: flex;
                            align-items: center;
                            gap: 10px;
                            padding: 9px 10px;
                            border-radius: 8px;
                            background: rgba(255, 255, 255, 0.04);
                            cursor: pointer;
                            transition: background 0.14s;
                            border: 1px solid transparent;
                        }

                        .ns-list-item:hover {
                            background: rgba(255, 255, 255, 0.07);
                            border-color: rgba(255, 255, 255, 0.08);
                        }

                        .ns-item-icon {
                            font-size: 18px;
                            flex-shrink: 0;
                        }

                        .ns-item-text {
                            flex: 1;
                        }

                        .ns-item-name {
                            font-size: 12px;
                            font-weight: 500;
                            color: var(--text);
                        }

                        .ns-item-sub {
                            font-size: 10px;
                            color: var(--text-muted);
                            font-family: var(--mono);
                        }

                        .ns-item-arrow {
                            font-size: 10px;
                            color: var(--text-dim);
                        }

                        .ns-badge {
                            padding: 4px 10px;
                            border-radius: 12px;
                            font-family: var(--mono);
                            font-size: 10px;
                            font-weight: 500;
                        }

                        .ns-badge.green {
                            background: #4ade8018;
                            color: var(--accent-green);
                            border: 1px solid #4ade8030;
                        }

                        .ns-badge.blue {
                            background: #38bdf818;
                            color: var(--accent-next);
                            border: 1px solid #38bdf830;
                        }

                        .ns-badge.amber {
                            background: #fbbf2418;
                            color: var(--accent-amber);
                            border: 1px solid #fbbf2430;
                        }

                        .ns-badge.coral {
                            background: #fb718518;
                            color: var(--accent-coral);
                            border: 1px solid #fb718530;
                        }

                        .ns-badge.violet {
                            background: #a78bfa18;
                            color: var(--accent-violet);
                            border: 1px solid #a78bfa30;
                        }

                        .ns-detail-hero {
                            background: linear-gradient(135deg, #1a1a30, #12122a);
                            border-radius: 10px;
                            padding: 16px;
                            text-align: center;
                            border: 1px solid rgba(255, 255, 255, 0.06);
                        }

                        .ns-detail-emoji {
                            font-size: 36px;
                            margin-bottom: 6px;
                            display: block;
                        }

                        .ns-detail-name {
                            font-size: 14px;
                            font-weight: 600;
                            color: var(--text);
                        }

                        .ns-detail-price {
                            font-family: var(--mono);
                            font-size: 13px;
                            color: var(--accent-green);
                        }

                        .ns-action-btn {
                            width: 100%;
                            padding: 10px;
                            border-radius: 8px;
                            border: 1px solid;
                            font-family: var(--mono);
                            font-size: 11px;
                            font-weight: 500;
                            cursor: pointer;
                            transition: all 0.14s;
                            text-align: center;
                        }

                        .ns-action-btn.primary {
                            background: var(--accent-flutter);
                            border-color: var(--accent-flutter);
                            color: #000;
                        }

                        .ns-action-btn.primary:hover {
                            opacity: 0.85;
                        }

                        .ns-action-btn.secondary {
                            background: rgba(255, 255, 255, 0.04);
                            border-color: rgba(255, 255, 255, 0.12);
                            color: var(--text-muted);
                        }

                        .ns-action-btn.secondary:hover {
                            color: var(--text);
                            border-color: rgba(255, 255, 255, 0.2);
                        }

                        .ns-result-box {
                            background: rgba(74, 222, 128, 0.08);
                            border: 1px solid rgba(74, 222, 128, 0.2);
                            border-radius: 8px;
                            padding: 10px;
                            font-family: var(--mono);
                            font-size: 11px;
                            color: var(--accent-green);
                            text-align: center;
                            display: none;
                        }

                        .ns-result-box.visible {
                            display: block;
                            animation: resultShow 0.3s ease;
                        }

                        @keyframes resultShow {
                            from {
                                opacity: 0;
                                transform: scale(0.9);
                            }

                            to {
                                opacity: 1;
                                transform: scale(1);
                            }
                        }

                        .ns-modal-handle {
                            width: 36px;
                            height: 4px;
                            border-radius: 2px;
                            background: rgba(255, 255, 255, 0.15);
                            margin: 8px auto 4px;
                            flex-shrink: 0;
                        }

                        .ns-form-field {
                            background: rgba(255, 255, 255, 0.04);
                            border: 1px solid rgba(255, 255, 255, 0.1);
                            border-radius: 7px;
                            padding: 8px 10px;
                            font-family: var(--mono);
                            font-size: 11px;
                            color: var(--text-muted);
                        }

                        .ns-form-label {
                            font-size: 10px;
                            color: var(--text-dim);
                            font-family: var(--mono);
                            margin-bottom: 3px;
                        }

                        /* Bottom navigation bar on phone */
                        .nav-bottombar {
                            display: flex;
                            border-top: 1px solid rgba(255, 255, 255, 0.06);
                            padding: 6px 0 10px;
                            flex-shrink: 0;
                        }

                        .nav-tab-item {
                            flex: 1;
                            display: flex;
                            flex-direction: column;
                            align-items: center;
                            gap: 2px;
                            padding: 4px 0;
                            cursor: pointer;
                            border: none;
                            background: none;
                            transition: all 0.15s;
                        }

                        .nav-tab-icon {
                            font-size: 18px;
                            transition: transform 0.15s;
                        }

                        .nav-tab-label {
                            font-family: var(--mono);
                            font-size: 8px;
                            color: var(--text-dim);
                            transition: color 0.15s;
                        }

                        .nav-tab-item.active .nav-tab-icon {
                            transform: scale(1.15);
                        }

                        .nav-tab-item.active .nav-tab-label {
                            color: var(--accent-flutter);
                        }

                        /* Stack depth indicator */
                        .nav-stack-indicator {
                            display: flex;
                            align-items: center;
                            gap: 6px;
                            padding: 4px 10px;
                            border-top: 1px solid rgba(255, 255, 255, 0.04);
                            flex-shrink: 0;
                        }

                        .nav-si-label {
                            font-family: var(--mono);
                            font-size: 9px;
                            color: var(--text-dim);
                        }

                        .nav-si-dots {
                            display: flex;
                            gap: 4px;
                        }

                        .nav-si-dot {
                            width: 8px;
                            height: 8px;
                            border-radius: 2px;
                            background: var(--text-dim);
                            transition: all 0.25s;
                        }

                        .nav-si-dot.active {
                            background: var(--accent-flutter);
                            box-shadow: 0 0 6px var(--accent-flutter);
                        }

                        .nav-si-dot.below {
                            background: #3a3a5a;
                        }

                        /* URL bar under phone */
                        .nav-url-bar {
                            width: 100%;
                            max-width: 340px;
                            background: var(--surface);
                            border: 1px solid var(--border);
                            border-radius: 8px;
                            padding: 7px 12px;
                            font-family: var(--mono);
                            font-size: 11px;
                            color: var(--text-muted);
                            display: flex;
                            align-items: center;
                            gap: 8px;
                        }

                        .nav-url-label {
                            font-size: 9px;
                            color: var(--text-dim);
                            flex-shrink: 0;
                        }

                        .nav-url-value {
                            color: var(--accent-next);
                            transition: all 0.2s;
                        }

                        @media (max-width: 900px) {
                            .nav-sim {
                                grid-template-columns: 1fr;
                            }

                            .nav-phone-panel {
                                position: static;
                            }

                            .nav-ops-grid {
                                grid-template-columns: 1fr 1fr;
                            }
                        }
                    

                            /* ── SM tabs ── */
                            .sm-tab {
                                padding: 10px 20px;
                                font-family: var(--mono);
                                font-size: 11.5px;
                                background: var(--surface2);
                                border: 1px solid var(--border);
                                border-bottom: none;
                                color: var(--text-muted);
                                cursor: pointer;
                                border-radius: 8px 8px 0 0;
                                transition: all 0.15s;
                                letter-spacing: 0.04em;
                            }

                            .sm-tab:hover {
                                color: var(--text);
                                background: var(--surface);
                            }

                            .sm-tab.active {
                                background: var(--surface);
                                color: var(--text);
                                border-color: var(--border-active);
                            }

                            .sm-pane {
                                display: none;
                            }

                            .sm-pane.active {
                                display: block;
                            }

                            /* ── BLOC PLAYGROUND ── */
                            .bloc-playground {
                                border: 1px solid #a78bfa30;
                                border-radius: 0 12px 12px 12px;
                                background: var(--surface);
                                overflow: hidden;
                            }

                            /* Top anatomy banner */
                            .bloc-anatomy {
                                display: grid;
                                grid-template-columns: 1fr 40px 1fr 40px 1fr;
                                gap: 0;
                                background: var(--surface2);
                                border-bottom: 1px solid var(--border);
                                padding: 0;
                            }

                            .bloc-layer {
                                padding: 14px 18px;
                                text-align: center;
                            }

                            .bloc-layer-name {
                                font-family: var(--display);
                                font-size: 16px;
                                font-weight: 700;
                                font-style: italic;
                                margin-bottom: 2px;
                            }

                            .bloc-layer-sub {
                                font-family: var(--mono);
                                font-size: 10px;
                                color: var(--text-dim);
                                letter-spacing: 0.08em;
                            }

                            .bloc-arrow-col {
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                font-size: 18px;
                                color: var(--text-dim);
                                border-left: 1px solid var(--border);
                                border-right: 1px solid var(--border);
                            }

                            /* Main 3-column layout */
                            .bloc-main {
                                display: grid;
                                grid-template-columns: 1fr 1fr 1fr;
                                gap: 0;
                                min-height: 540px;
                            }

                            .bloc-col {
                                border-right: 1px solid var(--border);
                                display: flex;
                                flex-direction: column;
                            }

                            .bloc-col:last-child {
                                border-right: none;
                            }

                            .bloc-col-header {
                                padding: 12px 16px 10px;
                                border-bottom: 1px solid var(--border);
                                display: flex;
                                align-items: center;
                                justify-content: space-between;
                            }

                            .bloc-col-title {
                                font-family: var(--mono);
                                font-size: 10px;
                                letter-spacing: 0.14em;
                                text-transform: uppercase;
                                color: var(--text-dim);
                            }

                            /* Event buttons */
                            .bloc-events-list {
                                padding: 14px 14px;
                                display: flex;
                                flex-direction: column;
                                gap: 7px;
                                flex: 1;
                            }

                            .bloc-event-btn {
                                width: 100%;
                                padding: 10px 14px;
                                border-radius: 8px;
                                border: 1px solid var(--border);
                                background: var(--surface2);
                                color: var(--text-muted);
                                font-family: var(--mono);
                                font-size: 11.5px;
                                cursor: pointer;
                                text-align: left;
                                transition: all 0.15s;
                                display: flex;
                                flex-direction: column;
                                gap: 3px;
                            }

                            .bloc-event-btn:hover {
                                border-color: var(--accent-violet);
                                color: var(--text);
                                background: #a78bfa0d;
                            }

                            .bloc-event-btn.fired {
                                border-color: var(--accent-violet);
                                background: #a78bfa18;
                                color: var(--accent-violet);
                                animation: eventFire 0.4s ease;
                            }

                            @keyframes eventFire {
                                0% {
                                    transform: scale(1);
                                }

                                40% {
                                    transform: scale(1.03);
                                }

                                100% {
                                    transform: scale(1);
                                }
                            }

                            .beb-name {
                                font-weight: 500;
                                font-size: 12px;
                            }

                            .beb-payload {
                                font-size: 10px;
                                color: var(--text-dim);
                            }

                            .beb-payload.fired-p {
                                color: #a78bfa80;
                            }

                            /* BLoC processing column */
                            .bloc-processing {
                                padding: 14px;
                                display: flex;
                                flex-direction: column;
                                gap: 8px;
                                flex: 1;
                            }

                            .bloc-handler {
                                border: 1px solid var(--border);
                                border-radius: 8px;
                                overflow: hidden;
                                transition: all 0.3s;
                            }

                            .bloc-handler.active-handler {
                                border-color: var(--accent-violet);
                                box-shadow: 0 0 12px #a78bfa20;
                            }

                            .bh-name {
                                padding: 7px 12px;
                                background: var(--surface2);
                                font-family: var(--mono);
                                font-size: 11px;
                                color: var(--text-muted);
                                border-bottom: 1px solid var(--border);
                                display: flex;
                                align-items: center;
                                gap: 6px;
                            }

                            .bh-name.active-bh {
                                color: var(--accent-violet);
                                background: #a78bfa0d;
                            }

                            .bh-dot {
                                width: 5px;
                                height: 5px;
                                border-radius: 50%;
                                background: var(--text-dim);
                                flex-shrink: 0;
                                transition: all 0.2s;
                            }

                            .active-bh .bh-dot {
                                background: var(--accent-violet);
                                box-shadow: 0 0 6px var(--accent-violet);
                            }

                            .bh-body {
                                padding: 8px 12px;
                                font-family: var(--mono);
                                font-size: 10.5px;
                                color: var(--text-dim);
                                line-height: 1.7;
                            }

                            .bh-body .hl {
                                color: var(--accent-violet);
                            }

                            .bh-body .act {
                                color: var(--accent-green);
                            }

                            /* Progress bar inside handler */
                            .bh-progress {
                                height: 2px;
                                background: var(--border);
                                margin: 4px 0 2px;
                                border-radius: 1px;
                                overflow: hidden;
                            }

                            .bh-progress-fill {
                                height: 100%;
                                width: 0%;
                                background: var(--accent-violet);
                                border-radius: 1px;
                                transition: width 0.6s linear;
                            }

                            /* State output column */
                            .bloc-state-display {
                                padding: 14px;
                                display: flex;
                                flex-direction: column;
                                gap: 10px;
                                flex: 1;
                            }

                            .bs-current {
                                border: 1px solid var(--border);
                                border-radius: 8px;
                                overflow: hidden;
                                transition: all 0.3s;
                            }

                            .bs-current.state-changed {
                                border-color: var(--accent-green);
                                box-shadow: 0 0 14px #4ade8020;
                                animation: stateFlash 0.5s ease;
                            }

                            @keyframes stateFlash {
                                0% {
                                    box-shadow: 0 0 0px #4ade8000;
                                }

                                50% {
                                    box-shadow: 0 0 20px #4ade8040;
                                }

                                100% {
                                    box-shadow: 0 0 14px #4ade8020;
                                }
                            }

                            .bs-label {
                                padding: 7px 12px;
                                background: var(--surface2);
                                font-family: var(--mono);
                                font-size: 10px;
                                color: var(--text-dim);
                                letter-spacing: 0.1em;
                                text-transform: uppercase;
                                border-bottom: 1px solid var(--border);
                            }

                            .bs-body {
                                padding: 12px;
                                font-family: var(--mono);
                                font-size: 11.5px;
                                line-height: 1.8;
                            }

                            .bs-field {
                                display: flex;
                                justify-content: space-between;
                                gap: 8px;
                            }

                            .bs-key {
                                color: var(--text-dim);
                            }

                            .bs-val {
                                color: var(--accent-green);
                                font-weight: 500;
                                transition: color 0.3s;
                            }

                            .bs-val.changed {
                                color: var(--accent-amber);
                                animation: valChange 0.4s ease;
                            }

                            @keyframes valChange {
                                0% {
                                    color: var(--accent-flutter);
                                }

                                60% {
                                    color: var(--accent-amber);
                                }

                                100% {
                                    color: var(--accent-green);
                                }
                            }

                            /* Widget rebuild flash */
                            .bs-widget {
                                border: 1px solid var(--border);
                                border-radius: 8px;
                                overflow: hidden;
                                transition: border-color 0.3s;
                            }

                            .bs-widget.rebuilding {
                                border-color: var(--accent-flutter);
                                animation: rebuildFlash 0.5s ease;
                            }

                            @keyframes rebuildFlash {
                                0% {
                                    background: transparent;
                                }

                                30% {
                                    background: #67d9fc0a;
                                }

                                100% {
                                    background: transparent;
                                }
                            }

                            .bw-header {
                                padding: 7px 12px;
                                background: var(--surface2);
                                font-family: var(--mono);
                                font-size: 10px;
                                color: var(--text-dim);
                                letter-spacing: 0.1em;
                                text-transform: uppercase;
                                border-bottom: 1px solid var(--border);
                                display: flex;
                                align-items: center;
                                justify-content: space-between;
                            }

                            .bw-rebuild-tag {
                                font-size: 9px;
                                color: var(--accent-flutter);
                                opacity: 0;
                                transition: opacity 0.2s;
                                font-weight: 600;
                                letter-spacing: 0.05em;
                            }

                            .bs-widget.rebuilding .bw-rebuild-tag {
                                opacity: 1;
                            }

                            .bw-body {
                                padding: 12px;
                                font-family: var(--sans);
                                font-size: 13px;
                            }

                            /* mock UI inside widget preview */
                            .mock-cart {
                                display: flex;
                                flex-direction: column;
                                gap: 6px;
                            }

                            .mock-item {
                                display: flex;
                                align-items: center;
                                justify-content: space-between;
                                padding: 6px 8px;
                                border-radius: 6px;
                                background: var(--surface2);
                                font-size: 12px;
                                transition: all 0.3s;
                            }

                            .mock-item.new-item {
                                animation: slideIn 0.35s ease;
                                border: 1px solid #4ade8030;
                            }

                            @keyframes slideIn {
                                from {
                                    opacity: 0;
                                    transform: translateY(-6px);
                                }

                                to {
                                    opacity: 1;
                                    transform: none;
                                }
                            }

                            .mock-item-name {
                                color: var(--text-muted);
                            }

                            .mock-item-price {
                                color: var(--accent-green);
                                font-family: var(--mono);
                                font-size: 11px;
                            }

                            .mock-total {
                                display: flex;
                                justify-content: space-between;
                                padding: 6px 8px 2px;
                                font-size: 12px;
                                font-weight: 600;
                                border-top: 1px solid var(--border);
                                margin-top: 2px;
                            }

                            .mock-total-val {
                                color: var(--accent-flutter);
                                font-family: var(--mono);
                                font-size: 12px;
                            }

                            .mock-empty {
                                text-align: center;
                                padding: 16px;
                                color: var(--text-dim);
                                font-size: 12px;
                                font-family: var(--mono);
                            }

                            .mock-status {
                                display: flex;
                                align-items: center;
                                gap: 6px;
                                padding: 6px 8px;
                                border-radius: 6px;
                                font-size: 12px;
                                font-family: var(--mono);
                                transition: all 0.3s;
                            }

                            .mock-status.status-idle {
                                color: var(--text-dim);
                                background: var(--surface2);
                            }

                            .mock-status.status-loading {
                                color: var(--accent-amber);
                                background: #fbbf2410;
                            }

                            .mock-status.status-success {
                                color: var(--accent-green);
                                background: #4ade8010;
                            }

                            .mock-status.status-error {
                                color: var(--accent-coral);
                                background: #fb718510;
                            }

                            .status-dot {
                                width: 7px;
                                height: 7px;
                                border-radius: 50%;
                                background: currentColor;
                                flex-shrink: 0;
                                transition: all 0.3s;
                            }

                            .status-loading .status-dot {
                                animation: statusPulse 0.8s infinite;
                            }

                            @keyframes statusPulse {

                                0%,
                                100% {
                                    opacity: 1
                                }

                                50% {
                                    opacity: 0.3
                                }
                            }

                            /* stream pipe visual */
                            .bloc-stream-pipe {
                                display: flex;
                                align-items: center;
                                gap: 0;
                                padding: 10px 16px;
                                border-top: 1px solid var(--border);
                                background: var(--surface2);
                                overflow-x: auto;
                                scrollbar-width: none;
                                min-height: 48px;
                            }

                            .pipe-event {
                                display: flex;
                                align-items: center;
                                gap: 0;
                                flex-shrink: 0;
                            }

                            .pipe-bubble {
                                padding: 3px 10px;
                                border-radius: 12px;
                                font-family: var(--mono);
                                font-size: 10px;
                                font-weight: 500;
                                border: 1px solid;
                                white-space: nowrap;
                                animation: bubbleIn 0.3s ease;
                            }

                            @keyframes bubbleIn {
                                from {
                                    opacity: 0;
                                    transform: scale(0.7);
                                }

                                to {
                                    opacity: 1;
                                    transform: scale(1);
                                }
                            }

                            .pipe-arrow {
                                font-size: 12px;
                                color: var(--text-dim);
                                padding: 0 4px;
                                flex-shrink: 0;
                            }

                            .pipe-label {
                                font-family: var(--mono);
                                font-size: 9px;
                                color: var(--text-dim);
                                letter-spacing: 0.1em;
                                text-transform: uppercase;
                                padding-right: 8px;
                                flex-shrink: 0;
                            }

                            /* code tab below */
                            .bloc-code-tabs {
                                display: flex;
                                border-top: 1px solid var(--border);
                            }

                            .bloc-code-tab {
                                flex: 1;
                                padding: 9px 0;
                                text-align: center;
                                font-family: var(--mono);
                                font-size: 10.5px;
                                color: var(--text-dim);
                                cursor: pointer;
                                border-right: 1px solid var(--border);
                                transition: all 0.15s;
                                letter-spacing: 0.05em;
                            }

                            .bloc-code-tab:last-child {
                                border-right: none;
                            }

                            .bloc-code-tab:hover {
                                color: var(--text-muted);
                                background: var(--surface2);
                            }

                            .bloc-code-tab.active {
                                color: var(--accent-violet);
                                background: #a78bfa08;
                            }

                            .bloc-code-pane {
                                display: none;
                                border-top: 1px solid var(--border);
                            }

                            .bloc-code-pane.active {
                                display: block;
                            }

                            @media (max-width: 860px) {
                                .bloc-main {
                                    grid-template-columns: 1fr;
                                }

                                .bloc-anatomy {
                                    grid-template-columns: 1fr 1fr 1fr;
                                }

                                .bloc-arrow-col {
                                    display: none;
                                }
                            }
                        
/* ── Back bar ──────────────────────────────────────────── */
.back-bar {
	position: sticky;
	top: 0;
    height: 45px;
	z-index: 200;
	background: var(--bg);
	border-bottom: 1px solid var(--border);
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
    font-family: var(--sans);
}

.back-bar a {
	color: var(--accent-flutter);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: color 0.2s;
}

.back-bar a:hover {
	color: var(--text);
}

.back-bar-sep,
.back-bar-current {
	font-size: 13px;
	color: var(--text-muted);
}

.back-bar-current {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 25ch;
	color: var(--text);
}
