[data-theme="pixel"] {
    --px-bg-top: #0f1b2d;
    --px-bg-mid: #162544;
    --px-bg-bottom: #0a0e1a;
    --px-sun: #e2a842;
    --px-panel: #162544;
    --px-panel-strong: #1d3461;
    --px-panel-soft: rgba(22, 37, 68, 0.92);
    --px-panel-muted: rgba(15, 27, 45, 0.84);
    --px-card: rgba(29, 52, 97, 0.9);
    --px-card-light: rgba(38, 66, 120, 0.95);
    --px-border: #1a1a3e;
    --px-border-soft: #e2a842;
    --px-text: #f5ead0;
    --px-text-muted: #e8dcc0;
    --px-text-dim: #b8a88a;
    --px-accent: #e2a842;
    --px-accent-strong: #c9952a;
    --px-cyan: #4ecdc4;
    --px-lime: #f0c866;
    --px-red: #e07a7a;
    --px-shadow: rgba(5, 5, 18, 0.94);
    --px-shadow-soft: rgba(5, 5, 18, 0.56);
    --px-shell-top: rgba(18, 26, 52, 0.98);
    --px-shell-bottom: rgba(10, 14, 26, 0.98);
    --px-hero-top: rgba(29, 52, 97, 0.96);
    --px-hero-bottom: rgba(15, 27, 45, 0.98);
    --px-surface-top: rgba(22, 37, 68, 0.95);
    --px-surface-bottom: rgba(13, 22, 42, 0.98);
    --px-button-top: #e2a842;
    --px-button-bottom: #c9952a;
    --px-button-secondary-top: #1d3461;
    --px-button-secondary-bottom: #0f1b2d;
    --px-input-top: rgba(250, 244, 232, 0.96);
    --px-input-bottom: rgba(232, 220, 192, 0.95);
    --px-highlight: #f0c866;
    --px-highlight-strong: #e2a842;
    --px-ink-strong: #0f1b2d;
    --px-stripe-a: #e2a842;
    --px-stripe-b: #4ecdc4;
    --px-stripe-c: #f0c866;
    --px-stripe-d: #e07a7a;
    --px-radius: 8px;
    --px-frame: 0 0 0 3px #1a1a3e, 0 0 0 6px #e2a842, 0 8px 0 6px rgba(0, 0, 0, 0.4), inset 3px 3px 0 rgba(255, 255, 255, 0.06), inset -3px -3px 0 rgba(0, 0, 0, 0.2);
    --px-frame-soft: 0 0 0 2px #1a1a3e, 0 0 0 4px rgba(226, 168, 66, 0.5), 0 4px 0 4px rgba(0, 0, 0, 0.25), inset 2px 2px 0 rgba(255, 255, 255, 0.04), inset -2px -2px 0 rgba(0, 0, 0, 0.14);
    --px-button: 0 0 0 3px #1a1a3e, 0 0 0 6px #e2a842, 0 6px 0 6px rgba(0, 0, 0, 0.4), inset 3px 3px 0 rgba(255, 255, 255, 0.18), inset -3px -3px 0 rgba(0, 0, 0, 0.22);
    --px-font-display: "Chakra Petch", sans-serif;
    --px-font-body: "Space Grotesk", sans-serif;
}

[data-theme="pixel"] html {
    scroll-behavior: smooth;
}

[data-theme="pixel"] body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 14%, rgba(226, 168, 66, 0.08), transparent 18%),
        radial-gradient(circle at 82% 8%, rgba(78, 205, 196, 0.06), transparent 15%),
        radial-gradient(circle at 50% 50%, rgba(29, 52, 97, 0.4), transparent 60%),
        linear-gradient(180deg, var(--px-bg-top) 0%, var(--px-bg-mid) 44%, var(--px-bg-bottom) 100%);
    color: var(--px-text);
    font-family: var(--px-font-body);
    font-size: clamp(0.98rem, 1.05vw, 1.08rem);
    line-height: 1.55;
    letter-spacing: 0.01em;
}

