:root {
    --bg-0: #04141a;
    --bg-1: #0a2230;
    --bg-2: #132535;
    --panel: rgba(5, 17, 25, 0.72);
    --panel-border: rgba(142, 201, 224, 0.26);
    --text: #e8f5ff;
    --muted: #9fc7d8;
    --accent: #ffad3b;
    --accent-2: #57e7ff;
    --danger: #ff6c52;
    --font-display: "Bahnschrift", "Trebuchet MS", "Segoe UI", sans-serif;
    --font-body: "Verdana", "Trebuchet MS", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font-body);
    background:
        radial-gradient(1300px 700px at 8% -10%, rgba(255, 173, 59, 0.2), transparent 58%),
        radial-gradient(1100px 700px at 100% 0%, rgba(87, 231, 255, 0.18), transparent 60%),
        linear-gradient(140deg, var(--bg-0), var(--bg-1) 45%, var(--bg-2));
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 95%);
}

body.home-hero-active::before {
    opacity: 0.2;
}

.site-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 1.2rem auto 2rem;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--panel-border);
    background: var(--panel);
    backdrop-filter: blur(10px);
    border-radius: 14px;
}

.brand {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2vw, 2rem);
    letter-spacing: 0.08em;
    text-decoration: none;
    color: var(--text);
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.topbar a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    border-radius: 999px;
    padding: 0.38rem 0.8rem;
    border: 1px solid transparent;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.topbar a:hover,
.topbar a[aria-current="page"] {
    border-color: var(--panel-border);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.cta-small {
    border: 1px solid rgba(255, 173, 59, 0.65) !important;
    background: rgba(255, 173, 59, 0.14);
}

main {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.hero,
.panel,
.card {
    border: 1px solid var(--panel-border);
    background: var(--panel);
    border-radius: 16px;
    padding: clamp(1rem, 3vw, 2rem);
    backdrop-filter: blur(10px);
}

.hero.hero-commander {
    position: relative;
    min-height: 100vh;
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    backdrop-filter: none;
    overflow: visible;
}

.hero-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: auto;
    width: 100vw;
    height: 100vh;
}

.hero-background canvas {
    width: 100vw;
    height: 100vh;
    display: block;
    cursor: crosshair;
}

.hero-panel {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: clamp(1.4rem, 6vw, 4rem) 0;
    padding: clamp(1.4rem, 4vw, 2.6rem);
    border-radius: 18px;
    border: 1px solid rgba(120, 188, 214, 0.35);
    background: rgba(5, 17, 25, 0.82);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(6, 20, 28, 0.45);
}

.hero-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    margin-top: 1rem;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    background: rgba(5, 13, 18, 0.72);
    border: 1px solid rgba(120, 188, 214, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.65rem;
    color: var(--accent-2);
}

.hero-badge-title {
    font-weight: 700;
}

.hero-badge-subtitle {
    color: var(--muted);
    letter-spacing: 0.08em;
}

.hero-canvas-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(120, 188, 214, 0.35);
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 200, 120, 0.18), transparent 50%),
        radial-gradient(circle at 80% 10%, rgba(90, 210, 255, 0.18), transparent 45%),
        linear-gradient(140deg, rgba(6, 22, 30, 0.9), rgba(7, 16, 24, 0.95));
    box-shadow: 0 24px 60px rgba(6, 20, 28, 0.45);
}

.hero-canvas-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 62%);
    pointer-events: none;
}

/* ============================================
   Jukebox Overlay (Homepage)
   ============================================ */

.jukebox-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: auto;
}

.jukebox-button {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(87, 231, 255, 0.55);
    background: rgba(5, 13, 18, 0.8);
    color: var(--text);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s ease;
}

.jukebox-button:hover {
    border-color: rgba(87, 231, 255, 0.85);
    box-shadow: 0 0 18px rgba(87, 231, 255, 0.25);
    transform: translateY(-1px);
}

.jukebox-panel {
    width: min(320px, 92vw);
    max-height: min(420px, 70vh);
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(142, 201, 224, 0.28);
    background: rgba(5, 13, 18, 0.92);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
    transition: all 0.18s ease;
}

.jukebox-overlay.is-open .jukebox-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.jukebox-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(224, 234, 248, 0.85);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.jukebox-panel-title {
    font-weight: 600;
}

.jukebox-close {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 28, 38, 0.7);
    color: var(--text);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
}

.mp3-player {
    display: grid;
    gap: 10px;
    padding: 12px;
    background: rgba(8, 12, 18, 0.75);
    border: 1px solid rgba(132, 176, 236, 0.18);
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.jukebox-overlay .mp3-player {
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 10px 12px 12px;
}

.mp3-player-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: rgba(224, 234, 248, 0.85);
}

.mp3-player-title {
    font-weight: 600;
    color: #f8fbff;
    letter-spacing: 0.2px;
}

.mp3-player-time {
    font-family: var(--font-body);
    color: rgba(224, 234, 248, 0.65);
    font-size: 12px;
}

.mp3-player-controls {
    display: flex;
    gap: 8px;
}

.mp3-control {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 28, 38, 0.75);
    color: #f8fbff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mp3-control:hover {
    border-color: rgba(87, 231, 255, 0.5);
    box-shadow: 0 0 12px rgba(87, 231, 255, 0.2);
}

.mp3-control-primary {
    background: rgba(87, 231, 255, 0.2);
    border-color: rgba(87, 231, 255, 0.45);
}

.mp3-player-progress {
    width: 100%;
}

.mp3-player-list {
    display: grid;
    gap: 6px;
    max-height: 160px;
    overflow-y: auto;
    padding-right: 4px;
}

