@font-face {
  font-family: "Geist Sans";
  src: url("/assets/geist-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/geist-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #090a0c;
  --sidebar: #0c0d0f;
  --surface: #121316;
  --surface-2: #17181c;
  --surface-3: #1e2025;
  --line: #272a30;
  --line-strong: #383c45;
  --text: #f2f3f5;
  --text-soft: #c7c9ce;
  --muted: #8d9098;
  --faint: #60636b;
  --accent: #969aa3;
  --accent-soft: #19212c;
  --success: #83ad90;
  --danger: #d48e96;
  --warning: #cfb17f;
  --pastel-accent: #405a7d;
  --accent-readable: #7895bb;
  --recommended: #aed6b8;
  --pastel-blue: var(--pastel-accent);
  --pastel-sage: var(--pastel-accent);
  --pastel-peach: var(--pastel-accent);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button { appearance: none; }
.hidden { display: none !important; }

.wrap { width: 100%; min-height: 100vh; }
.site-header {
  width: 480px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding: 68px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.brand-mark {
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
  background: transparent;
  mix-blend-mode: screen;
}
.brand-copy strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.025em;
}
.brand-copy span {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 11px;
}

.login-shell {
  width: 480px;
  max-width: calc(100% - 40px);
  margin: 0 auto 64px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #151619;
}
.login-intro { display: none; }
.login-form { padding: 36px; }
.login-form h2 {
  margin: 0 0 6px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.02em;
}
.subtitle { margin: 0; color: var(--muted); font-size: 12px; }
.login-form > .subtitle { margin-bottom: 26px; font-size: 13px; }
.discord-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
}
.discord-btn svg { width: 17px; height: 17px; fill: currentColor; }
.legacy-login { margin-top: 18px; padding-top: 8px; }
.legacy-login summary {
  width: max-content;
  color: var(--faint);
  font-size: 11px;
  cursor: pointer;
  user-select: none;
}
.legacy-login[open] summary { color: var(--muted); }
.legacy-login .row { margin-top: 12px; }

.workspace {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
}
.wrap.wide .site-header { display: none; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
}
.sidebar-brand {
  padding: 4px 6px 24px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
}
.sidebar-brand-link { width: 100%; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.sidebar-brand-link .brand-mark { transition: opacity .12s ease; }
.sidebar-brand-link:hover .brand-mark { opacity: .82; }
.sidebar-brand-link:focus-visible { outline: 2px solid var(--accent-readable); outline-offset: -2px; border-radius: 10px; }
.sidebar .brand-mark { width: 64px; height: 64px; border-radius: 10px; }
.sidebar .brand-copy strong { font-size: 15px; }
.sidebar .brand-copy span { margin-top: 3px; font-size: 11px; }
.nav-label {
  margin: 0;
  padding: 0 9px 7px;
  color: #5f6269;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tabs { display: flex; flex-direction: column; gap: 3px; }
.tab {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.tab:hover { background: var(--surface); color: var(--text-soft); }
.tab.active { background: var(--accent-soft); color: var(--accent-readable); font-weight: 500; }
.tab:focus:not(:focus-visible),
.btn:focus:not(:focus-visible),
.custom-select-trigger:focus:not(:focus-visible),
summary:focus:not(:focus-visible) { outline: none; }
.tab:focus-visible { outline: none; background: var(--accent-soft); color: var(--text); }
.btn:focus-visible,
.custom-select-trigger:focus-visible,
summary:focus-visible { outline: none; filter: brightness(1.14); }
.sidebar-foot { margin: auto 0 0; padding: 16px 9px 0; color: #484b51; font-size: 10px; }

.main-panel { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(12, 13, 15, .96);
}
.topbar h1 { margin: 0 0 2px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.topbar-copy { margin: 0; color: var(--faint); font-size: 12px; }
.account-block { display: flex; align-items: center; gap: 7px; }
.account-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.pill {
  padding: 3px 7px;
  border: 0;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
}
.pill.admin { background: #131c29; color: #8ea7c8; }

.content { width: 100%; max-width: 1160px; margin: 0 auto; padding: 44px 38px 78px; }
.card { overflow: visible; border: 0; border-radius: 0; background: transparent; }
.login-shell.card { overflow: hidden; border-radius: 10px; background: #151619; }
.section-head { padding: 0 0 28px; text-align: center; }
.section-head h2 { margin: 0 0 5px; font-size: 20px; font-weight: 650; }
.section-head .subtitle { font-size: 14px; }
.section-body { padding: 0; }

.btn {
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 5px;
  background: #e5dfe3;
  color: #151619;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { background: #f3eef1; }
.btn:disabled { opacity: .35; cursor: default; }
.btn.discord-btn {
  min-height: 44px;
  border-radius: 999px;
  background: #5865f2;
  color: #fff;
  font-size: 12px;
}
.btn.discord-btn:hover { background: #4752c4; }
.btn-ghost { background: var(--surface-3); color: var(--text-soft); }
.btn-ghost:hover { background: #292b30; color: var(--text); }
.btn-danger { background: #29191d; color: var(--danger); }
.btn-danger:hover { background: #382126; color: #e7a2a9; }
.btn-pastel-blue, .btn-pastel-sage, .btn-pastel-peach { background: var(--pastel-accent); color: #f3f6fa; }
.btn-pastel-blue:hover, .btn-pastel-sage:hover, .btn-pastel-peach:hover { background: #4d6b91; }

.row { display: flex; align-items: stretch; gap: 8px; }
input {
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  outline: none;
  background: #15161a;
  color: var(--text);
  font-size: 13px;
}
input:focus { background: #1e2025; }
input::placeholder { color: #60636b; }
.row input { flex: 1; }
.field-label { display: block; margin-bottom: 7px; color: var(--text-soft); font-size: 11px; font-weight: 500; }
.field-help { margin: -7px 0 0; color: var(--faint); font-size: 11px; }
.number-stepper { width: 156px; display: grid; grid-template-columns: 40px minmax(52px, 1fr) 40px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; background: #101114; }
.number-stepper input { width: 100%; min-height: 40px; padding: 7px 4px; border-radius: 0; background: #101114; color: var(--text); text-align: center; font-weight: 650; appearance: textfield; }
.number-stepper input::-webkit-inner-spin-button, .number-stepper input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.step-btn { min-width: 0; border: 0; background: #1b1e24; color: var(--accent-readable); font-size: 18px; line-height: 1; cursor: pointer; }
.step-btn:hover { background: var(--accent-soft); color: #a6bad4; }
.step-btn:first-child { border-right: 1px solid var(--line); }
.step-btn:last-child { border-left: 1px solid var(--line); }

.machine-toolbar {
  min-height: 48px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.machine-toolbar strong { display: block; color: var(--text); font-size: 14px; }
.machine-toolbar .subtitle { margin: 3px 0 0; }
.machine-capacity { padding: 7px 10px; display: inline-flex; align-items: baseline; gap: 4px; border-radius: 6px; background: var(--accent-soft); color: var(--muted); font-size: 11px; white-space: nowrap; }
.machine-capacity strong { color: var(--accent-readable); font-size: 14px; }
.machine-area {
  padding: 20px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 2px 0 rgba(64, 90, 125, .78);
}
.account-key { margin-bottom: 12px; padding: 15px 16px; display: grid; grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); align-items: center; gap: 22px; border-radius: 8px; background: var(--surface-2); }
.account-key-heading { min-width: 0; }
.account-key-label { display: block; margin-bottom: 3px; color: var(--text); font-size: 13px; font-weight: 600; }
.account-key-help { display: block; color: var(--muted); font-size: 11px; }
.account-key-value { min-width: 0; padding: 5px 5px 5px 12px; display: flex; align-items: center; gap: 10px; border-radius: 6px; background: #0d0f12; }
.account-key-value code { min-width: 0; flex: 1; overflow: hidden; color: #b8c8dc; font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-key-value .btn { flex: 0 0 auto; }
.machine-list { display: grid; gap: 6px; }
.machine-row {
  min-height: 78px;
  padding: 15px 17px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px auto;
  align-items: center;
  gap: 22px;
  border-radius: 8px;
  background: var(--surface-2);
}
.machine-row:hover { background: var(--surface-3); }
.machine-identity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.machine-device-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent-readable); }
.machine-device-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.machine-title { color: var(--text); font-size: 14px; font-weight: 600; }
.machine-meta { margin-top: 4px; color: var(--muted); font-size: 12px; }
.machine-last-used span { display: block; margin-bottom: 3px; color: var(--faint); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.machine-last-used strong { color: var(--text-soft); font-size: 12px; font-weight: 500; }
.machine-key {
  overflow: hidden;
  color: #a5a8af;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-dot { width: 6px; height: 6px; margin-right: 6px; display: inline-block; border-radius: 50%; background: var(--recommended); }
.empty-state { min-height: 116px; padding: 44px 22px; color: var(--muted); font-size: 13px; text-align: center; }
.empty-machines { min-height: 190px; padding: 28px 20px 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-machine-icon { width: 48px; height: 48px; margin-bottom: 14px; display: grid; place-items: center; border-radius: 14px; background: #131c29; color: #7895bb; }
.empty-machine-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.empty-machines h3 { margin: 0 0 6px; font-size: 16px; font-weight: 650; }
.empty-machines p { max-width: 360px; margin: 0; color: var(--muted); font-size: 13px; }
.action-row {
  margin-top: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.claim-panel { border-radius: 12px; background: var(--surface); box-shadow: inset 0 2px 0 rgba(64, 90, 125, .78); }
.action-row h2 { margin: 0 0 5px; font-size: 15px; font-weight: 600; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.info-item { min-height: 78px; padding: 15px; border-radius: 6px; background: var(--surface-2); }
.info-item .label { color: var(--faint); font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.info-item .value { margin-top: 7px; color: var(--text-soft); font-size: 12px; word-break: break-word; }

.version-picker { margin-bottom: 14px; }
.custom-select { position: relative; }
.custom-select-trigger {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.custom-select-trigger:hover, .custom-select.open .custom-select-trigger { background: var(--surface-3); }
.custom-select-arrow { color: var(--faint); font-size: 9px; }
.custom-select.open .custom-select-arrow { transform: rotate(180deg); }
.custom-select-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  max-height: 230px;
  overflow-y: auto;
  display: none;
  padding: 4px;
  border: 0;
  border-radius: 7px;
  background: var(--surface-2);
}
.custom-select.open .custom-select-menu { display: block; }
.custom-select-option {
  width: 100%;
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.custom-select-option:hover, .custom-select-option.active { background: var(--surface-3); }
.custom-select-option-name { font-size: 12px; font-weight: 600; }
.custom-select-option-meta, .custom-select-empty { color: var(--faint); font-size: 10px; }
.custom-select-empty { padding: 12px; text-align: center; }

.downloads { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.downloads.show { display: grid; }
.downloads .divider { display: none; }
.dl-btn {
  min-height: 78px;
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text-soft);
  text-decoration: none;
  cursor: pointer;
}
.dl-btn:hover { background: var(--surface-3); }
.dl-btn.recommended {
  background: #1b2920;
  box-shadow: inset 0 2px 0 rgba(183, 216, 192, .75);
}
.dl-btn.recommended .dl-icon, .dl-btn.recommended .dl-name { color: var(--recommended); }
.dl-btn.recommended .badge { background: #263b2d; color: #c9e8d1; }
.dl-btn.disabled { opacity: .32; pointer-events: none; }
.dl-label { display: flex; align-items: center; gap: 10px; }
.dl-icon { width: 20px; height: 20px; display: grid; place-items: center; color: #d8d0d5; }
.dl-icon svg { width: 19px; height: 19px; display: block; fill: currentColor; }
.dl-name { color: var(--text); font-size: 12px; font-weight: 600; }
.dl-desc { color: var(--faint); font-size: 10px; }
.badge { padding: 2px 5px; border-radius: 4px; background: #222a3b; color: var(--accent-readable); font-size: 9px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.version-tag { margin: 12px 0 0; color: var(--faint); font-size: 10px; text-align: center; }

.table-wrap { overflow: auto; border: 0; border-radius: 0; background: transparent; }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 13px; }
th { padding: 12px 10px 9px; border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
td { padding: 13px 10px; border: 0; color: var(--text-soft); text-align: center; }
tbody tr:nth-child(odd) td { background: #15161a; }
tr:hover td { background: var(--surface-3); }
th.left, td.left { text-align: left; }
.license-key { font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 12px; }
.owner-cell { min-width: 165px; display: flex; flex-direction: column; gap: 3px; }
.owner-cell strong { color: var(--text); font-size: 13px; font-weight: 600; }
.owner-cell span { color: var(--muted); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 10px; }
.policy-toolbar { margin-bottom: 16px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 10px; background: var(--surface); }
.access-grid { margin-bottom: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.access-grid.invite-only { display: block; margin-bottom: 0; }
.access-panel { padding: 24px; display: grid; grid-template-columns: 1fr; gap: 13px; border-radius: 12px; background: var(--surface); }
.access-panel-user, .access-panel-invite { box-shadow: inset 0 2px 0 rgba(64, 90, 125, .8); }
.access-panel h3 { margin: 0; font-size: 17px; font-weight: 650; }
.access-panel .subtitle { margin: -5px 0 4px; }
.access-panel .field-label { margin: 3px 0 -4px; }
.access-panel .btn { justify-self: start; margin-top: 3px; }
.access-grid.invite-only .access-panel {
  padding: 0 0 20px;
  grid-template-columns: minmax(260px, 1fr) 156px auto;
  grid-template-rows: auto auto auto auto auto;
  gap: 5px 12px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.access-grid.invite-only .access-panel h3 { grid-column: 1 / -1; margin-bottom: 0; font-size: 15px; }
.access-grid.invite-only .access-panel > .subtitle { grid-column: 1 / -1; margin: 0 0 8px; }
.access-grid.invite-only label[for="inviteDiscordID"] { grid-column: 1; grid-row: 3; }
.access-grid.invite-only #inviteDiscordID { grid-column: 1; grid-row: 4; }
.access-grid.invite-only label[for="inviteSlots"] { grid-column: 2; grid-row: 3; }
.access-grid.invite-only .number-stepper { grid-column: 2; grid-row: 4; }
.access-grid.invite-only .field-help { display: none; }
.access-grid.invite-only .access-panel > .btn { min-height: 42px; grid-column: 3; grid-row: 4; align-self: stretch; justify-self: stretch; margin: 0; white-space: nowrap; }
.access-grid.invite-only .invite-result { grid-column: 1 / -1; grid-row: 5; }
.invite-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; margin-top: 4px; }
.invite-result .btn { margin: 0; }
.invite-history-head { position: relative; padding-right: 170px; }
.invite-history-head .accent-dot { background: #58759a; }
.invite-summary { position: absolute; top: 1px; right: 0; color: var(--muted); font-size: 11px; }
.invite-table { min-width: 980px; }
.invite-state { display: inline-flex; align-items: center; gap: 7px; color: var(--text-soft); font-size: 12px; font-weight: 600; }
.invite-state i { width: 7px; height: 7px; display: block; border-radius: 50%; background: #60636b; }
.invite-state.active i { background: #86c49a; box-shadow: 0 0 0 3px rgba(134, 196, 154, .09); }
.invite-state.used i { background: #7999c2; }
.invite-state.expired, .invite-state.revoked, .invite-state.invalid { color: var(--muted); }
.invite-validity { display: flex; flex-direction: column; gap: 3px; color: var(--text-soft); font-size: 11px; }
.invite-validity small { color: var(--muted); font-size: 10px; }
.invite-latest { color: var(--muted); font-size: 11px; }
.invite-latest.accepted { color: #9fc9aa; }
.invite-latest.denied { color: #d39a9f; }
.invite-actions { display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn.btn-danger.subtle { background: transparent; color: #ca8d92; }
.btn.btn-danger.subtle:hover { background: rgba(139, 63, 70, .16); }
.invite-attempt-row td { padding: 0 !important; background: #101115 !important; text-align: left; }
.invite-attempt-row:hover td { background: #101115 !important; }
.invite-attempt-list { padding: 8px 16px 15px; display: grid; gap: 1px; }
.invite-attempt { min-height: 54px; padding: 10px 12px; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 14px; background: #15161a; }
.invite-attempt:first-child { border-radius: 8px 8px 0 0; }
.invite-attempt:last-child { border-radius: 0 0 8px 8px; }
.attempt-outcome { color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.attempt-outcome.accepted { color: #9fc9aa; }
.attempt-outcome.denied { color: #d39a9f; }
.attempt-outcome.started { color: #90a9c8; }
.invite-attempt strong { display: block; color: var(--text-soft); font-size: 11px; font-weight: 600; }
.invite-attempt p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.invite-attempt time { color: var(--faint); font-size: 10px; white-space: nowrap; }
.invite-attempt-empty, .invite-empty { padding: 22px; color: var(--muted); font-size: 12px; text-align: center; }
.invite-empty { display: flex; flex-direction: column; gap: 5px; }
.invite-empty strong { color: var(--text-soft); font-size: 13px; }
.management-block { margin-top: 18px; padding: 22px; border-radius: 12px; background: var(--surface); }
#tab-access .management-block { margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
#tab-access .management-block:last-of-type { border-bottom: 0; }
#tab-access .subsection-head { margin-bottom: 12px; text-align: left; }
#tab-access .subsection-head > div { justify-content: flex-start; }
#tab-access .subsection-head .subtitle { max-width: 720px; }
.subsection-head { margin: 0 0 18px; text-align: center; }
.subsection-head > div { display: flex; align-items: center; justify-content: center; gap: 8px; }
.subsection-head h3 { margin: 0; font-size: 16px; font-weight: 650; }
.subsection-head .subtitle { margin-top: 4px; }
.accent-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; }
.accent-sage, .accent-peach { background: var(--pastel-accent); }
.license-section { margin-top: 18px; }
.license-create-row { width: min(100%, 560px); margin: 0 auto 16px; }
.slot-editor { min-width: 250px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.number-stepper.compact { width: 126px; grid-template-columns: 34px 58px 34px; border-radius: 7px; }
.number-stepper.compact input { height: 34px; min-height: 34px; }
.slot-editor .btn { min-width: 102px; white-space: nowrap; }
.usage-count { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #1b1e24; color: var(--text-soft); font-size: 11px; }
.cookie-row {
  min-height: 76px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px auto;
  align-items: center;
  gap: 18px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: inset 0 2px 0 rgba(64, 90, 125, .78);
}
.cookie-link-line { display: flex; align-items: center; gap: 9px; }
.cookie-link { overflow: hidden; color: var(--accent-readable); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.cookie-date { color: var(--muted); font-size: 12px; text-align: right; }
.badge-preview { background: #131c29; color: #8ea7c8; }
.hint { color: var(--faint); font-size: 10px; }
.policy-box { width: 20px; height: 20px; display: inline-block; position: relative; border: 0; border-radius: 6px; background: #292b31; box-shadow: inset 0 0 0 1px #353840; cursor: pointer; transition: background .12s ease, transform .12s ease; }
.policy-box:hover { transform: scale(1.06); background: #343740; }
.policy-box.on[data-key="download_enabled"] { background: var(--pastel-sage); }
.policy-box.on[data-key="downgrade_enabled"] { background: var(--pastel-blue); }
.policy-box.on[data-key="allow_stay"] { background: var(--pastel-peach); }
.policy-box.on[data-key="force_update"] { background: var(--pastel-accent); }
.policy-box.on::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 10px; border: solid #eef3f8; border-width: 0 2px 2px 0; transform: translate(-50%, -58%) rotate(45deg); transform-origin: center; }
.policy-box.dirty { box-shadow: 0 0 0 3px rgba(64, 90, 125, .3); }
.policy-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--faint); }
.policy-dot.saved { background: var(--accent-readable); }
.policy-dot.pending, .policy-dot.saving { background: var(--pastel-accent); }
.policy-dot.error { background: var(--danger); }
.policy-toast { display: none; margin-bottom: 12px; padding: 8px 10px; border: 0; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: 11px; }
.policy-toast.show { display: block; }
.policy-toast.success { background: #18231b; color: var(--success); }
.policy-toast.error { background: #29191d; color: var(--danger); }
.policy-toast.pending { background: #282116; color: var(--warning); }
.badge-live { background: #24392b; color: #c6e7cf; }
.live-check { color: var(--accent-readable); font-size: 17px; font-weight: 700; }

body.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 1000; padding: 24px; display: grid; place-items: center; background: rgba(5, 6, 7, .72); backdrop-filter: blur(5px); }
.custom-modal { width: min(100%, 410px); padding: 28px; border-radius: 14px; background: #141519; box-shadow: 0 22px 70px rgba(0, 0, 0, .48), inset 0 2px 0 rgba(64, 90, 125, .82); text-align: center; }
.modal-icon { width: 42px; height: 42px; margin: 0 auto 15px; display: grid; place-items: center; border-radius: 12px; background: #131c29; color: #8ea7c8; font-size: 18px; font-weight: 700; }
.custom-modal h2 { margin: 0 0 8px; font-size: 19px; }
.custom-modal p { margin: 0 auto; max-width: 330px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.modal-actions { margin-top: 24px; display: flex; justify-content: center; gap: 9px; }
.modal-actions .btn { min-width: 112px; }
.copy-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1100; min-height: 40px; padding: 9px 14px 9px 10px; display: flex; align-items: center; gap: 9px; border: 1px solid #33463a; border-radius: 8px; background: #17201a; color: #c7dfcd; box-shadow: 0 14px 38px rgba(0, 0, 0, .42); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .16s ease, transform .16s ease; }
.copy-toast.show { opacity: 1; transform: translate(-50%, 0); }
.copy-toast.error { border-color: #573139; background: #24171a; color: #e1a6ad; }
.copy-toast-icon { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #294032; color: #bfe2c8; font-size: 12px; font-weight: 700; }
.copy-toast.error .copy-toast-icon { background: #4a252c; color: #edb0b7; }
.btn.copy-confirmed { background: #294032; color: #c8e5cf; }

.status { min-height: 16px; margin: 10px 0 0; color: var(--success); font-size: 11px; }
.status.error { color: var(--danger); }
.login-form .status { text-align: center; }
.divider { display: none; }
.eyebrow, .security-note { display: none; }

.guide-start {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.guide-start-item {
  min-height: 104px;
  padding: 16px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 2px 0 rgba(64, 90, 125, .7);
}
.guide-start-item strong { display: block; margin-bottom: 7px; color: var(--text); font-size: 13px; }
.guide-start-item span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.guide-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: start; }
.guide-module-list { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 3px; }
.guide-module-btn {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.guide-module-btn:hover { background: var(--surface); color: var(--text-soft); }
.guide-module-btn.active { background: var(--accent-soft); color: var(--accent-readable); }
.guide-module-status { color: var(--faint); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.guide-module-btn.unavailable .guide-module-status { color: var(--danger); }
.guide-detail { min-width: 0; padding: 22px; border-radius: 9px; background: var(--surface); }
.guide-title-row { margin-bottom: 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.guide-title-row h3 { margin: 0 0 5px; font-size: 19px; }
.guide-title-row p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.guide-status { padding: 4px 7px; border-radius: 4px; background: #131c29; color: #8ea7c8; font-size: 9px; letter-spacing: .06em; white-space: nowrap; text-transform: uppercase; }
.guide-status.unavailable { background: #29191d; color: var(--danger); }
.guide-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.guide-block h4 { margin: 0 0 10px; color: var(--muted); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.guide-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.guide-mode { padding: 12px; border-radius: 6px; background: var(--surface-2); }
.guide-mode code { color: #b8c8dc; font-family: "Geist Mono", monospace; font-size: 11px; }
.guide-mode p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.guide-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.guide-column-box { padding: 13px; border-radius: 6px; background: var(--surface-2); }
.guide-column-box strong { display: block; margin-bottom: 8px; color: var(--text-soft); font-size: 12px; }
.guide-column-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.guide-column-tags code { padding: 4px 6px; border-radius: 3px; background: #131c29; color: #aebed1; font-family: "Geist Mono", monospace; font-size: 10px; }
.guide-notes { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.guide-notes li + li { margin-top: 4px; }
.guide-code-head { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.guide-code-actions { display: flex; gap: 6px; }
.guide-code { max-height: 280px; overflow: auto; margin: 0; padding: 14px; border-radius: 6px; background: #090a0d; color: #b7c5d6; font-family: "Geist Mono", monospace; font-size: 10px; line-height: 1.65; white-space: pre; }
.guide-switcher { width: max-content; margin: 0 auto 22px; padding: 3px; display: flex; gap: 2px; border-radius: 7px; background: var(--surface); }
.guide-switch { min-height: 32px; padding: 6px 12px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.guide-switch:hover { color: var(--text-soft); }
.guide-switch.active { background: var(--accent-soft); color: var(--accent-readable); }
.settings-guide-intro { margin-bottom: 18px; padding: 20px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-radius: 9px; background: var(--surface); box-shadow: inset 0 2px 0 rgba(64, 90, 125, .7); }
.settings-guide-kicker { color: var(--accent-readable); font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: .08em; }
.settings-guide-intro h3 { margin: 5px 0 6px; font-size: 19px; }
.settings-guide-intro p { max-width: 720px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.settings-version-badge { padding: 5px 8px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-readable); font-size: 10px; white-space: nowrap; }
.settings-guide-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; align-items: start; }
.settings-category-list { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 3px; }
.settings-category-button { width: 100%; min-height: 46px; padding: 8px 11px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.settings-category-button:hover { background: var(--surface); color: var(--text-soft); }
.settings-category-button.active { background: var(--accent-soft); color: var(--accent-readable); }
.settings-category-button small { color: var(--faint); font-family: "Geist Mono", monospace; font-size: 8px; text-align: right; }
.settings-category-detail { min-width: 0; padding: 20px; border-radius: 9px; background: var(--surface); }
.settings-category-heading { margin-bottom: 15px; }
.settings-category-heading > span { color: var(--accent-readable); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.settings-category-heading h3 { margin: 4px 0 4px; font-size: 18px; }
.settings-category-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.settings-rows { display: grid; }
.settings-row { min-width: 0; padding: 13px 0; display: grid; grid-template-columns: minmax(0, 1fr) 120px; align-items: center; gap: 18px; border-top: 1px solid var(--line); }
.settings-row code { color: #b8c8dc; font-family: "Geist Mono", monospace; font-size: 11px; }
.settings-row p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.settings-row-meta { text-align: right; }
.settings-row-meta span { display: block; margin-bottom: 4px; color: var(--faint); font-size: 9px; text-transform: uppercase; }
.settings-row-meta strong { color: var(--text-soft); font-family: "Geist Mono", monospace; font-size: 10px; font-weight: 500; }
.settings-example { margin-top: 18px; padding: 20px; border-radius: 9px; background: var(--surface); }
.settings-example .guide-code-head h4 { margin: 0 0 3px; color: var(--text); font-size: 13px; letter-spacing: 0; text-transform: none; }
.settings-example .guide-code-head p { margin: 0; color: var(--faint); font-size: 10px; }
.settings-example .guide-code { max-height: 420px; }
.settings-migration { margin: 12px 0 0; padding: 10px 12px; border-radius: 6px; background: #151a22; color: var(--muted); font-size: 11px; line-height: 1.5; }

.events-hero {
  min-height: 390px;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 0%, #151f2f 0%, #101216 64%);
  box-shadow: inset 0 2px 0 rgba(64, 90, 125, .75);
  text-align: center;
}
.events-inner { max-width: 620px; }
.events-kicker { margin: 0 0 10px; color: var(--accent-readable); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.events-inner h3 { margin: 0 0 10px; font-size: 26px; }
.events-inner > p:not(.events-kicker) { margin: 0 auto 20px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.events-features { margin-bottom: 22px; display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.events-feature { padding: 5px 9px; border-radius: 999px; background: #18202c; color: #9db0c8; font-size: 11px; }
.events-open { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.events-open svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }

@media (max-width: 900px) {
  .workspace { grid-template-columns: 176px minmax(0, 1fr); }
  .content { padding: 26px 24px 56px; }
  .downloads, .downloads.show { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access-grid { grid-template-columns: 1fr; }
  .guide-start { grid-template-columns: 1fr; }
  .guide-start-item { min-height: 0; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-module-list { position: static; flex-direction: row; overflow-x: auto; }
  .guide-module-btn { width: auto; min-width: max-content; }
  .settings-guide-layout { grid-template-columns: 1fr; }
  .settings-category-list { position: static; flex-direction: row; overflow-x: auto; }
  .settings-category-button { width: auto; min-width: max-content; }
}

@media (max-width: 680px) {
  .site-header { padding-top: 40px; }
  .brand-mark { width: 76px; height: 76px; }
  .login-form { padding: 23px; }
  .workspace { display: block; }
  .sidebar { position: static; height: auto; padding: 10px; border: 0; }
  .sidebar-brand, .nav-label, .sidebar-foot { display: none; }
  .tabs { flex-direction: row; overflow-x: auto; }
  .tab { width: auto; white-space: nowrap; }
  .topbar { position: static; min-height: 58px; padding: 10px 14px; }
  .topbar-copy, #userPill { display: none; }
  .content { padding: 16px 12px 42px; }
  .section-head, .section-body { padding: 15px; }
  .machine-row { grid-template-columns: 1fr; align-items: start; }
  .account-key { grid-template-columns: 1fr; gap: 10px; }
  .account-key-value { padding-left: 10px; }
  .machine-row .btn { justify-self: start; }
  .machine-key { white-space: normal; word-break: break-all; }
  .info-grid { grid-template-columns: 1fr; }
  .action-row { align-items: stretch; flex-direction: column; }
  .row { flex-direction: column; }
  .access-grid.invite-only .access-panel { display: grid; grid-template-columns: 1fr; grid-template-rows: auto; gap: 9px; }
  .access-grid.invite-only .access-panel > * { grid-column: 1 !important; grid-row: auto !important; }
  .access-grid.invite-only .access-panel > .btn { justify-self: start; }
  .invite-history-head { padding-right: 0; }
  .invite-summary { position: static; display: block; margin-top: 8px; }
  .invite-attempt { grid-template-columns: 1fr; gap: 5px; }
  .invite-attempt time { white-space: normal; }
  .machine-area, .claim-panel, .management-block, .access-panel { padding: 16px; }
  .cookie-row { grid-template-columns: 1fr; gap: 10px; }
  .cookie-date { text-align: left; }
  .guide-detail { padding: 17px; }
  .guide-modes, .guide-columns { grid-template-columns: 1fr; }
  .guide-title-row { flex-direction: column; }
  .guide-code-head { align-items: flex-start; flex-direction: column; }
  .settings-guide-intro { flex-direction: column; }
  .settings-category-detail, .settings-example { padding: 16px; }
  .settings-row { grid-template-columns: 1fr; gap: 8px; }
  .settings-row-meta { text-align: left; }
  .events-hero { min-height: 340px; padding: 28px 19px; }
  .events-inner h3 { font-size: 22px; }
}