[data-theme="pixel"] body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    opacity: 0.22;
    background:
        radial-gradient(1.5px 1.5px at 20px 30px, rgba(245, 234, 208, 0.7), transparent),
        radial-gradient(1px 1px at 80px 60px, rgba(245, 234, 208, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 160px 20px, rgba(226, 168, 66, 0.6), transparent),
        radial-gradient(1px 1px at 240px 90px, rgba(245, 234, 208, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 300px 50px, rgba(78, 205, 196, 0.5), transparent),
        radial-gradient(1px 1px at 380px 120px, rgba(245, 234, 208, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 440px 30px, rgba(245, 234, 208, 0.5), transparent),
        radial-gradient(1px 1px at 520px 80px, rgba(226, 168, 66, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 600px 45px, rgba(245, 234, 208, 0.7), transparent),
        radial-gradient(1px 1px at 680px 110px, rgba(78, 205, 196, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 760px 25px, rgba(245, 234, 208, 0.5), transparent),
        radial-gradient(1px 1px at 840px 70px, rgba(226, 168, 66, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 920px 55px, rgba(245, 234, 208, 0.6), transparent),
        radial-gradient(1px 1px at 100px 200px, rgba(245, 234, 208, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 200px 250px, rgba(226, 168, 66, 0.3), transparent),
        radial-gradient(1px 1px at 500px 180px, rgba(78, 205, 196, 0.35), transparent),
        radial-gradient(1.5px 1.5px at 700px 220px, rgba(245, 234, 208, 0.5), transparent);
    background-size: 960px 280px;
}

[data-theme="pixel"] body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 12rem;
    pointer-events: none;
    z-index: -1;
    background:
        repeating-linear-gradient(90deg, #0c1628 0 28px, #111e38 28px 56px),
        linear-gradient(180deg, transparent 0%, rgba(8, 12, 24, 0.96) 100%);
    box-shadow: 0 -4px 0 rgba(78, 205, 196, 0.15), 0 -8px 0 rgba(226, 168, 66, 0.1);
}

[data-theme="pixel"] h1,
[data-theme="pixel"] h2,
[data-theme="pixel"] h3,
[data-theme="pixel"] h4,
[data-theme="pixel"] h5,
[data-theme="pixel"] h6,
[data-theme="pixel"] .app-nav-brand-name,
[data-theme="pixel"] .landing-kicker,
[data-theme="pixel"] .landing-panel-label,
[data-theme="pixel"] .branch-kicker,
[data-theme="pixel"] .branch-stat-label,
[data-theme="pixel"] .notes-section-label,
[data-theme="pixel"] .founder-kicker,
[data-theme="pixel"] .auth-kicker,
[data-theme="pixel"] .auth-point-label,
[data-theme="pixel"] .notes-search-label,
[data-theme="pixel"] .notes-sidebar-label,
[data-theme="pixel"] .workspace-summary-label {
    font-family: var(--px-font-display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.25;
}

[data-theme="pixel"] p,
[data-theme="pixel"] li,
[data-theme="pixel"] span,
[data-theme="pixel"] input,
[data-theme="pixel"] textarea,
[data-theme="pixel"] select,
[data-theme="pixel"] label,
[data-theme="pixel"] a,
[data-theme="pixel"] .hero-support-copy,
[data-theme="pixel"] .landing-panel-copy,
[data-theme="pixel"] .branch-panel-copy,
[data-theme="pixel"] .branch-item-copy,
[data-theme="pixel"] .project-list-copy,
[data-theme="pixel"] .founder-caption,
[data-theme="pixel"] .notes-metric-copy,
[data-theme="pixel"] .notes-sidebar-guidance,
[data-theme="pixel"] .auth-copy,
[data-theme="pixel"] .auth-point-copy {
    font-family: var(--px-font-body);
}

[data-theme="pixel"] a {
    color: var(--px-cyan);
}

[data-theme="pixel"] a:hover {
    color: var(--px-accent);
}

[data-theme="pixel"] ::selection {
    background: rgba(226, 168, 66, 0.28);
    color: var(--px-ink-strong);
}

[data-theme="pixel"] .app-nav-frame,
[data-theme="pixel"] .app-footer-frame,
[data-theme="pixel"] .card,
[data-theme="pixel"] .landing-hero,
[data-theme="pixel"] .landing-pane,
[data-theme="pixel"] .landing-card,
[data-theme="pixel"] .project-list-hero,
[data-theme="pixel"] .project-list-card,
[data-theme="pixel"] .project-list-alert,
[data-theme="pixel"] .project-detail-shell,
[data-theme="pixel"] .project-hero,
[data-theme="pixel"] .founder-cockpit,
[data-theme="pixel"] .project-meta-card,
[data-theme="pixel"] .section-card,
[data-theme="pixel"] .notes-sidebar-card,
[data-theme="pixel"] .notes-tree-panel,
[data-theme="pixel"] .workspace-disclosure,
[data-theme="pixel"] .kanban-shell,
[data-theme="pixel"] .kanban-hero,
[data-theme="pixel"] .tree-workspace-shell,
[data-theme="pixel"] .tree-toolbar-card,
[data-theme="pixel"] .branch-hero,
[data-theme="pixel"] .branch-panel,
[data-theme="pixel"] .auth-card,
[data-theme="pixel"] .auth-point,
[data-theme="pixel"] .note-ai-message,
[data-theme="pixel"] .threadnest-comments,
[data-theme="pixel"] .reddit-note-tree {
    background: linear-gradient(180deg, var(--px-panel) 0%, var(--px-panel-strong) 100%) !important;
    border: 0 !important;
    border-radius: var(--px-radius) !important;
    box-shadow: var(--px-frame) !important;
    color: var(--px-text) !important;
    backdrop-filter: none !important;
}

[data-theme="pixel"] .project-detail-shell,
[data-theme="pixel"] .kanban-shell,
[data-theme="pixel"] .tree-workspace-shell {
    background:
        linear-gradient(180deg, rgba(15, 27, 45, 0.88) 0%, rgba(10, 14, 26, 0.94) 100%),
        repeating-linear-gradient(90deg, rgba(226, 168, 66, 0.02) 0 20px, transparent 20px 40px);
}

[data-theme="pixel"] .landing-hero::before,
[data-theme="pixel"] .landing-hero::after,
[data-theme="pixel"] .project-detail-shell::before,
[data-theme="pixel"] .project-detail-shell::after,
[data-theme="pixel"] .kanban-shell::before,
[data-theme="pixel"] .kanban-shell::after {
    opacity: 0.7;
    border-radius: 0;
    filter: saturate(1.1);
}

[data-theme="pixel"] .project-hero,
[data-theme="pixel"] .kanban-hero,
[data-theme="pixel"] .landing-hero,
[data-theme="pixel"] .branch-hero,
[data-theme="pixel"] .auth-panel.brand {
    background:
        linear-gradient(180deg, var(--px-hero-top) 0%, var(--px-hero-bottom) 100%),
        linear-gradient(90deg, rgba(226, 168, 66, 0.08), transparent 50%, rgba(78, 205, 196, 0.06));
}

[data-theme="pixel"] .app-nav,
[data-theme="pixel"] .app-footer {
    padding-top: 1rem;
}

[data-theme="pixel"] .app-nav-frame,
[data-theme="pixel"] .app-footer-frame {
    background:
        linear-gradient(180deg, var(--px-shell-top) 0%, var(--px-shell-bottom) 100%) !important;
}

[data-theme="pixel"] .app-nav-brand,
[data-theme="pixel"] .app-nav-brand:hover {
    color: var(--px-text) !important;
}

[data-theme="pixel"] .app-nav-brand-mark {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 6px;
    border: 0;
    background: linear-gradient(180deg, var(--px-accent) 0%, var(--px-accent-strong) 100%);
    box-shadow: var(--px-button);
}

[data-theme="pixel"] .app-nav-brand-mark img {
    width: 1.6rem;
    height: 1.6rem;
    image-rendering: pixelated;
    filter: contrast(1.05) saturate(1.1);
}

[data-theme="pixel"] .app-nav-brand-name {
    font-size: clamp(0.96rem, 1.1vw, 1.08rem);
    color: var(--px-text);
    text-shadow: 2px 2px 0 rgba(5, 5, 18, 0.66), 0 0 8px rgba(226, 168, 66, 0.2);
    font-weight: 700;
}

[data-theme="pixel"] .app-nav-brand-subtitle,
[data-theme="pixel"] .app-nav-meta,
[data-theme="pixel"] .app-footer-copy,
[data-theme="pixel"] .app-footer-bottom,
[data-theme="pixel"] .hero-support-copy,
[data-theme="pixel"] .landing-caption,
[data-theme="pixel"] .project-list-copy,
[data-theme="pixel"] .branch-summary,
[data-theme="pixel"] .branch-meta-row,
[data-theme="pixel"] .project-list-description,
[data-theme="pixel"] .project-list-meta,
[data-theme="pixel"] .notes-metric-copy,
[data-theme="pixel"] .notes-search-hint,
[data-theme="pixel"] .founder-caption,
[data-theme="pixel"] .auth-copy,
[data-theme="pixel"] .branch-panel-copy {
    color: var(--px-text-dim) !important;
}

[data-theme="pixel"] .app-user-chip,
[data-theme="pixel"] .app-nav-meta,
[data-theme="pixel"] .landing-tag,
[data-theme="pixel"] .branch-chip,
[data-theme="pixel"] .branch-chip.neutral,
[data-theme="pixel"] .branch-chip.soft,
[data-theme="pixel"] .notes-status-pill,
[data-theme="pixel"] .notes-sidebar-badge,
[data-theme="pixel"] .notes-tree-status,
[data-theme="pixel"] .root-note-index,
[data-theme="pixel"] .root-note-children,
[data-theme="pixel"] .founder-stage-badge,
[data-theme="pixel"] .kb-btn .chip,
[data-theme="pixel"] .ai-panel .chip,
[data-theme="pixel"] .project-list-badge,
[data-theme="pixel"] .branch-mini-meta span,
[data-theme="pixel"] .branch-connection-meta span {
    background: linear-gradient(180deg, rgba(226, 168, 66, 0.18), rgba(201, 149, 42, 0.12)) !important;
    color: var(--px-text) !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: var(--px-frame-soft) !important;
}

[data-theme="pixel"] .branch-chip,
[data-theme="pixel"] .notes-status-pill strong,
[data-theme="pixel"] .branch-breadcrumb span.current {
    color: var(--px-accent) !important;
}

[data-theme="pixel"] .project-list-badge.priority-high,
[data-theme="pixel"] .bg-red-50,
[data-theme="pixel"] .bg-red-100 {
    background: linear-gradient(180deg, rgba(224, 122, 122, 0.22), rgba(180, 80, 80, 0.3)) !important;
    color: var(--px-text) !important;
}

[data-theme="pixel"] .project-list-badge.priority-medium,
[data-theme="pixel"] .bg-yellow-50,
[data-theme="pixel"] .bg-orange-50,
[data-theme="pixel"] .bg-yellow-100,
[data-theme="pixel"] .bg-orange-100 {
    background: linear-gradient(180deg, rgba(240, 200, 102, 0.22), rgba(226, 168, 66, 0.26)) !important;
    color: var(--px-ink-strong) !important;
}

[data-theme="pixel"] .project-list-badge.priority-low,
[data-theme="pixel"] .bg-green-50,
[data-theme="pixel"] .bg-green-100 {
    background: linear-gradient(180deg, rgba(78, 205, 196, 0.18), rgba(58, 181, 173, 0.24)) !important;
    color: var(--px-text) !important;
}

[data-theme="pixel"] .project-list-badge.category,
[data-theme="pixel"] .bg-indigo-50,
[data-theme="pixel"] .bg-indigo-100,
[data-theme="pixel"] .bg-blue-50,
[data-theme="pixel"] .bg-blue-100 {
    background: linear-gradient(180deg, rgba(78, 205, 196, 0.16), rgba(58, 181, 173, 0.22)) !important;
    color: var(--px-text) !important;
}

[data-theme="pixel"] .project-list-badge,
[data-theme="pixel"] .landing-tag,
[data-theme="pixel"] .app-user-chip,
[data-theme="pixel"] .app-nav-meta {
    font-family: var(--px-font-display);
    font-size: 0.66rem !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

[data-theme="pixel"] .app-nav-link,
[data-theme="pixel"] .app-auth-link,
[data-theme="pixel"] .app-mobile-toggle,
[data-theme="pixel"] .landing-button,
[data-theme="pixel"] .project-list-btn,
[data-theme="pixel"] .project-list-inline-link,
[data-theme="pixel"] .project-action-btn,
[data-theme="pixel"] .action-pill,
[data-theme="pixel"] .workspace-tab,
[data-theme="pixel"] .ai-action-btn,
[data-theme="pixel"] .founder-refresh-btn,
[data-theme="pixel"] .note-primary-btn,
[data-theme="pixel"] .kb-btn,
[data-theme="pixel"] .branch-action,
[data-theme="pixel"] .branch-anchor-link,
[data-theme="pixel"] .branch-inline-link,
[data-theme="pixel"] .branch-pill-button,
[data-theme="pixel"] .branch-ghost-button,
[data-theme="pixel"] .threadnest-btn,
[data-theme="pixel"] .theme-dropdown button,
[data-theme="pixel"] #saveAnalysis,
[data-theme="pixel"] #projectNotesExpandAll,
[data-theme="pixel"] #projectNotesCollapseAll,
[data-theme="pixel"] #projectNotesClearFocus,
[data-theme="pixel"] #projectNotesClear {
    border: 0 !important;
    border-radius: var(--px-radius) !important;
    background: linear-gradient(180deg, var(--px-button-secondary-top) 0%, var(--px-button-secondary-bottom) 100%) !important;
    color: var(--px-text) !important;
    box-shadow: var(--px-button) !important;
    font-family: var(--px-font-display) !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase;
    line-height: 1.2;
    font-weight: 600;
}

[data-theme="pixel"] .app-nav-link:hover,
[data-theme="pixel"] .app-auth-link:hover,
[data-theme="pixel"] .landing-button:hover,
[data-theme="pixel"] .project-list-btn:hover,
[data-theme="pixel"] .project-list-inline-link:hover,
[data-theme="pixel"] .project-action-btn:hover,
[data-theme="pixel"] .action-pill:hover,
[data-theme="pixel"] .workspace-tab:hover,
[data-theme="pixel"] .ai-action-btn:hover,
[data-theme="pixel"] .founder-refresh-btn:hover,
[data-theme="pixel"] .note-primary-btn:hover,
[data-theme="pixel"] .kb-btn:hover,
[data-theme="pixel"] .branch-action:hover,
[data-theme="pixel"] .branch-anchor-link:hover,
[data-theme="pixel"] .branch-inline-link:hover,
[data-theme="pixel"] .branch-pill-button:hover,
[data-theme="pixel"] .branch-ghost-button:hover,
[data-theme="pixel"] .threadnest-btn:hover,
[data-theme="pixel"] .theme-dropdown button:hover {
    transform: translateY(-2px);
    color: var(--px-accent) !important;
}

[data-theme="pixel"] .app-nav-link.is-active,
[data-theme="pixel"] .project-list-btn.primary,
[data-theme="pixel"] .project-action-btn.primary,
[data-theme="pixel"] .action-pill.primary,
[data-theme="pixel"] .note-primary-btn,
[data-theme="pixel"] .kb-btn.primary,
[data-theme="pixel"] .branch-action.primary,
[data-theme="pixel"] .threadnest-btn-primary,
[data-theme="pixel"] .app-auth-link.primary {
    background: linear-gradient(180deg, var(--px-accent) 0%, var(--px-accent-strong) 100%) !important;
    color: var(--px-ink-strong) !important;
}

[data-theme="pixel"] .branch-action.secondary,
[data-theme="pixel"] .landing-button.secondary,
[data-theme="pixel"] .project-list-btn.secondary,
[data-theme="pixel"] .app-nav-link.compact,
[data-theme="pixel"] .threadnest-btn-secondary {
    background: linear-gradient(180deg, var(--px-button-secondary-top) 0%, var(--px-button-secondary-bottom) 100%) !important;
    color: var(--px-text) !important;
}

[data-theme="pixel"] .theme-toggle {
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: var(--px-radius);
    background: linear-gradient(180deg, var(--px-button-secondary-top) 0%, var(--px-button-secondary-bottom) 100%);
    color: var(--px-text);
    box-shadow: var(--px-button);
}

[data-theme="pixel"] .theme-dropdown {
    padding: 0.45rem;
    min-width: 12rem;
    border: 0;
    border-radius: var(--px-radius);
    background: linear-gradient(180deg, var(--px-shell-top), var(--px-shell-bottom));
    box-shadow: var(--px-frame);
}

[data-theme="pixel"] .theme-dropdown button {
    margin-bottom: 0.4rem;
}

[data-theme="pixel"] .theme-dropdown button:last-child {
    margin-bottom: 0;
}

[data-theme="pixel"] .app-nav-search input,
[data-theme="pixel"] input,
[data-theme="pixel"] textarea,
[data-theme="pixel"] select,
[data-theme="pixel"] .notes-search-field,
[data-theme="pixel"] .notes-search-input,
[data-theme="pixel"] .branch-form-input,
[data-theme="pixel"] .branch-form-select,
[data-theme="pixel"] .branch-form-textarea,
[data-theme="pixel"] .auth-form input[type="text"],
[data-theme="pixel"] .auth-form input[type="password"],
[data-theme="pixel"] .auth-form input[type="email"],
[data-theme="pixel"] .threadnest-form textarea,
[data-theme="pixel"] #noteAiInput,
[data-theme="pixel"] #llmModel,
[data-theme="pixel"] #llmPrompt,
[data-theme="pixel"] #quickNoteTitle,
[data-theme="pixel"] #quickNoteType,
[data-theme="pixel"] #quickNoteContent,
[data-theme="pixel"] #provider,
[data-theme="pixel"] #analysis_type,
[data-theme="pixel"] #prompt {
    border: 0 !important;
    border-radius: var(--px-radius) !important;
    background: linear-gradient(180deg, var(--px-input-top), var(--px-input-bottom)) !important;
    color: var(--px-ink-strong) !important;
    box-shadow: var(--px-frame-soft) !important;
    font-family: var(--px-font-body) !important;
    font-size: 1.2rem !important;
    line-height: 1.1;
}

[data-theme="pixel"] input::placeholder,
[data-theme="pixel"] textarea::placeholder,
[data-theme="pixel"] .notes-search-input::placeholder {
    color: rgba(15, 27, 45, 0.5) !important;
}

[data-theme="pixel"] input:focus,
[data-theme="pixel"] textarea:focus,
[data-theme="pixel"] select:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px var(--px-border), 0 0 0 6px rgba(226, 168, 66, 0.35), 0 0 16px rgba(226, 168, 66, 0.15) !important;
}

[data-theme="pixel"] .app-mobile-menu {
    border: 0;
    border-radius: var(--px-radius);
    background: linear-gradient(180deg, var(--px-shell-top), var(--px-shell-bottom));
    box-shadow: var(--px-frame);
}

[data-theme="pixel"] .app-mobile-menu a,
[data-theme="pixel"] .app-mobile-menu div {
    border-bottom-color: rgba(226, 168, 66, 0.08);
    color: var(--px-text) !important;
    font-family: var(--px-font-display);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

[data-theme="pixel"] .app-footer-link,
[data-theme="pixel"] .app-footer-link:hover {
    background: linear-gradient(180deg, var(--px-button-secondary-top) 0%, var(--px-button-secondary-bottom) 100%);
    color: var(--px-text) !important;
    border: 0;
    border-radius: var(--px-radius);
    box-shadow: var(--px-button);
    font-family: var(--px-font-display);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

[data-theme="pixel"] .app-footer-brand {
    font-family: var(--px-font-display);
    font-size: 0.92rem;
    color: var(--px-accent);
    font-weight: 700;
}

[data-theme="pixel"] .landing-shell,
[data-theme="pixel"] .project-list-shell,
[data-theme="pixel"] .branch-shell,
[data-theme="pixel"] .auth-shell {
    color: var(--px-text);
}

[data-theme="pixel"] .landing-title,
[data-theme="pixel"] .branch-title,
[data-theme="pixel"] .auth-title,
[data-theme="pixel"] .auth-form-title,
[data-theme="pixel"] .project-list-title,
[data-theme="pixel"] .notes-sidebar-head h3,
[data-theme="pixel"] .notes-tree-panel-head h3,
[data-theme="pixel"] .branch-panel-title,
[data-theme="pixel"] .landing-panel-title,
[data-theme="pixel"] .founder-list-card h3,
[data-theme="pixel"] .notes-empty-search h3,
[data-theme="pixel"] .notes-empty-state h3 {
    color: var(--px-text) !important;
    text-shadow: 2px 2px 0 rgba(5, 5, 18, 0.66), 0 0 12px rgba(226, 168, 66, 0.15);
    font-weight: 700;
}

[data-theme="pixel"] .landing-title,
[data-theme="pixel"] .branch-title,
[data-theme="pixel"] .auth-title,
[data-theme="pixel"] .auth-form-title {
    font-size: clamp(1.65rem, 4vw, 2.5rem) !important;
    line-height: 1.1 !important;
    font-weight: 700;
}

[data-theme="pixel"] .project-list-title {
    font-size: clamp(1.15rem, 2vw, 1.35rem) !important;
    line-height: 1.2 !important;
}

[data-theme="pixel"] .landing-subtitle,
[data-theme="pixel"] .branch-summary,
[data-theme="pixel"] .project-list-description,
[data-theme="pixel"] .landing-panel-copy,
[data-theme="pixel"] .landing-panel-copy,
[data-theme="pixel"] .branch-content-body,
[data-theme="pixel"] .branch-item-copy,
[data-theme="pixel"] .founder-inline-list li,
[data-theme="pixel"] .founder-detail-value,
[data-theme="pixel"] .notes-sidebar-guidance,
[data-theme="pixel"] .auth-point-copy,
[data-theme="pixel"] .auth-meta,
[data-theme="pixel"] .project-list-copy {
    font-size: 1rem !important;
    line-height: 1.55 !important;
}

[data-theme="pixel"] .landing-search,
[data-theme="pixel"] .notes-command-bar,
[data-theme="pixel"] .notes-search-field,
[data-theme="pixel"] .hero-ai-bar,
[data-theme="pixel"] .branch-graph-mount,
[data-theme="pixel"] .branch-result,
[data-theme="pixel"] .branch-empty,
[data-theme="pixel"] .notes-empty-search,
[data-theme="pixel"] .notes-empty-state,
[data-theme="pixel"] .project-list-empty,
[data-theme="pixel"] .founder-empty-state,
[data-theme="pixel"] .notes-sidebar-card,
[data-theme="pixel"] .notes-metric-card,
[data-theme="pixel"] .project-stat-card,
[data-theme="pixel"] .hero-stat-pill,
[data-theme="pixel"] .founder-detail-card,
[data-theme="pixel"] .founder-list-card,
[data-theme="pixel"] .founder-next-card,
[data-theme="pixel"] .branch-stat,
[data-theme="pixel"] .branch-block-card,
[data-theme="pixel"] .branch-child-card,
[data-theme="pixel"] .branch-connection-card,
[data-theme="pixel"] .branch-next-move,
[data-theme="pixel"] .branch-mini-card,
[data-theme="pixel"] .root-note-link,
[data-theme="pixel"] .threadnest-comment,
[data-theme="pixel"] .threadnest-form,
[data-theme="pixel"] .reddit-note,
[data-theme="pixel"] .reddit-note-header {
    background: linear-gradient(180deg, var(--px-surface-top) 0%, var(--px-surface-bottom) 100%) !important;
    border: 0 !important;
    border-radius: var(--px-radius) !important;
    box-shadow: var(--px-frame-soft) !important;
    color: var(--px-text) !important;
}

[data-theme="pixel"] .founder-next-card,
[data-theme="pixel"] .ai-panel {
    background:
        linear-gradient(180deg, rgba(29, 52, 97, 0.76) 0%, rgba(15, 27, 45, 0.98) 100%),
        repeating-linear-gradient(90deg, rgba(226, 168, 66, 0.04) 0 16px, transparent 16px 32px) !important;
    box-shadow: var(--px-frame) !important;
}

[data-theme="pixel"] .notes-command-bar,
[data-theme="pixel"] .landing-search {
    grid-template-columns: minmax(0, 1fr) auto;
}

[data-theme="pixel"] .notes-search-icon,
[data-theme="pixel"] .branch-title-icon,
[data-theme="pixel"] .threadnest-avatar,
[data-theme="pixel"] .reddit-note-avatar {
    border-radius: var(--px-radius) !important;
    border: 0 !important;
    background: linear-gradient(180deg, var(--px-accent) 0%, var(--px-accent-strong) 100%) !important;
    color: var(--px-ink-strong) !important;
    box-shadow: var(--px-button) !important;
}

[data-theme="pixel"] .branch-title-icon {
    width: 3.5rem;
    height: 3.5rem;
}

[data-theme="pixel"] .landing-stat,
[data-theme="pixel"] .branch-stat,
[data-theme="pixel"] .notes-metric-card,
[data-theme="pixel"] .project-stat-card {
    min-height: 100%;
}

[data-theme="pixel"] .hero-stat-pill .label,
[data-theme="pixel"] .branch-stat-label,
[data-theme="pixel"] .notes-metric-label,
[data-theme="pixel"] .project-stat-card .label,
[data-theme="pixel"] .founder-detail-label,
[data-theme="pixel"] .root-note-foot,
[data-theme="pixel"] .branch-mini-meta,
[data-theme="pixel"] .branch-connection-meta,
[data-theme="pixel"] .threadnest-meta,
[data-theme="pixel"] .reddit-note-meta {
    color: var(--px-text-dim) !important;
    font-size: 0.72rem !important;
}

[data-theme="pixel"] .hero-stat-pill .value,
[data-theme="pixel"] .branch-stat-value,
[data-theme="pixel"] .notes-metric-value,
[data-theme="pixel"] .project-stat-card .value,
[data-theme="pixel"] .founder-next-card .founder-detail-value {
    color: var(--px-accent) !important;
    font-family: var(--px-font-display);
    font-size: clamp(1rem, 2vw, 1.35rem) !important;
    line-height: 1.2 !important;
    font-weight: 700;
}

[data-theme="pixel"] .project-detail-shell .section-card .note-item,
[data-theme="pixel"] .note-item {
    position: relative;
    overflow: hidden;
    border: 0 !important;
    border-radius: var(--px-radius) !important;
    background: linear-gradient(180deg, var(--px-surface-top) 0%, var(--px-surface-bottom) 100%) !important;
    box-shadow: var(--px-frame) !important;
}

[data-theme="pixel"] .note-item::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 0.5rem;
    background: repeating-linear-gradient(90deg, var(--px-stripe-a) 0 16px, var(--px-stripe-b) 16px 32px, var(--px-stripe-c) 32px 48px, var(--px-stripe-d) 48px 64px);
}

[data-theme="pixel"] .note-item[data-depth="0"] {
    background: linear-gradient(180deg, var(--px-hero-top) 0%, var(--px-hero-bottom) 100%) !important;
}

[data-theme="pixel"] .note-item[data-depth="1"]::before {
    background: repeating-linear-gradient(90deg, var(--px-stripe-b) 0 20px, var(--px-stripe-a) 20px 40px);
}

[data-theme="pixel"] .note-item[data-depth="2"]::before {
    background: repeating-linear-gradient(90deg, var(--px-stripe-c) 0 20px, var(--px-stripe-b) 20px 40px);
}

[data-theme="pixel"] .note-item[data-depth="3"]::before,
[data-theme="pixel"] .note-item[data-depth="4"]::before,
[data-theme="pixel"] .note-item[data-depth="5"]::before {
    background: repeating-linear-gradient(90deg, var(--px-stripe-d) 0 20px, var(--px-stripe-a) 20px 40px);
}

[data-theme="pixel"] .note-item .text-gray-400,
[data-theme="pixel"] .note-item .text-gray-500,
[data-theme="pixel"] .note-item .text-gray-600,
[data-theme="pixel"] .note-item .text-gray-700,
[data-theme="pixel"] .note-item .text-gray-900,
[data-theme="pixel"] .note-item .text-blue-700,
[data-theme="pixel"] .note-item .text-indigo-700 {
    color: var(--px-text) !important;
}

[data-theme="pixel"] .note-item .collapse-btn,
[data-theme="pixel"] .note-item .quick-note-btn,
[data-theme="pixel"] .note-item .ask-llm-btn,
[data-theme="pixel"] .note-item .note-actions-wrap > button {
    border: 0 !important;
    border-radius: var(--px-radius) !important;
    background: linear-gradient(180deg, var(--px-accent) 0%, var(--px-accent-strong) 100%) !important;
    color: var(--px-ink-strong) !important;
    box-shadow: var(--px-button) !important;
    font-family: var(--px-font-display) !important;
    font-size: 0.52rem !important;
    text-transform: uppercase;
}

[data-theme="pixel"] .note-item .note-actions-wrap > button,
[data-theme="pixel"] .note-item .quick-note-btn,
[data-theme="pixel"] .note-item .ask-llm-btn {
    padding: 0.6rem 0.8rem !important;
}

[data-theme="pixel"] .note-item .note-action-menu {
    border: 0 !important;
    border-radius: var(--px-radius) !important;
    background: linear-gradient(180deg, var(--px-shell-top), var(--px-shell-bottom)) !important;
    box-shadow: var(--px-frame) !important;
}

[data-theme="pixel"] .note-item .note-action-menu a,
[data-theme="pixel"] .note-item .note-action-menu button {
    color: var(--px-text) !important;
    border-radius: 6px !important;
    font-family: var(--px-font-body) !important;
    font-size: 0.94rem !important;
    line-height: 1.45 !important;
}

[data-theme="pixel"] .note-item .note-action-menu a:hover,
[data-theme="pixel"] .note-item .note-action-menu button:hover {
    background: rgba(226, 168, 66, 0.1) !important;
}

[data-theme="pixel"] .note-item .note-title,
[data-theme="pixel"] .note-item .note-title a,
[data-theme="pixel"] .root-note-title,
[data-theme="pixel"] .root-note-link,
[data-theme="pixel"] .branch-item-title,
[data-theme="pixel"] .branch-item-title a,
[data-theme="pixel"] .project-list-title a {
    color: var(--px-text) !important;
}

[data-theme="pixel"] .note-item .note-title,
[data-theme="pixel"] .root-note-title,
[data-theme="pixel"] .branch-item-title {
    font-family: var(--px-font-display);
    font-size: 0.9rem !important;
    line-height: 1.25 !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 700;
}

[data-theme="pixel"] .note-item .note-content,
[data-theme="pixel"] .root-note-snippet {
    color: var(--px-text-dim) !important;
    font-size: 0.96rem !important;
    line-height: 1.55 !important;
}

[data-theme="pixel"] .note-item .note-children,
[data-theme="pixel"] #notesSection .note-children {
    border-left: 0 !important;
    position: relative;
    margin-left: 1.2rem !important;
    padding-left: 1.25rem !important;
}

[data-theme="pixel"] .note-item .note-children::before,
[data-theme="pixel"] #notesSection .note-children::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 0.45rem;
    background: repeating-linear-gradient(180deg, var(--px-accent) 0 12px, transparent 12px 18px);
}

[data-theme="pixel"] .branch-breadcrumb,
[data-theme="pixel"] .branch-breadcrumb a,
[data-theme="pixel"] .branch-meta-row a {
    color: var(--px-cyan) !important;
}

[data-theme="pixel"] .branch-panel-title,
[data-theme="pixel"] .threadnest-header,
[data-theme="pixel"] .reddit-note-header,
[data-theme="pixel"] .comment-title {
    color: var(--px-accent) !important;
}

[data-theme="pixel"] .branch-content-body,
[data-theme="pixel"] .branch-content-body h1,
[data-theme="pixel"] .branch-content-body h2,
[data-theme="pixel"] .branch-content-body h3,
[data-theme="pixel"] .branch-content-body h4 {
    color: var(--px-text) !important;
}

[data-theme="pixel"] .branch-content-body code,
[data-theme="pixel"] .branch-block-code {
    background: rgba(226, 168, 66, 0.12) !important;
    color: var(--px-accent) !important;
    border-radius: 4px !important;
    box-shadow: inset 0 0 0 2px rgba(226, 168, 66, 0.16);
}

[data-theme="pixel"] .branch-content-body pre {
    border: 0 !important;
    border-radius: var(--px-radius) !important;
    background: linear-gradient(180deg, rgba(8, 12, 24, 0.96), rgba(5, 8, 18, 1)) !important;
    color: var(--px-lime) !important;
    box-shadow: var(--px-frame-soft) !important;
}

[data-theme="pixel"] .branch-content-body blockquote {
    border-left: 0 !important;
    border-radius: var(--px-radius) !important;
    background: linear-gradient(180deg, rgba(78, 205, 196, 0.08), rgba(15, 27, 45, 0.88)) !important;
    color: var(--px-text) !important;
    box-shadow: var(--px-frame-soft) !important;
}

[data-theme="pixel"] .branch-result.hidden {
    display: none;
}

[data-theme="pixel"] .notes-search-input,
[data-theme="pixel"] .app-nav-search input {
    background: transparent !important;
    box-shadow: none !important;
}

[data-theme="pixel"] .notes-search-field,
[data-theme="pixel"] .app-nav-search {
    box-shadow: var(--px-frame-soft) !important;
}

[data-theme="pixel"] .notes-search-field {
    padding: 0.85rem 1rem !important;
}

[data-theme="pixel"] .notes-workspace,
[data-theme="pixel"] .notes-tree-panel,
[data-theme="pixel"] .notes-sidebar-card,
[data-theme="pixel"] .workspace-disclosure {
    overflow: visible;
}

[data-theme="pixel"] .notes-empty-search,
[data-theme="pixel"] .notes-empty-state,
[data-theme="pixel"] .project-list-empty,
[data-theme="pixel"] .founder-empty-state,
[data-theme="pixel"] .branch-empty {
    border-style: solid !important;
}

[data-theme="pixel"] .workspace-disclosure summary {
    padding: 1.1rem 1.2rem;
}

[data-theme="pixel"] .workspace-disclosure[open] summary {
    background: rgba(226, 168, 66, 0.06);
    border-bottom: 0;
}

[data-theme="pixel"] .threadnest-header,
[data-theme="pixel"] .threadnest-form,
[data-theme="pixel"] .reddit-note-header {
    border-bottom: 0 !important;
}

[data-theme="pixel"] .threadnest-container,
[data-theme="pixel"] .reddit-note-container {
    color: var(--px-text);
}

[data-theme="pixel"] .threadnest-comment,
[data-theme="pixel"] .reddit-note {
    margin: 0.6rem;
}

[data-theme="pixel"] .threadnest-author,
[data-theme="pixel"] .reddit-note-author {
    color: var(--px-accent) !important;
}

[data-theme="pixel"] .threadnest-score,
[data-theme="pixel"] .reddit-vote-score {
    color: var(--px-text) !important;
    font-family: var(--px-font-display);
    font-size: 0.72rem !important;
    font-weight: 700;
}

[data-theme="pixel"] .threadnest-vote-btn,
[data-theme="pixel"] .reddit-vote-btn,
[data-theme="pixel"] .reddit-collapse-btn {
    border-radius: 6px !important;
    background: linear-gradient(180deg, var(--px-accent) 0%, var(--px-accent-strong) 100%) !important;
    box-shadow: var(--px-button) !important;
}

[data-theme="pixel"] .threadnest-vote-btn svg,
[data-theme="pixel"] .reddit-vote-btn svg,
[data-theme="pixel"] .reddit-collapse-btn svg {
    fill: var(--px-ink-strong) !important;
}

[data-theme="pixel"] .auth-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
}

[data-theme="pixel"] .auth-panel.brand {
    border-right: 0 !important;
    box-shadow: inset -4px 0 0 rgba(226, 168, 66, 0.16);
}

[data-theme="pixel"] .auth-link {
    color: var(--px-cyan) !important;
}

[data-theme="pixel"] .auth-button.primary {
    background: linear-gradient(180deg, var(--px-accent) 0%, var(--px-accent-strong) 100%) !important;
    color: var(--px-ink-strong) !important;
}

[data-theme="pixel"] .auth-button.secondary {
    background: linear-gradient(180deg, var(--px-button-secondary-top) 0%, var(--px-button-secondary-bottom) 100%) !important;
    color: var(--px-text) !important;
}

[data-theme="pixel"] .auth-alert {
    border-radius: var(--px-radius);
    box-shadow: var(--px-frame-soft);
}

[data-theme="pixel"] .bg-white,
[data-theme="pixel"] .bg-gray-50,
[data-theme="pixel"] .bg-gray-100,
[data-theme="pixel"] .bg-gray-200 {
    background-color: rgba(22, 37, 68, 0.94) !important;
}

[data-theme="pixel"] .text-gray-900,
[data-theme="pixel"] .text-gray-800,
[data-theme="pixel"] .text-gray-700,
[data-theme="pixel"] .text-gray-600,
[data-theme="pixel"] .text-gray-500,
[data-theme="pixel"] .text-gray-400 {
    color: var(--px-text) !important;
}

[data-theme="pixel"] .border-gray-100,
[data-theme="pixel"] .border-gray-200,
[data-theme="pixel"] .border-gray-300,
[data-theme="pixel"] .border-indigo-200,
[data-theme="pixel"] .border-green-200,
[data-theme="pixel"] .border-yellow-200,
[data-theme="pixel"] .border-orange-200,
[data-theme="pixel"] .border-red-200 {
    border-color: transparent !important;
}

[data-theme="pixel"] .bg-blue-600,
[data-theme="pixel"] .bg-indigo-600,
[data-theme="pixel"] .bg-purple-600 {
    background: linear-gradient(180deg, var(--px-accent) 0%, var(--px-accent-strong) 100%) !important;
    color: var(--px-ink-strong) !important;
}

[data-theme="pixel"] .hover\:bg-blue-700:hover,
[data-theme="pixel"] .hover\:bg-indigo-700:hover,
[data-theme="pixel"] .hover\:bg-purple-700:hover {
    background: linear-gradient(180deg, #f0c866 0%, #d4a73a 100%) !important;
}

[data-theme="pixel"] .text-blue-600,
[data-theme="pixel"] .text-blue-700,
[data-theme="pixel"] .text-indigo-600,
[data-theme="pixel"] .text-indigo-700,
[data-theme="pixel"] .text-indigo-800,
[data-theme="pixel"] .text-green-700,
[data-theme="pixel"] .text-green-800,
[data-theme="pixel"] .text-yellow-700,
[data-theme="pixel"] .text-yellow-800,
[data-theme="pixel"] .text-orange-700,
[data-theme="pixel"] .text-orange-800,
[data-theme="pixel"] .text-red-700,
[data-theme="pixel"] .text-red-800 {
    color: var(--px-accent) !important;
}

[data-theme="pixel"] .shadow-sm,
[data-theme="pixel"] .shadow,
[data-theme="pixel"] .shadow-md,
[data-theme="pixel"] .shadow-lg,
[data-theme="pixel"] .shadow-xl {
    box-shadow: var(--px-frame-soft) !important;
}

[data-theme="pixel"] .rounded,
[data-theme="pixel"] .rounded-md,
[data-theme="pixel"] .rounded-lg,
[data-theme="pixel"] .rounded-xl,
[data-theme="pixel"] .rounded-2xl,
[data-theme="pixel"] .rounded-3xl,
[data-theme="pixel"] .rounded-full {
    border-radius: var(--px-radius) !important;
}

[data-theme="pixel"] .ring-1,
[data-theme="pixel"] .ring-inset {
    --tw-ring-color: transparent !important;
}

[data-theme="pixel"] #quickNoteModal,
[data-theme="pixel"] #askLLMModal {
    backdrop-filter: blur(2px);
}

[data-theme="pixel"] #quickNoteModal > div > div,
[data-theme="pixel"] #askLLMModal > div > div,
[data-theme="pixel"] #command-palette .max-w-4xl {
    border: 0 !important;
    border-radius: var(--px-radius) !important;
    background: linear-gradient(180deg, var(--px-shell-top), var(--px-shell-bottom)) !important;
    box-shadow: var(--px-frame) !important;
    color: var(--px-text) !important;
}

[data-theme="pixel"] #command-palette-backdrop {
    background: rgba(5, 5, 18, 0.72) !important;
    backdrop-filter: blur(4px);
}

[data-theme="pixel"] #command-palette-state,
[data-theme="pixel"] #command-palette-preview,
[data-theme="pixel"] #command-palette-preview-snippet {
    background: rgba(226, 168, 66, 0.1) !important;
    color: var(--px-text) !important;
    border-color: transparent !important;
}

