:root {
  color-scheme: dark;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: #f1f6f6;
  background: #0b1012;
  --surface: #131b1f;
  --line: #27373d;
  --muted: #a9bac0;
  --accent: #b9f977;
  --danger: #ffc0b6;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 75% 10%, #142822 0, #0b1012 49%); }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: progress; opacity: .75; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.topbar { border-bottom: 1px solid #263137; background: #0b1112ed; }
.topbar-inner { max-width: 1280px; min-height: 66px; margin: auto; padding: .65rem clamp(1rem, 4vw, 2.5rem); display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-size: 1.04rem; white-space: nowrap; font-weight: 750; letter-spacing: -.03em; }
.brand strong { color: var(--accent); }
.account, .actions { display: flex; align-items: center; gap: .7rem; }
.account-name { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; color: var(--muted); }
.nav-link, .back-link { font-size: .9rem; color: var(--accent); text-decoration: none; }
.nav-link:hover, .back-link:hover { text-decoration: underline; }
.shell { width: min(100% - 2.5rem, 1120px); margin: 0 auto; padding: clamp(2.5rem, 8vh, 7rem) 0 3rem; }
.shell.wide { width: min(100% - 2rem, 1600px); height: calc(100dvh - 67px); padding: 1rem 0; display: flex; flex-direction: column; }
.landing { min-height: min(68vh, 630px); display: grid; align-items: center; grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr); gap: clamp(1.5rem, 5vw, 5rem); }
h1, h2, p { margin: 0; }
.intro h1, .admin-page h1 { font-size: clamp(2.75rem, 6.3vw, 5.65rem); font-weight: 740; line-height: .99; letter-spacing: -.077em; }
h1 em { color: var(--accent); font-style: normal; }
.intro > p, .admin-page > p { max-width: 43ch; margin: 1.2rem 0 1.7rem; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.intro p strong { color: #f1f6f6; overflow-wrap: anywhere; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .65rem; border: 1px solid transparent; border-radius: .65rem; padding: .65rem 1rem; text-decoration: none; font-weight: 680; line-height: 1.2; transition: background .15s, border-color .15s; }
.primary { color: #10200e; background: var(--accent); }
.primary:hover { background: #d4ffae; }
.neutral { color: #f0f5f3; border-color: var(--line); background: #1a2529; }
.neutral:hover { background: #25353a; }
.danger { color: var(--danger); border-color: #5f383b; background: #2a1c20; }
.danger:hover { background: #45252b; }
.small { min-height: 36px; padding: .45rem .7rem; font-size: .86rem; }
fieldset { border: 0; margin: 0; padding: 0; }
legend, .activate label { font-size: .88rem; font-weight: 700; margin-bottom: .5rem; color: var(--muted); }
.region { display: flex; align-items: center; gap: .7rem; max-width: 29rem; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: .72rem; cursor: pointer; margin-bottom: .6rem; }
.region:has(:checked) { border-color: #679044; background: #18261d; }
.region input { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; }
.region-name { flex: 1; font-weight: 680; }
.region-name small { display: block; font-size: .8rem; font-weight: 450; color: var(--muted); margin-top: .15rem; }
.region-id { font: 650 .8rem ui-monospace, monospace; color: var(--accent); }
.launcher > button { margin-top: .45rem; }
.start-status { display: block; color: var(--muted); margin-top: .65rem; font-size: .88rem; }
.activate { display: grid; justify-items: start; gap: .55rem; }
.activate label { margin: 0; }
.activate input { width: 13.3rem; background: #131b1f; border: 1px solid #3d555c; border-radius: .65rem; color: #f4faf6; padding: .65rem .8rem; font: 650 1.45rem ui-monospace, monospace; letter-spacing: .45em; }
.activate .button { margin-top: .35rem; }
.notice { border: 1px solid #405a42; border-radius: .65rem; padding: .85rem 1rem; margin-bottom: 1rem; background: #17261a; color: #e1f5d1; line-height: 1.35; }
.notice.error { border-color: #694043; color: #ffe0db; background: #2b1c20; }
.desktop-illustration { aspect-ratio: 1.1; display: grid; place-items: center; position: relative; isolation: isolate; overflow: hidden; border: 1px solid #385043; border-radius: 1.5rem; background: radial-gradient(ellipse at 58% 57%, #34574d, #14221f 60%, #10191a 85%); }
.desktop-illustration::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#97d9ad12 1px, transparent 1px), linear-gradient(90deg, #97d9ad12 1px, transparent 1px); background-size: 21px 21px; mask-image: radial-gradient(ellipse at center, #000 22%, transparent 82%); }
.reflection { width: 50%; aspect-ratio: 1; background: #87cb51; border-radius: 50%; position: absolute; filter: blur(110px); opacity: .33; z-index: -1; }
.monitor { width: 72%; aspect-ratio: 1.59; padding: .44rem; border-radius: .9rem; border: 1px solid #7db18a79; box-shadow: 0 25px 55px #06110f9c, 0 0 78px #9feb7c28; background: #111b1c; transform: perspective(850px) rotateY(-13deg) rotateX(8deg) rotate(-7deg); z-index: 2; }
.monitor-bar { display: flex; align-items: center; gap: .25rem; height: 1.15rem; padding-inline: .48rem; border-radius: .4rem .4rem 0 0; background: #223431; }
.monitor-bar i { width: .3rem; height: .3rem; border-radius: 50%; background: #a2c5ae; opacity: .65; }
.monitor-bar b { width: 25%; height: .19rem; border-radius: .2rem; margin-left: auto; background: #536d63; }
.monitor-screen { height: calc(100% - 1.15rem); display: grid; place-items: center; position: relative; overflow: hidden; border-radius: 0 0 .46rem .46rem; background: radial-gradient(ellipse at 48% 40%, #235f50, #19372f 57%, #111e20); }
.monitor-screen img { width: 23%; max-width: 76px; border-radius: .7rem; box-shadow: 0 0 2.8rem #b9f97771; }
.monitor-screen i { position: absolute; left: 10%; right: 10%; height: 1px; bottom: 16%; background: linear-gradient(90deg, transparent, #b9f97772, transparent); }
.floor { width: 68%; height: 11%; position: absolute; bottom: 18%; border-radius: 50%; background: #020b0b; filter: blur(22px); }
.workspace { display: flex; flex: 1; flex-direction: column; min-height: 22rem; border: 1px solid var(--line); border-radius: .95rem; overflow: hidden; background: #11191c; }
.workspace-bar { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; gap: .6rem; }
.workspace-name { display: flex; align-items: center; gap: .65rem; }
.workspace-name h1 { font-size: 1rem; }
.workspace-name p { color: var(--muted); font-size: .82rem; margin-top: .25rem; }
.status-light { width: .53rem; height: .53rem; border-radius: 50%; background: #dfbc74; flex: 0 0 auto; }
.status-light.online { background: var(--accent); box-shadow: 0 0 1rem #9dd97190; }
.viewport { position: relative; flex: 1; background: #090d0e; }
.viewport:fullscreen { width: 100%; height: 100%; }
.viewport iframe { width: 100%; height: 100%; border: 0; display: block; }
.viewer-overlay, .empty-state { display: grid; align-content: center; justify-items: center; gap: .9rem; text-align: center; padding: 1rem; }
.viewer-overlay { position: absolute; inset: 0; background: #101a1b; color: var(--muted); }
.empty-state { min-height: 18rem; color: var(--muted); }
.spinner { border: 2px solid #43584b; border-top-color: var(--accent); border-radius: 50%; width: 1.7rem; height: 1.7rem; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.admin-page { max-width: 53rem; margin: 0 auto; }
.admin-page h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); margin-top: .75rem; }
.code-card, .account-panel { border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); }
.code-card { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: 1rem; margin-bottom: 1.1rem; }
.code-card > div { flex: 1; min-width: 14rem; }
.code-card p { color: var(--muted); margin-top: .25rem; font-size: .85rem; }
.code-card h2, .account-panel h2 { font-size: 1rem; }
.code-card output { color: var(--accent); font: 700 1.65rem ui-monospace, monospace; letter-spacing: .16em; }
.account-panel h2 { padding: 1rem; }
.account-list { list-style: none; margin: 0; padding: 0; }
.account-list li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .85rem 1rem; border-top: 1px solid var(--line); }
.account-list li strong { display: block; overflow-wrap: anywhere; }
.account-status { display: block; font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.account-status.approved { color: var(--accent); }
.account-list form { flex-shrink: 0; }
dialog { max-width: min(90vw, 29rem); border: 1px solid #48605e; border-radius: .95rem; background: #152022; color: #f4faf6; padding: 1.4rem; }
dialog::backdrop { background: #020809c2; }
dialog p { margin: .65rem 0 1.2rem; color: var(--muted); }
dialog .actions { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 710px) {
  .landing { grid-template-columns: 1fr; gap: 1.8rem; }
  .desktop-illustration { aspect-ratio: 1.65; }
  .monitor { width: 60%; }
  .intro h1 { font-size: clamp(2.6rem, 10vw, 4.7rem); }
  .shell { padding-top: 2rem; }
}
@media (max-width: 425px) {
  .account-name { display: none; }
  .topbar-inner { padding-inline: .7rem; }
  .workspace-bar { align-items: flex-start; padding: .7rem; }
  .workspace-bar .actions { flex-wrap: wrap; justify-content: flex-end; max-width: 51%; gap: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
