:root {
    --bg: #12140f;
    --bg-raised: #1c2018;
    --bg-sunken: #0c0e0a;
    --line: #343b2e;
    --text: #e8eedf;
    --muted: #a4ab98;
    --accent: #d6f25c;
    --accent-ink: #1a2208;
    --online: #8fdf6a;
    --offline: #8b917f;
    --danger: #ffb0a2;
    --danger-bg: #3a221c;
    --ok-bg: #24301c;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    --font: "IBM Plex Sans", "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    min-height: 100vh;
    background:
        radial-gradient(900px 420px at 10% -10%, rgba(214, 242, 92, 0.08), transparent 60%),
        var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.5;
}

a { color: inherit; }

.shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.brand-mark, .hero-mark {
    display: block;
    object-fit: cover;
    background: #1c2018;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.hero-mark {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin-bottom: 18px;
}

.nav { display: flex; align-items: center; gap: 10px; }

.user-chip {
    color: var(--muted);
    font-size: 14px;
}

.hero { padding: 48px 0 72px; display: grid; gap: 28px; }

.hero h1 {
    margin: 0;
    max-width: 16ch;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.lede { max-width: 58ch; color: var(--muted); font-size: 18px; }

.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
}

.panel, .card, .auth-card {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.panel, .auth-card { padding: 22px; }

.auth-card { width: min(440px, 100%); margin: 24px auto 64px; }

.kicker {
    margin: 0 0 8px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h2 { margin: 0 0 8px; letter-spacing: -0.03em; }

.muted { color: var(--muted); }

label { display: block; margin: 14px 0 6px; font-size: 14px; }

input[type="text"], input[type="email"], input[type="password"] {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--bg-sunken);
    color: var(--text);
    border-radius: 10px;
    padding: 12px 12px;
    font: inherit;
}

input:focus { outline: 2px solid var(--accent); border-color: transparent; }

.row { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.button, button.button {
    appearance: none;
    border: 0;
    background: var(--accent);
    color: var(--accent-ink);
    text-decoration: none;
    border-radius: 999px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button.ghost, button.ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.button:disabled, button.button:disabled {
    background: #2a2f26;
    color: var(--offline);
    cursor: not-allowed;
}

.alert {
    background: var(--danger-bg);
    color: var(--danger);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.alert.is-ok { background: var(--ok-bg); color: var(--online); }

.device-list { display: grid; gap: 12px; margin-top: 18px; }

.device {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
}

.device h3 { margin: 0; font-size: 18px; }

.meta { margin: 4px 0 0; color: var(--muted); font-size: 14px; font-family: var(--mono); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
}

.badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.is-online, .is-current { color: var(--online); background: #20321c; }
.is-offline, .is-unknown { color: var(--offline); background: #2a2d26; }
.is-outdated { color: #f0d56c; background: #3a3218; }

.section-gap { margin-top: 42px; }

.empty {
    padding: 28px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    color: var(--muted);
}

body.viewer {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-sunken);
}

.viewer-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.viewer-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.viewer-alert { margin: 0; border-radius: 0; border-left: 0; border-right: 0; }
.viewer-alert a { color: inherit; font-weight: 700; }

.viewer-title { display: flex; flex-direction: column; gap: 2px; }
.viewer-title strong { letter-spacing: -0.03em; }
.viewer-title span, #session-status, #capture-mode { color: var(--muted); font-family: var(--mono); font-size: 12px; }

.stage {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 16px;
    min-height: 0;
}

.stage canvas {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 96px);
    background: #050605;
    border-radius: 12px;
    cursor: crosshair;
    image-rendering: auto;
    image-rendering: high-quality;
}

.stage canvas:focus { outline: 2px solid var(--accent); }

.stage:fullscreen,
.stage:-webkit-full-screen,
body.is-fullscreen .stage {
    position: fixed;
    inset: 0;
    z-index: 1000;
    width: 100vw;
    height: 100vh;
    max-width: none;
    padding: 0;
    margin: 0;
    background: #000;
    display: grid;
    place-items: center;
}

.stage:fullscreen canvas,
.stage:-webkit-full-screen canvas,
body.is-fullscreen .stage canvas {
    width: auto;
    height: auto;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    outline: 0;
}

body.is-fullscreen .viewer-bar {
    display: none;
}

@media (max-width: 800px) {
    .grid-2, .device { grid-template-columns: 1fr; }
    .topbar { align-items: flex-start; flex-direction: column; }
    .viewer-bar { flex-direction: column; align-items: flex-start; }
}

.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
    -webkit-font-smoothing: antialiased;
}

body.home {
    --bg: #12140f;
    --lowest: #0d0f0a;
    --low: #1a1c17;
    --mid: #1e201b;
    --high: #292b25;
    --highest: #343530;
    --bright: #383a34;
    --on: #e3e3da;
    --muted: #c6c8b0;
    --lime: #d3ef59;
    --lime-dim: #b7d23f;
    --ink: #181e00;
    --ink-soft: #3f4c00;
    --green: #4ae176;
    --line: #454836;
    --danger: #ffb4ab;
    background: var(--bg);
    color: var(--on);
    font-size: 14px;
    line-height: 20px;
}

body.home ::selection { background: var(--lime); color: #5a6b00; }

.home-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: 64px;
    background: rgba(18, 20, 15, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}

.home-bar, .home-wrap {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
}

.home-bar {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.home-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--on);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.home-brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.home-nav {
    display: none;
    align-items: center;
    gap: 4px;
}

.home-nav a, .home-account, .home-footer a {
    color: var(--muted);
    text-decoration: none;
}

.home-nav a {
    padding: 6px 14px;
    border-radius: 2px;
    transition: color 0.15s ease, background 0.15s ease;
}

.home-nav a:hover, .home-nav a.is-active { color: var(--on); }
.home-nav a.is-active { background: var(--high); font-weight: 600; }

.home-bar-end { display: flex; align-items: center; gap: 12px; }

.home-account {
    display: none;
    padding: 6px 14px;
    border-radius: 2px;
    background: var(--low);
    color: var(--on);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.home-account:hover { background: var(--high); }

.home-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: #2b3400;
    display: grid;
    place-items: center;
    text-decoration: none;
}

.home-avatar .material-symbols-outlined { font-size: 18px; }

.home-main { padding-top: 64px; }

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 40px;
}

.home-hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#292b25 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.45;
    pointer-events: none;
}

.home-hero-glow {
    position: absolute;
    top: 0;
    right: 22%;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(211, 239, 89, 0.06);
    filter: blur(60px);
    pointer-events: none;
}

.home-hero-inner, .home-close-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.home-live, .home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-live {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--high);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.home-kicker { color: var(--lime-dim); margin-bottom: 6px; }

.home-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    flex: none;
}

.home-dot.is-pulse { animation: home-pulse 1.6s ease infinite; }
.home-dot.is-ping { position: relative; }
.home-dot.is-ping::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--green);
    animation: home-ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes home-pulse { 50% { opacity: 0.45; } }
@keyframes home-ping {
    75%, 100% { transform: scale(2.2); opacity: 0; }
}

body.home h1, body.home h2 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-wrap: balance;
}