[data-theme="pixel"] .command-palette-item {
    border-radius: var(--px-radius) !important;
    border: 0 !important;
    background: linear-gradient(180deg, var(--px-surface-top), var(--px-surface-bottom)) !important;
    box-shadow: var(--px-frame-soft) !important;
}

[data-theme="pixel"] .command-palette-item.bg-indigo-50,
[data-theme="pixel"] .command-palette-item.border-indigo-200 {
    background: linear-gradient(180deg, var(--px-accent) 0%, var(--px-accent-strong) 100%) !important;
}

[data-theme="pixel"] .command-palette-item.bg-indigo-50 p,
[data-theme="pixel"] .command-palette-item.border-indigo-200 p,
[data-theme="pixel"] .command-palette-item.bg-indigo-50 span,
[data-theme="pixel"] .command-palette-item.border-indigo-200 span {
    color: var(--px-ink-strong) !important;
}

[data-theme="pixel"] .command-palette-item .bg-gray-100 {
    background: rgba(255, 255, 255, 0.16) !important;
}

[data-theme="pixel"] .ql-toolbar.ql-snow,
[data-theme="pixel"] .ql-container.ql-snow,
[data-theme="pixel"] #quillEditor,
[data-theme="pixel"] .ql-picker-options {
    border: 0 !important;
    background: linear-gradient(180deg, var(--px-input-top), var(--px-input-bottom)) !important;
    color: var(--px-ink-strong) !important;
    box-shadow: var(--px-frame-soft) !important;
}