.mp3-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 10px;
    background: rgba(20, 28, 38, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: rgba(224, 234, 248, 0.8);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mp3-track:hover {
    border-color: rgba(87, 231, 255, 0.4);
    color: #f8fbff;
}

.mp3-track.is-active {
    background: rgba(87, 231, 255, 0.18);
    border-color: rgba(87, 231, 255, 0.5);
    color: #f8fbff;
}

.hero-caption {
    position: absolute;
    left: 1rem;
    bottom: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    background: rgba(5, 13, 18, 0.68);
    border: 1px solid rgba(120, 188, 214, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.65rem;
    color: var(--accent-2);
}

.hero-caption-title {
    font-weight: 700;
}

.hero-caption-subtitle {
    color: var(--muted);
    letter-spacing: 0.08em;
}

.eyebrow,
.kicker {
    margin: 0;
    color: var(--accent-2);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
}

h1,
h2,
h3 {
    margin: 0.2rem 0 0.6rem;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    line-height: 1;
}

h1 {
    font-size: clamp(2rem, 5vw, 4.4rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
}

h3 {
    font-size: clamp(1.15rem, 2vw, 1.55rem);
}

p,
li {
    color: var(--muted);
    line-height: 1.55;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.7rem 1.2rem;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.btn-primary {
    color: #111;
    background: linear-gradient(120deg, var(--accent), #ffd574);
    box-shadow: 0 14px 30px rgba(255, 173, 59, 0.25);
}

.btn-outline {
    color: var(--text);
    border-color: rgba(87, 231, 255, 0.6);
    background: rgba(87, 231, 255, 0.1);
}

.btn-donate {
    color: #04151b;
    background: linear-gradient(120deg, #00c6ff, #7ce8ff);
    box-shadow: 0 14px 30px rgba(87, 231, 255, 0.27);
}

.note {
    font-size: 0.85rem;
}

code {
    color: var(--text);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 0.12rem 0.28rem;
}

.grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card a {
    color: var(--accent-2);
    font-weight: 700;
}

.status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.3rem 0.66rem;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid transparent;
}

.blog-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.blog-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.blog-entry {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.9rem;
}

.entry-component-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.entry-component-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(87, 231, 255, 0.28);
    background: rgba(87, 231, 255, 0.08);
    color: var(--text);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.22rem 0.5rem;
}

.entry-stats-grid {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin: 0.8rem 0 1rem;
}

.entry-stat-card {
    border: 1px solid rgba(87, 231, 255, 0.24);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.24);
    padding: 0.5rem 0.6rem;
}

.entry-stat-label {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.entry-stat-value {
    margin: 0.25rem 0 0;
    color: var(--text);
    font-weight: 700;
}

.entry-stat-hint {
    margin: 0.3rem 0 0;
    font-size: 0.8rem;
}

.asset-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.8rem 0 1rem;
}

.asset-pill {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    padding: 0.4rem 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: default;
    font: inherit;
}

.asset-pill-kind {
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent-2);
    font-weight: 700;
}

.asset-pill-name {
    font-weight: 700;
}

.asset-pill-hint {
    font-size: 0.75rem;
    color: var(--muted);
}

.asset-pill-unit {
    border-color: rgba(87, 231, 255, 0.4);
}

.asset-pill-building {
    border-color: rgba(255, 173, 59, 0.5);
}

.asset-tooltip {
    position: absolute;
    left: 0;
    top: calc(100% + 0.4rem);
    min-width: min(320px, 80vw);
    max-width: 380px;
    padding: 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(87, 231, 255, 0.35);
    background: rgba(3, 11, 18, 0.95);
    color: var(--text);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
    z-index: 20;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 140ms ease, transform 140ms ease;
}

.asset-tip-media {
    display: block;
    margin: 0 0 0.5rem;
}

.asset-tip-thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: contain;
    object-position: 50% 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(3, 11, 18, 0.95);
}

.asset-tip-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 96px;
    border-radius: 8px;
    padding: 0.4rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: var(--text);
    background:
        radial-gradient(65% 110% at 0% 0%, rgba(255, 255, 255, 0.16), transparent 72%),
        rgba(255, 255, 255, 0.08);
}

.asset-tip-fallback-unit {
    border-color: rgba(87, 231, 255, 0.48);
    background: linear-gradient(130deg, rgba(87, 231, 255, 0.28), rgba(87, 231, 255, 0.12));
}

.asset-tip-fallback-building {
    border-color: rgba(255, 173, 59, 0.56);
    background: linear-gradient(130deg, rgba(255, 173, 59, 0.32), rgba(255, 173, 59, 0.15));
}

.asset-pill:hover .asset-tooltip,
.asset-pill:focus-visible .asset-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.asset-tip-subtitle {
    margin: 0.25rem 0 0;
    color: var(--accent-2);
    font-size: 0.85rem;
}

.asset-tip-text {
    margin: 0.45rem 0 0;
    font-size: 0.88rem;
}

.asset-tip-stats {
    margin: 0.5rem 0;
    display: grid;
    gap: 0.35rem;
}

.asset-tip-stats div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
}

.asset-tip-stats dt {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.asset-tip-stats dd {
    margin: 0;
    color: var(--text);
    font-weight: 700;
    font-size: 0.86rem;
}

.insight-grid,
.poll-grid {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.insight-card,
.poll-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.9rem;
}

.insight-card h3,
.poll-card h3 {
    margin-bottom: 0.3rem;
}

.insight-value {
    margin: 0;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.02em;
}

.insight-subtext {
    margin-top: 0.25rem;
    font-size: 0.88rem;
}

.priority-radar {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.55rem;
}

.priority-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(87, 231, 255, 0.24);
    background: rgba(87, 231, 255, 0.08);
}

.priority-row strong {
    color: var(--text);
}

