:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #29222b; background: #faf9fb; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, select, input { border: 1px solid #dcd6df; border-radius: 8px; background: #fff; color: inherit; min-height: 44px; }
button { padding: 10px 16px; font-weight: 600; }
button:hover { background: #f4eff5; }
a { color: #8e3562; }
:focus-visible { outline: 3px solid #b1578a; outline-offset: 3px; }
[hidden] { display: none !important; }
#playground { padding: 24px 32px 32px; max-width: 1920px; margin: auto; }
.heading, .controls, form, .vm-toolbar, .vm-toolbar > div { display: flex; align-items: center; gap: 16px; }
.heading { justify-content: space-between; margin-bottom: 22px; }
h1 { margin: 0; font-size: 1.6rem; letter-spacing: -.04em; }
.heading p { margin: 6px 0 0; color: #6c626f; font-size: .95rem; }
.source { font-size: .9rem; white-space: nowrap; text-decoration: none; }
.controls { justify-content: space-between; border-bottom: 1px solid #ddd6e1; }
.tabs { display: flex; gap: 8px; }
.tabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 8px 8px 0 0; background: transparent; padding: 14px 20px; color: #706476; }
.tabs button[aria-selected="true"] { border-bottom-color: #963863; color: #963863; background: #f2e9f0; }
.platform { display: flex; align-items: center; gap: 10px; font-size: .875rem; padding-bottom: 8px; }
.platform select { padding: 8px 32px 8px 12px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%236c626f' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center; }
.platform select:disabled { opacity: .7; cursor: default; }
#package-panel { padding: 18px 0; }
form { align-items: flex-end; }
.package-field { flex: 1; position: relative; min-width: 0; }
.package-field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 8px; }
input { width: 100%; padding: 12px 14px; font-family: ui-monospace, monospace; font-size: 1rem; }
.primary { background: #963863; color: white; border-color: #963863; }
.primary:hover { background: #76294d; }
#suggestions { position: absolute; top: 100%; left: 0; right: 0; max-height: 320px; overflow-y: auto; margin: 6px 0; padding: 6px; list-style: none; background: white; border: 1px solid #dcd6df; border-radius: 10px; box-shadow: 0 10px 35px #24132b22; z-index: 30; }
#suggestions li { padding: 10px 12px; cursor: pointer; border-radius: 6px; display: flex; flex-direction: column; gap: 4px; }
#suggestions li[aria-selected="true"], #suggestions li:hover { background: #f2e9f0; }
#suggestions strong { font-family: ui-monospace, monospace; font-size: .95rem; }
#suggestions small { font-size: .875rem; color: #706476; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-row { display: flex; gap: 16px; align-items: baseline; margin-top: 12px; font-size: .875rem; }
#command { color: #65536d; white-space: pre-wrap; overflow-wrap: anywhere; flex: 1; max-height: 100px; overflow-y: auto; }
#status { color: #783354; max-width: 40%; }
.vm { border: 1px solid #302b36; border-radius: 12px; background: #100f15; overflow: hidden; box-shadow: 0 12px 36px #20132614; }
.vm-toolbar { flex-wrap: wrap; justify-content: space-between; padding: 9px 16px; background: #211d29; color: #ded8e8; font-size: .875rem; }
.vm-toolbar > div { flex-wrap: wrap; gap: 8px; }
.vm-toolbar a { color: #ded8e8; text-decoration: none; }
.vm-toolbar button { background: #332c3e; border-color: #4e4159; color: #eee8f4; min-height: 34px; padding: 6px 12px; font-size: .875rem; }
#vm-container { height: max(480px, calc(100dvh - 390px)); position: relative; }
#vm-container iframe { display: block; width: 100%; height: 100%; border: 0; background: #100f15; }
#empty { height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: #eee8f4; background: radial-gradient(ellipse at 50% 30%, #30203a 0, #100f15 65%); }
#empty h2 { font-size: 1.4rem; margin: 0; font-weight: 500; letter-spacing: -.02em; }
#empty p { font-size: .95rem; color: #b6a8c3; margin: 0 0 8px; }
.terminal-icon { font: 2rem ui-monospace, monospace; color: #cc86b2; border: 1px solid #63465e; border-radius: 14px; padding: 14px 20px; margin-bottom: 8px; }
.vm.expanded { position: fixed; inset: 0; z-index: 10000; }
.vm:fullscreen, .vm.expanded { border: 0; border-radius: 0; display: flex; flex-direction: column; }
.vm:fullscreen #vm-container, .vm.expanded #vm-container { flex: 1; height: auto; }
@media (max-width: 700px) {
  #playground { padding: 18px 12px; }
  .heading { align-items: flex-start; gap: 8px; }
  h1 { font-size: 1.35rem; }
  .heading p { max-width: 30ch; }
  .controls { align-items: stretch; flex-direction: column; gap: 12px; }
  .tabs { gap: 0; }
  .tabs button { flex: 1; padding: 12px; }
  .platform { justify-content: space-between; }
  form { flex-wrap: wrap; gap: 10px; }
  .package-field { flex-basis: 100%; }
  form > button { flex: 1; }
  .command-row { flex-direction: column; gap: 8px; }
  #status { max-width: 100%; }
  #vm-container { height: 60dvh; min-height: 400px; }
}