[data-theme="pixel"] .ql-toolbar.ql-snow {
    border-radius: var(--px-radius) var(--px-radius) 0 0 !important;
}

[data-theme="pixel"] .ql-container.ql-snow {
    border-radius: 0 0 var(--px-radius) var(--px-radius) !important;
}

[data-theme="pixel"] .ql-editor,
[data-theme="pixel"] .ql-editor.ql-blank::before {
    color: var(--px-ink-strong) !important;
    font-family: var(--px-font-body) !important;
    font-size: 1.2rem !important;
    line-height: 1.1 !important;
}

[data-theme="pixel"] .ql-snow .ql-stroke {
    stroke: var(--px-ink-strong) !important;
}

[data-theme="pixel"] .ql-snow .ql-fill {
    fill: var(--px-ink-strong) !important;
}

[data-theme="pixel"] .ql-snow .ql-picker {
    color: var(--px-ink-strong) !important;
}

[data-theme="pixel"] .public-branch-node {
    display: grid;
    gap: 0.9rem;
}

[data-theme="pixel"] .public-story-hero,
[data-theme="pixel"] .public-story-section,
[data-theme="pixel"] .public-story-column,
[data-theme="pixel"] .public-story-meta-card,
[data-theme="pixel"] .public-story-card {
    border: 0 !important;
    border-radius: var(--px-radius) !important;
    box-shadow: var(--px-frame) !important;
    color: var(--px-text) !important;
}

