:root {
    color-scheme: dark;
    --shell: min(100% - 48px, 1440px);
    --reading: min(100% - 48px, 1040px);
    --bg: #07090d;
    --panel: #101721;
    --panel-2: #141c25;
    --text: #edf6ff;
    --muted: #a8b7c8;
    --line: rgba(255, 255, 255, 0.13);
    --cyan: #55d6ff;
    --green: #6ee7a8;
    --amber: #f5b85b;
    --red: #ff6b6b;
    --shadow: 0 14px 42px rgba(0, 0, 0, 0.26);
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
}

body {
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    margin: 0;
    min-height: 100vh;
    overflow-x: clip;
}

main {
    flex: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.site-header {
    align-items: center;
    background: rgba(7, 9, 13, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    left: 0;
    min-height: 64px;
    padding: 0 28px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 20;
}

.brand,
.site-nav,
.footer-brand {
    align-items: center;
    display: flex;
    gap: 10px;
}

.brand {
    font-weight: 800;
}

.brand-logo {
    aspect-ratio: 1;
    display: block;
    flex: 0 0 38px;
    filter: drop-shadow(0 0 16px rgba(85, 214, 255, 0.2));
    height: 38px;
    max-height: 38px;
    max-width: 38px;
    min-height: 38px;
    min-width: 38px;
    object-fit: contain;
    width: 38px;
}

.nav-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    height: 42px;
    justify-content: center;
    padding: 0;
    width: 42px;
}

.nav-toggle span {
    background: currentColor;
    border-radius: 999px;
    display: block;
    height: 2px;
    transition: transform 180ms ease, opacity 180ms ease;
    width: 18px;
}

.nav-toggle.is-open span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
    color: var(--muted);
    font-size: 0.92rem;
    gap: 16px;
}

.site-nav a {
    border: 1px solid transparent;
    border-radius: 8px;
    min-height: 38px;
    overflow: hidden;
    padding: 9px 11px;
    position: relative;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.site-nav a::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    content: "";
    height: 100%;
    left: -120%;
    position: absolute;
    top: 0;
    transform: skewX(-18deg);
    transition: left 260ms ease;
    width: 80%;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover {
    color: var(--text);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 22px rgba(85, 214, 255, 0.08);
    outline: 0;
}

.site-nav a:hover::before,
.site-nav a:focus-visible::before {
    left: 120%;
}

.nav-profile {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.nav-avatar,
.mini-avatar {
    align-items: center;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.86), rgba(102, 217, 232, 0.7) 30%, rgba(29, 109, 143, 0.35) 68%),
        #0d1824;
    color: #071019;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
}

.nav-avatar {
    border-radius: 50%;
    height: 24px;
    overflow: hidden;
    width: 24px;
}

.nav-avatar img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.nav-logout {
    margin: 0;
}

.nav-logout button {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    min-height: 38px;
    padding: 8px 11px;
}

.nav-logout button:hover,
.nav-logout button:focus-visible {
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text);
    outline: 0;
}

.nav-action,
.primary-action,
.search-bar button,
.stack-form button {
    align-items: center;
    background: var(--green);
    border: 0;
    border-radius: 8px;
    color: #04120c;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
}

.danger-action {
    align-items: center;
    background: linear-gradient(135deg, var(--red), #ff9a9a);
    border: 0;
    border-radius: 8px;
    color: #260506;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 900;
    justify-content: center;
    min-height: 52px;
    padding: 10px 14px;
}

.hero {
    min-height: 610px;
    overflow: hidden;
    padding: 132px 32px 64px;
    position: relative;
}

.hero-image,
.hero-overlay {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(7, 9, 13, 0.96) 0%, rgba(7, 9, 13, 0.78) 38%, rgba(7, 9, 13, 0.18) 70%),
        linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 13, 0) 30%);
}

.hero-content {
    max-width: 640px;
    position: relative;
    z-index: 2;
}

.home-hero {
    min-height: 620px;
    padding-bottom: 56px;
}

.hero-shell {
    align-items: end;
    display: grid;
    gap: 44px;
    grid-template-columns: minmax(0, 1fr) 420px;
    margin: 0 auto;
    max-width: var(--shell);
    position: relative;
    z-index: 2;
}

.home-hero h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    max-width: 720px;
}

.hero-search {
    margin-top: 24px;
}

.hero-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.secondary-action {
    align-items: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
}

.secondary-action:hover {
    border-color: rgba(255, 255, 255, 0.28);
}

.hero-panel {
    background: rgba(13, 20, 29, 0.78);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 18px;
    padding: 20px;
}