.priority-delta {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.priority-delta.up {
    color: #9cffc8;
}

.priority-delta.flat {
    color: #ffd48a;
}

.priority-delta.down {
    color: #ffb1a5;
}

.poll-topline {
    margin: 0 0 0.55rem;
    color: var(--accent-2);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.poll-option {
    margin-top: 0.55rem;
}

.poll-option-btn {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    text-align: left;
    padding: 0.55rem 0.65rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    cursor: pointer;
    transition: border-color 170ms ease, background-color 170ms ease, transform 170ms ease;
}

.poll-option-btn:hover:not(:disabled) {
    border-color: rgba(87, 231, 255, 0.6);
    background: rgba(87, 231, 255, 0.12);
    transform: translateY(-1px);
}

.poll-option-btn:disabled {
    opacity: 0.65;
    cursor: default;
}

.poll-option-btn.selected {
    border-color: rgba(255, 173, 59, 0.72);
    background: rgba(255, 173, 59, 0.16);
}

.poll-meter {
    margin-top: 0.3rem;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.poll-meter-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(120deg, var(--accent), #ffd574);
}

.poll-stats {
    margin-top: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.home-signal-strip {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-signal-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(87, 231, 255, 0.3);
    background: rgba(87, 231, 255, 0.1);
    color: var(--text);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 0.26rem 0.62rem;
}

.home-latest-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    margin-top: 0.9rem;
}

.home-latest-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    padding: 0.9rem;
}

.home-poll-card {
    display: grid;
    gap: 0.45rem;
}

.home-poll-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

.home-poll-option {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    font-size: 0.78rem;
    padding: 0.2rem 0.54rem;
}

.home-focus-bars {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.home-focus-row {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    padding: 0.55rem 0.65rem;
}

.home-focus-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.home-focus-head strong {
    color: var(--text);
}

.home-focus-head span {
    color: var(--muted);
    font-size: 0.84rem;
}

.home-focus-track {
    position: relative;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.home-focus-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(87, 231, 255, 0.9), rgba(255, 173, 59, 0.85));
}

.home-asset-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 0.85rem;
}

.home-asset-card {
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.home-asset-thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: 50% 50%;
    background: rgba(3, 11, 18, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-asset-body {
    padding: 0.7rem 0.8rem 0.85rem;
}

.home-asset-type {
    margin: 0;
    color: var(--accent-2);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}

.home-asset-body h3 {
    margin: 0.28rem 0 0.35rem;
    font-size: 1.08rem;
}

.home-asset-body p {
    margin: 0.18rem 0;
}

.entry-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.entry-date {
    margin: 0;
    color: var(--accent-2);
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.entry-area {
    margin: 0.1rem 0 0.45rem;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text);
}

.entry-series {
    margin: 0 0 0.45rem;
    color: var(--accent);
    font-size: 0.84rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.entry-actions {
    margin-top: 0.65rem;
}

.entry-link {
    color: var(--accent-2);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.03em;
}

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

.article-list {
    margin: 0.6rem 0 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.45rem;
}

.article-list li {
    color: var(--muted);
}

.section-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0.8rem 0 1rem;
}

.section-figure {
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.section-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.section-figure figcaption {
    margin: 0;
    padding: 0.45rem 0.6rem 0.55rem;
    font-size: 0.8rem;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(0, 0, 0, 0.25);
}

.series-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.series-link {
    color: var(--text);
    text-decoration: none;
    border: 1px solid rgba(87, 231, 255, 0.45);
    background: rgba(87, 231, 255, 0.1);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}

.series-link.current {
    background: rgba(255, 173, 59, 0.2);
    border-color: rgba(255, 173, 59, 0.55);
    color: #fff7e5;
}

.status-stable {
    color: #ecfff5;
    background: rgba(38, 197, 123, 0.22);
    border-color: rgba(89, 220, 153, 0.48);
}

.status-iterating {
    color: #fff8e8;
    background: rgba(255, 173, 59, 0.2);
    border-color: rgba(255, 200, 98, 0.48);
}

.status-experimental {
    color: #ffeef0;
    background: rgba(255, 108, 82, 0.2);
    border-color: rgba(255, 140, 115, 0.48);
}

.systems-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.system-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.9rem;
}

.system-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.45rem;
}

.system-head h3 {
    margin: 0;
    line-height: 1.05;
    font-size: 1.2rem;
}

.timeline {
    display: grid;
    gap: 0.8rem;
}

.timeline article {
    padding-left: 1rem;
    border-left: 3px solid rgba(87, 231, 255, 0.45);
}

.roadmap-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roadmap-col {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
}

.clean-list {
    margin: 0;
    padding-left: 1.2rem;
}

.meshlab-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.meshlab-viewport {
    min-height: 500px;
    border-radius: 14px;
    border: 1px solid rgba(87, 231, 255, 0.34);
    background: radial-gradient(circle at 24% 20%, rgba(87, 231, 255, 0.12), rgba(4, 14, 22, 0.95) 68%);
    overflow: hidden;
}

#meshlab-canvas {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* ============================================
   Unit Editor v2
   ============================================ */

.unit-editor-layout {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 16vw);
}

.unit-editor-layout.is-sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr) 58px;
}

.unit-editor-layout.is-sidebar-expanded {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 21vw);
}

.unit-editor-viewport {
    position: relative;
    min-height: 0;
    aspect-ratio: 1 / 1;
}

#unit-editor-canvas {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: 1 / 1;
}

.unit-editor-page .site-shell {
    width: min(2000px, calc(100% - 1rem));
}

.unit-editor-overlay {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    display: grid;
    gap: 0.45rem;
    z-index: 2;
    pointer-events: none;
}

.unit-editor-toolbar {
    display: grid;
    gap: 0.4rem;
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(5, 14, 22, 0.9);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.ue-toolbar-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.ue-tool-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 22, 32, 0.9);
    color: #dce7f2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.ue-tool-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ue-tool-btn.is-active {
    border-color: rgba(87, 231, 255, 0.7);
    background: rgba(11, 35, 52, 0.85);
    color: #57e7ff;
    box-shadow: 0 0 0 1px rgba(87, 231, 255, 0.15);
}