[data-theme="pixel"] .public-story-hero {
    background:
        linear-gradient(180deg, var(--px-hero-top) 0%, var(--px-hero-bottom) 100%),
        linear-gradient(90deg, rgba(226, 168, 66, 0.08), transparent 50%, rgba(78, 205, 196, 0.06)) !important;
}

[data-theme="pixel"] .public-story-section,
[data-theme="pixel"] .public-story-column,
[data-theme="pixel"] .public-story-meta-card,
[data-theme="pixel"] .public-story-card {
    background: linear-gradient(180deg, var(--px-surface-top), var(--px-surface-bottom)) !important;
}

[data-theme="pixel"] .public-story-hero h1,
[data-theme="pixel"] .public-story-section h2,
[data-theme="pixel"] .public-story-column h2 {
    color: var(--px-text) !important;
    font-family: var(--px-font-display);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
    font-weight: 700;
}

[data-theme="pixel"] .public-story-hero h1 {
    font-size: clamp(1.4rem, 4vw, 2.2rem) !important;
}

[data-theme="pixel"] .public-story-hero p,
[data-theme="pixel"] .public-story-section p,
[data-theme="pixel"] .public-story-column p,
[data-theme="pixel"] .public-story-card p {
    color: var(--px-text-dim) !important;
}

