:root {
    font-family: Aptos, "Segoe UI Variable Text", "Segoe UI", Inter, Arial, sans-serif;
    color: #fff;
    background: #070b13;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #070b13;
    color: #fff;
}

body:not(.desktop-demo-body) {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(circle at 20% 0%, rgba(74, 144, 226, 0.18), transparent 32rem),
        radial-gradient(circle at 90% 10%, rgba(255, 104, 144, 0.12), transparent 30rem),
        #070b13;
}

a {
    color: inherit;
}

.demo-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        radial-gradient(circle at 55% 0%, rgba(46, 168, 255, 0.12), transparent 35%);
    background-size: 32px 32px, 32px 32px, 100% 100%;
    z-index: -1;
}

.demo-topbar {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(6, 11, 20, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
}

.demo-topbar__brand,
.demo-topbar__nav,
.demo-topbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-topbar__logo {
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.demo-topbar__badge,
.demo-link,
.demo-language {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 8px 13px;
    color: #d7e1f0;
    text-decoration: none;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.05);
}

.demo-link:hover,
.demo-language:hover {
    background: rgba(255, 255, 255, 0.09);
}

.demo-language.is-active {
    color: #04121f;
    background: linear-gradient(135deg, #8be9ff, #7d6dff);
    border-color: transparent;
}

.demo-page-shell {
    min-height: calc(100vh - 58px);
    padding: 24px;
}

.demo-main {
    width: min(1180px, calc(100vw - 40px));
    margin: 0 auto;
    padding: 32px 0 64px;
}

.demo-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 28px;
}

.demo-hero--family {
    align-items: start;
}

.demo-hero__copy,
.demo-note-card,
.demo-section,
.demo-family-card,
.demo-platform-card,
.demo-empty-state {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.94));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    border-radius: 28px;
}

.demo-hero__copy {
    padding: 42px;
}

.demo-hero__copy h1 {
    margin: 12px 0 16px;
    max-width: 920px;
    font-size: clamp(2.15rem, 4vw, 4.15rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.demo-hero__copy p,
.demo-section__header p,
.demo-family-card p,
.demo-platform-card p,
.demo-note-card p,
.demo-empty-state p {
    color: #cbd5e1;
    line-height: 1.65;
}

.demo-kicker,
.demo-family-card__eyebrow,
.demo-platform-card__eyebrow {
    color: #93c5fd;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.demo-note-card {
    padding: 32px;
}

.demo-note-card__title {
    margin-bottom: 10px;
    font-weight: 900;
    color: #ffffff;
}

.demo-section {
    padding: 32px;
}

.demo-section__header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 28px;
}

.demo-section__header h2 {
    margin: 10px 0 8px;
    font-size: clamp(1.6rem, 2.4vw, 2.5rem);
    letter-spacing: -0.035em;
}

.demo-family-grid,
.demo-platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 22px;
}

.demo-family-card,
.demo-platform-card {
    padding: 26px;
}

.demo-family-card h3,
.demo-platform-card h3 {
    margin: 10px 0 10px;
    font-size: 1.35rem;
}

.demo-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.demo-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(147, 197, 253, 0.28);
    background: rgba(59, 130, 246, 0.11);
    color: #bfdbfe;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.78rem;
    font-weight: 800;
}

.demo-tree {
    margin-top: 20px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.46);
    border-radius: 20px;
    padding: 16px;
}

.demo-tree__root {
    font-weight: 900;
    margin-bottom: 14px;
}

.demo-tree__branches {
    display: grid;
    gap: 10px;
}

.demo-tree__branch {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: #e0f2fe;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.035);
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 900;
}

.demo-tree__branch small {
    color: #93c5fd;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.demo-tree__branch:hover {
    border-color: rgba(147, 197, 253, 0.42);
    background: rgba(59, 130, 246, 0.12);
}

.demo-family-card__actions,
.demo-platform-card__actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
}

.demo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #e2e8f0;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.7);
    border-radius: 999px;
    padding: 11px 16px;
    font-weight: 900;
}

.demo-button:hover {
    border-color: rgba(147, 197, 253, 0.45);
    background: rgba(30, 41, 59, 0.92);
}

.demo-button--primary {
    color: #04121f;
    border-color: transparent;
    background: linear-gradient(135deg, #8be9ff, #7d6dff);
}

.demo-path-list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
}

.demo-path-list div {
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.42);
    border-radius: 14px;
    padding: 12px 14px;
}