body.home h1 { font-size: clamp(30px, 4vw, 40px); }
body.home h2 { font-size: clamp(28px, 4vw, 40px); }
body.home h3 { margin: 0 0 6px; font-size: 20px; line-height: 28px; font-weight: 600; }

.home-lede {
    max-width: 42rem;
    margin: 16px auto 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 24px;
}

.home-lede-left { margin: 12px 0 0; }

.home-cta, .home-close-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: min(100%, 720px);
    margin: 36px auto 0;
}

.home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 64px;
    padding: 14px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    transition: filter 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.home-btn:active { transform: scale(0.99); }

.home-btn-primary {
    flex-direction: column;
    gap: 2px;
    background: var(--lime);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.home-btn-primary:hover { filter: brightness(1.05); }

.home-btn-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.home-btn-note {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
}

.home-btn-secondary {
    background: var(--high);
    color: var(--on);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.home-btn-secondary:hover { background: var(--bright); }
.home-btn-secondary .material-symbols-outlined { color: var(--muted); font-size: 20px; }

.home-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
    font-size: 13px;
}

.home-facts li { display: inline-flex; align-items: center; gap: 8px; }
.home-facts span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #90937d;
}

.home-stage { padding: 8px 0 56px; }

.home-browser {
    overflow: hidden;
    border-radius: 8px;
    background: var(--lowest);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.home-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    background: var(--high);
}

.home-chrome-left, .home-chrome-meta, .home-url, .home-pip, .home-window-bar, .home-tray, .home-tasks {
    display: flex;
    align-items: center;
}