[data-theme="pixel"] .public-story-hero .text-gray-500,
[data-theme="pixel"] .public-story-hero .text-gray-700,
[data-theme="pixel"] .public-story-hero .text-gray-800,
[data-theme="pixel"] .public-story-hero .text-gray-900,
[data-theme="pixel"] .public-story-section .text-gray-500,
[data-theme="pixel"] .public-story-section .text-gray-700,
[data-theme="pixel"] .public-story-section .text-gray-800,
[data-theme="pixel"] .public-story-section .text-gray-900,
[data-theme="pixel"] .public-story-column .text-gray-500,
[data-theme="pixel"] .public-story-column .text-gray-600,
[data-theme="pixel"] .public-story-column .text-gray-700,
[data-theme="pixel"] .public-story-column .text-gray-800,
[data-theme="pixel"] .public-story-column .text-gray-900,
[data-theme="pixel"] .public-story-card .text-gray-500,
[data-theme="pixel"] .public-story-card .text-gray-700,
[data-theme="pixel"] .public-story-card .text-gray-800,
[data-theme="pixel"] .public-story-card .text-gray-900 {
    color: var(--px-text) !important;
}

[data-theme="pixel"] .public-story-hero .text-right p,
[data-theme="pixel"] .public-story-hero .text-xs,
[data-theme="pixel"] .public-story-meta-card .text-xs,
[data-theme="pixel"] .public-story-column .text-xs {
    font-family: var(--px-font-display);
    font-size: 0.64rem !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

[data-theme="pixel"] .public-story-hero .rounded-full {
    background: linear-gradient(180deg, var(--px-accent) 0%, var(--px-accent-strong) 100%) !important;
    color: var(--px-ink-strong) !important;
    box-shadow: var(--px-button) !important;
}

[data-theme="pixel"] .public-branch-card {
    position: relative;
    padding: 1rem 1.05rem 0.95rem;
    border-radius: var(--px-radius);
    background: linear-gradient(180deg, var(--px-surface-top), var(--px-surface-bottom));
    box-shadow: var(--px-frame);
    color: var(--px-text);
}

[data-theme="pixel"] .public-branch-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 0.45rem;
    background: repeating-linear-gradient(90deg, var(--px-stripe-a) 0 18px, var(--px-stripe-b) 18px 36px, var(--px-stripe-c) 36px 54px);
}

