:root {
  color-scheme: light;
  --ink: #17223b;
  --muted: #53617a;
  --blue: #2d4dd1;
  --navy: #152650;
  --line: #d9dfec;
  --paper: #f4f6fb;
  --radius: 20px;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
[hidden] { display: none !important; }
header, main, footer { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
header, nav, .top-actions, .wordmark, .panel-head, .section-title, .session-head, .dialog-head, footer, .controls {
  display: flex; align-items: center;
}
header { min-height: 76px; gap: 36px; border-bottom: 1px solid var(--line); }
header > a:last-child, .top-actions { margin-left: auto; }
a { color: var(--blue); text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
.wordmark { gap: 4px; flex-shrink: 0; text-decoration: none; color: var(--ink); font-size: 21px; font-weight: 750; letter-spacing: -.06em; }
.wordmark:hover { text-decoration: none; }
.wordmark b { font-weight: 400; }
.symbol { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue); color: white; font: 650 27px/1 "Segoe UI",sans-serif; margin-right: 6px; }
nav, .top-actions { gap: 22px; }
header a:not(.wordmark), nav a, .section-title a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); }
header a:hover, nav a:hover, .section-title a:hover { color: var(--blue); }
.site-nav { align-self: stretch; }
.site-nav a { display: grid; align-items: center; position: relative; }
.site-nav a[aria-current] { color: var(--blue); }
.site-nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 5px 5px 0 0; background: var(--blue); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.035em; }
p { color: var(--muted); }
button, .light { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 43px; border: 1px solid #cbd3e4; border-radius: 10px; padding: 9px 16px; font-family: inherit; font-size: 14px; font-weight: 650; line-height: 1.4; background: white; color: var(--ink); cursor: pointer; text-decoration: none; }
button:hover, .light:hover { background: #edf1fe; border-color: #9baee9; text-decoration: none; }
button:disabled { opacity: .48; cursor: default; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #5479ee; outline-offset: 3px; }
.account { background: #fff; max-width: min(38vw,280px); overflow-wrap: anywhere; text-align: center; }
.heading { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; margin: 26px 0 20px; min-height: 248px; border-radius: 24px; color: white; background: radial-gradient(ellipse at 84% 97%,#3155ad 0%,transparent 53%),linear-gradient(112deg,#122348 5%,#192d65 61%,#27468f); }
.hero-copy { padding: 34px 0 34px clamp(26px,4vw,58px); z-index: 1; }
h1 { font-size: clamp(40px,5.5vw,72px); }
.heading h1 { letter-spacing: -.062em; }
.heading h1 span { color: #9fb7ff; }
.hero-copy p { margin: 12px 0 22px; color: #dbe4fb; max-width: 42ch; font-size: 16px; line-height: 1.6; }
.hero-link { display: inline-flex; align-items: center; gap: 12px; color: white; font-size: 14px; font-weight: 600; text-decoration: none; }
.hero-link span { color: #a9c3ff; }
.hero-art { position: absolute; z-index: -1; inset: 0 0 0 49%; overflow: hidden; pointer-events: none; }
.art-grid { position: absolute; inset: -40% -35%; opacity: .32; transform: rotate(-17deg); background-image: linear-gradient(#8cafff60 1px,transparent 1px),linear-gradient(90deg,#8cafff60 1px,transparent 1px); background-size: 39px 39px; mask-image: linear-gradient(90deg,transparent 17%,#000 64%); }
.glass-window { position: absolute; width: 48%; max-width: 285px; min-width: 170px; aspect-ratio: 1.7; top: 48%; left: 48%; transform: translate(-50%,-50%) perspective(650px) rotateY(-18deg) rotateX(10deg) rotateZ(-9deg); border-radius: 13px; border: 1px solid #b0cfff; overflow: hidden; }
.rear-window { margin: -15px 0 0 39px; background: linear-gradient(120deg,#79a2ff45,#99c5ff15); border-color: #8daff0b0; }
.front-window { padding: 0 5px 5px; display: flex; flex-direction: column; background: linear-gradient(160deg,#e5f0ff,#9bb5ed); box-shadow: 0 18px 35px #06133365,1px 3px 0 #678ac7; }
.window-bar { height: 15px; display: flex; gap: 3px; align-items: center; padding-left: 5px; flex: none; }
.window-bar i { width: 4px; height: 4px; border-radius: 50%; background: #6380b4; }
.wallpaper { flex: 1; position: relative; overflow: hidden; border-radius: 5px; background: linear-gradient(135deg,#334dc4,#5187ef 56%,#a2c3ff); }
.wallpaper i { position: absolute; left: -10%; bottom: -96%; width: 95%; height: 176%; border-radius: 45%; transform: rotate(-38deg); background: linear-gradient(115deg,#859dfd 10%,#3f65df 45%,#b2d4ff 72%,#7b9ffa 82%); box-shadow: inset 5px 3px 12px #d6deff50,6px -3px 14px #132e9d44; }
.wallpaper i:nth-child(2) { left: 23%; bottom: -93%; background: linear-gradient(105deg,#7195f8,#355bce 40%,#91bcff 74%,#d3ebff 89%); }
.wallpaper i:nth-child(3) { left: 50%; bottom: -100%; background: linear-gradient(105deg,#3c63d2,#6da1f6 52%,#d2e9ff); }
.cursor-tile { position: absolute; left: 67%; top: 63%; width: 62px; height: 62px; display: grid; place-items: center; transform: rotate(8deg); background: linear-gradient(145deg,#eefff4,#97e7be); border: 1px solid #e6fff1; border-radius: 17px; box-shadow: 0 8px 18px #0816384d; }
.cursor-tile i { width: 26px; height: 30px; background: #133e43; clip-path: polygon(8% 0,95% 59%,59% 63%,76% 92%,60% 100%,42% 69%,14% 94%); }
.entry, .workspace { display: grid; grid-template-columns: minmax(0,1.23fr) minmax(0,1fr); gap: 20px; }
.join-panel, .download, .card, .tariffs, .session-head { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px,2.8vw,34px); box-shadow: 0 3px 12px #182b5305; }
.panel-head, .eyebrow { gap: 10px; font-size: 11px; font-weight: 750; letter-spacing: .12em; color: #485b83; }
.icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #edf1ff; color: var(--blue); }
.connect-icon { font-size: 22px; }
.windows-icon { background: #e3eaff; }
.windows-icon i { width: 8px; height: 8px; margin: -10px 10px 0 0; background: currentColor; box-shadow: 10px 0,0 10px,10px 10px; }
.entry h2 { font-size: clamp(25px,2.4vw,34px); margin: 12px 0 18px; }
form { display: grid; gap: 13px; }
label { display: grid; gap: 6px; color: #3b4962; font-size: 13px; font-weight: 600; }
input, textarea, select { width: 100%; min-width: 0; padding: 10px 12px; background: #f8f9fd; color: var(--ink); border: 1px solid #cbd3e3; border-radius: 9px; font: 400 16px/1.4 "Segoe UI",system-ui,sans-serif; }
input::placeholder, textarea::placeholder { color: #69778d; }
textarea { resize: vertical; }
.pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
#join input[inputmode] { font-variant-numeric: tabular-nums; letter-spacing: .055em; }
.primary { background: var(--blue); color: white; border-color: var(--blue); }
.primary:hover { background: #233baa; border-color: #233baa; }
#join .primary { justify-content: space-between; margin-top: 3px; }
.primary span, .light span { font-size: 18px; }
.download { display: flex; flex-direction: column; position: relative; overflow: hidden; background: linear-gradient(125deg,#f5f7ff,#e6edff); border-color: #cdd8f4; }
.download h2 { font-size: clamp(29px,3vw,42px); line-height: 1.14; margin: 16px 0 12px; }
.download h2 span { color: #3958bf; }
.download p { max-width: 43ch; font-size: 15px; }
.download-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: auto; padding-top: 18px; }
.light { background: var(--navy); color: white; border-color: var(--navy); }
.light:hover { background: #283e72; color: white; }
#copy-server { background: transparent; color: #364d88; padding-inline: 0; border: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.tariffs, .workspace { margin-top: 20px; }
.section-title, footer, .session-head, .dialog-head { justify-content: space-between; gap: 12px; }
.section-title h2, .card h2 { font-size: 24px; }
.section-title a { color: var(--blue); white-space: nowrap; }
#tiers { margin: 22px 0 14px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 22px; }
#tiers > div { display: grid; font-size: 13px; color: var(--muted); }
#tiers b { color: var(--ink); font-size: 25px; font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
#tiers small { font-size: 13px; letter-spacing: 0; color: var(--muted); font-weight: 500; }
meter { margin-top: 6px; width: 100%; height: 4px; border: none; border-radius: 4px; background: #e6eafa; appearance: none; }
meter::-webkit-meter-bar { height: 4px; border: none; background: #e6eafa; }
meter::-webkit-meter-optimum-value { background: #5a75dc; border-radius: 4px; }
meter::-moz-meter-bar { background: #5a75dc; }
.tariffs p, .note { font-size: 13px; }
footer { margin-block: 26px 18px; padding: 15px 0; border-top: 1px solid var(--line); flex-wrap: wrap; color: var(--muted); font-size: 13px; }
footer nav { flex-wrap: wrap; gap: 6px 18px; }
footer nav a { font-size: 13px; }
.session-head { margin-top: 24px; background: var(--navy); border-color: var(--navy); color: white; }
.eyebrow { color: #c5d3fc; }
.session-head h1 { font-size: clamp(30px,4vw,48px); font-variant-numeric: tabular-nums; margin: 9px 0 4px; }
.session-head p { color: #d9e4ff; }
.danger { background: #fff3f3; border-color: #f3d5db; color: #98263d; }
.card { min-width: 0; }
.card h2 { margin-bottom: 18px; }
.monitor { min-height: 200px; overflow: hidden; padding: 12px; display: grid; place-items: center; border-radius: 12px; background: radial-gradient(ellipse at top,#293951,#172031); text-align: center; }
.monitor img { display: block; max-width: 100%; max-height: 58vh; object-fit: contain; }
.monitor p { color: #d3def1; }
.controls { flex-wrap: wrap; gap: 8px; }
.card .controls, .card .note { margin-block: 12px; }
#events { height: 248px; overflow: auto; border: 1px solid var(--line); background: #f7f9fe; padding: 8px 12px; border-radius: 10px; margin-bottom: 14px; }
.msg { padding: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.msg + .msg { border-top: 1px solid #e2e7f2; }
.msg b { display: block; color: #415da5; font-size: 12px; }
#billing { margin-bottom: 12px; }
dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px 22px; width: min(510px, calc(100% - 24px)); max-height: 88vh; max-height: 88dvh; color: var(--ink); box-shadow: 0 28px 100px #101d3b45; overscroll-behavior: contain; }
dialog::backdrop { background: #101c3d99; }
.dialog-head { position: sticky; top: 0; padding: 18px 0; margin-bottom: 17px; background: white; border-bottom: 1px solid var(--line); z-index: 1; }
.dialog-head h2 { font-size: 25px; }
#dismiss { width: 40px; padding: 3px; font-size: 22px; }
#auth, #profile > *, #email-reset { margin-bottom: 14px; }
#auth .controls > button { flex: 1; }
.wallet-balance { padding: 20px; border-radius: 14px; background: linear-gradient(115deg,#162855,#3456ad); color: white; overflow-wrap: anywhere; }
.wallet-balance span, .wallet-balance p { color: #e1eaff; font-size: 13px; }
.wallet-balance h3 { margin: 5px 0; font-size: 27px; }
details { padding: 12px 14px; background: #f8f9fd; border: 1px solid var(--line); border-radius: 12px; }
summary { cursor: pointer; font-size: 15px; font-weight: 650; }
details form, details p, details ul { margin-top: 12px; }
#account-status:not(:empty), output:not(:empty) { padding: 10px 12px; background: #edf2ff; color: #254480; border-radius: 8px; overflow-wrap: anywhere; }
#account-status:not(:empty) { margin-top: 12px; }
output { display: block; font-weight: 650; }
ul { padding-left: 19px; font-size: 14px; }
li { overflow-wrap: anywhere; }
#orders { padding: 0; }
#orders li { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; margin: 8px 0; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 9px; }
#orders li strong { font: 700 14px/1.4 Consolas,monospace; }
#orders li a { justify-self: end; font-weight: 650; }
.order-status { justify-self: end; border-radius: 20px; background: #fff1cf; color: #765214; font-size: 12px; font-weight: 650; padding: 3px 9px; }
.order-status.credited { background: #dff6e9; color: #12613e; }
#notice { position: fixed; z-index: 3; bottom: 18px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 92vw; margin: 0; padding: 12px 18px; color: white; background: #192947; border-radius: 12px; box-shadow: 0 5px 22px #14264b32; overflow-wrap: anywhere; }
.info { max-width: 860px; padding-block: 32px; }
.info nav { flex-wrap: wrap; gap: 6px; }
.info nav a { padding: 8px 12px; border-radius: 8px; }
.info nav a[aria-current] { background: #e2e9fe; color: var(--blue); }
.info h1 { margin: 20px 0; }
.info .card { margin-bottom: 20px; }
.info li { padding-left: 4px; margin: 10px 0; }
.info ol { padding-left: 22px; }
.info li::marker { color: var(--blue); font-weight: 700; }
.info table { border-collapse: collapse; width: 100%; margin-bottom: 18px; }
.info td, .info th { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
.info th { background: #f1f4fc; }
.info p + p { margin-top: 16px; }
@media (max-width: 900px) {
  header, main, footer { width: calc(100% - 40px); }
  header, nav, .top-actions { gap: 15px; }
  .hero-copy { padding-left: 28px; }
  .entry, .workspace { gap: 14px; }
}
@media (max-width: 700px) {
  header, main, footer { width: calc(100% - 28px); }
  header { flex-wrap: wrap; gap: 0 10px; padding-top: 9px; }
  header > a:last-child { padding: 8px; }
  .top-actions { gap: 9px; }
  .site-nav { order: 3; width: 100%; gap: 23px; }
  .site-nav a { padding: 9px 0; }
  .wordmark { font-size: 18px; }
  .symbol { width: 29px; height: 29px; font-size: 23px; }
  .account { padding: 8px 10px; font-size: 13px; }
  .heading { margin: 15px 0; min-height: 190px; grid-template-columns: 64% 1fr; border-radius: 17px; }
  .hero-copy { padding: 22px 0 22px 20px; }
  .hero-copy p { margin: 9px 0 13px; font-size: 14px; }
  .hero-art { inset-inline: 64% 0; }
  .glass-window { min-width: 0; width: 80%; left: 44%; }
  .rear-window { margin: -9px 0 0 14px; }
  .cursor-tile { width: 34px; height: 34px; border-radius: 10px; }
  .cursor-tile i { width: 16px; height: 18px; }
  .entry, .workspace { grid-template-columns: minmax(0,1fr); }
  #tiers { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
  .tariffs { margin-top: 14px; }
  .download h2 br { display: none; }
  .download h2 span { white-space: nowrap; }
  .download-actions { padding-top: 16px; }
  .session-head { align-items: flex-start; flex-wrap: wrap; }
  .info nav a { padding-inline: 8px; }
}
@media (max-width: 370px) {
  .wordmark { font-size: 16px; }
  .top-actions { gap: 6px; }
  .top-actions a { font-size: 12px; }
  .symbol { margin-right: 2px; }
  .hero-copy { padding-left: 16px; }
  .heading h1 { font-size: 33px; }
  .join-panel, .download, .card, .tariffs { padding: 16px; }
  .section-title h2 { font-size: 21px; }
  .pair { gap: 8px; }
}