.home-chrome-left { gap: 10px; min-width: 0; }
.home-chrome-meta { gap: 14px; color: var(--muted); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; white-space: nowrap; }
.home-chrome-meta .home-hide-md { display: none; align-items: center; gap: 6px; }

.home-traffic { display: inline-flex; gap: 6px; }
.home-traffic i { width: 12px; height: 12px; border-radius: 50%; background: var(--bright); }

.home-url {
    display: none;
    gap: 6px;
    max-width: 420px;
    padding: 3px 12px;
    border-radius: 2px;
    background: var(--lowest);
    color: var(--muted);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 13px;
}

.home-url .material-symbols-outlined { font-size: 14px; color: var(--green); }

.home-pill {
    padding: 2px 8px;
    border-radius: 2px;
    background: var(--mid);
    color: var(--lime);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-desktop {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    aspect-ratio: 16 / 9;
    max-height: 720px;
    overflow: hidden;
    background: var(--low);
}

.home-pip {
    position: absolute;
    top: 12px;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(41, 43, 37, 0.92);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.home-pip-rule { width: 1px; height: 12px; background: var(--line); }
.home-chip { padding: 2px 8px; border-radius: 2px; background: var(--bright); font-size: 11px; font-weight: 500; }

.home-desktop-body {
    position: relative;
    flex: 1;
    min-height: 0;
    padding: 18px;
}

.home-shortcuts {
    display: none;
    flex-direction: column;
    gap: 18px;
    width: 84px;
}

.home-shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--on);
    font-size: 11px;
    text-align: center;
}

.home-shortcut-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    background: var(--high);
    color: #fff;
}

.home-shortcut-icon.is-green { color: var(--green); }

.home-window {
    position: absolute;
    top: 58px;
    right: 18px;
    left: 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 4px;
    background: var(--mid);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.home-window-bar {
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: var(--high);
    font-size: 12px;
    font-weight: 600;
}

.home-window-bar > span:first-child, .home-window-controls { display: inline-flex; align-items: center; gap: 8px; }
.home-window-bar .material-symbols-outlined, .home-tray .material-symbols-outlined, .home-task .material-symbols-outlined { font-size: 16px; color: var(--muted); }

.home-sheet {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    padding: 12px;
    background: var(--lowest);
}

.home-sheet-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr;
    gap: 4px;
    color: var(--muted);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 12px;
}

.home-sheet-grid > div {
    padding: 8px;
    border-radius: 2px;
    background: var(--mid);
}

.home-sheet-grid .is-head { background: var(--high); color: var(--on); font-family: "IBM Plex Sans", sans-serif; font-weight: 600; }
.home-sheet-grid .is-ok { display: flex; align-items: center; gap: 6px; color: var(--green); }
.home-sheet-grid .is-ok .home-dot { width: 6px; height: 6px; }
.home-sheet-grid .is-money { font-variant-numeric: tabular-nums; }

.home-sheet-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 2px;
    background: var(--mid);
    color: var(--muted);
    font-size: 11px;
}

.home-sheet-foot span:last-child { color: var(--lime); font-weight: 600; }

.home-taskbar {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 12px;
    background: rgba(52, 53, 48, 0.95);
}

.home-tasks { gap: 4px; margin: 0 auto; }
.home-task, .home-start {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 4px;
}

.home-task.is-open { background: var(--bright); }
.home-task.is-open .material-symbols-outlined { color: var(--green); }
.home-start { display: grid; grid-template-columns: 6px 6px; gap: 2px; }
.home-start i { width: 6px; height: 6px; background: var(--lime); }

.home-tray { gap: 8px; color: var(--muted); font-size: 11px; }
.home-tray-app { position: relative; }
.home-tray-icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(211, 239, 89, 0.16);
    color: var(--lime);
}
.home-tray-icon .material-symbols-outlined { color: var(--lime); }
.home-tray-icon .home-dot { width: 6px; height: 6px; }

.home-tooltip {
    display: none;
    position: absolute;
    right: 0;
    bottom: 34px;
    width: 180px;
    padding: 8px;
    border-radius: 4px;
    background: var(--high);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    text-align: left;
}

.home-tray-app:hover .home-tooltip { display: flex; flex-direction: column; }
.home-tooltip strong { color: var(--on); font-size: 12px; }
.home-tooltip span { color: var(--green); font-size: 11px; }

.home-clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; font-family: "JetBrains Mono", ui-monospace, monospace; }
.home-clock strong { color: var(--on); font-size: 11px; }
.home-clock span { font-size: 9px; }

