:root {
  --page: #f4f8fc;
  --page-glow: #e6f2ff;
  --text: #24334b;
  --surface: #ffffff;
  --surface-soft: #ffffffa6;
  --border: #e1e8f1;
  --divider: #edf1f6;
  --muted: #748298;
  --subtle: #8490a1;
  --secondary: #4f6988;
  --eyebrow: #6885a4;
  --preview: #edf5ff;
  --preview-glow: #dcecff;
  --badge: #f8fafc;
  --control: #f0f5fb;
  --stop-border: #e4ccd1;
  --stop-text: #ad5a68;
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--page);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
/* Only neutral surfaces and text change; brand blue and SVG fills stay fixed. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #111923;
  --page-glow: #172a42;
  --text: #e1e9f4;
  --surface: #1a2533;
  --surface-soft: #1a2533b8;
  --border: #2d3b4e;
  --divider: #2a384a;
  --muted: #a1aec1;
  --subtle: #94a3b9;
  --secondary: #aec5df;
  --eyebrow: #95adc9;
  --preview: #192f49;
  --preview-glow: #1c3858;
  --badge: #223044;
  --control: #26374d;
  --stop-border: #694552;
  --stop-text: #e9a3b2;
}
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 114px; min-height: 42px; padding: 9px 14px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 12px; color: var(--secondary); font-size: 13px; cursor: pointer; transition: border-color .2s, background .2s; }
.theme-toggle:hover { background: var(--control); border-color: #3f89de; }
.theme-toggle svg { color: #3f89de; flex-shrink: 0; }
.theme-moon, [data-theme="dark"] .theme-sun { display: none; }
[data-theme="dark"] .theme-moon { display: block; }
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  background: radial-gradient(ellipse at 50% 5%, var(--page-glow) 0, transparent 52%), var(--page);
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.header { height: 96px; max-width: 1392px; margin: 0 auto; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: grid; place-items: center; border-radius: 12px; padding: 4px; }
.brand img { display: block; filter: drop-shadow(0 4px 5px #4d9de22b); }

main { width: min(1080px, calc(100% - 80px)); margin: 0 auto; padding: 55px 0 64px; }
.intro { text-align: center; }
.eyebrow { color: var(--eyebrow); font-size: 11px; font-weight: 600; letter-spacing: 2.3px; }
h1 { font-size: clamp(36px, 4.5vw, 54px); letter-spacing: -2.4px; line-height: 1.14; font-weight: 600; margin: 21px 0 20px; }
h1 span { color: #3f89de; }
.intro p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.systems { margin-top: 52px; }
.system-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.system-card { --accent: #347fce; --scene: #e8f3ff; text-align: left; padding: 8px; display: flex; flex-direction: column; min-width: 0; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 4px 6px #35547602, 0 12px 28px #35547604; cursor: pointer; transition: transform .22s, box-shadow .22s, border-color .22s; }
.system-card:hover { transform: translateY(-6px); border-color: #aacbea; box-shadow: 0 16px 36px #35547612; }
.system-card:active { transform: translateY(-2px); }
button:focus-visible, a:focus-visible { outline: 3px solid #488fe3; outline-offset: 5px; }
/* Shared brand color keeps the system marks visually consistent. */
.system-preview { height: 190px; border-radius: 15px; background: radial-gradient(circle at center, var(--preview-glow) 0, var(--preview) 65%); display: grid; place-items: center; overflow: hidden; }
.system-logo { display: block; width: 76px; height: 76px; object-fit: contain; transition: transform .22s; }
.linux .system-logo { width: 88px; height: 88px; }
.dos .system-logo { width: 108px; height: 90px; }
.system-card:hover .system-logo { transform: translateY(-3px) scale(1.04); }
.card-content { display: flex; flex: 1; flex-direction: column; padding: 23px 19px 16px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.os-name { font-size: 24px; letter-spacing: -.7px; font-weight: 600; }
.placeholder-badge { color: var(--subtle); border: 1px solid var(--border); background: var(--badge); font-size: 11px; padding: 4px 8px; border-radius: 6px; }
.os-description { display: block; flex: 1; font-size: 14px; color: var(--muted); line-height: 1.8; margin-top: 13px; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 20px; margin-top: 23px; border-top: 1px solid var(--divider); }
.system-kind { color: var(--subtle); font-size: 12px; }.select-label { color: var(--secondary); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.select-plus { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--control); color: var(--secondary); font-size: 18px; font-weight: 400; transition: background .2s, color .2s; }
.system-card:hover .select-plus { background: #3f89de; color: white; }
.development-note { margin: 27px 0 0; color: var(--subtle); font-size: 12px; display: flex; justify-content: center; align-items: center; gap: 8px; line-height: 1.6; }
.development-note svg { flex-shrink: 0; }
dialog { width: min(420px, calc(100% - 32px)); padding: 35px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 32px 100px #243b5c24; text-align: center; }
dialog::backdrop { background: #344c6c33; backdrop-filter: blur(8px); }
.close-button { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border: 0; background: var(--control); border-radius: 50%; color: var(--secondary); font-size: 24px; cursor: pointer; }
.dialog-icon { display: grid; place-items: center; width: 88px; height: 88px; margin: 8px auto 24px; border-radius: 25px; background: var(--preview); }
.dialog-icon img { display: block; object-fit: contain; }
.dialog-eyebrow { font-size: 10px; letter-spacing: 1.5px; color: var(--eyebrow); }
dialog h2 { font-size: 32px; font-weight: 600; letter-spacing: -.9px; margin: 12px 0; }
dialog p { color: var(--muted); line-height: 1.8; font-size: 15px; margin: 0 0 27px; }
.back-button { width: 100%; border: 0; border-radius: 12px; background: #3b86df; color: white; padding: 14px; font-weight: 500; font-size: 14px; cursor: pointer; transition: background .2s; }.back-button:hover { background: #2873cf; }
@media (min-height: 900px) and (min-width: 900px) { main { padding-top: 90px; }.systems { margin-top: 62px; } }
@media (max-width: 900px) { .header { padding: 0 30px; } main { width: calc(100% - 48px); padding-top: 36px; }.system-grid { gap: 14px; }.card-content { padding: 20px 12px 13px; }.system-kind { font-size: 11px; }.select-label { gap: 6px; font-size: 12px; }.system-preview { height: 175px; } }
@media (max-width: 700px) { .header { height: 78px; padding: 0 22px; }main { width: min(440px, calc(100% - 36px)); padding: 35px 0 40px; }h1 { max-width: 340px; margin: 18px auto; font-size: 40px; letter-spacing: -1.8px; }h1 span { display: block; }.eyebrow { font-size: 10px; letter-spacing: 1.8px; }.intro p { font-size: 14px; }.systems { margin-top: 34px; }.system-grid { grid-template-columns: 1fr; gap: 20px; }.system-preview { height: 190px; }.card-content { padding: 22px 20px 16px; }.system-kind { font-size: 12px; }.select-label { font-size: 13px; }.development-note { font-size: 11px; gap: 6px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } .system-card:hover { transform: none; } }

[hidden] { display: none !important; }
.empty-machine { display: flex; align-items: center; gap: 18px; margin-top: 38px; padding: 23px 25px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 18px; }
.empty-icon { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--preview); color: var(--secondary); font: 21px monospace; }
.empty-machine h2 { font-size: 16px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.2px; }
.empty-machine p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }
.empty-machine .runtime-note { margin-top: 6px; font-size: 12px; color: var(--subtle); }
.primary-button { border: 0; border-radius: 10px; padding: 13px 18px; color: white; background: #3b86df; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s; }
.primary-button:hover { background: #2873cf; }.empty-machine .primary-button { margin-left: auto; flex-shrink: 0; }
#vm-view { padding-top: 20px; }
.menu-button { border: 0; background: none; padding: 8px 0; color: var(--secondary); cursor: pointer; font-size: 14px; }
.vm-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; gap: 20px; }
.vm-heading h1 { margin: 12px 0 20px; font-size: 38px; letter-spacing: -1.5px; }
.stop-button { background: white; border: 1px solid var(--stop-border); border-radius: 10px; padding: 11px 17px; color: var(--stop-text); cursor: pointer; font-size: 14px; }
.vm-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13px; color: var(--muted); margin: 0 0 26px; }
.console-panel { border: 1px solid var(--border); border-radius: 17px; overflow: hidden; background: #192331; }
.console-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 20px; color: #b7c9de; border-bottom: 1px solid #ffffff0e; font-size: 13px; }
#vm-status { font-size: 12px; color: #91bce8; }#vm-status[data-state="error"] { color: #f5a4a4; }
#vm-container { height: 390px; }#vm-container iframe { border: 0; width: 100%; height: 100%; display: block; }
.console-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 13px 18px; border-top: 1px solid #ffffff0e; }
.console-actions button { background: #ffffff09; border: 1px solid #ffffff18; color: #b7c9de; border-radius: 7px; font-size: 12px; padding: 8px 11px; cursor: pointer; }
.console-actions button:hover:not(:disabled) { background: #ffffff16; }
button:disabled { opacity: .4; cursor: default; }
.vm-help { max-width: 760px; color: var(--muted); font-size: 13px; line-height: 1.8; margin: 20px 0; }.vm-help code { color: var(--secondary); }
.console-message { margin: 0; padding: 30px 24px; color: #c9d7e8; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
@media (max-width: 700px) { .empty-machine { flex-wrap: wrap; gap: 14px; padding: 20px; margin-top: 28px; }.empty-machine > div { flex: 1; min-width: 180px; }.empty-machine .primary-button { width: 100%; margin-top: 3px; }.vm-heading h1 { font-size: 32px; text-align: left; }.vm-heading .eyebrow { font-size: 9px; }#vm-container { height: 350px; }.console-header { padding: 14px; }.console-actions { padding: 12px; }.console-actions button { font-size: 11px; } }