[data-theme="pixel"] .public-branch-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

[data-theme="pixel"] .public-branch-title {
    font-family: var(--px-font-display);
    font-size: 0.82rem;
    line-height: 1.25;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--px-text);
    font-weight: 700;
}

[data-theme="pixel"] .public-branch-depth {
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    background: linear-gradient(180deg, var(--px-accent) 0%, var(--px-accent-strong) 100%);
    color: var(--px-ink-strong);
    box-shadow: var(--px-button);
    font-family: var(--px-font-display);
    font-size: 0.62rem;
    font-weight: 700;
}

[data-theme="pixel"] .public-branch-body {
    color: var(--px-text-dim);
    font-size: 0.98rem;
    line-height: 1.55;
}

[data-theme="pixel"] .public-branch-children {
    position: relative;
    margin-left: 1rem;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.9rem;
}

[data-theme="pixel"] .public-branch-children::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2rem;
    bottom: 0.2rem;
    width: 0.42rem;
    background: repeating-linear-gradient(180deg, var(--px-accent) 0 12px, transparent 12px 18px);
}

@media (max-width: 1100px) {
    [data-theme="pixel"] .notes-workspace-grid,
    [data-theme="pixel"] .founder-body-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 900px) {
    [data-theme="pixel"] .auth-card,
    [data-theme="pixel"] .branch-layout,
    [data-theme="pixel"] .branch-hero-grid,
    [data-theme="pixel"] .notes-command-bar,
    [data-theme="pixel"] .project-hero .project-actions,
    [data-theme="pixel"] .kanban-actions {
        grid-template-columns: 1fr !important;
    }

    [data-theme="pixel"] .project-detail-shell,
    [data-theme="pixel"] .kanban-shell,
    [data-theme="pixel"] .tree-workspace-shell {
        padding: 1rem !important;
    }

    [data-theme="pixel"] .landing-title,
    [data-theme="pixel"] .branch-title,
    [data-theme="pixel"] .auth-title,
    [data-theme="pixel"] .auth-form-title {
        font-size: clamp(1.2rem, 7vw, 1.65rem) !important;
    }

    [data-theme="pixel"] .branch-hero,
    [data-theme="pixel"] .branch-panel,
    [data-theme="pixel"] .project-list-hero,
    [data-theme="pixel"] .project-list-card,
    [data-theme="pixel"] .section-card,
    [data-theme="pixel"] .landing-pane,
    [data-theme="pixel"] .landing-card,
    [data-theme="pixel"] .landing-hero {
        padding: 1rem !important;
    }
}

