*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-page: #ffffff;
    --bg-base: #ffffff;
    --bg-surface: #ffffff;
    --bg-input: #f4f4f5;
    --bg-hover: #f4f4f5;
    --bg-elevated: #ffffff;

    --border: #e4e4e7;
    --border-hover: #d4d4d8;
    --border-subtle: #f4f4f5;

    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-muted: #a1a1aa;

    --btn-primary: #2563eb;

    --accent: #18181b;
    --accent-hover: #3f3f46;
    --accent-dim: rgba(24, 24, 27, 0.06);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.1);

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 9999px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur: 200ms;

    --nav-h: 64px;
    --home-content-max: 1080px;
}

[data-theme="dark"] {
    --bg-page: #111111;
    --bg-base: #09090b;
    --bg-surface: #09090b;
    --bg-input: #18181b;
    --bg-hover: #18181b;
    --bg-elevated: #18181b;

    --border: #27272a;
    --border-hover: #3f3f46;
    --border-subtle: #18181b;

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --btn-primary: #2563eb;

    --accent: #fafafa;
    --accent-hover: #e4e4e7;
    --accent-dim: rgba(250, 250, 250, 0.08);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.6);
}

html { height: 100%; scroll-behavior: smooth; }

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--accent-dim); color: var(--text-primary); }
:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 2px; border-radius: var(--r-sm); }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    background: var(--bg-page);
    border-bottom: 1px solid var(--border);
}

.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-brand {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    transition: opacity var(--dur);
}

.site-brand:hover { opacity: 0.7; }

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--r-sm);
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s var(--ease-spring);
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link svg { width: 16px; height: 16px; }

.nav-auth {
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.nav-auth.ready { opacity: 1; }

.nav-link-signin {
    margin-left: 4px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-weight: 600;
    transition: all var(--dur) var(--ease);
}

.nav-link-signin::after { display: none; }

.nav-link-signin:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--dur), background var(--dur);
}

.theme-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.theme-toggle svg { width: 18px; height: 18px; }

.nav-user {
    position: relative;
    margin-left: 4px;
}

.nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--r-full);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: border-color var(--dur);
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-avatar:hover {
    border-color: var(--border-hover);
}

.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }

.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.97);
    transform-origin: top right;
    transition: all 0.2s var(--ease-out);
    z-index: 200;
    padding: 6px;
}

.nav-user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: none;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--r-sm);
    cursor: pointer;
    text-align: left;
    transition: background var(--dur), color var(--dur), transform var(--dur);
}

.nav-dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    height: 40px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn svg { width: 16px; height: 16px; }

.btn-primary {
    background: var(--btn-primary);
    color: #ffffff;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.btn-lg {
    height: 44px;
    padding: 0 24px;
    font-size: 14px;
}

.home-main-column {
    width: 100%;
    max-width: calc(var(--home-content-max) + 64px);
    margin-left: auto;
    margin-right: auto;
    padding: 0 32px;
    box-sizing: border-box;
}

.home-page {
    padding-bottom: 80px;
}

.home-hero {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
    padding: 48px 0 72px;
    border-bottom: 1px solid var(--border);
}