.ue-tool-btn:focus-visible {
    outline: 2px solid rgba(87, 231, 255, 0.6);
    outline-offset: 2px;
}

.ue-toolbar-select {
    display: grid;
    gap: 0.25rem;
}

.ue-toolbar-select label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.ue-toolbar-select select {
    min-width: 170px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 16, 26, 0.9);
    color: #f2f7ff;
    padding: 0.3rem 0.5rem;
}

.unit-editor-status {
    display: grid;
    gap: 0.2rem;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(3, 12, 20, 0.85);
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.unit-editor-status strong {
    color: var(--accent-2);
    font-weight: 700;
    font-size: 0.68rem;
}

.unit-editor-status span {
    color: #f1fbff;
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.78rem;
}

.unit-editor-hints {
    max-width: 280px;
    padding: 0.4rem 0.6rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(3, 10, 18, 0.8);
    font-size: 0.7rem;
    color: #cdd7e3;
    text-transform: none;
    letter-spacing: 0.02em;
}

.unit-editor-grid {
    display: grid;
    gap: 0.4rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ue-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ue-icon-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ue-collapsible {
    margin-top: 0.6rem;
    padding: 0.6rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 12, 20, 0.6);
    display: grid;
    gap: 0.6rem;
}

.ue-operator-stack {
    display: grid;
    gap: 0.4rem;
    padding: 0.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 10, 16, 0.6);
}

.ue-operator-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.ue-operator-desc {
    opacity: 0.75;
}

.toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.toggle-row input {
    margin: 0;
}

.unit-editor-sidebar .sim-panel {
    background: rgba(0, 0, 0, 0.24);
}