@media (max-width: 640px) {
    [data-theme="pixel"] body {
        font-size: 1.26rem;
    }

    [data-theme="pixel"] .app-container,
    [data-theme="pixel"] .app-main {
        width: min(100%, calc(100% - 1rem));
    }

    [data-theme="pixel"] .app-nav-frame,
    [data-theme="pixel"] .app-footer-frame {
        padding: 0.85rem;
    }

    [data-theme="pixel"] .app-nav-brand-name,
    [data-theme="pixel"] .landing-tag,
    [data-theme="pixel"] .project-list-badge,
    [data-theme="pixel"] .theme-dropdown button,
    [data-theme="pixel"] .app-nav-link,
    [data-theme="pixel"] .app-auth-link,
    [data-theme="pixel"] .landing-button,
    [data-theme="pixel"] .project-list-btn,
    [data-theme="pixel"] .project-list-inline-link,
    [data-theme="pixel"] .project-action-btn,
    [data-theme="pixel"] .action-pill,
    [data-theme="pixel"] .workspace-tab,
    [data-theme="pixel"] .kb-btn,
    [data-theme="pixel"] .branch-action,
    [data-theme="pixel"] .branch-anchor-link,
    [data-theme="pixel"] .branch-inline-link,
    [data-theme="pixel"] .branch-pill-button,
    [data-theme="pixel"] .branch-ghost-button,
    [data-theme="pixel"] .threadnest-btn {
        font-size: 0.68rem !important;
    }

    [data-theme="pixel"] .notes-metric-row,
    [data-theme="pixel"] .hero-stat-pills,
    [data-theme="pixel"] .branch-stat-grid {
        grid-template-columns: 1fr !important;
    }

    [data-theme="pixel"] .public-branch-head {
        flex-direction: column;
    }
}