.home-orbit {
    align-items: center;
    display: flex;
    height: 128px;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.home-orbit-core {
    background:
        radial-gradient(circle at 35% 30%, #ffffff, var(--cyan) 26%, #196474 72%),
        var(--cyan);
    border-radius: 999px;
    box-shadow: 0 0 34px rgba(85, 214, 255, 0.38);
    height: 48px;
    position: relative;
    width: 48px;
    z-index: 2;
}

.home-orbit-ring {
    animation: orbit-spin 6s linear infinite;
    border: 1px solid rgba(85, 214, 255, 0.32);
    border-radius: 999px;
    height: 72px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform-origin: center;
    width: 190px;
}

.home-orbit-two {
    animation-duration: 9s;
    border-color: rgba(110, 231, 168, 0.28);
    height: 96px;
    width: 250px;
}

.home-orbit-ring span {
    background: var(--green);
    border-radius: 999px;
    box-shadow: 0 0 14px rgba(110, 231, 168, 0.74);
    display: block;
    height: 9px;
    position: absolute;
    right: 18px;
    top: 8px;
    width: 9px;
}

.home-orbit-two span {
    background: var(--amber);
    box-shadow: 0 0 14px rgba(245, 184, 91, 0.74);
    right: 26px;
    top: 12px;
}

.home-spacecraft {
    animation: craft-drift 3.4s ease-in-out infinite;
    background: #ffffff;
    border-radius: 999px 3px 3px 999px;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.9), -16px 0 22px rgba(85, 214, 255, 0.28);
    height: 6px;
    position: absolute;
    right: 64px;
    top: 34px;
    width: 20px;
    z-index: 3;
}

.hero-panel-header,
.hero-stats,
.quick-list a {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.hero-panel-header {
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-panel-header strong {
    color: var(--green);
}

.hero-stats {
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    padding: 16px 0;
}

.hero-stats div {
    flex: 1;
}

.hero-stats strong,
.hero-stats span {
    display: block;
}

.hero-stats strong {
    font-size: 1.35rem;
}

.hero-stats span,
.quick-list strong {
    color: var(--muted);
    font-size: 0.82rem;
}

.quick-list {
    display: grid;
}

.quick-list a {
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
}

.quick-list a:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.stat-strip {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-bottom: 26px;
    padding-top: 26px;
}

.stat-strip div {
    border-left: 1px solid var(--line);
    padding-left: 18px;
}

.stat-strip div:first-child {
    border-left: 0;
    padding-left: 0;
}

.stat-strip strong,
.stat-strip span {
    display: block;
}

.stat-strip strong {
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    line-height: 1;
}

.stat-strip span {
    color: var(--muted);
    margin-top: 6px;
}

.manufacturer-rail-section {
    overflow: hidden;
}

.logo-rail {
    margin-top: 26px;
    overflow: hidden;
    position: relative;
}

.logo-rail::before,
.logo-rail::after {
    content: "";
    height: 100%;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 110px;
    z-index: 2;
}

.logo-rail::before {
    background: linear-gradient(90deg, var(--bg), rgba(7, 9, 13, 0));
    left: 0;
}

.logo-rail::after {
    background: linear-gradient(270deg, var(--bg), rgba(7, 9, 13, 0));
    right: 0;
}

.logo-track {
    animation: logo-scroll 26s linear infinite;
    display: flex;
    gap: 22px;
    width: max-content;
}

.logo-rail:hover .logo-track {
    animation-play-state: paused;
}

.logo-tile {
    align-items: center;
    aspect-ratio: 1;
    background: #fff;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    height: 76px;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    width: 76px;
}

.logo-tile img {
    height: calc(100% - 14px);
    object-fit: contain;
    opacity: 0.9;
    width: calc(100% - 14px);
}

.logo-tile span {
    align-items: center;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    text-transform: uppercase;
    width: 100%;
}

.logo-tile:hover {
    filter: drop-shadow(0 0 18px rgba(85, 214, 255, 0.18));
}

@keyframes logo-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.eyebrow {
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

h2,
h3,
p {
    margin-top: 0;
}

h2 {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    letter-spacing: 0;
    line-height: 1.12;
}

.hero-copy {
    color: var(--muted);
    font-size: 1.03rem;
    max-width: 620px;
}

.search-bar {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    margin-top: 26px;
    max-width: 680px;
    padding: 8px;
}

.search-bar.compact {
    margin: 0 0 32px;
}

.search-bar input,
.stack-form input,
.stack-form select,
.stack-form textarea,
.management-form input,
.management-form select,
.management-form textarea,
.review-form textarea,
.flasher-panel input,
.flasher-panel select {
    background: #091019;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font: inherit;
    min-height: 48px;
    padding: 12px 14px;
    width: 100%;
}

.search-bar input {
    border: 0;
    flex: 1;
}

.section,
.page-shell {
    margin: 0 auto;
    max-width: var(--shell);
    padding: 52px 32px;
}

.page-shell {
    padding-top: 112px;
}

.section-heading,
.detail-header,
.metrics-row,
.build-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.mission-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mission-card,
.dashboard-tile,
.flasher-panel {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.mission-card {
    display: grid;
    gap: 12px;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    height: 100%;
    min-height: 230px;
    padding: 20px;
    transition: border-color 160ms ease, transform 160ms ease;
}

.mission-card:hover,
.hardware-card:hover,
.board-card:hover,
.developer-card:hover {
    border-color: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
}

.mission-card h3 {
    font-size: 1.15rem;
    line-height: 1.2;
    margin: 0;
}

.mission-card p,
.mission-author,
.page-heading p,
.detail-header p,
.dashboard-tile span,
.feature-list span,
.build-row span {
    color: var(--muted);
}

.mission-card > p {
    align-self: start;
    display: -webkit-box;
    line-height: 1.45;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.mission-card-header {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 52px minmax(0, 1fr);
}

.mission-card-icon {
    aspect-ratio: 1;
    background: #091019;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
    width: 52px;
}

.mission-card-fallback {
    align-items: center;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.86), rgba(102, 217, 232, 0.7) 30%, rgba(29, 109, 143, 0.35) 68%),
        #0d1824;
    color: #071019;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
}

.mission-card-title {
    min-width: 0;
}

.mission-author {
    display: block;
    font-size: 0.84rem;
    font-weight: 800;
    margin-top: -2px;
}

.mission-topline,
.mission-stats {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 0.9rem;
    gap: 12px;
}

.mission-stats {
    border-top: 1px solid var(--line);
    justify-content: space-between;
    margin-top: auto;
    min-height: 33px;
    padding-top: 14px;
}

.planet-dot {
    background: radial-gradient(circle at 35% 35%, #ffffff, var(--cyan) 35%, #145c6f 70%);
    border-radius: 50%;
    display: inline-block;
    height: 16px;
    width: 16px;
}

.icon-stat {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    line-height: 1;
}

.ui-icon {
    display: inline-block;
    flex: 0 0 auto;
    font-size: 0.95em;
    height: 1em;
    line-height: 1;
    position: relative;
    text-align: center;
    width: 1.08em;
}

.ui-icon.is-star,
.ui-icon.is-flash {
    color: var(--amber);
}

.ui-icon.is-launch,
.ui-icon.is-ram {
    color: var(--green);
}

.ui-icon.is-chip,
.ui-icon.is-external {
    color: var(--cyan);
}

.feature-band {
    align-items: start;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 32px;
    grid-template-columns: 0.9fr 1.1fr;
}

.workflow-band {
    align-items: start;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 32px;
    grid-template-columns: 0.8fr 1.2fr;
}

.workflow-band > div:first-child p:not(.eyebrow) {
    color: var(--muted);
    max-width: 520px;
}

.workflow-steps {
    display: grid;
    gap: 12px;
}

.workflow-steps div {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 6px;
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 0 0 16px;
}

.workflow-steps div:last-child {
    border-bottom: 0;
}

.workflow-steps span {
    color: var(--green);
    font-size: 0.82rem;
    font-weight: 900;
    grid-row: span 2;
}

.workflow-steps strong {
    display: block;
}

.workflow-steps p {
    color: var(--muted);
    margin-bottom: 0;
}

.feature-list {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-list div,
.metrics-row div {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.feature-list strong,
.feature-list span,
.metrics-row strong,
.metrics-row span,
.build-row strong,
.build-row span {
    display: block;
}

.page-heading {
    max-width: 760px;
}

.project-hero {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-height: 330px;
    overflow: hidden;
    position: relative;
}

.project-banner,
.project-hero-overlay {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.project-hero-overlay {
    background:
        linear-gradient(90deg, rgba(7, 9, 13, 0.96), rgba(7, 9, 13, 0.78) 48%, rgba(7, 9, 13, 0.48)),
        linear-gradient(0deg, rgba(7, 9, 13, 0.96), rgba(7, 9, 13, 0.18) 64%);
}

.project-hero-content {
    align-items: end;
    display: grid;
    gap: 22px;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    min-height: 330px;
    padding: 28px;
    position: relative;
    z-index: 2;
}

.project-avatar {
    aspect-ratio: 1;
    background: #091019;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    box-shadow: var(--shadow);
    object-fit: cover;
    width: 112px;
}

.project-copy {
    min-width: 0;
}

.project-copy p:not(.eyebrow) {
    color: var(--muted);
    max-width: 760px;
}

.project-actions {
    align-items: stretch;
    display: grid;
    gap: 10px;
    min-width: 154px;
}

.project-actions a,
.project-actions button {
    justify-content: center;
    text-align: center;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag-list span {
    background: rgba(85, 214, 255, 0.1);
    border: 1px solid rgba(85, 214, 255, 0.18);
    border-radius: 999px;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 900;
    padding: 6px 10px;
}

.project-story,
.external-project-panel {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    margin-bottom: 38px;
    padding: 26px 0;
}

.project-story {
    display: grid;
    gap: 26px;
    grid-template-columns: 1fr;
}

.project-detail-copy p:not(.eyebrow) {
    color: var(--muted);
    max-width: 920px;
}

.project-detail-copy p + p {
    margin-top: 12px;
}

.project-gallery {
    cursor: grab;
    display: flex;
    gap: 12px;
    margin-top: 4px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scroll-snap-type: x proximity;
    scrollbar-color: rgba(85, 214, 255, 0.42) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
}

.project-gallery.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.project-gallery::-webkit-scrollbar {
    height: 8px;
}

.project-gallery::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.project-gallery::-webkit-scrollbar-thumb {
    background: rgba(85, 214, 255, 0.42);
    border-radius: 999px;
}

.project-gallery-item {
    aspect-ratio: 16 / 10;
    background: #091019;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: inherit;
    flex: 0 0 clamp(220px, 34vw, 420px);
    overflow: hidden;
    padding: 0;
    scroll-snap-align: start;
    transition: border-color 160ms ease, transform 160ms ease;
}

.project-gallery.is-dragging .project-gallery-item {
    transform: none;
}

.project-gallery-item:hover,
.project-gallery-item:focus-visible {
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.project-gallery-item img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.gallery-modal[hidden] {
    display: none;
}

.gallery-modal {
    align-items: center;
    background: rgba(3, 7, 12, 0.86);
    backdrop-filter: blur(10px);
    inset: 0;
    justify-content: center;
    padding: 28px;
    position: fixed;
    z-index: 90;
}

.gallery-modal img {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-height: min(82vh, 820px);
    max-width: min(92vw, 1180px);
    object-fit: contain;
}

.gallery-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    font-weight: 900;
    padding: 10px 14px;
    position: fixed;
    right: 24px;
    top: 24px;
}

.external-project-panel {
    align-items: center;
    display: flex;
    gap: 22px;
    justify-content: space-between;
}

.external-project-panel p:not(.eyebrow) {
    color: var(--muted);
    max-width: 680px;
}

.page-heading > h2,
.detail-header h2,
.project-copy h2,
.manufacturer-banner-content h2,
.board-hero h2 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1.08;
}

.metrics-row {
    margin: 28px 0 42px;
}

.metrics-row div {
    flex: 1;
}

.metrics-row strong {
    font-size: 1.55rem;
}

.build-list,
.dashboard-grid {
    display: grid;
    gap: 14px;
}

.build-row {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

.build-row a,
.text-link {
    color: var(--cyan);
    font-weight: 800;
}

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

.flasher-layout {
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr;
}

.flasher-panel {
    display: grid;
    gap: 16px;
    padding: 22px;
}

.launch-console {
    align-items: stretch;
    gap: 22px;
    grid-template-columns: minmax(320px, 0.72fr) minmax(520px, 1.28fr);
}

.launch-controls {
    display: grid;
    gap: 16px;
}

.flasher-panel label {
    color: var(--muted);
    font-weight: 800;
}

.visually-hidden {
    height: 1px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px;
}

.picker-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.picker-heading span {
    font-weight: 900;
}

.picker-heading small {
    color: var(--muted);
}

.board-picker {
    display: grid;
    gap: 10px;
}

.version-select {
    color: var(--muted);
    display: grid;
    font-weight: 800;
    gap: 8px;
}

.version-select select {
    appearance: none;
    background:
        linear-gradient(135deg, rgba(85, 214, 255, 0.08), rgba(110, 231, 168, 0.06)),
        #0a111a;
    border: 1px solid rgba(110, 231, 168, 0.28);
    border-radius: 8px;
    color: var(--text);
    font: inherit;
    min-height: 48px;
    padding: 12px 42px 12px 14px;
}

.version-select select:disabled {
    cursor: not-allowed;
    opacity: 0.78;
}

.board-dropdown {
    display: block;
    position: relative;
}

.board-dropdown.is-open {
    z-index: 30;
}

.board-dropdown-toggle {
    align-items: center;
    background:
        linear-gradient(180deg, rgba(85, 214, 255, 0.1), rgba(110, 231, 168, 0.06)),
        #0a111a;
    border: 1px solid rgba(110, 231, 168, 0.38);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 14px;
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    min-height: 76px;
    padding: 14px;
    text-align: left;
    width: 100%;
}

.board-dropdown.is-open .board-dropdown-toggle {
    border-color: rgba(110, 231, 168, 0.78);
}

.board-dropdown-toggle:hover,
.board-dropdown-toggle:focus-visible {
    border-color: rgba(110, 231, 168, 0.78);
    box-shadow: 0 0 24px rgba(85, 214, 255, 0.09);
    outline: 0;
}

.board-dropdown-toggle strong,
.board-dropdown-toggle small {
    display: block;
}

.board-dropdown-toggle small {
    color: var(--muted);
    margin-top: 3px;
}

.board-dropdown-caret {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    height: 9px;
    justify-self: center;
    opacity: 0.74;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 160ms ease;
    width: 9px;
}

.board-dropdown.is-open .board-dropdown-caret {
    transform: rotate(225deg) translate(-2px, -2px);
}

.board-dropdown .board-picker {
    background:
        linear-gradient(180deg, rgba(85, 214, 255, 0.06), rgba(7, 11, 17, 0) 48px),
        #070b11;
    border: 1px solid rgba(110, 231, 168, 0.3);
    border-radius: 8px;
    box-shadow: 0 22px 34px rgba(0, 0, 0, 0.3);
    gap: 6px;
    left: 0;
    max-height: min(310px, max(180px, calc(100vh - 220px)));
    overflow: auto;
    overscroll-behavior: contain;
    padding: 6px;
    position: absolute;
    right: 0;
    scrollbar-color: rgba(110, 231, 168, 0.65) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
    top: 100%;
    z-index: 12;
}

.board-dropdown .board-picker::-webkit-scrollbar {
    width: 10px;
}

.board-dropdown .board-picker::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.055);
    border-radius: 999px;
}

.board-dropdown .board-picker::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--cyan), var(--green));
    border: 2px solid #070b11;
    border-radius: 999px;
}

.board-dropdown .board-picker::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8be5ff, #8af0bb);
}

.board-dropdown .board-picker[hidden] {
    display: none;
}

.board-choice {
    align-items: center;
    background: #0a111a;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 14px;
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 62px;
    padding: 10px 12px;
    text-align: left;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
    width: 100%;
}

.board-choice:hover,
.board-choice:focus-visible {
    border-color: rgba(255, 255, 255, 0.28);
    outline: 0;
    transform: translateY(-1px);
}

.board-choice.is-selected {
    background: linear-gradient(180deg, rgba(85, 214, 255, 0.14), rgba(110, 231, 168, 0.09));
    border-color: rgba(110, 231, 168, 0.7);
}

.board-choice-icon {
    align-items: center;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    border-radius: 8px;
    color: #04120c;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 900;
    justify-content: center;
    text-transform: uppercase;
}

.board-choice strong,
.board-choice small {
    display: block;
}

.board-choice small {
    color: var(--muted);
    margin-top: 3px;
}

.manifest-preview {
    background: #070b11;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 14px;
}

.manifest-preview span {
    color: var(--muted);
    font-size: 0.82rem;
}

.manifest-preview code {
    color: var(--green);
    overflow-wrap: anywhere;
}

.selected-build-summary {
    background: #070b11;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 14px;
}

.selected-board-preview {
    background: #070b11;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 12px;
}

.selected-board-preview[hidden] {
    display: none;
}

.selected-board-preview-heading {
    align-items: baseline;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    min-width: 0;
}

.selected-board-preview-heading strong {
    overflow-wrap: anywhere;
    text-align: right;
}

.selected-board-preview-images {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.selected-board-preview-images img {
    aspect-ratio: 1;
    background: #fff;
    border-radius: 6px;
    height: auto;
    object-fit: contain;
    padding: 6px;
    width: 100%;
}

.selected-board-preview-images img.is-loading {
    animation: board-image-loading 0.9s ease-in-out infinite alternate;
    background: #dce5ea;
}

@keyframes board-image-loading {
    from {
        opacity: 0.55;
    }

    to {
        opacity: 1;
    }
}

.selected-board-preview span {
    color: var(--muted);
    font-size: 0.82rem;
}

.selected-board-preview-images img[hidden] {
    display: block;
    visibility: hidden;
}

.selected-build-summary span {
    color: var(--muted);
    font-size: 0.82rem;
}

.selected-build-summary strong {
    color: var(--green);
}

.selected-build-summary small {
    color: var(--muted);
    display: grid;
    gap: 3px;
    overflow-wrap: anywhere;
}

.docs-code {
    background: #070b11;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    overflow-x: auto;
    padding: 16px;
}

.docs-code code {
    color: var(--green);
    font: 0.9rem/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.badge-panel {
    align-content: start;
}

.espverse-badge-preview {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: inline-flex;
    min-height: 54px;
    padding: 10px 12px;
    width: fit-content;
}

.espverse-badge-preview img {
    display: block;
    max-height: 36px;
    max-width: min(260px, 100%);
}

.script-snippet-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.script-snippet-actions + .docs-code {
    margin-top: 0;
}

.content-panel .docs-code + .docs-code {
    margin-top: 10px;
}

.script-download-grid {
    display: grid;
    gap: 12px;
}

.script-preview {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.script-preview summary {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
}

.script-preview summary > span {
    display: grid;
    gap: 3px;
}

.script-preview-caret {
    color: var(--cyan);
    transition: transform 160ms ease;
}

.script-preview[open] .script-preview-caret {
    transform: rotate(90deg);
}

.script-icon-action {
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--cyan);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    height: 38px;
    justify-content: center;
    text-decoration: none;
    width: 38px;
}

.script-icon-action:hover,
.script-icon-action:focus-visible {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 20px rgba(85, 214, 255, 0.12);
    color: var(--text);
    outline: 0;
}

.script-preview-toggle {
    pointer-events: none;
}

.script-preview[open] .script-preview-toggle {
    color: var(--green);
}

.script-preview[open] .script-preview-toggle .fa-eye::before {
    content: "\f070";
}

@media (max-width: 720px) {
    .script-preview summary {
        align-items: start;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .script-icon-action {
        grid-column: 2;
        justify-self: start;
    }
}

.script-preview small {
    color: var(--muted);
}

.script-preview .docs-code {
    margin-top: 12px;
}

.toast {
    background: rgba(10, 18, 27, 0.96);
    border: 1px solid rgba(122, 255, 178, 0.34);
    border-radius: 8px;
    bottom: 82px;
    box-shadow: var(--shadow);
    color: var(--text);
    font-weight: 900;
    padding: 12px 14px;
    position: fixed;
    right: 22px;
    z-index: 90;
}

.toast[hidden] {
    display: none;
}

.upload-progress-modal[hidden] {
    display: none;
}

.upload-progress-modal {
    align-items: center;
    background: rgba(2, 8, 14, 0.72);
    backdrop-filter: blur(14px);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 130;
}

.upload-progress-dialog {
    background: rgba(10, 18, 27, 0.94);
    border: 1px solid rgba(85, 214, 255, 0.24);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
    max-width: 460px;
    padding: 22px;
    width: min(100%, 460px);
}

.upload-progress-dialog h2,
.upload-progress-dialog p {
    margin: 0;
}

.upload-progress-dialog p:not(.eyebrow) {
    color: var(--muted);
    font-weight: 800;
}

.upload-progress-track {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
}

.upload-progress-track span {
    background: linear-gradient(90deg, var(--green), var(--cyan));
    border-radius: inherit;
    display: block;
    height: 100%;
    transition: width 160ms ease;
    width: 0;
}

.upload-progress-modal.is-error .upload-progress-track span {
    background: linear-gradient(90deg, #ff6b6b, #f5b85b);
}

.upload-progress-meta {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 0.9rem;
    font-weight: 800;
    justify-content: space-between;
}

.upload-progress-meta strong {
    color: var(--text);
    font-size: 1rem;
}

.upload-progress-close {
    justify-self: start;
}

.launch-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
}

.launch-actions .secondary-action {
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.launch-action {
    align-items: center;
    box-shadow: 0 0 28px rgba(110, 231, 168, 0.16);
    display: inline-flex;
    justify-content: center;
    min-height: 52px;
    width: 100%;
}

.launch-action:disabled {
    cursor: wait;
    opacity: 0.72;
}

.launch-actions [hidden] {
    display: none;
}

.flasher-support {
    color: var(--muted);
    font-size: 0.86rem;
    margin: -4px 0 0;
}

.local-flasher-page {
    display: grid;
    gap: 28px;
}

.local-flasher-shell {
    align-items: start;
    grid-template-columns: minmax(340px, 0.82fr) minmax(460px, 1fr);
}

.local-flash-config {
    display: grid;
    gap: 16px;
}

.local-panel-heading span {
    font-weight: 900;
}

.local-panel-heading p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 4px 0 0;
}

.file-drop-zone {
    align-items: center;
    background:
        linear-gradient(180deg, rgba(85, 214, 255, 0.1), rgba(110, 231, 168, 0.06)),
        #0a111a;
    border: 1px dashed rgba(110, 231, 168, 0.44);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: grid;
    gap: 14px;
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 92px;
    padding: 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.file-drop-zone:hover,
.file-drop-zone:focus-within {
    border-color: rgba(110, 231, 168, 0.82);
    box-shadow: 0 0 26px rgba(85, 214, 255, 0.1);
    transform: translateY(-1px);
}

.file-drop-zone input {
    height: 1px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px;
}

.file-drop-zone strong,
.file-drop-zone small {
    display: block;
}

.file-drop-zone small {
    color: var(--muted);
    margin-top: 4px;
}

.file-drop-icon {
    align-items: center;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    border-radius: 8px;
    color: #04120c;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 950;
    justify-content: center;
}

.local-options-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.local-options-grid label {
    display: grid;
    gap: 7px;
}

.local-options-grid label span,
.local-checks span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.local-checks {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.local-checks label {
    align-items: center;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    min-height: 48px;
    padding: 12px;
}

.local-checks input {
    accent-color: var(--green);
    min-height: auto;
    width: auto;
}

.local-console {
    min-height: 100%;
}

.navigation-console {
    background:
        linear-gradient(180deg, rgba(85, 214, 255, 0.08), rgba(110, 231, 168, 0.04)),
        #070b11;
    border: 1px solid rgba(85, 214, 255, 0.24);
    border-radius: 8px;
    box-shadow: inset 0 0 40px rgba(85, 214, 255, 0.06), var(--shadow);
    display: grid;
    gap: 16px;
    overflow: hidden;
    padding: 16px;
    position: relative;
}

.navigation-console::after {
    animation: console-scan 3.4s linear infinite;
    background: linear-gradient(180deg, transparent, rgba(85, 214, 255, 0.12), transparent);
    content: "";
    height: 90px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: -100px;
}

.console-topline,
.telemetry-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.console-topline {
    align-items: center;
}

.console-topline span,
.telemetry-grid span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.console-topline strong {
    color: var(--green);
    font-size: 1.45rem;
    justify-self: end;
}

.descent-visual {
    background:
        radial-gradient(circle at 50% 120%, rgba(110, 231, 168, 0.2), transparent 38%),
        linear-gradient(180deg, rgba(9, 18, 29, 0.94), rgba(5, 8, 13, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    height: 270px;
    overflow: hidden;
    position: relative;
}

.transmission-beam {
    border: 1px solid rgba(85, 214, 255, 0.4);
    border-bottom: 0;
    border-left: 0;
    border-radius: 0 999px 0 0;
    height: 110px;
    left: 18%;
    opacity: 0;
    position: absolute;
    top: 32px;
    transform: rotate(-18deg);
    width: 180px;
}

.transmission-two {
    height: 150px;
    left: 12%;
    opacity: 0;
    top: 48px;
    width: 240px;
}

.descent-visual.is-transmitting .transmission-beam,
.descent-visual.is-parachute .transmission-beam,
.descent-visual.is-landing .transmission-beam {
    animation: transmission-pulse 1.2s ease-out infinite;
    opacity: 1;
}

.descent-visual.is-transmitting .transmission-two,
.descent-visual.is-parachute .transmission-two,
.descent-visual.is-landing .transmission-two {
    animation-delay: 380ms;
}

.console-grid {
    background-image:
        linear-gradient(rgba(85, 214, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(85, 214, 255, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    inset: 0;
    opacity: 0.72;
    position: absolute;
}

.trajectory-ring {
    border: 1px solid rgba(85, 214, 255, 0.22);
    border-radius: 50%;
    height: 210px;
    left: 50%;
    position: absolute;
    top: 22px;
    transform: translateX(-50%) rotate(-18deg);
    width: 360px;
}

.trajectory-ring-one {
    animation: trajectory-spin-one 16s linear infinite;
}

.trajectory-ring-one::after,
.trajectory-ring-two::after {
    background: var(--cyan);
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(85, 214, 255, 0.9);
    content: "";
    height: 7px;
    position: absolute;
    right: 56px;
    top: 28px;
    width: 7px;
}

.trajectory-ring-two {
    animation: trajectory-spin 12s linear infinite;
    height: 150px;
    opacity: 0.7;
    top: 58px;
    transform: translateX(-50%) rotate(21deg);
    width: 270px;
}

.craft-stack {
    height: 116px;
    left: 50%;
    position: absolute;
    top: 24px;
    transform: translate(-50%, 0);
    transform-origin: 50% 92px;
    transition: transform 520ms ease;
    width: 116px;
    z-index: 2;
}

.descent-craft {
    background:
        linear-gradient(145deg, #f7fbff 0 48%, #9bdff0 49% 100%);
    border-radius: 16px 16px 6px 6px;
    box-shadow: 0 0 24px rgba(85, 214, 255, 0.44);
    height: 42px;
    left: 50%;
    position: absolute;
    top: 42px;
    transform: translate(-50%, 0);
    width: 24px;
    z-index: 2;
}

.descent-craft::before,
.descent-craft::after {
    content: "";
    position: absolute;
}

.descent-visual.is-landed .descent-craft::after {
    animation: none;
    opacity: 0;
}

.parachute-canopy {
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-bottom: 0;
    border-radius: 80px 80px 0 0;
    height: 40px;
    left: 50%;
    opacity: 0;
    position: absolute;
    top: 0;
    transform: translate(-50%, 8px) scale(0.82);
    transition: opacity 240ms ease, transform 240ms ease;
    width: 108px;
    z-index: 2;
}

.parachute-canopy::before,
.parachute-canopy::after {
    background: rgba(255, 255, 255, 0.72);
    content: "";
    height: 50px;
    position: absolute;
    top: 28px;
    width: 1px;
}

.parachute-canopy::before {
    left: 30px;
    transform: rotate(-18deg);
}

.parachute-canopy::after {
    right: 30px;
    transform: rotate(18deg);
}

.descent-visual.is-parachute .parachute-canopy,
.descent-visual.is-landing .parachute-canopy {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.descent-visual.is-landed .parachute-canopy {
    opacity: 0;
}

.landing-legs {
    height: 30px;
    left: 50%;
    opacity: 0;
    position: absolute;
    top: 76px;
    transform: translateX(-50%);
    transition: opacity 220ms ease;
    width: 52px;
    z-index: 2;
}

.landing-legs::before,
.landing-legs::after {
    background: rgba(255, 255, 255, 0.82);
    bottom: 0;
    content: "";
    height: 32px;
    position: absolute;
    width: 2px;
}

.landing-legs::before {
    left: 14px;
    transform: rotate(24deg);
}

.landing-legs::after {
    right: 14px;
    transform: rotate(-24deg);
}

.descent-visual.is-landing .landing-legs,
.descent-visual.is-landed .landing-legs {
    opacity: 1;
}

.explorer-figure {
    background:
        radial-gradient(circle at 50% 48%, rgba(85, 214, 255, 0.72) 0 32%, transparent 35%),
        #f7fbff;
    border-radius: 999px;
    bottom: 42px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
    height: 14px;
    left: 48%;
    opacity: 0;
    position: absolute;
    width: 14px;
    z-index: 3;
}

.explorer-figure::before,
.explorer-figure::after {
    content: "";
    position: absolute;
}

.explorer-figure::before {
    background:
        linear-gradient(90deg, transparent 0 36%, rgba(255, 255, 255, 0.85) 37% 63%, transparent 64%),
        #d7f7ff;
    border-radius: 7px 7px 3px 3px;
    height: 20px;
    left: 3px;
    top: 12px;
    width: 8px;
}

.explorer-figure::after {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0 7px, transparent 7px 13px, rgba(255, 255, 255, 0.88) 13px 20px),
        linear-gradient(180deg, transparent 0 9px, rgba(255, 255, 255, 0.72) 9px 11px, transparent 11px);
    height: 22px;
    left: -3px;
    top: 20px;
    width: 20px;
}

.descent-visual.is-landed .explorer-figure {
    animation: explorer-walk 4.2s ease-in-out infinite;
    opacity: 1;
}

.descent-craft::before {
    background: var(--cyan);
    border-radius: 999px;
    height: 8px;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    width: 8px;
}

.descent-craft::after {
    animation: thruster-pulse 560ms ease-in-out infinite alternate;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 24px solid rgba(245, 184, 91, 0.9);
    bottom: -21px;
    filter: drop-shadow(0 0 12px rgba(245, 184, 91, 0.8));
    left: 50%;
    transform: translateX(-50%);
}

.planet-horizon {
    background:
        radial-gradient(circle at 42% 20%, rgba(255, 255, 255, 0.35), transparent 18%),
        linear-gradient(135deg, #245d72, #2f9b78 48%, #123320);
    border-radius: 50% 50% 0 0;
    bottom: -74px;
    box-shadow: 0 -16px 46px rgba(110, 231, 168, 0.16);
    height: 130px;
    left: -10%;
    position: absolute;
    width: 120%;
}

.telemetry-grid div {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: grid;
    gap: 4px;
    min-height: 72px;
    padding: 12px;
}

.telemetry-grid strong {
    color: var(--text);
    font-size: 1.18rem;
    overflow-wrap: anywhere;
}

.altitude-track {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
}

.altitude-track span {
    background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber));
    box-shadow: 0 0 18px rgba(85, 214, 255, 0.34);
    display: block;
    height: 100%;
    transition: width 420ms ease;
    width: 0;
}

.download-telemetry {
    align-items: center;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(85, 214, 255, 0.16);
    border-radius: 8px;
    display: grid;
    gap: 8px 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 12px;
}

.download-telemetry[hidden] {
    display: none;
}

.download-telemetry span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.download-telemetry strong {
    color: var(--cyan);
}

.download-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    grid-column: 1 / -1;
    height: 8px;
    overflow: hidden;
}

.download-track span {
    background: linear-gradient(90deg, var(--cyan), #8be5ff);
    box-shadow: 0 0 14px rgba(85, 214, 255, 0.34);
    display: block;
    height: 100%;
    transition: width 220ms ease;
    width: 0;
}

.board-instructions {
    background: rgba(245, 184, 91, 0.1);
    border: 1px solid rgba(245, 184, 91, 0.34);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 11px 12px;
}

.board-instructions[hidden] {
    display: none;
}

.board-instructions span {
    color: var(--amber);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.board-instructions p {
    color: var(--text);
    font-weight: 800;
    line-height: 1.45;
    margin: 0;
}

.board-page-instructions {
    margin-top: 18px;
}

.flight-status {
    color: var(--muted);
    font-weight: 800;
    margin: 0;
}

.flash-stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flash-stats[hidden] {
    display: none;
}

.flash-stats div {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px;
}

.flash-stats span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.flash-stats strong {
    color: var(--text);
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.serial-console {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
    padding: 16px;
}

.serial-console-header {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.serial-console-header span {
    font-weight: 900;
}

.serial-console-header p {
    color: var(--muted);
    margin: 2px 0 0;
}

.serial-toggle {
    background: rgba(255, 255, 255, 0.045);
    height: 42px;
    justify-content: center;
    padding: 0;
    white-space: nowrap;
    width: 42px;
}

.serial-toggle.is-open {
    background: rgba(122, 255, 178, 0.1);
    border-color: rgba(122, 255, 178, 0.38);
    color: var(--green);
}

.serial-log-panel {
    background: #030609;
    border: 1px solid rgba(85, 214, 255, 0.18);
    border-radius: 8px;
    box-shadow: inset 0 0 30px rgba(85, 214, 255, 0.05);
    height: 360px;
    overflow: hidden;
}

.serial-log-panel pre {
    box-sizing: border-box;
    color: #b7f7d0;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.78rem;
    height: 100%;
    line-height: 1.45;
    margin: 0;
    overflow: auto;
    padding: 12px;
    scrollbar-color: rgba(110, 231, 168, 0.65) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
    white-space: pre-wrap;
    word-break: break-word;
}

.serial-log-panel pre::-webkit-scrollbar {
    width: 10px;
}

.serial-log-panel pre::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.055);
    border-radius: 999px;
}

.serial-log-panel pre::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--cyan), var(--green));
    border: 2px solid #030609;
    border-radius: 999px;
}

.dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-tile {
    display: grid;
    gap: 10px;
    min-height: 150px;
    padding: 20px;
}

.dashboard-hero {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.dashboard-profile {
    margin: 0;
}

.dashboard-actions,
.row-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.dashboard-actions {
    align-items: stretch;
    flex-direction: column;
    min-width: 190px;
}

.dashboard-actions .primary-action,
.dashboard-actions .secondary-action {
    justify-content: center;
    width: 100%;
}

.dashboard-tabs {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 24px 0;
    padding: 6px;
}

.dashboard-tabs button {
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 10px 12px;
}

.dashboard-tabs button:hover,
.dashboard-tabs button:focus-visible,
.dashboard-tabs button.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    outline: 0;
}

.dashboard-tabs button.is-active {
    background: var(--green);
    color: #04120c;
}

.dashboard-panel {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-top: 16px;
    padding: 20px;
}

.reviews-panel {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 14px;
    margin-top: 24px;
    padding: 20px;
}

.review-form {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 14px;
    padding: 16px;
}

.review-form label {
    color: var(--muted);
    display: grid;
    font-weight: 800;
    gap: 8px;
}

.review-composer-head,
.review-card-head {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.review-composer-head h3 {
    margin-bottom: 0;
}

.star-rating-field {
    border: 0;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.star-rating-field legend {
    color: var(--muted);
    font-weight: 800;
    padding: 0;
}

.star-rating-control {
    direction: rtl;
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    width: max-content;
}

.star-rating-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-rating-control label {
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.34);
    cursor: pointer;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
    width: 44px;
}

.star-rating-control label:hover,
.star-rating-control label:hover ~ label,
.star-rating-control input:checked ~ label {
    background: rgba(255, 184, 107, 0.13);
    border-color: rgba(255, 184, 107, 0.58);
    box-shadow: 0 0 18px rgba(255, 184, 107, 0.14);
    color: #ffb86b;
    transform: translateY(-1px);
}

.star-rating-control input:focus-visible + label {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.review-list {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 360px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-color: rgba(122, 255, 178, 0.45) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
}

.review-list::-webkit-scrollbar {
    width: 8px;
}

.review-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.review-list::-webkit-scrollbar-thumb {
    background: rgba(122, 255, 178, 0.45);
    border-radius: 999px;
}

.review-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.review-author {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.review-author strong,
.review-author span {
    display: block;
}

.review-author span {
    color: var(--muted);
    font-size: 0.88rem;
}

.review-stars {
    color: #ffb86b;
    display: inline-flex;
    gap: 2px;
    white-space: nowrap;
}

.review-card p {
    color: var(--muted);
    margin: 0;
}

@media (max-width: 720px) {
    .review-list {
        grid-template-columns: 1fr;
        max-height: 420px;
    }

    .review-card-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

.dashboard-panel-head {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.dashboard-panel-head h3 {
    margin-bottom: 0;
}

.dashboard-split {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.inline-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 14px;
}

.inline-panel p:last-child {
    color: var(--muted);
    margin: 0;
}

.api-dashboard-split {
    margin-top: 16px;
}

.management-list {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

.management-row {
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px;
}

.management-main {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.management-title {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 44px minmax(0, 1fr);
    min-width: 0;
}

.management-title img,
.mini-avatar {
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
    width: 44px;
    background: white;
    padding: 5px;
}

.management-title strong,
.management-title span,
.management-row > div > strong,
.management-row > div > span {
    display: block;
}

.management-title span,
.management-row > div > span,
.row-meta,
.request-card span,
.admin-preview p {
    color: var(--muted);
}

.inline-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.management-title .inline-meta,
.management-title .inline-meta span {
    display: inline-flex;
}

.inline-meta > span {
    white-space: nowrap;
}

.inline-meta > span + span::before {
    color: var(--muted);
    content: "•";
    margin-right: 10px;
}

.row-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.88rem;
    gap: 8px 12px;
}

.status-pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 6px 9px;
    white-space: nowrap;
}

.status-pill.is-live {
    background: rgba(110, 231, 168, 0.1);
    border-color: rgba(110, 231, 168, 0.32);
    color: var(--green);
}

.status-pill.is-pending {
    background: rgba(245, 184, 91, 0.1);
    border-color: rgba(245, 184, 91, 0.35);
    color: var(--amber);
}

.admin-action-panel {
    border-color: rgba(245, 184, 91, 0.26);
}

.admin-request-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-request-card {
    align-items: center;
    background: rgba(245, 184, 91, 0.055);
    border: 1px solid rgba(245, 184, 91, 0.18);
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px;
}

.admin-request-card strong,
.admin-request-card p {
    display: block;
}

.admin-request-card strong {
    margin-top: 10px;
}

.admin-request-card p {
    color: var(--muted);
    margin: 4px 0 0;
}

.admin-review-dialog {
    max-height: min(86vh, 820px);
    overflow-y: auto;
}

.admin-review-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.admin-review-grid div,
.admin-review-details div {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.admin-review-grid span,
.admin-review-details span,
.admin-review-media span {
    color: var(--muted);
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.admin-review-grid strong,
.admin-review-details p {
    margin: 0;
}

.admin-review-details {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.admin-review-media {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 14px 0;
}

.admin-review-media a {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    display: grid;
    gap: 8px;
    padding: 10px;
}

.admin-review-media img {
    aspect-ratio: 16 / 7;
    background: #071018;
    border-radius: 6px;
    object-fit: contain;
    width: 100%;
}

.row-actions .primary-action,
.row-actions .secondary-action,
.row-actions .danger-action {
    min-height: 40px;
    padding: 9px 11px;
}

.compact-form {
    gap: 12px;
}

.management-form {
    display: grid;
    gap: 16px;
}

.form-grid {
    display: grid;
    gap: 14px;
}

.form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid label,
.full-field {
    color: var(--muted);
    display: grid;
    font-weight: 800;
    gap: 8px;
}

.field-hint,
.field-status {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.field-status {
    color: var(--green);
    min-height: 1em;
}

.field-status.is-error {
    color: var(--red);
}

.field-status.is-pending {
    color: var(--muted);
}

.field-status.is-success {
    color: var(--green);
}

input.is-field-error {
    border-color: color-mix(in srgb, var(--red) 72%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 16%, transparent);
}

.full-field {
    margin-top: 14px;
}

.form-grid .full-field {
    grid-column: 1 / -1;
}

.existing-gallery {
    margin-top: 0;
}

.gallery-picker {
    color: var(--muted);
    display: grid;
    font-weight: 800;
    gap: 10px;
}

.gallery-picker-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.gallery-picker-slot {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    padding: 10px;
}

.gallery-picker-slot input {
    min-width: 0;
    width: 100%;
}

.existing-gallery-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.gallery-remove-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    overflow: hidden;
    padding: 8px;
}

.gallery-remove-card img {
    aspect-ratio: 4 / 3;
    background: #091019;
    border-radius: 6px;
    object-fit: cover;
    width: 100%;
}

.gallery-remove-card span {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 0.82rem;
    gap: 8px;
}

.gallery-remove-card input {
    height: 16px;
    margin: 0;
    width: 16px;
}

.form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-action-form {
    display: inline-flex;
    margin: 0;
}

.inline-action-form .primary-action,
.inline-action-form .secondary-action,
.inline-action-form .danger-action {
    width: 100%;
}

.profile-summary-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.profile-image-preview {
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    height: 92px;
    object-fit: cover;
    width: 92px;
}

.checkbox-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    display: grid;
    font-weight: 800;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 12px;
}

.checkbox-card input {
    align-self: center;
    height: 18px;
    margin: 0;
    width: 18px;
}

.checkbox-card span {
    align-self: center;
    display: block;
    line-height: 1.45;
    min-height: 18px;
}

.firmware-targets {
    display: grid;
    gap: 14px;
}

.firmware-target {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 14px;
    padding: 14px;
}

.firmware-target-head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding-bottom: 12px;
}

.danger-panel {
    border-color: rgba(255, 88, 88, 0.35);
}

.image-crop-modal {
    align-items: center;
    background: rgba(2, 5, 8, 0.72);
    backdrop-filter: blur(12px);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 50;
}

.image-crop-modal[hidden] {
    display: none;
}

.image-crop-dialog {
    background: rgba(13, 20, 29, 0.94);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 16px;
    max-width: 760px;
    padding: 20px;
    width: min(760px, 100%);
}

.image-crop-stage {
    align-items: center;
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.045) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.045) 75%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.045) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.045) 75%);
    background-position: 0 0, 12px 12px;
    background-size: 24px 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: grab;
    display: block;
    height: min(56vh, 460px);
    overflow: hidden;
    touch-action: none;
    position: relative;
}

.image-crop-stage:active {
    cursor: grabbing;
}

.image-crop-stage img {
    max-height: none;
    max-width: none;
    pointer-events: none;
    position: absolute;
    transform-origin: center center;
    transition: transform 120ms ease;
    user-select: none;
    -webkit-user-drag: none;
}

.image-crop-frame {
    border: 2px solid var(--green);
    display: block;
    box-shadow: 0 0 0 999px rgba(2, 5, 8, 0.46);
    pointer-events: none;
    position: absolute;
}

.image-crop-zoom {
    color: var(--muted);
    display: grid;
    font-weight: 800;
    gap: 8px;
}

.image-crop-controls {
    display: grid;
    gap: 12px;
}

.image-crop-center-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.image-crop-center-actions .secondary-action {
    min-height: 38px;
    padding: 8px 12px;
}

.request-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

.request-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 6px;
    padding: 14px;
    text-align: left;
}

.request-card:hover,
.request-card:focus-visible {
    border-color: rgba(255, 255, 255, 0.24);
    outline: 0;
}

.admin-preview {
    border-top: 1px solid var(--line);
    margin-top: 20px;
    padding-top: 20px;
}

.form-page {
    max-width: var(--shell);
}

.auth-page {
    max-width: 720px;
}

.auth-switch {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 28px 0 18px;
    padding: 6px;
}

.auth-switch button {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 10px 14px;
}

.auth-switch button.is-active {
    background: var(--green);
    color: #04120c;
}

.auth-switch button:hover:not(.is-active),
.auth-switch button:focus-visible:not(.is-active) {
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text);
    outline: 0;
}

.notice-panel {
    background: rgba(245, 184, 91, 0.1);
    border: 1px solid rgba(245, 184, 91, 0.35);
    border-radius: 8px;
    color: var(--amber);
    font-weight: 800;
    margin: 22px 0 20px;
    padding: 12px 14px;
}

.notice-panel.is-error {
    background: rgba(255, 88, 88, 0.1);
    border-color: rgba(255, 88, 88, 0.35);
    color: #ff9a9a;
}

.notice-panel.is-success {
    background: rgba(122, 255, 178, 0.1);
    border-color: rgba(122, 255, 178, 0.35);
    color: var(--green);
}

.stack-form.auth-panel {
    display: none;
}

.stack-form.auth-panel.is-active {
    display: grid;
}

.auth-helper-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

.auth-helper-link {
    justify-self: start;
}

.stack-form button.auth-link-button {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--cyan);
    display: inline;
    font: inherit;
    font-weight: 800;
    min-height: auto;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    width: auto;
}

.stack-form button.auth-link-button:hover,
.stack-form button.auth-link-button:focus-visible {
    background: transparent;
    color: var(--text);
    outline: 0;
}

.text-button {
    background: transparent;
    border: 0;
    color: var(--cyan);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.text-button:hover,
.text-button:focus-visible {
    color: var(--text);
    outline: 0;
}

.auth-secondary-panel {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.auth-secondary-panel[hidden] {
    display: none;
}

.stack-form {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

.stack-form label {
    color: var(--muted);
    display: grid;
    font-weight: 800;
    gap: 8px;
}

.empty-state {
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    padding: 24px;
}

.error-page {
    align-items: center;
    display: grid;
    min-height: min(680px, 74vh);
}

.error-panel {
    background:
        radial-gradient(circle at 18% 20%, rgba(85, 214, 255, 0.14), transparent 28%),
        linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 24px;
    justify-items: start;
    overflow: hidden;
    padding: clamp(24px, 5vw, 56px);
    position: relative;
}

.error-orbit {
    align-items: center;
    aspect-ratio: 1;
    display: grid;
    justify-items: center;
    position: absolute;
    right: clamp(18px, 6vw, 72px);
    top: clamp(18px, 5vw, 52px);
    width: clamp(90px, 18vw, 190px);
}

.error-orbit span {
    border: 1px solid rgba(85, 214, 255, 0.4);
    border-radius: 50%;
    inset: 8px;
    position: absolute;
    transform: rotate(-18deg) scaleY(0.56);
}

.error-orbit strong {
    color: rgba(122, 255, 178, 0.18);
    font-size: clamp(2.4rem, 8vw, 6rem);
    line-height: 1;
}

.hardware-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 32px;
}

.board-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    margin-top: 24px;
}

.hardware-card {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 190px;
    padding: 20px;
    transition: border-color 160ms ease, transform 160ms ease;
}

.hardware-card-header {
    align-items: center;
    display: flex;
    gap: 14px;
}

.hardware-card-header img {
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    height: 54px;
    object-fit: contain;
    padding: 5px;
    width: 54px;
}

.hardware-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.hardware-card p:not(.eyebrow) {
    color: var(--muted);
    display: -webkit-box;
    line-height: 1.45;
    margin-bottom: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.hardware-stats,
.card-actions,
.board-status,
.board-card-status {
    align-items: center;
    display: flex;
    gap: 14px;
}

.hardware-card .hardware-stats {
    margin-top: auto;
}

.hardware-stats {
    color: var(--muted);
    font-size: 0.9rem;
}

.card-actions {
    align-self: end;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.muted-link {
    color: var(--muted);
    font-weight: 800;
}

.metric-link {
    color: inherit;
}

.metric-link:hover {
    color: var(--cyan);
}

.board-card {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    overflow: hidden;
    transition: border-color 160ms ease, transform 160ms ease;
}

.board-card > img {
    aspect-ratio: 16 / 9;
    background: #fff;
    object-fit: contain;
    padding: 10px;
    width: 100%;
}

.board-card-body {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.board-card h3 {
    font-size: 0.95rem;
    line-height: 1.2;
    margin-bottom: 5px;
}

.board-card p:not(.eyebrow),
.board-card-specs,
.board-card-status span {
    color: var(--muted);
}

.board-card-specs {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.82rem;
    gap: 8px 10px;
}

.board-card-status {
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    padding-top: 9px;
}

.board-card-status::before {
    border-radius: 999px;
    content: "";
    display: inline-block;
    height: 9px;
    width: 9px;
}

.board-card-status.is-flashable::before {
    background: var(--green);
}

.board-card-status.is-external::before {
    background: var(--amber);
}

.developer-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.developer-card,
.developer-profile {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.developer-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    transition: border-color 160ms ease, transform 160ms ease;
}

.developer-card h3 {
    font-size: 1.08rem;
}

.developer-avatar {
    align-items: center;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.86), rgba(102, 217, 232, 0.7) 30%, rgba(29, 109, 143, 0.35) 68%),
        #0d1824;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #071019;
    display: inline-flex;
    font-weight: 900;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.developer-avatar img {
    border-radius: inherit;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.developer-avatar.is-large {
    font-size: 2rem;
    height: 86px;
    width: 86px;
}

.developer-stats {
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.86rem;
    gap: 10px 14px;
    padding-top: 12px;
}

.developer-stats strong {
    color: var(--text);
}

.developer-profile {
    align-items: center;
    display: flex;
    gap: 18px;
    margin: 20px 0 18px;
    padding: 22px;
}

.developer-profile p:not(.eyebrow) {
    color: var(--muted);
}

.guardian-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 34px;
}

.guardian-card {
    align-items: center;
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 14px;
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 14px;
    transition: border-color 160ms ease, transform 160ms ease;
}

.guardian-card:hover {
    border-color: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
}

.guardian-card img {
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
    padding: 5px;
    width: 58px;
}

.guardian-card h3 {
    font-size: 1rem;
}

.board-list {
    border-top: 1px solid var(--line);
    display: grid;
    margin-top: 34px;
}

.board-row {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 18px 0;
}

.board-summary img {
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: 8px;
    height: 76px;
    object-fit: cover;
    width: 102px;
}

.board-row strong,
.board-row span {
    display: block;
}

.board-row span,
.board-status span {
    color: var(--muted);
}

.board-status {
    justify-content: end;
    min-width: 260px;
}

.board-status::before {
    border-radius: 999px;
    content: "";
    display: inline-block;
    height: 9px;
    width: 9px;
}

.board-status.is-flashable::before {
    background: var(--green);
}

.board-status.is-external::before {
    background: var(--amber);
}

.manufacturer-profile {
    padding-top: 64px;
}

.manufacturer-banner {
    min-height: 360px;
    overflow: hidden;
    position: relative;
}

.manufacturer-banner > img,
.manufacturer-banner-overlay {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.manufacturer-banner-overlay {
    background:
        linear-gradient(90deg, rgba(7, 9, 13, 0.95), rgba(7, 9, 13, 0.55)),
        linear-gradient(0deg, var(--bg), rgba(7, 9, 13, 0) 35%);
}

.manufacturer-banner-content {
    align-items: end;
    display: grid;
    gap: 22px;
    grid-template-columns: 126px minmax(0, 720px);
    margin: 0 auto;
    max-width: var(--shell);
    min-height: 360px;
    padding: 136px 32px 52px;
    position: relative;
    z-index: 2;
}

.manufacturer-banner-content p:not(.eyebrow) {
    color: var(--muted);
}

.manufacturer-avatar {
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: contain;
    padding: 10px;
    width: 126px;
}

.manufacturer-content {
    padding-top: 36px;
}

.manufacturer-meta {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-bottom: 38px;
    padding: 18px 0;
}

.manufacturer-meta strong,
.manufacturer-meta span,
.manufacturer-meta a {
    display: block;
}

.manufacturer-meta span {
    color: var(--muted);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-icon-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
}

.manufacturer-meta .social-icon-links {
    margin-top: 8px;
}

.social-icon-links a {
    align-items: center;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--cyan);
    display: inline-flex;
    height: 40px;
    justify-content: center;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
    width: 40px;
}

.social-icon-links a:hover,
.social-icon-links a:focus-visible {
    border-color: rgba(85, 214, 255, 0.44);
    box-shadow: 0 0 22px rgba(85, 214, 255, 0.14);
    color: var(--text);
    outline: 0;
    transform: translateY(-1px);
}

.board-detail-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin: 38px 0;
}

.board-hero {
    align-items: center;
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) 420px;
}

.board-hero p {
    color: var(--muted);
}

.board-hero-image,
.gallery-grid img {
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    object-fit: cover;
    width: 100%;
}

.board-hero-image {
    aspect-ratio: 4 / 3;
    background: #fff;
    object-fit: contain;
    padding: 18px;
}

.spec-table {
    border-top: 1px solid var(--line);
    display: grid;
}

.spec-table div {
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
}

.spec-table span {
    color: var(--muted);
}

.board-gallery {
    margin: 38px 0;
}

.gallery-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid img {
    aspect-ratio: 4 / 3;
}

.settings-list {
    border-top: 1px solid var(--line);
    display: grid;
    margin-top: 28px;
}

.settings-row {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 22px 0;
}

.settings-row h2 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.settings-row p {
    color: var(--muted);
    margin-bottom: 0;
}

.name-mode-toggle {
    align-items: center;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    font-size: 0.9rem;
    font-weight: 800;
    gap: 10px;
    min-width: 154px;
}

.name-mode-toggle input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.toggle-track {
    background: #0b121b;
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 28px;
    padding: 3px;
    width: 52px;
}

.toggle-thumb {
    background: var(--cyan);
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(85, 214, 255, 0.42);
    display: block;
    height: 20px;
    transform: translateX(0);
    transition: transform 160ms ease, background 160ms ease;
    width: 20px;
}

.name-mode-toggle input:checked + .toggle-track .toggle-thumb {
    background: var(--green);
    transform: translateX(22px);
}

.name-mode-toggle input:focus-visible + .toggle-track {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

.site-footer {
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: auto auto 0;
    max-width: var(--shell);
    padding: 28px 32px;
}

.footer-brand {
    font-weight: 800;
}

.footer-brand img {
    aspect-ratio: 1;
    height: 26px;
    object-fit: contain;
    width: 26px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer a:hover,
.footer-link:hover,
.text-button:hover {
    color: var(--text);
}

.footer-link,
.text-button {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.text-button {
    color: var(--cyan);
    font-weight: 800;
}

.settings-launcher {
    align-items: center;
    background: rgba(16, 23, 33, 0.92);
    border: 1px solid var(--line);
    border-radius: 8px;
    bottom: 22px;
    box-shadow: var(--shadow);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 900;
    height: 46px;
    justify-content: center;
    padding: 0;
    position: fixed;
    right: 22px;
    width: 46px;
    z-index: 40;
}

.settings-launcher:hover,
.settings-launcher:focus-visible {
    border-color: rgba(255, 255, 255, 0.26);
    box-shadow: 0 0 28px rgba(85, 214, 255, 0.14);
    outline: 0;
}

.settings-modal[hidden] {
    display: none;
}

.settings-modal {
    align-items: center;
    backdrop-filter: blur(8px);
    background: rgba(2, 4, 7, 0.52);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 65;
}

.settings-dialog {
    backdrop-filter: blur(18px);
    background:
        linear-gradient(180deg, rgba(18, 27, 39, 0.82), rgba(11, 17, 25, 0.76)),
        rgba(7, 11, 17, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 760px;
    padding: 24px;
    width: 100%;
}

.settings-dialog-header {
    align-items: start;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 4px;
    padding-bottom: 18px;
}

.dialog-close {
    align-items: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    justify-content: center;
    padding: 8px 10px;
}

.dialog-close.icon-button {
    height: 38px;
    padding: 0;
    width: 38px;
}

.dialog-close:hover,
.dialog-close:focus-visible {
    border-color: rgba(255, 255, 255, 0.26);
    color: var(--text);
    outline: 0;
}

.content-page,
.legal-page {
    max-width: var(--reading);
}

.content-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 34px 0;
}

.content-panel {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.content-panel > .social-icon-links {
    margin-top: auto;
    padding-top: 16px;
}

.content-panel p,
.content-section p,
.legal-copy p,
.term-table span {
    color: var(--muted);
}

.content-section {
    border-top: 1px solid var(--line);
    padding: 34px 0;
}

.term-table,
.legal-copy {
    border-top: 1px solid var(--line);
    display: grid;
}

.term-table div,
.legal-copy section {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 12px;
    padding: 18px 0;
}

.term-table div {
    grid-template-columns: 180px minmax(0, 1fr);
}

.term-table strong,
.term-table span {
    display: block;
}

.legal-copy {
    margin-top: 32px;
}

.legal-notice {
    background: rgba(245, 184, 91, 0.1);
    border: 1px solid rgba(245, 184, 91, 0.32);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    margin-top: 24px;
    padding: 16px;
}

.legal-notice strong {
    color: var(--amber);
}

.legal-notice p {
    color: var(--muted);
    margin: 0;
}

.legal-copy h3,
.content-panel h3 {
    font-size: 1.05rem;
    margin-bottom: 0;
}

.consent-modal[hidden] {
    display: none;
}

.consent-modal {
    align-items: center;
    background: rgba(2, 4, 7, 0.72);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 60;
}

.consent-card {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 720px;
    padding: 24px;
    width: 100%;
}

.consent-card p:not(.eyebrow) {
    color: var(--muted);
}

.consent-actions,
.consent-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.consent-actions {
    margin-top: 20px;
}

.space-choice {
    align-items: center;
    background:
        radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.22), transparent 13%),
        linear-gradient(135deg, #0b2230, #123d32 48%, #6ee7a8);
    border: 1px solid rgba(110, 231, 168, 0.64);
    border-radius: 8px;
    box-shadow: 0 0 28px rgba(85, 214, 255, 0.18), inset 0 0 24px rgba(255, 255, 255, 0.08);
    color: #effff8;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 900;
    justify-content: center;
    min-height: 46px;
    min-width: 178px;
    overflow: hidden;
    padding: 10px 18px;
    position: relative;
}

.space-choice::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    content: "";
    height: 100%;
    left: -110%;
    position: absolute;
    top: 0;
    transform: skewX(-18deg);
    width: 70%;
}

.space-choice:hover::before,
.space-choice:focus-visible::before {
    animation: light-pass 900ms ease;
}

.space-choice-label {
    position: relative;
    z-index: 2;
}

.orbit {
    animation: orbit-spin 3.6s linear infinite;
    border: 1px solid rgba(85, 214, 255, 0.35);
    border-radius: 999px;
    height: 52px;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform-origin: center;
    width: 118px;
    z-index: 1;
}

.orbit-two {
    animation-duration: 5.2s;
    border-color: rgba(245, 184, 91, 0.38);
    height: 64px;
    width: 142px;
}

.orbit span,
.spacecraft-dot {
    border-radius: 999px;
    display: block;
    position: absolute;
}

.orbit span {
    background: var(--cyan);
    box-shadow: 0 0 12px rgba(85, 214, 255, 0.8);
    height: 7px;
    right: 8px;
    top: 7px;
    width: 7px;
}

.orbit-two span {
    background: var(--amber);
    box-shadow: 0 0 12px rgba(245, 184, 91, 0.8);
    height: 6px;
    right: 14px;
    top: 9px;
    width: 6px;
}

.spacecraft-dot {
    background: #ffffff;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
    height: 5px;
    left: 18px;
    top: 12px;
    width: 12px;
    z-index: 2;
}

.space-choice:hover,
.space-choice:focus-visible {
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: 0 0 36px rgba(110, 231, 168, 0.32), 0 0 18px rgba(85, 214, 255, 0.18);
    outline: 0;
}

@keyframes orbit-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes craft-drift {
    0%,
    100% {
        transform: translate(0, 0) rotate(-8deg);
    }

    50% {
        transform: translate(-14px, 8px) rotate(-3deg);
    }
}

@keyframes light-pass {
    from {
        left: -110%;
    }

    to {
        left: 130%;
    }
}

@keyframes trajectory-spin {
    from {
        transform: translateX(-50%) rotate(21deg);
    }

    to {
        transform: translateX(-50%) rotate(381deg);
    }
}

@keyframes trajectory-spin-one {
    from {
        transform: translateX(-50%) rotate(-18deg);
    }

    to {
        transform: translateX(-50%) rotate(342deg);
    }
}

@keyframes console-scan {
    from {
        top: -100px;
    }

    to {
        top: 100%;
    }
}

@keyframes thruster-pulse {
    from {
        opacity: 0.48;
        transform: translateX(-50%) scaleY(0.72);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) scaleY(1.08);
    }
}

@keyframes transmission-pulse {
    from {
        opacity: 0;
        transform: rotate(-18deg) scale(0.82);
    }

    45% {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: rotate(-18deg) scale(1.12);
    }
}

@keyframes explorer-walk {
    0%,
    100% {
        transform: translate(0, 0);
    }

    45% {
        transform: translate(30px, -2px);
    }

    70% {
        transform: translate(24px, 0);
    }
}

.consent-links {
    border-top: 1px solid var(--line);
    margin-top: 18px;
    padding-top: 14px;
}

@media (max-width: 820px) {
    .site-header {
        align-items: center;
        min-height: 64px;
        padding: 0 18px;
    }

    .brand-logo,
    .brand img {
        flex-basis: 34px;
        height: 34px;
        max-height: 34px;
        max-width: 34px;
        min-height: 34px;
        min-width: 34px;
        width: 34px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        align-items: stretch;
        background: rgba(9, 14, 21, 0.98);
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
        display: none;
        flex-direction: column;
        gap: 4px;
        left: 18px;
        padding: 8px;
        position: absolute;
        right: 18px;
        top: calc(100% + 10px);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px;
    }

    .nav-logout button {
        padding: 12px;
        text-align: left;
        width: 100%;
    }

    .hero {
        min-height: 540px;
        padding: 112px 18px 54px;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(7, 9, 13, 0.98), rgba(7, 9, 13, 0.68)),
            linear-gradient(0deg, var(--bg), rgba(7, 9, 13, 0) 42%);
    }

    .search-bar,
    .detail-header,
    .project-hero-content,
    .section-heading,
    .metrics-row,
    .build-row {
        align-items: stretch;
        flex-direction: column;
    }

    .mission-grid,
    .hardware-grid,
    .board-grid,
    .developer-grid,
    .guardian-grid,
    .content-grid,
    .term-table div,
    .stat-strip,
    .manufacturer-meta,
    .board-detail-grid,
    .board-hero,
    .gallery-grid,
    .feature-band,
    .workflow-band,
    .hero-shell,
    .feature-list,
    .project-story,
    .flasher-layout,
    .launch-console,
    .local-flasher-shell,
    .local-options-grid,
    .local-checks,
    .launch-actions,
    .dashboard-grid,
    .admin-request-grid,
    .settings-row {
        grid-template-columns: 1fr;
    }

    .admin-request-card {
        grid-template-columns: 1fr;
    }

    .hero-shell {
        align-items: start;
        gap: 28px;
    }

    .project-hero-content {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 24px;
    }

    .project-avatar {
        width: 92px;
    }

    .project-actions {
        width: 100%;
    }

    .external-project-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-actions,
    .hero-stats {
        flex-direction: column;
    }

    .hero-actions a,
    .hero-actions .primary-action {
        justify-content: center;
        width: 100%;
    }

    .hero-panel {
        width: 100%;
    }

    .stat-strip div {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 16px;
    }

    .stat-strip div:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .settings-row {
        align-items: start;
    }

    .dashboard-hero,
    .dashboard-split,
    .management-row,
    .form-grid.two,
    .form-grid.three {
        grid-template-columns: 1fr;
    }

    .dashboard-actions,
    .row-actions {
        justify-content: flex-start;
    }

    .dashboard-actions {
        min-width: 0;
        width: 100%;
    }

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

    .board-status,
    .build-actions,
    .card-actions {
        justify-content: start;
    }

    .board-status {
        min-width: 0;
    }

    .manufacturer-banner-content {
        align-items: start;
        grid-template-columns: 1fr;
        padding: 146px 18px 42px;
    }

    .manufacturer-avatar {
        width: 92px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        padding-left: 18px;
        padding-right: 18px;
    }

    .developer-profile {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-modal {
        padding: 14px;
    }

    .settings-dialog-header {
        flex-direction: column;
    }

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

    .consent-modal {
        padding: 14px;
    }

    .consent-actions button,
    .consent-actions .secondary-action,
    .space-choice {
        justify-content: center;
        width: 100%;
    }

    .section,
    .page-shell {
        padding-left: 18px;
        padding-right: 18px;
    }

    .descent-visual {
        height: 230px;
    }

    .flash-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-track,
    .orbit,
    .home-orbit-ring,
    .home-spacecraft,
    .navigation-console::after,
    .trajectory-ring-one,
    .trajectory-ring-two,
    .descent-craft::after,
    .transmission-beam,
    .explorer-figure,
    .space-choice:hover::before,
    .space-choice:focus-visible::before {
        animation: none;
    }
}