.unit-editor-sidebar {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0.5rem;
    align-content: start;
    position: sticky;
    top: 0.6rem;
    max-height: calc(100vh - 1.2rem);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.unit-editor-sidebar .sim-panel {
    grid-column: 2;
    max-height: none;
    overflow: visible;
}

.ue-sidebar-capabilities {
    grid-column: 1;
    display: grid;
    gap: 0.34rem;
    align-content: start;
    padding: 0.3rem;
    border-radius: 12px;
    border: 1px solid rgba(87, 231, 255, 0.24);
    background: rgba(3, 10, 18, 0.72);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    position: sticky;
    top: 0.6rem;
    align-self: start;
}

.ue-capability-btn {
    width: 100%;
    min-height: 30px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(10, 16, 26, 0.82);
    color: #cfe2f2;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.18rem 0.18rem;
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.ue-capability-btn:hover:not(:disabled) {
    border-color: rgba(137, 219, 246, 0.7);
    background: rgba(13, 24, 36, 0.92);
    color: #e7f6ff;
    transform: translateY(-1px);
}

.ue-capability-btn.is-active {
    border-color: rgba(87, 231, 255, 0.8);
    background: rgba(11, 35, 52, 0.88);
    color: #57e7ff;
    box-shadow: 0 0 0 1px rgba(87, 231, 255, 0.2);
}

.ue-capability-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.unit-editor-sidebar select[size] {
    min-height: 120px;
    max-height: 180px;
}

.unit-editor-sidebar .sim-title {
    position: sticky;
    top: 0;
    z-index: 1;
    margin: -0.2rem -0.2rem 0.55rem;
    padding: 0.2rem 0.2rem 0.45rem;
    background: linear-gradient(180deg, rgba(9, 16, 26, 0.96), rgba(9, 16, 26, 0.82));
    backdrop-filter: blur(6px);
}

.ue-runtime-target-panel {
    display: grid;
    gap: 0.55rem;
}

.ue-runtime-target-dock {
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
    z-index: 3;
    width: min(380px, calc(100% - 1.6rem));
    max-height: calc(100% - 1.6rem);
    overflow: auto;
    padding: 0.7rem;
    border-radius: 14px;
    border: 1px solid rgba(87, 231, 255, 0.22);
    background:
        linear-gradient(180deg, rgba(7, 17, 27, 0.96), rgba(4, 11, 18, 0.92));
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.ue-runtime-target-dock-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.6rem;
}

.ue-runtime-target-dock-title {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9fe6ff;
}

.ue-runtime-trigger-summary {
    flex: 1;
    min-width: 0;
    font-size: 0.74rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ue-runtime-trigger-editor {
    display: grid;
    gap: 0.45rem;
}

@media (max-width: 1100px) {
    .ue-runtime-target-dock {
        left: 0.8rem;
        width: auto;
        max-width: none;
    }
}

@media (max-width: 780px) {
    .ue-runtime-target-dock {
        right: 0.55rem;
        left: 0.55rem;
        bottom: 0.55rem;
        width: auto;
        padding: 0.6rem;
    }
}

#glb-viewer-canvas {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.glb-viewport {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
}

.glb-fullscreen-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.glb-fullscreen-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.glb-fullscreen-btn::before {
    content: "";
    display: inline-block;
    width: 0.9rem;
    height: 0.9rem;
    border: 2px solid currentColor;
    border-radius: 2px;
    box-sizing: border-box;
}

.glb-hover-panel {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: rgba(6, 12, 18, 0.78);
    border: 1px solid rgba(120, 180, 210, 0.35);
    color: #d7f3ff;
    font-size: 0.78rem;
    max-width: 240px;
    pointer-events: none;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.glb-hover-title {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    color: #bfe5ff;
}

.glb-hover-content {
    color: #c7d7e6;
    line-height: 1.35;
}

.glb-material-panel,
.glb-camera-panel,
.glb-lighting-panel,
.glb-part-panel,
.glb-accessory-panel {
    display: grid;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(115, 200, 240, 0.22);
    background: rgba(6, 12, 18, 0.7);
}

.glb-material-panel h3,
.glb-camera-panel h3,
.glb-lighting-panel h3,
.glb-part-panel h3,
.glb-accessory-panel h3 {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #d2f0ff;
}

.glb-panel-toggles {
    display: flex;
    gap: 0.5rem;
}

.glb-panel-toggle {
    appearance: none;
    border: 1px solid rgba(110, 170, 210, 0.3);
    background: rgba(10, 18, 26, 0.7);
    color: #cfe2f2;
    border-radius: 10px;
    padding: 0.35rem 0.6rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.glb-panel-toggle:hover {
    border-color: rgba(140, 210, 240, 0.6);
    background: rgba(14, 26, 38, 0.9);
    transform: translateY(-1px);
}

.glb-panel-toggle[aria-pressed="true"] {
    border-color: rgba(120, 220, 250, 0.9);
    background: rgba(24, 46, 62, 0.95);
    color: #e7f6ff;
}

.glb-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.glb-panel-toggle-inline {
    padding: 0.25rem 0.5rem;
    font-size: 0.68rem;
}

.glb-panel-body {
    display: grid;
    gap: 0.6rem;
}

.glb-camera-panel.is-collapsed .glb-panel-body,
.glb-material-panel.is-collapsed .glb-panel-body {
    display: none;
}

.glb-camera-panel.is-collapsed,
.glb-material-panel.is-collapsed {
    padding-bottom: 0.5rem;
}

.glb-scene-panel {
    display: grid;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(115, 200, 240, 0.22);
    background: rgba(6, 12, 18, 0.7);
}

.glb-scene-panel h3 {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #d2f0ff;
}

.glb-scene-summary {
    display: grid;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: #c7d7e6;
}

.glb-scene-card {
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    border: 1px solid rgba(90, 160, 200, 0.2);
    background: rgba(9, 16, 24, 0.6);
}

.glb-scene-card strong {
    display: block;
    color: #e2f2ff;
    font-size: 0.82rem;
    margin-bottom: 0.2rem;
}

.glb-scene-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.25rem;
}

.glb-scene-badge {
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(110, 170, 210, 0.28);
    background: rgba(10, 20, 30, 0.8);
    font-size: 0.72rem;
    color: #b7d4e6;
}

.glb-scene-groups,
.glb-scene-matrix {
    display: grid;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: #c7d7e6;
}

.glb-scene-matrix-row {
    display: grid;
    gap: 0.35rem;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    border: 1px solid rgba(90, 160, 200, 0.2);
    background: rgba(9, 16, 24, 0.6);
}

.glb-scene-matrix-row strong {
    color: #e2f2ff;
    font-size: 0.82rem;
}

.glb-scene-matrix-label {
    color: #b7d4e6;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.glb-part-list {
    display: grid;
    gap: 0.5rem;
}

.glb-part-row {
    display: grid;
    gap: 0.35rem;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    border: 1px solid rgba(90, 160, 200, 0.2);
    background: rgba(9, 16, 24, 0.6);
    color: #c7d7e6;
    font-size: 0.78rem;
}

.glb-part-row strong {
    color: #e2f2ff;
    font-size: 0.82rem;
}

.glb-part-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.meshlab-sidebar {
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.meshlab-selected-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.meshlab-upgrade-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.meshlab-selected-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.meshlab-selected-pill {
    border: 1px solid rgba(255, 210, 138, 0.6);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    background: rgba(8, 12, 18, 0.5);
    color: #ffd28a;
    font-size: 0.78rem;
    font-weight: 600;
    min-width: 120px;
    text-align: center;
}

.meshlab-selected-pill.is-empty {
    border-color: rgba(120, 150, 170, 0.4);
    color: var(--muted);
}

.meshlab-nudge-input {
    width: 72px;
}

.control-group.compact {
    gap: 0.4rem;
}

.part-visibility-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.35rem 0.5rem;
    padding: 0.5rem;
    border-radius: 10px;
    border: 1px solid rgba(90, 160, 200, 0.22);
    background: rgba(9, 16, 24, 0.6);
    color: #c7d7e6;
    font-size: 0.76rem;
    max-height: 220px;
    overflow: auto;
}

.part-visibility-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.part-visibility-count {
    color: #94b8cf;
    font-size: 0.7rem;
}

.glb-configurator {
    display: grid;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(115, 200, 240, 0.22);
    background: rgba(6, 12, 18, 0.7);
}

.glb-configurator h3 {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #d2f0ff;
}

.glb-config-steps {
    display: grid;
    gap: 0.6rem;
}

.glb-config-step {
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    border: 1px solid rgba(90, 160, 200, 0.2);
    background: rgba(9, 16, 24, 0.65);
}

.glb-config-step h4 {
    margin: 0 0 0.35rem 0;
    font-size: 0.9rem;
    color: #d7f3ff;
}

.glb-config-variants {
    display: grid;
    gap: 0.3rem;
}

.glb-config-variant {
    font-size: 0.82rem;
    color: #b9d6e8;
}

.glb-config-variants-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.45rem;
}

.glb-variant-btn {
    appearance: none;
    border: 1px solid rgba(110, 170, 210, 0.28);
    background: rgba(10, 18, 26, 0.7);
    color: #cfe2f2;
    border-radius: 8px;
    padding: 0.4rem 0.5rem;
    font-size: 0.78rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.glb-variant-btn:hover {
    border-color: rgba(140, 210, 240, 0.6);
    background: rgba(14, 26, 38, 0.9);
    transform: translateY(-1px);
}

.glb-variant-btn.is-selected {
    border-color: rgba(120, 220, 250, 0.9);
    background: rgba(24, 46, 62, 0.95);
    color: #e7f6ff;
}

.glb-variant-btn.is-disabled,
.glb-variant-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background: rgba(12, 16, 20, 0.6);
}

.control-group {
    display: grid;
    gap: 0.4rem;
}

.control-group label {
    color: var(--accent-2);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.control-group select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(87, 231, 255, 0.34);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
    padding: 0.6rem 0.7rem;
    font-family: var(--font-body);
}

.control-group input,
.control-row input,
.control-group button {
    border-radius: 10px;
    border: 1px solid rgba(87, 231, 255, 0.34);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
    padding: 0.45rem 0.55rem;
    font-family: var(--font-body);
}

.control-group input[type="range"],
.control-row input[type="range"] {
    padding: 0;
}

.control-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.ue-module-header {
    justify-content: space-between;
    align-items: center;
}

.ue-profile-badges {
    display: inline-flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    align-items: center;
}

.ue-profile-badges .ue-badge {
    opacity: 0.45;
    filter: saturate(0.6);
    transition: opacity 140ms ease, filter 140ms ease, transform 140ms ease;
}

.ue-profile-badges[data-active-profile="any"] .ue-badge-any,
.ue-profile-badges[data-active-profile="male"] .ue-badge-male,
.ue-profile-badges[data-active-profile="female"] .ue-badge-female,
.ue-profile-badges[data-active-profile="rail"] .ue-badge-rail {
    opacity: 1;
    filter: saturate(1);
    transform: translateY(-1px);
}

.ue-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.14rem 0.45rem;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.ue-badge-any {
    border-color: rgba(87, 231, 255, 0.4);
    color: rgba(87, 231, 255, 0.9);
}

.ue-badge-male {
    border-color: rgba(255, 173, 59, 0.55);
    color: rgba(255, 173, 59, 0.95);
}

.ue-badge-female {
    border-color: rgba(214, 110, 255, 0.45);
    color: rgba(214, 110, 255, 0.95);
}

.ue-badge-rail {
    border-color: rgba(144, 255, 195, 0.45);
    color: rgba(144, 255, 195, 0.95);
}

.control-row label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
}

.sim-panel {
    border: 1px solid rgba(87, 231, 255, 0.22);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
    padding: 0.7rem;
    display: grid;
    gap: 0.55rem;
}

.sim-title {
    margin: 0;
    color: var(--accent-2);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sim-state-select {
    border-radius: 8px;
    border: 1px solid rgba(87, 231, 255, 0.34);
    background: rgba(0, 0, 0, 0.32);
    color: var(--text);
    padding: 0.34rem 0.5rem;
    font-family: var(--font-body);
}

.btn-sm {
    padding: 0.34rem 0.6rem;
    font-size: 0.76rem;
    line-height: 1.2;
}

.meta-list {
    margin: 0;
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    display: grid;
    grid-template-columns: minmax(100px, auto) 1fr;
    gap: 0.35rem 0.7rem;
}

.meta-list dt {
    margin: 0;
    color: var(--accent-2);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.meta-list dd {
    margin: 0;
    color: var(--text);
}

.diag-card {
    margin: 0;
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
    white-space: pre-wrap;
}

.socket-meta-list {
    grid-template-columns: minmax(130px, auto) 1fr;
}

.maplab-layout {
    display: block;
    position: relative;
}

.maplab-viewport {
    width: min(100%, 1480px);
    max-width: 100%;
    margin-inline: auto;
    border-radius: 14px;
    border: 1px solid rgba(87, 231, 255, 0.34);
    background: radial-gradient(circle at 22% 18%, rgba(255, 173, 59, 0.16), rgba(6, 16, 26, 0.94) 70%);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.maplab-square {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
}

#ml-canvas-shell:fullscreen,
#ml-canvas-shell.is-fullscreen {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vmin;
    height: 100vmin;
    max-width: 100vw;
    max-height: 100vh;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    margin: 0;
    border-radius: 0;
    background: radial-gradient(circle at 22% 18%, rgba(255, 173, 59, 0.18), rgba(4, 12, 22, 0.98) 70%);
}

.maplab-canvas-bars {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
    right: 0.45rem;
    z-index: 4;
    display: flex;
    align-items: flex-start;
    pointer-events: none;
}

#ml-canvas-shell .maplab-ca-mini-controls {
    position: absolute;
    bottom: 0.45rem;
    right: 0.45rem;
    z-index: 6;
    min-width: 220px;
    padding: 0.45rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(3, 13, 25, 0.88);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    display: grid;
    gap: 0.35rem;
    pointer-events: auto;
    font-size: 0.65rem;
}

.maplab-ca-mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.maplab-ca-mini-label {
    font-size: 0.55rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(213, 227, 243, 0.82);
}

.maplab-ca-mini-controls select {
    flex: 0 0 auto;
    min-width: 90px;
    font-size: 0.62rem;
    padding: 0.25rem 0.35rem;
    border-radius: 6px;
    border: 1px solid rgba(218, 231, 239, 0.65);
    background: rgba(255, 255, 255, 0.95);
    color: #0b1624;
}

.maplab-ca-mini-toggle {
    font-size: 0.65rem;
    height: 1.85rem;
    padding: 0 0.7rem;
    border-radius: 8px;
    border: none;
    background: linear-gradient(145deg, #39f4ff, #5a8eff);
    color: #02111f;
    font-weight: 600;
    cursor: pointer;
}

#ml-canvas-shell:fullscreen .maplab-canvas-bars,
#ml-canvas-shell.is-fullscreen .maplab-canvas-bars {
    top: 0.62rem;
    left: 0.62rem;
    right: 0.62rem;
}

#ml-canvas-shell:fullscreen .maplab-ca-mini-controls,
#ml-canvas-shell.is-fullscreen .maplab-ca-mini-controls {
    bottom: 0.62rem;
    right: 0.62rem;
}

@media (max-width: 900px) {
    #ml-canvas-shell .maplab-ca-mini-controls {
        right: auto;
        left: 0.45rem;
    }
}