.home-steps { padding: 72px 0; background: var(--lowest); }
.home-section-head { max-width: 720px; margin-bottom: 36px; }
.home-section-head p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 16px; line-height: 24px; }

.home-step-grid, .home-machine-grid { display: grid; gap: 20px; }
.home-step {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: 24px;
    border-radius: 4px;
    background: var(--low);
    transition: background 0.15s ease;
}
.home-step:hover { background: var(--mid); }
.home-step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.home-step-index { color: var(--lime-dim); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 18px; font-weight: 500; letter-spacing: 0.05em; }
.home-step-icon, .home-point-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    background: var(--high);
}
.home-step p, .home-point p { margin: 0; color: var(--muted); }
.home-step-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 28px 0 0;
    padding-top: 14px;
    color: var(--muted);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 13px;
}
.home-step-foot .home-dot { width: 6px; height: 6px; }

.home-machine { padding: 72px 0; }
.home-points { display: grid; gap: 14px; margin-top: 24px; }
.home-point {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 4px;
    background: var(--low);
}
.home-point-icon { color: var(--lime); flex: none; }
.home-point-icon .material-symbols-outlined { font-size: 20px; }

.home-tray-card {
    align-self: center;
    width: min(100%, 440px);
    display: grid;
    gap: 14px;
    padding: 24px;
    border-radius: 8px;
    background: var(--low);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.home-tray-card-head, .home-stat, .home-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.home-tray-card-head, .home-stat {
    color: var(--muted);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 13px;
}
.home-tray-card-head .is-live { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; }
.home-menu { display: grid; gap: 2px; padding: 6px; border-radius: 4px; background: var(--high); }
.home-menu-item { justify-content: flex-start; padding: 8px 12px; border-radius: 2px; }
.home-menu-item .material-symbols-outlined { color: var(--lime-dim); font-size: 18px; }
.home-menu-item.is-danger .material-symbols-outlined { color: var(--danger); }
.home-menu-rule { height: 1px; margin: 4px 8px; background: rgba(69, 72, 54, 0.55); }
.home-stat { padding: 14px; border-radius: 4px; background: var(--lowest); }
.home-stat strong { color: var(--on); }

.home-close { padding: 72px 0; background: var(--low); }
.home-close p { margin: 10px 0 0; color: var(--muted); font-size: 16px; line-height: 24px; }
.home-close-actions { width: auto; max-width: none; align-items: center; justify-content: center; }
.home-close .home-btn-primary { min-height: 56px; }

.home-footer { padding: 28px 0; background: var(--lowest); }
.home-footer-inner, .home-footer-links, .home-footer p {
    display: flex;
    align-items: center;
    gap: 16px;
}
.home-footer-inner { justify-content: space-between; flex-wrap: wrap; }
.home-footer p { margin: 0; color: var(--muted); font-size: 13px; }
.home-footer p span, .home-footer-links > span { color: var(--muted); }
.home-footer p span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--line);
}
.home-footer-links { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.home-footer-links a:first-child { color: var(--lime-dim); }
.home-footer a:hover { color: var(--on); }
.home-footer-links > span { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 400; letter-spacing: 0; }

@media (min-width: 720px) {
    .home-account, .home-url, .home-shortcuts, .home-chrome-meta .home-hide-md { display: flex; }
    .home-cta, .home-close-actions { flex-direction: row; align-items: stretch; }
    .home-btn { flex: 1; }
    .home-close-actions .home-btn { flex: none; padding-inline: 28px; }
    .home-step-grid { grid-template-columns: repeat(3, 1fr); }
    .home-btn-title { white-space: nowrap; }
    .home-window { top: 64px; right: 72px; left: 112px; }
    .home-hero { padding: 96px 0 28px; }
}

@media (min-width: 1020px) {
    .home-nav { display: flex; }
    .home-bar, .home-wrap { width: min(1440px, calc(100% - 64px)); }
    .home-machine-grid { grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; }
}

@media (max-width: 719px) {
    .home-desktop { min-height: 360px; aspect-ratio: auto; }
    .home-pip .home-chip, .home-pip-rule, .home-sheet-foot span:first-child, .home-clock span { display: none; }
    .home-sheet-grid { font-size: 10px; }
    .home-sheet-grid > div { padding: 6px; }
    .home-facts { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-dot.is-pulse, .home-dot.is-ping::after { animation: none; }
}
