        :root {
            --bg: #fafaf9;
            --surface: #ffffff;
            --surface-alt: #f5f5f4;
            --border: #e7e5e4;
            --border-light: #f0eeec;
            --text: #1c1917;
            --text-secondary: #57534e;
            --text-muted: #a8a29e;
            --accent: #b45309;
            --accent-light: #fef3c7;
            --complete: #16a34a;
            --building: #2563eb;
            --scratch: #a8a29e;
            --network: #7c3aed;
            --tools: #0891b2;
        }

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

        html, body {
            height: 100%;
            overflow: hidden;
        }

        body {
            font-family: 'IBM Plex Sans', -apple-system, sans-serif;
            background: var(--bg);
            color: var(--text);
        }

        .workspace {
            height: 100vh;
            display: grid;
            grid-template-columns: clamp(140px, 18vw, 220px) 1fr clamp(160px, 20vw, 260px);
            grid-template-rows: auto 1fr auto;
            gap: 1px;
            background: var(--border);
            isolation: isolate;
        }

        /* Header */
        .header {
            grid-column: 1 / -1;
            background: var(--surface);
            padding: 14px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            z-index: 1001;
            isolation: isolate;
            pointer-events: auto;
        }

        .identity {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .name {
            font-size: 1rem;
            font-weight: 500;
            letter-spacing: -0.01em;
        }

        .divider {
            width: 1px;
            height: 16px;
            background: var(--border);
        }

        .title {
            font-size: 0.75rem;
            color: var(--text-secondary);
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .status {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.7rem;
            color: var(--text-muted);
        }

        .status-dot {
            width: 6px;
            height: 6px;
            background: var(--complete);
            border-radius: 50%;
        }

        .header-links {
            display: flex;
            gap: 14px;
            font-size: 0.75rem;
        }

        .header-links a {
            color: var(--text-secondary);
            text-decoration: none;
        }

        .header-links a:hover {
            color: var(--accent);
        }

        /* Header projects dropdown */
        .header-projects-wrap {
            position: relative;
        }

        .header-projects-toggle {
            display: flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            user-select: none;
        }

        .header-projects-toggle svg {
            transition: transform 0.2s ease;
            opacity: 0.5;
        }

        .header-projects-wrap.open .header-projects-toggle svg {
            transform: rotate(180deg);
            opacity: 0.8;
        }

        .header-projects-dropdown {
            position: absolute;
            top: calc(100% + 10px);
            right: -8px;
            width: 200px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 6px;
            box-shadow: 0 6px 24px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.05);
            padding: 4px;
            display: none;
            z-index: 200;
            animation: dropdownIn 0.12s ease;
        }

        @keyframes dropdownIn {
            from { opacity: 0; transform: translateY(-3px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .header-projects-wrap.open .header-projects-dropdown {
            display: block;
        }

        .hpd-label { display: none; }

        .header-project-item {
            display: flex;
            flex-direction: column;
            gap: 1px;
            padding: 6px 10px;
            border-radius: 4px;
            cursor: pointer;
            transition: background 0.1s;
        }

        .header-project-item:hover {
            background: var(--surface-alt);
        }

        .header-project-item.active {
            background: var(--accent-light);
        }

        .hpi-dot { display: none; }

        .hpi-name {
            font-size: 0.78rem;
            color: var(--text);
        }

        .hpi-tag {
            font-size: 0.62rem;
            color: var(--text-muted);
            background: none;
            padding: 0;
            border-radius: 0;
        }

        .header-project-item.active .hpi-name {
            color: var(--accent);
        }

        .header-project-item.active .hpi-tag {
            color: var(--accent);
            opacity: 0.7;
        }

        /* Mobile header elements - hidden by default */
        .header-mobile {
            display: none;
            align-items: center;
            gap: 16px;
        }

        .status-dot-mobile {
            width: 8px;
            height: 8px;
            background: var(--complete);
            border-radius: 50%;
            cursor: pointer;
            position: relative;
        }

        .status-popup {
            display: none;
            position: absolute;
            top: calc(100% + 10px);
            right: -10px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 6px;
            padding: 10px 14px;
            font-size: 0.75rem;
            color: var(--text-secondary);
            white-space: nowrap;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            z-index: 100;
        }

        .status-popup::before {
            content: '';
            position: absolute;
            top: -6px;
            right: 12px;
            width: 10px;
            height: 10px;
            background: var(--surface);
            border-left: 1px solid var(--border);
            border-top: 1px solid var(--border);
            transform: rotate(45deg);
        }

        .status-dot-mobile:hover .status-popup {
            display: block;
        }

        .hamburger {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 4px;
            width: 24px;
            height: 24px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
            position: relative;
        }

        .hamburger span {
            display: block;
            width: 100%;
            height: 2px;
            background: var(--text-secondary);
            border-radius: 1px;
            transition: all 0.2s;
        }

        .hamburger:hover span {
            background: var(--text);
        }

        .mobile-menu {
            display: none;
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 6px;
            padding: 4px;
            box-shadow: 0 6px 24px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.05);
            z-index: 100;
            min-width: 200px;
            animation: dropdownIn 0.12s ease;
        }

        .mobile-menu.active {
            display: block;
        }

        .mobile-menu a {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            font-size: 0.8rem;
            color: var(--text-secondary);
            text-decoration: none;
            text-align: left;
            border-radius: 4px;
            transition: background 0.1s;
        }

        .mobile-menu a svg {
            opacity: 0.4;
            flex-shrink: 0;
        }

        .mobile-menu a:hover {
            background: var(--surface-alt);
            color: var(--text);
        }

        .mobile-menu-divider {
            height: 1px;
            background: var(--border-light);
            margin: 3px 10px;
        }

        .mobile-projects-toggle {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            font-size: 0.8rem;
            color: var(--text-secondary);
            cursor: pointer;
            border-radius: 4px;
            transition: background 0.1s;
        }

        .mobile-projects-toggle svg:first-child {
            opacity: 0.4;
            flex-shrink: 0;
        }

        .mobile-projects-toggle:hover {
            background: var(--surface-alt);
            color: var(--text);
        }

        .mob-chev {
            margin-left: auto;
            transition: transform 0.2s ease;
            opacity: 0.35 !important;
        }

        .mobile-projects-toggle.open .mob-chev {
            transform: rotate(180deg);
        }

        .mobile-projects-list {
            display: none;
        }

        .mobile-projects-list.open {
            display: block;
        }

        .mobile-projects-list a {
            padding: 6px 10px 6px 30px !important;
            font-size: 0.75rem !important;
            font-weight: 400;
        }


        /* Panels */
        .panel {
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: relative;
        }

        .panel-left {
            overflow-y: scroll;
            overflow-x: hidden;
            background: var(--surface);
            border-right: none;
            position: relative;
            z-index: 1000;
            isolation: isolate;
            pointer-events: auto;
        }

        .panel-right {
            overflow-y: scroll;
            overflow-x: hidden;
            direction: rtl;
            background: var(--surface);
            border-left: none;
            position: relative;
            z-index: 1000;
            isolation: isolate;
            pointer-events: auto;
        }

        .panel-right > * {
            direction: ltr;
        }

        /* Scrollbar styling - sits outside the white background */
        .panel-left::-webkit-scrollbar,
        .panel-right::-webkit-scrollbar {
            width: 0;
            background: transparent;
        }

        .panel-left:hover::-webkit-scrollbar,
        .panel-right:hover::-webkit-scrollbar {
            width: 6px;
            background: var(--bg);
        }

        .panel-left::-webkit-scrollbar-track,
        .panel-right::-webkit-scrollbar-track {
            background: transparent;
        }

        .panel-left::-webkit-scrollbar-thumb,
        .panel-right::-webkit-scrollbar-thumb {
            background: transparent;
            border-radius: 3px;
        }

        .panel-left:hover::-webkit-scrollbar-thumb,
        .panel-right:hover::-webkit-scrollbar-thumb {
            background: var(--border);
        }

        .panel-left::-webkit-scrollbar-thumb:hover,
        .panel-right::-webkit-scrollbar-thumb:hover {
            background: var(--text-muted);
        }

        /* Hide scrollbar buttons/arrows completely */
        .panel-left::-webkit-scrollbar-button,
        .panel-right::-webkit-scrollbar-button {
            display: none;
            width: 0;
            height: 0;
            background: transparent;
        }

        .panel-left::-webkit-scrollbar-corner,
        .panel-right::-webkit-scrollbar-corner {
            background: transparent;
        }

        /* Firefox */
        .panel-left,
        .panel-right {
            scrollbar-width: thin;
            scrollbar-color: transparent var(--bg);
        }

        .panel-left:hover,
        .panel-right:hover {
            scrollbar-color: var(--border) var(--bg);
        }

        /* Nav sections */
        .nav-group {
            padding: 16px;
            border-bottom: 1px solid var(--border-light);
        }

        .nav-group:last-child {
            border-bottom: none;
        }

        .nav-label {
            font-size: 0.55rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-muted);
            margin-bottom: 10px;
        }

        .nav-list {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .nav-header {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            font-size: 0.8rem;
            color: var(--text-secondary);
            cursor: pointer;
            border-radius: 5px;
            transition: all 0.15s;
        }

        .nav-header:hover {
            background: var(--surface-alt);
        }

        .nav-chevron {
            width: 14px;
            height: 14px;
            margin-left: auto;
            color: var(--text-muted);
            transition: transform 0.2s ease;
        }

        .nav-header.active .nav-chevron {
            transform: rotate(0deg);
        }

        .nav-header:not(.active) .nav-chevron {
            transform: rotate(-90deg);
        }

        .project-list {
            display: none;
            flex-direction: column;
            margin-left: 22px;
            padding-left: 10px;
            padding-top: 4px;
            border-left: 1px solid var(--border-light);
            margin-bottom: 4px;
        }

        .project-list.active {
            display: flex;
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.15s;
            font-size: 0.8rem;
            color: var(--text-secondary);
        }

        .nav-item:hover {
            background: var(--surface-alt);
            color: var(--text);
        }

        .nav-item.active {
            background: var(--accent-light);
            color: var(--text);
        }

        .nav-item.tutorial-demo-highlight {
            background: var(--accent-light);
            color: var(--text);
            transition: background 0.2s ease;
        }

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

        .nav-dot.complete { background: var(--complete); }
        .nav-dot.building { background: var(--building); }
        .nav-dot.scratch { background: var(--scratch); }
        .nav-dot.skills { background: var(--accent); }
        .nav-dot.tools { background: var(--tools); }
        .nav-dot.activity { background: var(--accent); }

        .nav-count {
            margin-left: auto;
            font-size: 0.65rem;
            font-family: 'IBM Plex Mono', monospace;
            color: var(--text-muted);
        }

        /* Project items */
        .project-item {
            display: flex;
            flex-direction: column;
            gap: 2px;
            padding: 6px 10px;
            cursor: pointer;
            border-radius: 4px;
            transition: all 0.15s;
        }

        .project-item:hover {
            background: var(--surface-alt);
        }

        .project-item.active {
            background: var(--accent-light);
        }

        .project-item.tutorial-demo-highlight {
            background: var(--accent-light);
            transition: background 0.2s ease;
        }

        .project-item.tutorial-demo-highlight .project-name {
            color: var(--text);
        }

        .project-name {
            font-size: 0.75rem;
            color: var(--text-secondary);
        }

        .project-item:hover .project-name,
        .project-item.active .project-name {
            color: var(--text);
        }

        .project-meta {
            font-size: 0.6rem;
            color: var(--text-muted);
        }

        /* Canvas */
        .canvas {
            background: var(--bg);
            position: relative;
            overflow: hidden;
            z-index: 1;
            isolation: isolate;
        }

        .canvas.overflow-visible {
            overflow: visible;
            /* Note: clip-path clips BOTH visuals AND pointer events */
            /* If we need visual overflow, we need a different approach */
        }

        .canvas::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: 
                linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
            background-size: 40px 40px;
            pointer-events: none;
        }

        .canvas.no-grid::before {
            display: none;
        }

        /* Canvas views */
        .canvas-view {
            display: none;
            position: absolute;
            inset: 0;
            overflow: hidden;
        }

        .canvas-view.overflow-visible {
            overflow: visible;
        }

        .canvas-view.active {
            display: block;
        }

        /* Canvas viewer (zoom/pan container) */
        .canvas-viewer {
            position: absolute;
            inset: 0;
            overflow: hidden;
            cursor: auto;
        }

        .canvas-viewer.overflow-visible {
            overflow: visible;
        }

        .canvas-viewer.panning {
            cursor: grabbing !important;
        }

        .canvas-viewer-content {
            position: absolute;
            top: 0;
            left: 0;
            transform-origin: top left;
            /* transform set by JS: scale(zoom) translate(panX, panY) */
        }
        
        /* Centered content for document-like views */
        .canvas-viewer.centered .canvas-viewer-content {
            top: 50%;
            left: 50%;
            transform-origin: center center;
        }
        
        /* Horizontally centered, top aligned */
        .canvas-viewer.centered-x .canvas-viewer-content {
            top: 0;
            left: 50%;
            transform-origin: top center;
        }

        /* Zoom controls */
        .canvas-controls {
            position: absolute;
            bottom: 16px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            gap: 2px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 6px;
            padding: 4px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            z-index: 10;
            font-family: var(--font-mono);
        }

        .canvas-control-btn {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            color: var(--text-secondary);
            font-size: 0.9rem;
            transition: all 0.15s;
        }

        .canvas-control-btn:hover {
            background: var(--surface-alt);
            color: var(--text);
        }

        .canvas-control-btn:active {
            transform: scale(0.95);
        }

        .canvas-zoom-level {
            font-size: 0.6rem;
            color: var(--text-muted);
            min-width: 44px;
            text-align: center;
            padding: 0 4px;
            cursor: pointer;
        }

        .canvas-zoom-level:hover {
            color: var(--text);
        }

        .canvas-control-divider {
            width: 1px;
            height: 20px;
            background: var(--border-light);
            margin: 0 4px;
        }

        /* Settings menu */
        .canvas-settings-wrap {
            position: relative;
        }

        .canvas-settings-menu {
            position: absolute;
            bottom: 100%;
            right: 0;
            margin-bottom: 8px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 6px;
            padding: 8px 0;
            min-width: 200px;
            max-width: 25vw;
            box-shadow: 0 4px 16px rgba(0,0,0,0.12);
            display: none;
            font-family: var(--font-sans);
        }

        .canvas-settings-menu.open {
            display: block;
        }

        .canvas-settings-title {
            font-size: 0.55rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-muted);
            padding: 4px 12px 8px;
        }

        .canvas-settings-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 12px;
            font-size: 0.7rem;
            color: var(--text-secondary);
            cursor: pointer;
            transition: background 0.15s;
        }

        .canvas-settings-item:hover {
            background: var(--surface-alt);
        }

        .canvas-settings-toggle {
            width: 32px;
            height: 18px;
            background: var(--border);
            border-radius: 9px;
            position: relative;
            transition: background 0.2s;
        }

        .canvas-settings-toggle::after {
            content: '';
            position: absolute;
            top: 2px;
            left: 2px;
            width: 14px;
            height: 14px;
            background: white;
            border-radius: 50%;
            transition: transform 0.2s;
        }

        .canvas-settings-item.active .canvas-settings-toggle {
            background: var(--accent);
        }

        .canvas-settings-item.active .canvas-settings-toggle::after {
            transform: translateX(14px);
        }

        /* Smooth zoom transitions */
        .canvas-viewer-content {
            transition: transform 0.15s ease-out;
        }
        
        .canvas-viewer-content.no-transition {
            transition: none;
        }

        /* Keyboard shortcuts hint */
        .canvas-shortcuts-btn {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            color: var(--text-secondary);
            font-size: 0.75rem;
            font-weight: 500;
            transition: all 0.15s;
        }

        .canvas-shortcuts-btn:hover {
            background: var(--surface-alt);
            color: var(--text);
        }

        .canvas-shortcuts-menu {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            margin-bottom: 8px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 6px;
            padding: 12px 16px;
            min-width: 220px;
            max-width: 25vw;
            box-shadow: 0 4px 16px rgba(0,0,0,0.12);
            display: none;
            font-family: var(--font-sans);
        }

        .canvas-shortcuts-menu.open {
            display: block;
        }

        .canvas-shortcuts-title {
            font-size: 0.55rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .canvas-shortcut-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 4px 0;
            font-size: 0.7rem;
            color: var(--text-secondary);
        }

        .canvas-shortcut-key {
            background: var(--surface-alt);
            border: 1px solid var(--border-light);
            border-radius: 3px;
            padding: 2px 6px;
            font-family: var(--font-mono);
            font-size: 0.6rem;
        }

        /* Minimap */
        .canvas-minimap {
            position: absolute;
            bottom: 60px;
            right: 16px;
            width: 120px;
            height: 80px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            overflow: hidden;
            display: none;
            z-index: 10;
        }

        .canvas-minimap.visible {
            display: block;
        }

        .canvas-minimap-content {
            width: 100%;
            height: 100%;
            transform-origin: top left;
        }

        .canvas-minimap-viewport {
            position: absolute;
            border: 2px solid var(--accent);
            background: rgba(199, 97, 20, 0.1);
            border-radius: 2px;
            pointer-events: none;
        }

        /* Location indicator */
        .canvas-location {
            position: absolute;
            top: 16px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 4px;
            padding: 4px 12px;
            font-size: 0.65rem;
            color: var(--text-secondary);
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            display: none;
            z-index: 10;
        }

        .canvas-location.visible {
            display: block;
        }

        /* Export button */
        .canvas-export-btn {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            color: var(--text-secondary);
            transition: all 0.15s;
        }

        .canvas-export-btn:hover {
            background: var(--surface-alt);
            color: var(--text);
        }

        /* Touch feedback */
        .canvas-touch-feedback {
            position: absolute;
            width: 60px;
            height: 60px;
            border: 2px solid var(--accent);
            border-radius: 50%;
            pointer-events: none;
            opacity: 0;
            transform: scale(0.5);
            transition: opacity 0.2s, transform 0.2s;
            z-index: 100;
        }

        .canvas-touch-feedback.active {
            opacity: 0.5;
            transform: scale(1);
        }

        /* Cursor hints */
        /* Zoom hint classes - no longer change cursor since zoom is ctrl+scroll */
        .canvas-viewer.can-zoom,
        .canvas-viewer.zoomed-in {
            /* cursor stays auto, handled by content */
        }

        /* Global settings button */
        .canvas-settings-wrap.global {
            position: absolute;
            bottom: 16px;
            right: 16px;
            z-index: 11;
        }

        .canvas-settings-wrap.global .canvas-control-btn {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .canvas-settings-wrap.global .canvas-settings-menu {
            right: 0;
            bottom: 100%;
            margin-bottom: 8px;
        }
        

        /* Project detail view */
        .project-detail {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100%;
            padding: 40px;
        }

        .project-content {
            text-align: center;
            max-width: 480px;
        }

        .project-label {
            font-size: 0.6rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-muted);
            margin-bottom: 12px;
        }

        .project-label.complete { color: var(--complete); }
        .project-label.building { color: var(--building); }

        .project-title {
            font-size: 1.75rem;
            font-weight: 500;
            margin-bottom: 16px;
            letter-spacing: -0.02em;
        }

        .project-desc {
            font-size: 0.95rem;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 24px;
        }

        .project-tags {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 24px;
        }

        .project-tag {
            font-size: 0.7rem;
            padding: 4px 12px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 3px;
            color: var(--text-secondary);
        }

        .project-link {
            font-size: 0.8rem;
            color: var(--accent);
            text-decoration: none;
            font-weight: 500;
        }

        .project-link:hover {
            text-decoration: underline;
        }

        /* Iframe container for interactive projects */
        .iframe-container {
            position: relative;
            width: 100%;
            height: 100%;
            border-radius: 0;
            overflow: hidden;
            box-shadow: none;
            background: transparent;
        }
        
        .project-iframe {
            width: 100%;
            height: 100%;
            border: none;
            background: transparent;
            pointer-events: auto;
        }

        /* Quantum cube needs overflow visible for cube overflow effect */
        .iframe-container.overflow-visible,
        .iframe-container.overflow-visible .project-iframe {
            overflow: visible;
        }

        /* Project nav buttons in zoom bar */
        .project-nav-btn {
            color: var(--text-secondary);
        }
        .project-nav-btn:hover {
            color: var(--text-primary);
            background: var(--hover);
        }
        
        /* Zoom group inset when nav buttons visible */
        .zoom-group {
            display: flex;
            align-items: center;
            gap: 2px;
            padding: 2px;
            border-radius: 4px;
            background: rgba(0,0,0,0.04);
            border: 1px solid rgba(0,0,0,0.06);
        }

        /* Adaptive UI Controls Bar */
        .adaptive-ui-controls {
            position: absolute;
            top: 16px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0,0,0,0.9);
            backdrop-filter: blur(12px);
            padding: 8px 16px;
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.1);
            font-family: 'IBM Plex Mono', monospace;
            font-size: 12px;
            color: #a1a1aa;
            display: flex;
            align-items: center;
            gap: 12px;
            z-index: 9999;
            white-space: nowrap;
            pointer-events: auto;
        }
        
        .aui-dims {
            color: #67e8f9;
            font-weight: 500;
            width: 90px;
            text-align: center;
            flex-shrink: 0;
        }
        
        .aui-breakpoint {
            color: #52525b;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            width: 75px;
            text-align: center;
            flex-shrink: 0;
        }
        
        .aui-zoom-control {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-left: 8px;
            padding-left: 12px;
            border-left: 1px solid rgba(255,255,255,0.1);
        }
        
        .aui-zoom-label {
            color: #52525b;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .aui-zoom-slider {
            width: 80px;
            height: 4px;
            -webkit-appearance: none;
            appearance: none;
            background: rgba(255,255,255,0.1);
            border-radius: 2px;
            cursor: pointer;
        }
        
        .aui-zoom-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 14px;
            height: 14px;
            background: #67e8f9;
            border-radius: 50%;
            cursor: pointer;
            transition: transform 0.15s;
        }
        
        .aui-zoom-slider::-webkit-slider-thumb:hover {
            transform: scale(1.2);
        }
        
        .aui-zoom-slider::-moz-range-thumb {
            width: 14px;
            height: 14px;
            background: #67e8f9;
            border-radius: 50%;
            border: none;
            cursor: pointer;
        }
        
        .aui-zoom-value {
            color: #a1a1aa;
            font-size: 11px;
            width: 42px;
            text-align: right;
            flex-shrink: 0;
        }

        /* Embedded PDF/document container */
        .pdf-embed-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 32px;
            filter: drop-shadow(0 0 120px rgba(0, 220, 200, 0.15));
        }
        
        .pdf-embed-container .pdf-pages {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 32px;
        }
        
        /* Override the embedded page styles for canvas context */
        .pdf-embed-container .page {
            flex-shrink: 0;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        /* Scratchpad view */
        .scratchpad {
            padding: 32px;
            min-height: 100%;
            margin: 0 auto;
            box-sizing: border-box;
        }

        .scratchpad-header {
            margin-bottom: 24px;
        }

        .scratchpad-title {
            font-size: 1rem;
            font-weight: 500;
            margin-bottom: 4px;
        }

        .scratchpad-subtitle {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .scratch-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .scratch-tag {
            font-size: 0.8rem;
            padding: 10px 16px;
            background: var(--surface);
            border: 1px dashed var(--border);
            border-radius: 4px;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.15s;
        }

        .scratch-tag:hover {
            border-style: solid;
            border-color: var(--text-muted);
            color: var(--text);
        }

        .scratch-tag.add {
            border-color: var(--accent);
            color: var(--accent);
            background: var(--accent-light);
        }

        .scratch-tag.add:hover {
            background: var(--accent);
            color: white;
            border-style: solid;
        }

        /* Skills view */
        .skills-view {
            padding: 32px;
            min-height: 100%;
        }

        .skills-header {
            margin-bottom: 24px;
        }

        .skills-title {
            font-size: 1rem;
            font-weight: 500;
            margin-bottom: 4px;
        }

        .skills-subtitle {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 16px;
        }

        .skill-category {
            background: var(--surface);
            border-radius: 8px;
            padding: 16px;
        }

        .skill-category-name {
            font-size: 0.7rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-muted);
            margin-bottom: 10px;
        }

        .skill-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .skill-item {
            font-size: 0.8rem;
            color: var(--text);
        }

        /* Tools view */
        .tools-view {
            width: 100%;
            padding: 32px;
            box-sizing: border-box;
        }

        .tools-header {
            margin-bottom: 24px;
        }

        .tools-title {
            font-size: 1rem;
            font-weight: 500;
            margin-bottom: 4px;
        }

        .tools-subtitle {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .tools-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        .tools-view.narrow .tools-grid {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .tools-view.narrow .tool-name {
            font-size: 1rem;
        }
        
        .tools-view.narrow .tool-desc {
            font-size: 0.85rem;
            line-height: 1.5;
        }
        
        .tools-view.narrow .tool-cta {
            font-size: 0.8rem;
        }
        
        .tool-card {
            background: var(--surface);
            border-radius: 8px;
            padding: 16px;
            border-left: 3px solid var(--tools);
            transition: all 0.2s;
            aspect-ratio: 1 / 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .tool-card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.06);
        }

        .tool-name {
            font-size: 0.9rem;
            font-weight: 500;
            margin-bottom: 6px;
            flex-shrink: 0;
        }

        .tool-desc {
            font-size: 0.75rem;
            color: var(--text-secondary);
            line-height: 1.4;
            margin-bottom: auto;
            overflow: hidden;
            flex: 1;
        }
        
        .tool-cta {
            font-size: 0.7rem;
            font-weight: 500;
            color: var(--tools);
            text-decoration: none;
            flex-shrink: 0;
            margin-top: 8px;
        }

        .tool-cta:hover {
            text-decoration: underline;
        }

        /* Activity stream view */
        .activity-view {
            padding: 32px;
            min-height: 100%;
            font-family: var(--font-mono);
            margin: 0 auto;
            box-sizing: border-box;
        }

        .activity-header {
            margin-bottom: 24px;
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            max-width: 100%;
        }

        .activity-title {
            font-size: 0.7rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-muted);
        }

        .activity-status {
            font-size: 0.6rem;
            color: var(--accent);
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }

        .activity-status::before {
            content: '';
            width: 6px;
            height: 6px;
            background: var(--accent);
            border-radius: 50%;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.4; }
        }

        .activity-stream {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .activity-item {
            display: grid;
            grid-template-columns: 100px 32px 1fr auto;
            gap: 12px;
            align-items: center;
            padding: 14px 0;
            border-bottom: 1px solid var(--border-light);
        }

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

        .activity-time {
            font-size: 0.65rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.02em;
        }

        .activity-icon {
            width: 28px;
            height: 28px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--surface-alt);
        }

        .activity-icon svg {
            width: 14px;
            height: 14px;
            color: var(--text-muted);
        }

        .activity-icon.build { background: rgba(217, 119, 6, 0.1); }
        .activity-icon.build svg { color: var(--accent); }
        
        .activity-icon.ship { background: rgba(34, 197, 94, 0.1); }
        .activity-icon.ship svg { color: #22c55e; }
        
        .activity-icon.research { background: rgba(59, 130, 246, 0.1); }
        .activity-icon.research svg { color: #3b82f6; }
        
        .activity-icon.write { background: rgba(168, 85, 247, 0.1); }
        .activity-icon.write svg { color: #a855f7; }

        .activity-content {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .activity-action {
            font-size: 0.78rem;
            font-family: var(--font-sans);
            color: var(--text);
        }

        .activity-action strong {
            font-weight: 500;
        }

        .activity-context {
            font-size: 0.65rem;
            color: var(--text-muted);
        }

        .activity-link {
            font-size: 0.6rem;
            color: var(--text-muted);
            text-decoration: none;
            opacity: 0;
            transition: opacity 0.15s;
        }

        .activity-item:hover .activity-link {
            opacity: 1;
        }

        .activity-link:hover {
            color: var(--accent);
        }

        /* Right panel */
        .sidebar-section {
            border-bottom: 1px solid var(--border-light);
        }

        .sidebar-section:last-child {
            border-bottom: none;
        }

        .sidebar-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px;
            cursor: pointer;
            transition: background 0.15s;
        }

        .sidebar-header:hover {
            background: var(--surface-alt);
        }

        .sidebar-title {
            font-size: 0.55rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-muted);
        }

        .sidebar-chevron {
            width: 14px;
            height: 14px;
            color: var(--text-muted);
            transition: transform 0.25s ease;
        }

        .sidebar-header.active .sidebar-chevron {
            transform: rotate(0deg);
        }

        .sidebar-header:not(.active) .sidebar-chevron {
            transform: rotate(-90deg);
        }

        .sidebar-content {
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows 0.25s ease;
        }

        .sidebar-header.active + .sidebar-content {
            grid-template-rows: 1fr;
        }

        .sidebar-content-inner {
            overflow: hidden;
            padding: 0 16px;
        }

        .sidebar-header.active + .sidebar-content .sidebar-content-inner {
            padding-top: 12px;
            padding-bottom: 16px;
        }

        /* Services */
        .service-list {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .service-item {
            padding: 8px 10px;
            background: var(--surface-alt);
            border-radius: 4px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                        box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .service-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 2px;
            background: var(--accent);
            transform: scaleY(0);
            transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .service-item:hover {
            background: var(--surface);
            box-shadow: 0 2px 12px rgba(0,0,0,0.04);
        }

        .service-item:hover::before {
            transform: scaleY(0.4);
        }

        .service-item.active {
            background: var(--surface);
            box-shadow: 0 4px 20px rgba(0,0,0,0.06);
        }

        .service-item.active::before {
            transform: scaleY(1);
            background: linear-gradient(180deg, var(--accent), #d97706);
        }

        .service-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .service-name {
            font-size: 0.75rem;
            font-weight: 500;
            letter-spacing: -0.01em;
        }

        .service-arrow {
            width: 12px;
            height: 12px;
            flex-shrink: 0;
            color: var(--text-muted);
            transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            opacity: 0;
        }

        .service-item:hover .service-arrow {
            opacity: 1;
        }

        .service-item.active .service-arrow {
            opacity: 1;
            transform: rotate(90deg);
            color: var(--accent);
        }

        .service-desc {
            font-size: 0.6rem;
            color: var(--text-muted);
            margin-top: 1px;
            transition: opacity 0.2s, margin 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .service-item.active .service-desc {
            opacity: 0;
            height: 0;
            margin: 0;
            overflow: hidden;
        }

        .service-detail {
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .service-item.active .service-detail {
            grid-template-rows: 1fr;
        }

        .service-detail-inner {
            overflow: hidden;
        }

        .service-detail-content {
            padding-top: 8px;
        }

        .service-detail-desc {
            font-size: 0.7rem;
            color: var(--text);
            line-height: 1.5;
            margin-bottom: 6px;
        }

        .service-detail-more {
            font-size: 0.65rem;
            color: var(--text-secondary);
            line-height: 1.5;
            margin-bottom: 10px;
        }

        .service-cta {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.65rem;
            font-weight: 500;
            color: var(--surface);
            background: var(--text);
            text-decoration: none;
            padding: 8px 14px;
            border-radius: 5px;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .service-cta:hover {
            background: var(--accent);
            transform: translateY(-1px);
        }

        .service-meta {
            display: flex;
            gap: 12px;
            margin-top: 8px;
            padding-top: 8px;
            border-top: 1px solid var(--border-light);
            font-size: 0.6rem;
            font-family: 'IBM Plex Mono', monospace;
            text-transform: uppercase;
            letter-spacing: 0.02em;
        }

        .service-availability {
            color: var(--accent);
        }

        .service-format {
            color: var(--text-muted);
        }

        .service-attestation {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid var(--border-light);
        }

        .attestation-avatars {
            display: flex;
        }

        .attestation-avatar {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--text-muted);
            border: 2px solid var(--surface);
            margin-left: -6px;
            font-size: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--surface);
            font-weight: 500;
        }

        .attestation-avatar:first-child {
            margin-left: 0;
        }

        .attestation-text {
            font-size: 0.55rem;
            color: var(--text-muted);
            font-family: 'IBM Plex Mono', monospace;
            text-transform: uppercase;
            letter-spacing: 0.02em;
        }

        /* Network */
        .network-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 10px;
        }

        .network-stats {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .network-stat {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            font-size: 0.7rem;
            color: var(--text-secondary);
        }

        .network-stat-value {
            font-family: 'IBM Plex Mono', monospace;
            font-weight: 500;
        }

        .network-list {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .network-row {
            display: flex;
            justify-content: space-between;
            font-size: 0.7rem;
            color: var(--text-secondary);
        }

        .network-pct {
            font-family: 'IBM Plex Mono', monospace;
            color: var(--text-muted);
            font-size: 0.65rem;
        }

        /* Education */
        .education-group {
            margin-bottom: 14px;
        }

        .education-group:last-child {
            margin-bottom: 0;
        }

        .education-label {
            font-size: 0.6rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .education-list {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .education-item {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            gap: 12px;
            padding: 6px 0;
            border-bottom: 1px solid var(--border-light);
        }

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

        .education-name {
            font-size: 0.75rem;
            font-weight: 500;
        }

        .education-meta {
            font-size: 0.65rem;
            color: var(--text-muted);
            text-align: right;
        }

        /* Work History */
        .work-history {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .work-history-item {
            display: grid;
            grid-template-columns: 50px 1fr;
            gap: 10px;
            padding: 8px 0;
            border-bottom: 1px solid var(--border-light);
        }

        .work-history-item:last-child {
            border-bottom: none;
        }

        .work-history-year {
            font-size: 0.6rem;
            font-family: 'IBM Plex Mono', monospace;
            color: var(--text-muted);
        }

        .work-history-company {
            font-size: 0.75rem;
            font-weight: 500;
        }

        .work-history-role {
            font-size: 0.65rem;
            color: var(--text-muted);
        }

        /* Client tags */
        .client-list {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .client-tag {
            font-size: 0.65rem;
            padding: 4px 10px;
            background: var(--surface-alt);
            border-radius: 3px;
            color: var(--text-secondary);
        }

        /* Resources */
        .resource-list {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .resource-item {
            display: grid;
            grid-template-columns: 40px 1fr;
            gap: 10px;
            padding: 12px 0;
            border-bottom: 1px solid var(--border-light);
            align-items: start;
        }

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

        .resource-type {
            font-size: 0.5rem;
            font-family: var(--font-mono);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-muted);
            padding-top: 2px;
        }

        .resource-type.book { color: var(--accent); }
        .resource-type.video { color: #7c3aed; }
        .resource-type.tool { color: #22c55e; }

        .resource-title {
            font-size: 0.78rem;
            font-weight: 500;
            color: var(--text);
            margin-bottom: 2px;
        }

        .resource-author {
            font-size: 0.65rem;
            color: var(--text-muted);
        }

        .resource-note {
            font-size: 0.65rem;
            color: var(--text-secondary);
            font-style: italic;
            margin-top: 4px;
        }

        /* About canvas */
        .about-view {
            width: 100%;
            height: 100%;
            padding: 20px; /* THROTTLE: outer padding */
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: auto auto auto;
            gap: 14px; /* THROTTLE: card gap */
            align-content: start;
            box-sizing: border-box;
        }
        
        /* When inside viewer, freeze at specific size */
        .canvas-viewer-content .about-view {
            width: var(--frozen-width, 100%);
            height: var(--frozen-height, auto);
            background: var(--bg);
        }

        /* Narrow layout for portrait/mobile */
        .about-view.narrow {
            width: 500px;
        }

        .about-header {
            grid-column: 1 / -1;
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border-light);
        }

        .about-name {
            font-size: 1.4rem;
            font-weight: 500;
            letter-spacing: -0.02em;
        }

        .about-tagline {
            font-size: 0.7rem;
            color: var(--text-muted);
            font-family: var(--font-mono);
        }

        .about-card {
            background: var(--surface);
            border: 1px solid var(--border-light);
            border-radius: 6px;
            padding: 14px; /* THROTTLE: card padding */
        }

        .about-card.full {
            grid-column: 1 / -1;
        }

        .about-card-title {
            font-size: 0.55rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-muted);
            margin-bottom: 12px;
            font-family: var(--font-mono);
        }

        .about-bio {
            font-size: 0.8rem;
            line-height: 1.65;
            color: var(--text-secondary);
        }

        .about-bio + .about-bio {
            margin-top: 10px;
        }

        .about-timeline {
            display: flex;
            flex-direction: column;
            gap: 0;
            border-left: 2px solid var(--border-light);
            padding-left: 16px;
        }

        .about-timeline-item {
            position: relative;
            padding: 6px 0 16px;
        }

        .about-timeline-item:last-child {
            padding-bottom: 0;
        }

        .about-timeline-item::before {
            content: '';
            position: absolute;
            left: -21px;
            top: 8px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--border);
        }

        .about-timeline-item.current::before {
            background: var(--accent);
        }

        .about-timeline-header {
            display: flex;
            align-items: baseline;
            gap: 10px;
            margin-bottom: 4px;
        }

        .about-timeline-title {
            font-size: 0.78rem;
            font-weight: 600;
        }

        .about-timeline-year {
            font-size: 0.55rem;
            font-family: var(--font-mono);
            color: var(--text-muted);
        }

        .about-timeline-role {
            font-size: 0.65rem;
            color: var(--text-secondary);
            margin-bottom: 8px;
            line-height: 1.5;
        }

        .about-timeline-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
        }

        .about-timeline-tag {
            font-size: 0.55rem;
            padding: 2px 6px;
            background: var(--surface-alt);
            border-radius: 3px;
            color: var(--text-muted);
        }

        .about-skills-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .about-skill-group-title {
            font-size: 0.55rem;
            font-weight: 500;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 6px;
        }

        .about-skill-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
        }

        .about-skill-tag {
            font-size: 0.6rem;
            padding: 3px 8px;
            background: var(--surface-alt);
            border-radius: 3px;
            color: var(--text-secondary);
        }

        .about-edu-list {
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .about-edu-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0 24px;
        }

        .about-edu-item {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            padding: 5px 0;
            border-bottom: 1px solid var(--border-light);
        }

        .about-edu-grid .about-edu-item:nth-last-child(-n+2) {
            border-bottom: none;
        }

        .about-edu-item:last-child {
            border-bottom: none;
        }

        .about-edu-name {
            font-size: 0.72rem;
            font-weight: 500;
        }

        .about-edu-meta {
            font-size: 0.55rem;
            color: var(--text-muted);
            font-family: var(--font-mono);
        }

        .about-clients {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .about-client-tag {
            font-size: 0.62rem;
            padding: 4px 10px;
            border: 1px dashed var(--border);
            border-radius: 3px;
            color: var(--text-secondary);
        }

        .about-stat-row {
            display: flex;
            gap: 24px;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid var(--border-light);
        }

        .about-stat {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .about-stat-value {
            font-size: 1.05rem;
            font-weight: 500;
            color: var(--accent);
        }

        .about-stat-label {
            font-size: 0.55rem;
            color: var(--text-muted);
            font-family: var(--font-mono);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* Testimonials */
        .testimonial-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .testimonial-item {
            padding: 10px;
            background: var(--surface-alt);
            border-radius: 4px;
            border-left: 2px solid var(--accent);
        }

        .testimonial-quote {
            font-size: 0.7rem;
            font-style: italic;
            color: var(--text-secondary);
            line-height: 1.5;
            margin-bottom: 8px;
        }

        .testimonial-author {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .testimonial-avatar {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--text-muted);
            font-size: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--surface);
            font-weight: 500;
        }

        .testimonial-name {
            font-size: 0.65rem;
            font-weight: 500;
        }

        .testimonial-role {
            font-size: 0.55rem;
            color: var(--text-muted);
        }

        /* About/Bio */
        .bio-text {
            font-size: 0.8rem;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 12px;
        }

        .bio-text:last-child {
            margin-bottom: 0;
        }

        .bio-text.secondary {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        /* Looking For */
        .looking-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .looking-item {
            font-size: 0.75rem;
            color: var(--text-secondary);
            padding: 10px 12px;
            background: var(--surface-alt);
            border-radius: 4px;
            border-left: 2px solid var(--accent);
        }

        /* Contact */
        .contact-row {
            display: flex;
            gap: 6px;
        }

        .contact-btn {
            flex: 1;
            font-size: 0.65rem;
            padding: 8px;
            text-align: center;
            background: var(--surface-alt);
            border-radius: 4px;
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.15s;
        }

        .contact-btn:hover {
            background: var(--bg);
            color: var(--accent);
        }

        .contact-btn.primary {
            background: var(--text);
            color: var(--surface);
        }

        .contact-btn.primary:hover {
            background: var(--accent);
        }

        /* Footer */
        .footer {
            grid-column: 1 / -1;
            background: var(--surface);
            padding: 10px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.7rem;
            color: var(--text-muted);
            position: relative;
            z-index: 1000;
            isolation: isolate;
            pointer-events: auto;
        }

        .footer-stats {
            display: flex;
            gap: 12px;
        }

        /* Mobile grab bars */
        .panel-grab {
            display: none;
            position: fixed;
            top: 50%;
            transform: translateY(-50%);
            width: 24px;
            height: 80px;
            background: var(--surface);
            border: 1px solid var(--border);
            cursor: pointer;
            z-index: 1002;
            align-items: center;
            justify-content: center;
            animation: grabGlow 3s ease-in-out infinite;
        }

        @keyframes grabGlow {
            0%, 100% { 
                box-shadow: 0 0 4px rgba(6, 182, 212, 0.05);
                border-color: var(--border);
            }
            50% { 
                box-shadow: 0 0 14px 2px rgba(6, 182, 212, 0.25);
                border-color: rgba(6, 182, 212, 0.4);
            }
        }

        #grab-left { animation-delay: 0s; }
        #grab-right { animation-delay: 1.5s; }

        .panel-grab:hover {
            animation: none;
        }

        .panel-grab::before {
            content: "";
            width: 4px;
            height: 40px;
            background: var(--border);
            border-radius: 2px;
        }

        .panel-grab:hover::before {
            background: var(--accent);
        }

        #grab-left {
            left: 0;
            border-radius: 0 8px 8px 0;
            border-left: none;
        }

        #grab-right {
            right: 0;
            border-radius: 8px 0 0 8px;
            border-right: none;
        }

        /* Mobile styles */
        @media (max-width: 900px) {
            .header-right {
                display: none;
            }
            
            .header-mobile {
                display: flex;
            }
            
            .title {
                font-size: 0.7rem;
            }

            .workspace {
                grid-template-columns: 1fr;
            }

            .panel-left,
            .panel-right {
                position: fixed;
                top: 0;
                bottom: 0;
                width: min(260px, 70vw);
                z-index: 1000;
                transition: transform 0.3s ease;
                box-shadow: 0 0 20px rgba(0,0,0,0.1);
            }

            .panel-left {
                left: 0;
                transform: translateX(-100%);
                padding-top: 60px;
            }

            .panel-right {
                right: 0;
                transform: translateX(100%);
                padding-top: 60px;
            }

            .panel-left.open {
                transform: translateX(0);
            }

            .panel-right.open {
                transform: translateX(0);
            }

            .panel-grab {
                display: flex;
            }
            
            #grab-left.hidden,
            #grab-right.hidden {
                display: none;
            }

            /* Overlay when sidebar is open */
            .panel-overlay {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0,0,0,0.3);
                z-index: 999;
            }

            .panel-overlay.active {
                display: block;
            }

            /* Main content takes full width */
            .canvas-area {
                grid-column: 1;
            }
        }

        @media (max-width: 600px) {
            .panel-left,
            .panel-right {
                width: 85vw;
            }

            .header {
                padding: 10px 16px;
            }

            .identity {
                font-size: 1rem;
            }
        }

/* ═══════════════════════════════════════════════════════
   CINEMATIC TUTORIAL SYSTEM
═══════════════════════════════════════════════════════ */
.tutorial-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    animation: tutorialFadeIn 0.4s ease;
}

.tutorial-overlay.fading-out {
    animation: tutorialFadeOut 0.3s ease forwards;
}

@keyframes tutorialFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tutorialFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════
   FULLSCREEN MESSAGE
═══════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════
   FULLSCREEN MESSAGE - inside canvas
═══════════════════════════════════════════════════════ */
.tutorial-canvas-message {
    position: absolute;
    inset: 0;
    z-index: 100;
    cursor: pointer;
}

.tutorial-canvas-bg {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 16, 0.92);
    border-radius: inherit;
}

/* Dim surrounding chrome during tutorial messages */
.tutorial-dimmed {
    opacity: 0.25;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Canvas interaction passthrough during area highlight */
.tutorial-canvas-passthrough {
    z-index: 1;
    cursor: pointer;
}

.tutorial-fullscreen-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.tutorial-fullscreen-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.tutorial-big-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    animation: tutorialTextSlide 0.8s ease;
}

.tutorial-big-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    animation: tutorialTextSlide 0.8s ease 0.1s both;
}

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

.tutorial-loading-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
    margin: 40px auto 0;
    overflow: hidden;
}

.tutorial-loading-fill {
    width: 0%;
    height: 100%;
    background: #06b6d4;
    border-radius: 1px;
}

/* Dark variant for white cards/tooltips — pinned to top edge */
.tutorial-loading-bar-dark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 3px;
    background: rgba(0, 0, 0, 0.06);
    margin: 0;
    overflow: hidden;
    border-radius: 0;
}

/* Pause button */
.tutorial-pause-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    padding: 0;
}

.tutorial-pause-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.tutorial-pause-btn-dark {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.35);
}