.maplab-canvas-megamenu {
    pointer-events: auto;
    width: min(980px, 100%);
    border-radius: 12px;
    border: 1px solid rgba(87, 231, 255, 0.34);
    background: rgba(2, 10, 16, 0.68);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.maplab-canvas-megamenu > summary {
    list-style: none;
}

.maplab-canvas-megamenu > summary::-webkit-details-marker {
    display: none;
}

.maplab-canvas-megamenu-trigger {
    display: flex;
    align-items: baseline;
    gap: 0.62rem;
    padding: 0.44rem 0.58rem;
    cursor: pointer;
    user-select: none;
}

.maplab-canvas-megamenu-title {
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #f7fbff;
}

.maplab-canvas-megamenu-hint {
    font-size: 0.64rem;
    color: rgba(214, 233, 247, 0.82);
}

.maplab-canvas-megamenu-panel {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.48rem;
    padding: 0 0.58rem 0.58rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.maplab-canvas-megamenu[open] .maplab-canvas-megamenu-panel {
    display: grid;
}

.maplab-canvas-menu-section {
    display: grid;
    gap: 0.36rem;
    padding: 0.42rem 0.45rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 16, 24, 0.78);
}

.maplab-canvas-menu-head {
    display: grid;
    gap: 0.16rem;
}

.maplab-canvas-menu-title {
    margin: 0;
    font-size: 0.67rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #d8edf9;
}

.maplab-canvas-menu-copy {
    margin: 0;
    font-size: 0.64rem;
    line-height: 1.25;
    color: rgba(202, 227, 242, 0.78);
}

.maplab-canvas-toolbar {
    display: flex;
    align-items: center;
    gap: 0.32rem;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
    pointer-events: none;
}

.maplab-canvas-toolbar > * {
    pointer-events: auto;
}

.maplab-canvas-megamenu-panel .maplab-canvas-toolbar {
    width: 100%;
}

.maplab-canvas-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(2, 9, 14, 0.82);
    color: #d2e8f4;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.18rem 0.4rem;
    user-select: none;
    pointer-events: none;
}