.demo-path-list dt {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.demo-path-list dd {
    margin: 6px 0 0;
    color: #e2e8f0;
    font-family: Consolas, ui-monospace, monospace;
    overflow-wrap: anywhere;
}

.demo-empty-state {
    padding: 28px;
}

/* =========================================================
   Desktop app demo pages
   ========================================================= */

.desktop-demo-body {
    overflow: hidden;
    background: #090106;
}

body[data-theme="cyberpunk-red"] {
    --bg-top: #100306;
    --bg-bottom: #050103;
    --bg-accent: rgba(255, 72, 108, 0.12);
    --bg-accent-secondary: rgba(255, 140, 104, 0.06);
    --grid-line: rgba(255, 110, 110, 0.032);
    --panel-bg: rgba(24, 8, 11, 0.90);
    --panel-strong: rgba(19, 5, 8, 0.96);
    --panel-soft: rgba(255, 97, 97, 0.04);
    --panel-border: rgba(255, 110, 110, 0.14);
    --text-primary: #fff0f3;
    --text-secondary: rgba(255, 225, 231, 0.82);
    --text-muted: rgba(239, 186, 197, 0.56);
    --accent: #ff6d87;
    --accent-strong: linear-gradient(90deg, #ff9d84 0%, #ff4e72 100%);
    --accent-contrast: #1a060c;
    --input-bg: rgba(22, 7, 10, 0.9);
    --input-border: rgba(255, 110, 110, 0.16);
    --log-bg: rgba(9, 2, 4, 0.72);
    --log-text: #ffcad5;
}

body[data-theme="cyberpunk-blue"] {
    --bg-top: #020614;
    --bg-bottom: #01020a;
    --bg-accent: rgba(42, 196, 255, 0.12);
    --bg-accent-secondary: rgba(73, 92, 255, 0.08);
    --grid-line: rgba(98, 218, 255, 0.03);
    --panel-bg: rgba(8, 14, 28, 0.92);
    --panel-strong: rgba(6, 11, 23, 0.98);
    --panel-soft: rgba(73, 195, 255, 0.05);
    --panel-border: rgba(100, 222, 255, 0.14);
    --text-primary: #f1fbff;
    --text-secondary: rgba(229, 245, 255, 0.84);
    --text-muted: rgba(157, 198, 230, 0.6);
    --accent: #69f0ff;
    --accent-strong: linear-gradient(90deg, #7adfff 0%, #54c1ff 52%, #7683ff 100%);
    --accent-contrast: #020d19;
    --input-bg: rgba(5, 14, 30, 0.9);
    --input-border: rgba(100, 222, 255, 0.18);
    --log-bg: rgba(2, 7, 19, 0.72);
    --log-text: #99f4ff;
}

body[data-theme="cyberpunk-green"] {
    --bg-top: #030806;
    --bg-bottom: #010503;
    --bg-accent: rgba(86, 255, 162, 0.11);
    --bg-accent-secondary: rgba(50, 255, 146, 0.06);
    --grid-line: rgba(123, 255, 172, 0.025);
    --panel-bg: rgba(9, 18, 14, 0.9);
    --panel-strong: rgba(7, 18, 12, 0.96);
    --panel-soft: rgba(108, 255, 164, 0.04);
    --panel-border: rgba(123, 255, 172, 0.14);
    --text-primary: #ecfff3;
    --text-secondary: rgba(236, 255, 243, 0.82);
    --text-muted: rgba(195, 233, 208, 0.56);
    --accent: #9aff81;
    --accent-strong: linear-gradient(90deg, #d6ff93 0%, #86ff9b 100%);
    --accent-contrast: #03110a;
    --input-bg: rgba(7, 17, 12, 0.9);
    --input-border: rgba(123, 255, 172, 0.16);
    --log-bg: rgba(0, 0, 0, 0.58);
    --log-text: #b8ffd1;
}

.desktop-app {
    position: fixed;
    inset: 0;
    color: var(--text-primary);
    background:
        radial-gradient(circle at top, var(--bg-accent), transparent 24%),
        radial-gradient(circle at 80% 0%, var(--bg-accent-secondary), transparent 20%),
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
    background-size: auto, auto, 42px 42px, 42px 42px, auto;
    overflow: hidden;
    display: grid;
    grid-template-rows: 23px 1fr;
}

.electron-titlebar {
    grid-row: 1;
    height: 23px;
    background: #222426;
    color: #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    padding: 0 0 0 4px;
    user-select: none;
    z-index: 60;
}

.window-title {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.app-icon {
    font-size: 12px;
    color: var(--accent);
}

.window-controls {
    height: 23px;
    display: flex;
    align-items: stretch;
    margin-left: auto;
    color: #d7d7d7;
    font-size: 13px;
}

.window-control,
.window-controls span,
.window-controls a {
    width: 42px;
    height: 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    line-height: 23px;
}

.window-control:hover,
.window-controls span:hover {
    background: rgba(255, 255, 255, 0.12);
}

.window-close-easter-egg:hover,
.window-controls a.window-close-easter-egg:hover {
    background: #e81123;
    color: #fff;
}

.desktop-body,
.app-shell {
    grid-row: 2;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 275px minmax(0, 1fr);
    overflow: hidden;
}

.sidebar {
    height: 100%;
    background: linear-gradient(180deg, rgba(4, 10, 22, 0.94), rgba(3, 8, 18, 0.88));
    border-right: 1px solid var(--panel-border);
    padding: 16px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: auto;
}

.brand-card {
    border: 1px solid var(--panel-border);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01) 42%, rgba(255, 255, 255, 0) 100%),
        var(--panel-strong);
    border-radius: 20px;
    padding: 20px 17px 18px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.brand-card h1 {
    margin: 12px 0 12px;
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.brand-card p:last-child {
    margin: 0;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.06em;
}

.kicker,
.nav-title {
    color: var(--accent);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 900;
    margin: 0;
}

.nav-title {
    margin: 5px 8px -2px;
    color: var(--text-muted);
}

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

.nav-item {
    height: 39px;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 4px;
    font-weight: 750;
    font-size: 14px;
    cursor: pointer;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.035);
}

.nav-item.active {
    background: var(--accent-strong);
    color: var(--accent-contrast);
}

.live-dock {
    margin-top: auto;
    border: 1px solid var(--panel-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        rgba(10, 14, 22, 0.76);
    border-radius: 18px;
    padding: 15px 13px 12px;
}

.pill-row,
.actions {
    display: flex;
    gap: 9px;
    align-items: center;
    flex-wrap: wrap;
}

.live-dock .pill-row {
    margin: 12px 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge.stopped {
    background: rgba(255, 92, 92, 0.18);
    color: #ffd6d6;
    border-color: rgba(255, 112, 112, 0.38);
}

.badge.ok {
    background: #99ffab;
    color: #03210a;
    border-color: #99ffab;
}

.live-dock dl,
.details {
    display: grid;
    margin: 0;
}

.live-dock dl div {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    padding: 9px 0;
}

.live-dock dl div:last-child {
    border-bottom: 0;
}

.live-dock dt,
.details dt {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.live-dock dd,
.details dd {
    margin: 0;
    font-weight: 800;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.content {
    min-width: 0;
    height: 100%;
    overflow: auto;
    padding: 18px 35px 36px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.06), transparent 16%);
}

.content::-webkit-scrollbar {
    width: 10px;
}

.content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.panel {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

.panel.active {
    display: block;
}

.dashboard-hero,
.card,
.stat,
.config-hero,
.field-tile {
    border: 1px solid var(--panel-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.01)),
        var(--panel-bg);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    gap: 34px;
    border-radius: 24px;
    padding: 26px 25px;
    margin-bottom: 36px;
}

.hero-copy h2 {
    font-size: 40px;
    line-height: 1.02;
    margin: 17px 0 12px;
    letter-spacing: -0.03em;
}

.hero-copy p,
.card p,
.muted {
    color: var(--text-secondary);
    line-height: 1.55;
}

.chips span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--text-secondary);
    font-size: 12px;
}

.chips b {
    color: var(--text-primary);
}

.hero-copy .chips {
    margin: 14px 0;
}

.btn {
    border: 1px solid var(--panel-border);
    background: rgba(0, 0, 0, 0.18);
    color: var(--text-primary);
    border-radius: 5px;
    padding: 9px 16px;
    min-width: 92px;
    font-weight: 850;
    cursor: pointer;
}

.btn.primary {
    background: var(--accent-strong);
    border-color: transparent;
    color: var(--accent-contrast);
}

.btn.small {
    min-width: 0;
    padding: 7px 10px;
    font-size: 12px;
}

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

.small {
    font-size: 13px;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat {
    border-radius: 16px;
    padding: 17px;
}

.stat.wide {
    grid-column: 1 / -1;
}

.stat h3 {
    font-size: 25px;
    margin: 10px 0;
}

.stat p {
    margin: 0;
    color: var(--text-secondary);
}

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

.meter span {
    display: block;
    height: 100%;
    background: var(--accent-strong);
}

.stat-line {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 13px;
    margin: 12px 0 7px;
}

.grid.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.grid.top {
    align-items: stretch;
}

.card {
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    padding-bottom: 14px;
    margin-bottom: 15px;
}

.card h3,
.config-hero h2 {
    margin: 0;
    font-size: 20px;
}

.card h2 {
    font-size: 24px;
}

.profile-box,
.empty,
.status-strip,
.hint {
    border: 1px solid rgba(255, 255, 255, 0.065);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 15px;
}

.empty {
    border-style: dashed;
    color: var(--text-secondary);
}

.field-tile {
    border-radius: 14px;
    padding: 15px;
    min-height: 78px;
    overflow-wrap: anywhere;
}

.field-tile.wide {
    grid-column: 1 / -1;
}

.field-tile p {
    margin: 5px 0;
    color: var(--text-secondary);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.page-card {
    max-width: 1164px;
    margin: 17px auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin: 12px 0;
}

label {
    display: grid;
    gap: 7px;
    color: var(--text-secondary);
    font-weight: 650;
    font-size: 14px;
}

input,
select {
    width: 100%;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-primary);
    border-radius: 5px;
    padding: 10px 12px;
    font: inherit;
    min-height: 36px;
}

select {
    appearance: auto;
}

.check {
    display: flex;
    align-items: center;
    gap: 9px;
}

.check input {
    width: auto;
    min-height: 0;
}

.world-row,
.list-row {
    border: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.035);
    border-radius: 14px;
    padding: 15px 16px;
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
}

.world-row span,
.list-row span {
    color: var(--text-secondary);
}

.world-row em {
    font-style: normal;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    padding: 7px 9px;
    color: var(--text-primary);
    font-weight: 800;
}

.config-hero {
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.config-hero.centered {
    display: grid;
    text-align: center;
    justify-items: center;
}

.path,
code {
    font-family: Consolas, ui-monospace, monospace;
    color: #9df7b0;
    overflow-wrap: anywhere;
}

.logs-card pre,
.terminal {
    min-height: 310px;
    border: 0;
    border-radius: 12px;
    background: var(--log-bg);
    color: var(--log-text);
    font: 800 13px/1.7 Consolas, ui-monospace, monospace;
    padding: 22px;
    white-space: pre-wrap;
    margin: 0;
}

.page-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 16px;
}

.page-title h1 {
    font-size: 30px;
    margin: 6px 0;
}

.stats4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.details div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.details div:last-child {
    border: 0;
}

.validation {
    display: grid;
    gap: 10px;
}

.validation > div {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    border-radius: 14px;
    padding: 15px 58px 15px 15px;
}

.validation p {
    margin: 8px 0;
}

.validation span {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(134, 255, 150, 0.18);
    color: #a6ffb3;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 900;
}

.demo-modal-layer {
    position: fixed;
    inset: 23px 0 0;
    z-index: 50;
    background: rgba(5, 8, 14, 0.82);
    backdrop-filter: blur(8px);
    display: none;
    place-items: center;
    padding: 22px;
}

.demo-modal-layer.is-active {
    display: grid;
}

.dialog-card {
    width: min(470px, calc(100vw - 40px));
    border: 1px solid var(--panel-border);
    background: linear-gradient(145deg, var(--panel-bg), var(--panel-strong));
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 30px 110px rgba(0, 0, 0, 0.62);
}

.dialog-card h1 {
    font-size: 34px;
    margin: 8px 0 10px;
}

.dialog-card-wide {
    width: min(830px, calc(100vw - 40px));
}

.login-form {
    display: grid;
    gap: 13px;
}

.linux-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0;
}

.linux-grid div {
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.035);
    border-radius: 14px;
    padding: 14px;
}

.linux-grid span {
    display: block;
    color: var(--text-secondary);
    margin-top: 6px;
    font-size: 13px;
}

@media (max-width: 1200px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .summary-grid,
    .stats4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .demo-topbar {
        height: auto;
        min-height: 58px;
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }

    .demo-page-shell {
        padding: 18px;
    }

    .demo-main {
        width: 100%;
        padding: 18px 0 42px;
    }

    .demo-hero,
    .demo-section__header,
    .grid.two,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .demo-hero {
        display: grid;
    }

    .demo-section__header {
        display: grid;
        align-items: start;
    }

    .desktop-demo-body {
        overflow: auto;
    }

    .desktop-app {
        position: static;
        min-height: 100vh;
        overflow: visible;
    }

    .desktop-body,
    .app-shell {
        height: auto;
        grid-template-columns: 1fr;
    }

    .sidebar {
        height: auto;
    }

    .content {
        height: auto;
        padding: 18px;
    }

    .summary-grid,
    .stats4,
    .linux-grid {
        grid-template-columns: 1fr;
    }
}