.tutorial-pause-btn-dark:hover {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.6);
}

/* ═══════════════════════════════════════════════════════
   AREA HIGHLIGHT (Canvas)
═══════════════════════════════════════════════════════ */
.tutorial-mask-svg {
    position: absolute;
    inset: 0;
    pointer-events: auto;
    cursor: pointer;
}

.tutorial-area-ring {
    position: absolute;
    border: 3px solid #06b6d4;
    border-radius: 4px;
    box-shadow: 
        0 0 30px rgba(6, 182, 212, 0.4),
        0 0 60px rgba(6, 182, 212, 0.2),
        inset 0 0 30px rgba(6, 182, 212, 0.05);
    animation: tutorialRingPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes tutorialRingPulse {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(6, 182, 212, 0.4), 0 0 60px rgba(6, 182, 212, 0.2), inset 0 0 30px rgba(6, 182, 212, 0.05);
    }
    50% { 
        box-shadow: 0 0 40px rgba(6, 182, 212, 0.6), 0 0 80px rgba(6, 182, 212, 0.3), inset 0 0 40px rgba(6, 182, 212, 0.1);
    }
}

.tutorial-area-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 32px 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: tutorialContentPop 0.4s ease;
    z-index: 10;
    overflow: hidden;
}

@keyframes tutorialContentPop {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.tutorial-area-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.tutorial-area-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.tutorial-hints {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.tutorial-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #444;
    font-family: 'SF Mono', Monaco, monospace;
}

/* ═══════════════════════════════════════════════════════
   ELEMENT HIGHLIGHT
═══════════════════════════════════════════════════════ */
.tutorial-element-ring {
    position: absolute;
    border: 3px solid #06b6d4;
    border-radius: 8px;
    box-shadow: 
        0 0 20px rgba(6, 182, 212, 0.5),
        0 0 40px rgba(6, 182, 212, 0.3);
    animation: tutorialRingPulse 2s ease-in-out infinite;
    pointer-events: none;
}

.tutorial-tooltip {
    position: absolute;
    background: white;
    padding: 20px 24px;
    border-radius: 12px;
    min-width: 260px;
    max-width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    overflow: hidden;
}

/* Arrows - positioned as siblings of tooltip in the overlay */
.tutorial-arrow {
    position: absolute;
    width: 0;
    height: 0;
    z-index: 10002;
    pointer-events: none;
}

.tutorial-arrow.arrow-left {
    border: 8px solid transparent;
    border-right-color: white;
    border-left: none;
}

.tutorial-arrow.arrow-right {
    border: 8px solid transparent;
    border-left-color: white;
    border-right: none;
}

.tutorial-arrow.arrow-bottom {
    border: 8px solid transparent;
    border-top-color: white;
    border-bottom: none;
}

.tutorial-arrow.arrow-top {
    border: 8px solid transparent;
    border-bottom-color: white;
    border-top: none;
}

.tutorial-tooltip-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.tutorial-tooltip-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════
   SHARED NAV
═══════════════════════════════════════════════════════ */
.tutorial-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tutorial-progress {
    font-size: 0.75rem;
    color: #999;
    margin-right: auto;
}

.tutorial-skip-btn,
.tutorial-next-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.tutorial-skip-btn {
    background: transparent;
    color: #888;
}

.tutorial-skip-btn:hover {
    color: #333;
    background: #f0f0f0;
}

.tutorial-next-btn {
    background: #06b6d4;
    color: white;
}

.tutorial-next-btn:hover {
    background: #0891b2;
}

/* Fullscreen skip button */
.tutorial-fullscreen-nav {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tutorial-overlay.fullscreen-message > .tutorial-skip-btn,
.tutorial-overlay.tutorial-canvas-message > .tutorial-skip-btn,
.tutorial-fullscreen-nav .tutorial-skip-btn {
    color: rgba(255, 255, 255, 0.5);
}

.tutorial-overlay.fullscreen-message > .tutorial-skip-btn:hover,
.tutorial-overlay.tutorial-canvas-message > .tutorial-skip-btn:hover,
.tutorial-fullscreen-nav .tutorial-skip-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}