.maplab-icon-btn {
    min-width: 2.12rem;
    border-radius: 8px;
    border: 1px solid rgba(87, 231, 255, 0.3);
    background: rgba(4, 16, 24, 0.9);
    color: #e4f3fb;
    padding: 0.22rem 0.42rem;
    font-family: var(--font-body);
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: border-color 130ms ease, background-color 130ms ease, transform 130ms ease, opacity 130ms ease;
}

.maplab-icon-btn:hover:not(:disabled) {
    border-color: rgba(255, 173, 59, 0.66);
    background: rgba(27, 35, 30, 0.95);
    transform: translateY(-1px);
}

.maplab-icon-btn.is-active {
    border-color: rgba(255, 173, 59, 0.82);
    background: linear-gradient(120deg, rgba(255, 173, 59, 0.35), rgba(87, 231, 255, 0.26));
    color: #fff7ea;
}

.maplab-icon-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

#maplab-gpu-canvas,
#maplab-canvas {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    position: absolute;
    inset: 0;
}

#maplab-gpu-canvas {
    z-index: 1;
    pointer-events: none;
}

#maplab-canvas {
    z-index: 2;
}

.maplab-perf {
    position: absolute;
    left: 0.55rem;
    bottom: 0.55rem;
    margin: 0;
    padding: 0.48rem 0.56rem;
    min-width: 270px;
    max-width: min(94%, 390px);
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(2, 8, 14, 0.76);
    color: #d9eaf5;
    font-size: 0.72rem;
    line-height: 1.35;
    pointer-events: none;
    z-index: 4;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

#ml-canvas-shell:fullscreen .maplab-perf,
#ml-canvas-shell.is-fullscreen .maplab-perf {
    bottom: 0.72rem;
    left: 0.72rem;
    max-width: min(94vw, 460px);
    font-size: 0.78rem;
}

.maplab-sidebar {
    display: grid;
    gap: 0.72rem;
    align-content: start;
}

.maplab-sidebar.maplab-sidebar-overlay {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 6;
    width: min(390px, calc(100% - 1.1rem));
    max-height: calc(100% - 1.1rem);
    overflow: auto;
    padding: 0.18rem;
    border-radius: 14px;
    border: 1px solid rgba(87, 231, 255, 0.32);
    background: rgba(2, 9, 15, 0.78);
    backdrop-filter: blur(5px);
    transition: transform 160ms ease, opacity 160ms ease;
}

.maplab-dock-tabs {
    position: sticky;
    top: 0;
    z-index: 1;
    display: grid;
    gap: 0.28rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0.22rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(3, 12, 20, 0.92);
}

.maplab-dock-tab-btn {
    border-radius: 8px;
    border: 1px solid rgba(87, 231, 255, 0.22);
    background: rgba(7, 18, 27, 0.9);
    color: #dbeef8;
    padding: 0.28rem 0.2rem;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color 130ms ease, background-color 130ms ease;
}

.maplab-dock-tab-btn:hover {
    border-color: rgba(255, 173, 59, 0.58);
    background: rgba(30, 35, 34, 0.94);
}

.maplab-dock-tab-btn.is-active {
    border-color: rgba(255, 173, 59, 0.8);
    background: linear-gradient(120deg, rgba(255, 173, 59, 0.3), rgba(87, 231, 255, 0.2));
}

.maplab-sidebar.maplab-sidebar-overlay.is-collapsed {
    opacity: 0;
    pointer-events: none;
    transform: translateX(calc(100% + 1rem));
}

.maplab-panel.is-tab-hidden {
    display: none !important;
}

.maplab-panel {
    display: grid;
    gap: 0.56rem;
    padding: 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.16);
}