.home-eyebrow {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.home-hero-title {
    font-size: clamp(32px, 4.5vw, 44px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.home-hero-lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 42ch;
    margin-bottom: 28px;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-hero-media {
    min-width: 0;
}

.home-hero-video {
    max-width: none;
}

.home-capabilities {
    padding: 72px 0;
    border-bottom: 1px solid var(--border);
}

.home-section-header {
    max-width: 640px;
    margin-bottom: 48px;
}

.home-section-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.home-section-lead {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.home-capability-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.home-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: start;
}

.home-showcase {
    display: flex;
    justify-content: center;
    margin: 0;
    min-width: 0;
}

.home-showcase#hardware,
.home-showcase#scaling {
    grid-column: 1 / -1;
}

.home-showcase-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    object-fit: contain;
}

.home-capability {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.home-capability-reverse .home-capability-copy {
    order: 2;
}

.home-capability-reverse .home-capability-media {
    order: 1;
}

.home-capability:not(.home-capability-has-media) {
    grid-template-columns: 1fr;
    max-width: 640px;
}

.home-capability-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.home-capability-desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.home-capability-media {
    min-width: 0;
}

.home-device-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.home-device-list li {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-input);
}

.home-cta {
    padding: 56px 0;
    border-bottom: 1px solid var(--border);
}

.home-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.home-cta-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.home-cta-lead {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 48ch;
}

.home-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.home-products {
    padding-top: 56px;
    padding-bottom: 0;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 64px 0 48px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 17px;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 540px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@keyframes heroEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-section {
    padding: 0 0 80px;
}

.video-wrap {
    width: 100%;
    max-width: var(--home-content-max);
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-input);
    border: 1px solid var(--border);
}

.video-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--dur);
}

.footer-links a:hover { color: var(--text-primary); }

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .home-main-column {
        padding: 0 20px;
        max-width: calc(var(--home-content-max) + 40px);
    }
    .site-nav { height: 56px; }
    .nav-link { padding: 6px 10px; font-size: 13px; }
    .nav-link::after { display: none; }
    .hero { padding: 72px 0 56px; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 320px; }
    .hero-actions .btn { width: 100%; }
    .home-hero {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 0 48px;
    }
    .home-hero-lead { max-width: none; }
    .home-capabilities { padding: 48px 0; }
    .home-showcase-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .home-capability,
    .home-capability-reverse {
        grid-template-columns: 1fr;
    }
    .home-capability-reverse .home-capability-copy,
    .home-capability-reverse .home-capability-media {
        order: unset;
    }
    .home-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .video-section { padding-bottom: 72px; }
    .site-footer-inner { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.product-page {
    padding-bottom: 80px;
}

.product-main-column {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
}

.product-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--dur) var(--ease);
}

.product-back:hover { 
    color: var(--text-primary); 
}
.product-back svg { width: 16px; height: 16px; }

.product-hero {
    padding: 32px 0 64px;
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 380px);
    gap: 48px;
    align-items: start;
    margin-top: 16px;
}

.product-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-input);
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.product-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.product-tagline {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.product-lead {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 56ch;
    margin-bottom: 24px;
}

.product-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.product-price-lg {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-right: 8px;
    color: var(--text-primary);
}

.product-refund-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.product-hero-media { 
    width: 100%; 
}

.product-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-input);
}

.product-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
}

.product-thumb-placeholder span {
    font-size: 48px;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.25;
}

.product-section {
    padding: 0 0 56px;
}

.product-section-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.product-check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.product-check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-secondary);
    background: var(--bg-base);
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.product-check-list li:last-child {
    border-bottom: none;
}

.product-check-list li::before {
    content: '·';
    font-size: 20px;
    line-height: 1;
    color: var(--text-muted);
    flex-shrink: 0;
}

.product-feature-grid {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.product-feature-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: background var(--dur) var(--ease);
}

.product-feature-card:last-child {
    border-bottom: none;
}

a.product-feature-card:hover {
    background: var(--bg-hover);
}

.product-feature-card-icon {
    display: none;
}

.product-feature-card span {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-secondary);
}

.home-products-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.home-product-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: color var(--dur) var(--ease);
}

.home-product-link:first-of-type {
    border-top: 1px solid var(--border);
}

.home-product-link:hover .home-product-name {
    color: var(--text-secondary);
}

.home-product-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    transition: color var(--dur) var(--ease);
}

.home-product-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 4px;
}

