:root {
  --site-max: 1180px;
  --site-pad: clamp(16px, 4vw, 38px);
  --site-bg: #f7f8fa;
  --site-panel: #ffffff;
  --site-line: #d9e0e6;
  --site-ink: #111923;
  --site-muted: #637180;
  --site-soft: #f2f4f6;
  --site-accent: #0f8f8c;
  --site-shadow: 0 16px 42px rgba(17, 25, 35, .08);
}

html, body { max-width: 100%; overflow-x: hidden; }
body.valve-site {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.valve-site.portal-page { --site-max: 1240px; }
body.valve-site.commander-page { --site-max: 1280px; }
body.valve-site.register-page,
body.valve-site.marketing-page { --site-max: 1180px; }

.valve-site .shell { overflow-x: hidden; }
.valve-site .site-header,
.valve-site header.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--site-line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  padding: 0;
}
.valve-site .site-topbar {
  width: min(var(--site-max), 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px var(--site-pad);
}
.valve-site main,
.valve-site .site-main {
  width: min(var(--site-max), 100%);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--site-pad);
  padding-left: var(--site-pad);
}
.valve-site .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--site-ink);
  text-decoration: none;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.valve-site .brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.valve-site nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.valve-site .button,
.valve-site button,
.valve-site select {
  min-height: 40px;
  border: 1px solid var(--site-line);
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  color: var(--site-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}
.valve-site .button,
.valve-site button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.valve-site .button:hover,
.valve-site button:hover,
.valve-site select:hover {
  border-color: #aebbc6;
  background: var(--site-soft);
  color: var(--site-ink);
}
.valve-site .primary,
.valve-site .button.primary,
.valve-site button.primary,
.valve-site .auth-switch button.active {
  border-color: var(--site-ink);
  background: var(--site-ink);
  color: #fff;
}
.valve-site .primary:hover,
.valve-site .button.primary:hover,
.valve-site button.primary:hover,
.valve-site .primary:active,
.valve-site .button.primary:active,
.valve-site button.primary:active,
.valve-site .primary:focus-visible,
.valve-site .button.primary:focus-visible,
.valve-site button.primary:focus-visible {
  border-color: var(--site-ink);
  background: #202b36;
  color: #fff;
}
.valve-site h1 {
  border-left: 0;
  padding-left: 0;
  letter-spacing: 0;
}
.valve-site h2 {
  color: var(--site-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.valve-site .panel,
.valve-site .card,
.valve-site .stat,
.valve-site .status,
.valve-site .team-session,
.valve-site .map,
.valve-site .qrbox {
  border-color: var(--site-line);
  border-radius: 8px;
}
.valve-site .panel::before,
.valve-site .card::before { display: none; }
.valve-site .panel,
.valve-site .card { box-shadow: var(--site-shadow); }
.valve-site input,
.valve-site textarea {
  border-radius: 8px;
  color: var(--site-ink);
  background: #fff;
}
.valve-site input:focus,
.valve-site textarea:focus,
.valve-site select:focus {
  outline: 2px solid rgba(15, 143, 140, .18);
  border-color: var(--site-accent);
}

@media (max-width: 880px) {
  .valve-site .site-topbar { align-items: flex-start; flex-direction: column; }
  .valve-site nav { justify-content: flex-start; }
}
@media (max-width: 540px) {
  :root { --site-pad: 20px; }
  .valve-site .site-topbar { padding-top: 14px; padding-bottom: 14px; }
  .valve-site .brand img { width: 32px; height: 32px; }
  .valve-site .button,
  .valve-site button,
  .valve-site select { min-height: 38px; padding: 9px 12px; }
}