.maplab-panel-title {
    margin: 0;
    color: var(--accent-2);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.maplab-form-grid {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.maplab-ca-layer-summary {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.55rem;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    background: rgba(87, 231, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    line-height: 1.4;
    min-height: 90px;
    overflow: auto;
}

.maplab-ca-layer-summary .layer-entry {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem;
    align-items: center;
    padding: 0.22rem 0.25rem;
    border-radius: 8px;
    background: rgba(2, 12, 20, 0.45);
}

.maplab-ca-layer-summary .layer-entry strong {
    color: var(--accent);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.maplab-ca-layer-summary .layer-stats {
    display: flex;
    gap: 0.4rem;
}

.maplab-ca-layer-summary .layer-stats span {
    font-size: 0.7rem;
    color: var(--muted);
    border-radius: 6px;
    padding: 0.1rem 0.4rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.maplab-segment {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.38rem;
}

.maplab-segment-btn,
.maplab-tool-btn {
    border-radius: 9px;
    border: 1px solid rgba(87, 231, 255, 0.28);
    background: rgba(7, 20, 28, 0.88);
    color: var(--text);
    padding: 0.44rem 0.5rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.maplab-segment-btn:hover,
.maplab-tool-btn:hover {
    border-color: rgba(255, 173, 59, 0.56);
    background: rgba(26, 33, 30, 0.94);
    transform: translateY(-1px);
}

.maplab-segment-btn.is-active,
.maplab-tool-btn.is-active {
    border-color: rgba(255, 173, 59, 0.78);
    background: linear-gradient(120deg, rgba(255, 173, 59, 0.3), rgba(87, 231, 255, 0.24));
    color: #fff7ea;
}

.maplab-toolgrid {
    display: grid;
    gap: 0.36rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.maplab-toolbar-actions {
    display: grid;
    gap: 0.38rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.maplab-hidden-control {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
}

.maplab-inline-label {
    display: grid;
    gap: 0.2rem;
    color: var(--muted);
    font-size: 0.82rem;
}

#ml-overlay-studio-panel .control-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

#ml-overlay-studio-panel .control-row .btn {
    flex: 1 1 30%;
    min-width: 165px;
}

#ml-overlay-studio-readout {
    min-height: 5.8rem;
    white-space: pre-wrap;
}

.maplab-inline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.maplab-value-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.8rem;
    padding: 0.08rem 0.38rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: #d7edf8;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
}

.maplab-feature-grid {
    display: grid;
    gap: 0.36rem;
}

.maplab-feature-row {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) repeat(3, minmax(0, 1fr));
    gap: 0.36rem;
    align-items: center;
    padding: 0.42rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.18);
}

.maplab-feature-name {
    color: var(--accent-2);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.maplab-dialog {
    border: 1px solid rgba(87, 231, 255, 0.34);
    border-radius: 12px;
    background: rgba(5, 16, 26, 0.96);
    color: var(--text);
    width: min(540px, 92vw);
    padding: 0.9rem;
}

.maplab-dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.maplab-feature-row label {
    display: grid;
    gap: 0.16rem;
    color: var(--muted);
    font-size: 0.72rem;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 1rem;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: var(--panel);
    padding: 0.8rem 1rem;
    color: var(--muted);
}

.site-footer a {
    color: var(--accent-2);
}

.footer-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    animation: fade-up 520ms ease forwards;
}

.stagger-1 {
    animation-delay: 80ms;
}

.stagger-2 {
    animation-delay: 160ms;
}

.stagger-3 {
    animation-delay: 240ms;
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .grid,
    .roadmap-grid,
    .systems-grid,
    .meshlab-layout {
        grid-template-columns: 1fr;
    }

    .hero.hero-commander {
        min-height: auto;
    }

    .hero-canvas-frame {
        aspect-ratio: 16 / 10;
    }

    .maplab-layout {
        display: block;
    }

    .section-gallery {
        grid-template-columns: 1fr;
    }

    .meshlab-viewport,
    #meshlab-canvas,
    #glb-viewer-canvas,
    #unit-editor-canvas {
        min-height: 360px;
    }

    .maplab-viewport,
    #maplab-canvas {
        width: 100%;
        min-height: 0;
    }

    .maplab-form-grid,
    .maplab-toolgrid,
    .maplab-toolbar-actions,
    .unit-editor-grid {
        grid-template-columns: 1fr;
    }

    .maplab-canvas-bars {
        top: 0.32rem;
        left: 0.32rem;
        right: 0.32rem;
    }

    .maplab-canvas-megamenu {
        width: 100%;
    }

    .maplab-canvas-megamenu-trigger {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.24rem;
        padding: 0.34rem 0.44rem;
    }

    .maplab-canvas-megamenu-title {
        font-size: 0.64rem;
    }

    .maplab-canvas-megamenu-hint {
        font-size: 0.56rem;
    }

    .maplab-canvas-megamenu-panel {
        grid-template-columns: 1fr;
        gap: 0.36rem;
        padding: 0 0.44rem 0.44rem;
    }

    .maplab-canvas-menu-section {
        padding: 0.34rem 0.36rem;
    }

    .maplab-canvas-menu-title {
        font-size: 0.58rem;
    }

    .maplab-canvas-menu-copy {
        font-size: 0.54rem;
    }

    .maplab-canvas-label {
        min-width: 2.5rem;
        font-size: 0.56rem;
        padding: 0.14rem 0.33rem;
    }

    .maplab-icon-btn {
        min-width: 1.82rem;
        font-size: 0.56rem;
        padding: 0.16rem 0.32rem;
    }

    .maplab-sidebar.maplab-sidebar-overlay {
        width: calc(100% - 0.64rem);
        top: 0.32rem;
        right: 0.32rem;
        max-height: calc(100% - 0.64rem);
    }

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

    .site-footer {
        flex-direction: column;
    }
}