.home-product-chevron {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.home-product-chevron svg {
    width: 16px;
    height: 16px;
}

.product-disclaimer {
    padding: 16px;
    background: var(--bg-input);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.product-disclaimer p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.product-faq {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-faq-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.product-faq-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.product-bottom-cta {
    padding-bottom: 0;
}

.product-bottom-cta-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px;
    border-top: 1px solid var(--border);
}

.product-bottom-cta-inner h2 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.product-bottom-cta-inner p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .product-main-column { padding: 0 20px; }
    .product-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .product-hero-media { order: -1; }
    .product-bottom-cta-inner { 
        flex-direction: column; 
        align-items: flex-start; 
    }
    .home-product-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

.repo-page {
    padding-bottom: 80px;
}

.repo-column {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 32px;
}

.repo-header {
    padding: 32px 0 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.repo-header .product-back {
    margin-top: 0;
    margin-bottom: 16px;
}

.repo-header-compact {
    padding-top: 24px;
    border-bottom: none;
    margin-bottom: 0;
}

.repo-header-compact .product-back {
    margin-top: 0;
    margin-bottom: 0;
}

.repo-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.repo-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.repo-visibility {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 2px 10px;
}

.repo-description {
    margin-top: 8px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.repo-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.repo-branch {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 12px;
    background: var(--bg-input);
}

.repo-download-btn {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
}

.repo-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px 6px 0 0;
    border-bottom: none;
}

.repo-breadcrumb a {
    color: var(--text-secondary);
}

.repo-breadcrumb a:hover { color: var(--text-primary); }

.repo-breadcrumb-sep { color: var(--text-muted); }

.repo-breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

.repo-file-table-wrap {
    border: 1px solid var(--border);
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    margin-bottom: 32px;
}

.repo-breadcrumb + .repo-file-table-wrap {
    border-radius: 0 0 6px 6px;
}

.repo-file-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.repo-file-table thead th {
    text-align: left;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 12px;
    padding: 10px 16px;
    background: var(--bg-input);
    border-bottom: 1px solid var(--border);
}

.repo-file-table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.repo-file-table tbody tr:last-child td { border-bottom: none; }

.repo-file-link {
    color: var(--text-primary);
}

.repo-file-link:hover { text-decoration: underline; }

.repo-file-link-dir { font-weight: 500; }

.repo-file-link-parent { color: var(--text-secondary); }

.repo-col-size {
    width: 100px;
    text-align: right;
    color: var(--text-muted);
    font-size: 13px;
}

.repo-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 24px;
}

.repo-readme {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.repo-readme-header {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    background: var(--bg-input);
}

.repo-readme-body {
    padding: 24px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.repo-readme-body h1,
.repo-readme-body h2,
.repo-readme-body h3 {
    color: var(--text-primary);
    margin: 1.25em 0 0.5em;
    font-weight: 600;
}

.repo-readme-body h1 { font-size: 1.5em; margin-top: 0; }
.repo-readme-body h2 { font-size: 1.25em; }
.repo-readme-body p { margin-bottom: 0.75em; }

.repo-readme-body code {
    font-size: 0.9em;
    background: var(--bg-input);
    padding: 0.15em 0.35em;
    border-radius: 4px;
}

.repo-readme-body pre {
    background: var(--bg-input);
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 12px 0;
}

.repo-readme-body pre code {
    background: none;
    padding: 0;
}

.repo-file-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 0 0 6px 6px;
    margin-bottom: 0;
    background: var(--bg-input);
}

.repo-file-meta-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.repo-file-meta-size {
    margin-left: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.repo-file-actions {
    display: flex;
    gap: 16px;
}

.repo-text-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.repo-text-link:hover { color: var(--text-primary); }

.repo-code-wrap {
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.repo-truncated {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-input);
    border-bottom: 1px solid var(--border);
}

.repo-code {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.5;
    background: var(--bg-base);
}

.repo-code code {
    font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
}

.repo-binary {
    padding: 32px;
    text-align: center;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 6px 6px;
}

.repo-binary p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.repo-missing {
    padding: 48px 0;
    color: var(--text-secondary);
    font-size: 15px;
}

[data-theme="dark"] .hljs {
    background: var(--bg-base) !important;
}

@media (max-width: 768px) {
    .repo-column { padding: 0 20px; }
    .repo-toolbar { flex-direction: column; align-items: stretch; }
    .repo-col-size { width: 72px; }
}