:root {
  --ink: #151426;
  --muted: #727186;
  --line: #e9e7f0;
  --surface: #ffffff;
  --bg: #f1f2f6;
  --purple: #536178;
  --purple-dark: #333e52;
  --sidebar: #111929;
  --danger: #d73d59;
  --success: #16865b;
  --shadow: 0 12px 35px rgba(30, 24, 67, .07);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, #182236, #0d1422);
  border-radius: 13px;
  color: #fff;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 26px);
  left: 16px;
  padding: 25px 16px 18px;
  position: fixed;
  top: 13px;
  width: 250px;
  z-index: 20;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  margin: 0 8px 34px;
}

.brand>span:last-child {
  display: flex;
  flex-direction: column;
}

.brand strong {
  font: 700 17px "Space Grotesk";
}

.brand small {
  color: #9d9ab8;
  font-size: 11px;
  margin-top: 2px;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, #8b72ff, #5e3bda);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(108, 76, 241, .3);
  display: inline-flex;
  font: 700 13px "Space Grotesk";
  height: 40px;
  justify-content: center;
  letter-spacing: -.5px;
  width: 40px;
}

.brand-mark.small {
  border-radius: 8px;
  height: 30px;
  width: 30px;
}

.brand-mark.large {
  border-radius: 18px;
  font-size: 24px;
  height: 72px;
  width: 72px;
}

.brand-logo {
  display: block;
  height: auto;
  max-width: 100%;
  width: 190px;
}

.nav {
  flex: 1;
  overflow-y: auto;
}

.nav-label {
  color: #6f6c89;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  margin: 25px 12px 8px;
  text-transform: uppercase;
}

.nav-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #b8b6ca;
  display: flex;
  font: inherit;
  gap: 11px;
  margin: 3px 0;
  min-height: 42px;
  padding: 10px 12px;
  text-align: left;
  transition: .2s;
  width: 100%;
}

.nav-item:hover {
  background: rgba(255, 255, 255, .055);
  color: #fff;
}

.nav-item.tool-no-link {
  cursor: default;
  opacity: .55;
}

.nav-item.tool-no-link:hover {
  background: transparent;
  color: #b8b6ca;
}

.nav-item.active {
  background: rgba(255, 255, 255, .13);
  border-left: 3px solid #e0b94f;
  color: #fff;
  padding-left: 9px;
}

.nav-icon {
  color: #8f8ba8;
  font-size: 20px;
  line-height: 1;
  width: 23px;
}

.studio-link small {
  background: rgba(255, 255, 255, .08);
  border-radius: 10px;
  font-size: 10px;
  margin-left: auto;
  padding: 2px 7px;
}

.studio-number {
  align-items: center;
  background: #2b2942;
  border-radius: 7px;
  display: flex;
  font-size: 10px;
  height: 23px;
  justify-content: center;
  width: 23px;
}

.active .studio-number {
  background: #d4ae4f;
  color: #111929;
}

.nav-empty {
  color: #706d87;
  display: block;
  font-size: 12px;
  padding: 8px 12px;
}

.sidebar-footer {
  color: #b4b1c6;
  padding: 17px 7px 0;
  text-align: left;
}

.footer-logo {
  align-items: center;
  display: flex;
  font-size: 12px;
  font-weight: 600;
  gap: 9px;
}

.screen-footer {
  align-items: center;
  bottom: 16px;
  display: flex;
  position: fixed;
  right: 16px;
  z-index: 5;
}

.version {
  color: #a8adba;
  display: block;
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
}

.footer-emblem {
  display: block;
  height: 50px;
  object-fit: contain;
  width: 50px;
}

.main {
  margin-left: 286px;
  min-height: 100vh;
}

.topbar {
  align-items: center;
  background: transparent;
  display: flex;
  height: 88px;
  justify-content: space-between;
  padding: 0 36px;
  position: relative;
  z-index: 10;
}

.topbar h1 {
  font-size: 20px;
  margin: 1px 0 0;
}

.eyebrow {
  color: var(--purple);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin: 0 0 3px;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #a995ff;
}

.user-menu {
  align-items: center;
  display: flex;
  gap: 10px;
  position: relative;
}

.profile-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 10px;
  padding: 5px;
  text-align: left;
  transition: .2s;
}

.profile-link:hover {
  background: rgba(255, 255, 255, .7);
}

.profile-link:focus-visible {
  outline: 2px solid rgba(83, 97, 120, .45);
  outline-offset: 2px;
}

.user-caret {
  border-bottom: 1.6px solid #8a8798;
  border-right: 1.6px solid #8a8798;
  display: block;
  height: 6px;
  margin: -3px 6px 0 -3px;
  transform: rotate(45deg);
  transition: transform .2s;
  width: 6px;
}

.profile-link[aria-expanded="true"] {
  background: rgba(255, 255, 255, .9);
}

.profile-link[aria-expanded="true"] .user-caret {
  transform: rotate(225deg);
  margin: 3px 6px 0 -3px;
}

.user-dropdown {
  background: #fff;
  border: 1px solid #eceaf3;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(28, 24, 51, .16);
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 264px;
  z-index: 40;
}

.user-dropdown[hidden] {
  display: none;
}

.user-dropdown-head {
  align-items: center;
  border-bottom: 1px solid #f1eff7;
  display: flex;
  gap: 11px;
  margin-bottom: 7px;
  padding: 10px 10px 13px;
}

.avatar.large {
  flex: 0 0 auto;
  font-size: 17px;
  height: 46px;
  width: 46px;
}

.user-dropdown-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.user-dropdown-identity strong {
  font-size: 14px;
}

.user-dropdown-identity small {
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-identity em {
  color: var(--purple);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.user-dropdown form {
  margin: 0;
}

.user-dropdown-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 13px;
  gap: 10px;
  padding: 10px 11px;
  text-align: left;
  transition: .18s;
  width: 100%;
}

.user-dropdown-item:hover {
  background: #f4f2fb;
  color: var(--purple);
}

.user-dropdown-item:focus-visible {
  outline: 2px solid rgba(108, 76, 241, .45);
  outline-offset: -2px;
}

.avatar {
  align-items: center;
  background: #eeeaff;
  border-radius: 50%;
  color: var(--purple);
  display: inline-flex;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.avatar {
  overflow: hidden;
}

.avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.user-copy {
  display: flex;
  flex-direction: column;
  margin-right: 9px;
}

.user-copy strong {
  font-size: 13px;
}

.user-copy small {
  color: var(--muted);
  font-size: 11px;
}

.content {
  margin: 0 auto;
  max-width: 1500px;
  padding: 4px 36px 108px;
}

.page-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 35px;
}

.page-heading h2 {
  font-size: 28px;
  letter-spacing: -.7px;
  margin: 0 0 5px;
}

.page-heading p:last-child {
  color: var(--muted);
  margin: 0;
}

.stake-link {
  color: #52617a;
  text-decoration: underline;
  text-decoration-color: #b7bdc8;
  text-underline-offset: 3px;
}

.stake-link:hover {
  color: var(--ink);
}

.button {
  align-items: center;
  border: 0;
  border-radius: 9px;
  display: inline-flex;
  font-weight: 600;
  justify-content: center;
  min-height: 43px;
  padding: 0 18px;
  transition: .2s;
}

.button.primary {
  background: var(--purple);
  box-shadow: 0 7px 17px rgba(108, 76, 241, .2);
  color: #fff;
}

.button.primary:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
}

.button:disabled,
.button.loading {
  cursor: wait;
  opacity: .72;
  pointer-events: none;
  transform: none;
}

.button.secondary {
  background: #f0edff;
  color: var(--purple);
}

.button.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: #5f5c70;
}

.button.compact {
  min-height: 36px;
  padding: 0 13px;
}

.button.full {
  width: 100%;
}

.stats-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
}

.stat-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid #efedf4;
  border-radius: 15px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 15px;
  padding: 21px;
}

.stat-icon {
  align-items: center;
  border-radius: 12px;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.stat-icon.violet {
  background: #eee9ff;
  color: #6d4df2;
}

.stat-icon.blue {
  background: #e5f1ff;
  color: #3280d6;
}

.stat-icon.green {
  background: #e1f7ed;
  color: #16865b;
}

.stat-icon.orange {
  background: #fff0db;
  color: #c77815;
}

.stat-card div {
  display: flex;
  flex-direction: column;
}

.stat-card strong {
  font: 700 25px "Space Grotesk";
}

.stat-card div span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 1px;
}

.panel {
  background: var(--surface);
  border: 1px solid #eceaf2;
  border-radius: 15px;
  box-shadow: 0 5px 18px rgba(30, 34, 45, .05);
  overflow: hidden;
}

.panel-heading {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 20px 22px;
}

.panel-heading h3 {
  font-size: 16px;
  margin: 0 0 4px;
}

.panel-heading p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.listing-filter {
  align-items: center;
  display: flex;
  gap: 9px;
}

.listing-filter span {
  color: #777b87;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.listing-filter select {
  background: #fff;
  border: 1px solid #dddfe5;
  border-radius: 8px;
  color: #434957;
  font-size: 11px;
  height: 36px;
  min-width: 150px;
  outline: none;
  padding: 0 30px 0 10px;
}

.listing-filter select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(83, 97, 120, .1);
}

.listing-heading-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.filter-empty {
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th {
  color: #8b899b;
  font-size: 10px;
  letter-spacing: .7px;
  text-align: left;
  text-transform: uppercase;
}

th,
td {
  border-bottom: 1px solid #efedf4;
  padding: 15px 22px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td {
  color: #686678;
  font-size: 13px;
}

td strong {
  color: var(--ink);
}

.management-table {
  min-width: 940px;
}

.studios-table {
  min-width: 700px;
}

.users-table,
.roles-table {
  min-width: 900px;
}

.tools-table {
  min-width: 700px;
}

.management-table th {
  background: #fbfbfd;
  white-space: nowrap;
}

.management-table td {
  height: 64px;
}

.management-table tbody tr {
  transition: background .2s ease;
}

.management-table tbody tr:hover {
  background: #fbfafe;
}

.stage-links {
  display: flex;
  gap: 7px;
}

.stage-link {
  background: #f7efdf;
  border-radius: 7px;
  color: #9a6f27;
  font-size: 10px;
  font-weight: 700;
  padding: 7px 10px;
}

.stage-link:hover {
  background: #efe2c8;
}

.prod-table-link,
.prod-text-link {
  color: #a96f21;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.created-cell,
.created-cell time {
  color: #747b8e;
  font-size: 11px;
  white-space: nowrap;
}

.listing-actions {
  justify-content: flex-end;
}

.table-user {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.table-user>span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.table-user small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}

.table-permissions {
  margin-top: 0;
  max-width: 420px;
}

.badge {
  border-radius: 20px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 9px;
}

.badge.neutral {
  background: #f0eff5;
  color: #656273;
}

.badge.system {
  background: #ede9ff;
  color: var(--purple);
  vertical-align: 2px;
}

.badge.you {
  background: #e3f7ed;
  color: var(--success);
}

.actions {
  display: flex;
  gap: 14px;
}

.text-link {
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
}

.split-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(300px, .72fr) minmax(430px, 1.28fr);
}

.split-layout.wide-form {
  grid-template-columns: minmax(330px, .85fr) minmax(480px, 1.15fr);
}

.form-panel {
  position: sticky;
  top: 106px;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field>span,
fieldset legend {
  color: #464355;
  font-size: 12px;
  font-weight: 600;
}

.field>span em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
}

.field input,
.field select {
  background: #fbfafe;
  border: 1px solid #dddbe6;
  border-radius: 9px;
  color: var(--ink);
  height: 45px;
  outline: none;
  padding: 0 13px;
  transition: .2s;
  width: 100%;
}

.field input:focus,
.field select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(108, 76, 241, .1);
}

.field input::placeholder {
  color: #aaa7b7;
}

.password-control {
  display: block;
  position: relative;
}

.field .password-control input {
  padding-right: 48px;
}

.password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #8a8798;
  cursor: pointer;
  display: flex;
  height: 33px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 7px;
  top: 6px;
  transition: .2s;
  width: 33px;
}

.password-toggle:hover {
  background: #f0eef6;
  color: var(--ink);
}

.password-toggle:focus-visible {
  outline: 2px solid rgba(108, 76, 241, .45);
  outline-offset: 2px;
}

.eye-icon {
  border: 1.8px solid currentColor;
  border-radius: 75% 15%;
  display: block;
  height: 14px;
  position: relative;
  transform: rotate(45deg);
  width: 14px;
}

.eye-icon:after {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 5px;
  left: 3.5px;
  position: absolute;
  top: 3.5px;
  width: 5px;
}

.password-toggle.is-visible .eye-icon:before {
  background: currentColor;
  content: "";
  height: 20px;
  left: 6px;
  position: absolute;
  top: -4px;
  transform: rotate(90deg);
  width: 2px;
}

.file-field input {
  height: auto;
  padding: 10px;
}

.file-field input::file-selector-button {
  background: #eef0f4;
  border: 0;
  border-radius: 6px;
  color: #364158;
  cursor: pointer;
  font-weight: 600;
  margin-right: 10px;
  padding: 8px 10px;
}

.file-field small {
  color: var(--muted);
  font-size: 10px;
}

.standalone-form {
  max-width: 680px;
}

.form-actions {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
  padding-top: 18px;
}

.field>small {
  color: var(--muted);
  font-size: 10px;
}

.current-logo {
  align-items: center;
  display: flex;
  gap: 9px;
  margin: 2px 0 5px;
}

.current-logo img {
  background: #f0f1f4;
  border-radius: 9px;
  height: 48px;
  object-fit: contain;
  width: 48px;
}

.current-logo small {
  color: var(--muted);
  font-size: 10px;
}

.user-image-preview img {
  border-radius: 50%;
  object-fit: cover;
}

.profile-photo-preview {
  align-items: center;
  display: flex;
  gap: 12px;
  margin: 2px 0 5px;
}

.profile-photo-preview small {
  color: var(--muted);
  font-size: 10px;
}

.profile-avatar {
  flex: 0 0 auto;
  height: 64px;
  width: 64px;
}

.profile-readonly-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.readonly-detail {
  background: #f8f7fb;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 13px;
}

.readonly-detail>span {
  color: var(--muted);
  font-size: 10px;
}

.readonly-detail>strong {
  font-size: 12px;
}

.list-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px 20px;
}

.list-row:last-child {
  border-bottom: 0;
}

.list-created {
  color: #747b8e;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  font-size: 11px;
  gap: 3px;
  margin-left: auto;
  margin-right: 22px;
  white-space: nowrap;
}

.list-created span {
  color: #a09dab;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.list-primary {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.list-primary>div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.list-primary strong {
  font-size: 13px;
}

.list-primary small {
  color: var(--muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-icon {
  align-items: center;
  background: #eeeaff;
  border-radius: 10px;
  color: var(--purple);
  display: flex;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.list-icon.blue {
  background: #e5f1ff;
  color: #3280d6;
}

.game-list-logo {
  background: #f0f1f4;
  border-radius: 9px;
  height: 38px;
  object-fit: contain;
  padding: 3px;
  width: 38px;
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  display: flex;
  font-size: 21px;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.icon-button.danger {
  color: #b6b2bf;
}

.icon-button.danger:hover {
  background: #fff0f2;
  color: var(--danger);
}

.icon-button.delete-disabled {
  color: #c8c5ce;
  cursor: not-allowed;
  opacity: .65;
}

.delete-icon {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 17px;
}

.row-actions {
  align-items: center;
  color: var(--purple);
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 10px;
}

.edit-link {
  background: #eef0f4;
  border-radius: 7px;
  color: #3f4b60;
  padding: 7px 10px;
}

.permission-list {
  border: 0;
  margin: 0;
  padding: 0;
}

.permission-list legend {
  margin-bottom: 9px;
}

.check-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  margin-bottom: 7px;
  padding: 10px;
}

.check-row.required {
  cursor: not-allowed;
}

.check-row small {
  color: var(--muted);
  display: block;
  font-size: 10px;
  margin-top: 2px;
}

.check-row input {
  display: none;
}

.check-box {
  align-items: center;
  border: 1px solid #d6d3e1;
  border-radius: 5px;
  color: transparent;
  display: flex;
  height: 19px;
  justify-content: center;
  width: 19px;
}

.check-row input:checked+.check-box {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.role-card {
  border-bottom: 1px solid var(--line);
  padding: 18px 21px;
}

.role-card:last-child {
  border-bottom: 0;
}

.role-top {
  display: flex;
  justify-content: space-between;
}

.role-top-actions {
  align-items: center;
  display: flex;
  gap: 18px;
}

.role-top-actions .list-created {
  margin: 0;
}

.role-top h3 {
  font-size: 14px;
  margin: 0 0 4px;
}

.role-top p {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}

.permission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.permission-tags span {
  background: #f5f3f9;
  border-radius: 5px;
  color: #716e80;
  font-size: 10px;
  padding: 5px 7px;
}

.permission-tags em {
  color: #aaa7b3;
  font-size: 11px;
}

.switch-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  position: relative;
}

.switch-row>span {
  display: flex;
  flex-direction: column;
}

.switch-row small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}

.switch-row input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.switch-row i {
  background: #d7d4df;
  border-radius: 20px;
  height: 25px;
  position: relative;
  transition: .2s;
  width: 44px;
}

.switch-row i:after {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  content: "";
  height: 19px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: .2s;
  width: 19px;
}

.switch-row input:checked+i {
  background: var(--purple);
}

.switch-row input:checked+i:after {
  transform: translateX(19px);
}

.user-meta {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-left: auto;
  margin-right: 18px;
}

.status {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 10px;
  gap: 5px;
}

.status i {
  background: #aaa;
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.status.enabled i {
  background: #20a876;
}

.status.enabled {
  color: var(--success);
}

.status.disabled i {
  background: #d65868;
}

.text-button {
  background: none;
  border: 0;
  color: var(--purple);
  font-size: 11px;
  font-weight: 600;
  padding: 5px;
}

.list-avatar {
  height: 38px;
  width: 38px;
}

.games-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 280px));
  justify-content: start;
}

.studio-heading-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.view-switcher {
  background: #e8e9ed;
  border-radius: 9px;
  display: grid;
  gap: 2px;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
}

.view-switcher-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #777b87;
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  gap: 5px;
  justify-content: center;
  min-height: 37px;
  padding: 0 11px;
}

.view-switcher-button:hover {
  color: var(--ink);
}

.view-switcher-button.active {
  background: #fff;
  box-shadow: 0 2px 7px rgba(28, 34, 45, .1);
  color: var(--ink);
}

.view-switcher-button:focus-visible {
  outline: 2px solid rgba(83, 97, 120, .45);
  outline-offset: 1px;
}

.game-card {
  background: #fff;
  border: 1px solid transparent;
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(28, 34, 45, .06);
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  height: 150px;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
  width: 100%;
}

.game-card:hover {
  border-color: rgba(83, 97, 120, .2);
  box-shadow: 0 14px 28px rgba(28, 34, 45, .13);
  transform: translateY(-4px);
}

.studio-games-table-view {
  display: none;
}

[data-games-view][data-view="list"]>.games-grid {
  display: none;
}

[data-games-view][data-view="list"]>.studio-games-table-view {
  display: block;
}

.game-art {
  align-items: center;
  align-self: center;
  aspect-ratio: 408 / 546;
  background: #0b0d12 !important;
  border-radius: 12px;
  color: #fff;
  display: flex;
  height: calc(100% - 28px);
  justify-content: center;
  margin-left: 14px;
  overflow: hidden;
  position: relative;
  width: auto;
}

.game-art>span {
  font: italic 700 42px Georgia, serif;
}

.game-art>img {
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .35s ease;
  width: 100%;
}

.game-card:hover .game-art>img {
  transform: scale(1.035);
}

.game-art:before {
  display: none;
}

.game-card-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 17px 15px 15px;
}

.game-prod-link {
  align-items: center;
  align-self: flex-end;
  color: var(--purple);
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  gap: 3px;
  margin-bottom: 6px;
}

.game-prod-link span {
  font-size: 12px;
  transition: transform .2s ease;
}

.game-prod-link:hover {
  color: var(--purple-dark);
}

.game-prod-link:hover span {
  transform: translate(2px, -2px);
}

.game-card-heading {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.game-card-heading>h3 {
  flex: 1 1 auto;
  font: 600 15px "DM Sans", sans-serif;
  line-height: 1.3;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.game-card-edit {
  align-items: center;
  background: #f1f2f6;
  border-radius: 7px;
  color: var(--purple);
  display: inline-flex;
  flex: 0 0 auto;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.game-card-edit svg {
  fill: none;
  height: 15px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 15px;
}

.game-card-edit:hover {
  background: #e7e3f5;
  color: var(--purple-dark);
}

.game-actions {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: auto;
}

.game-actions .button {
  font-size: 11px;
  min-height: 34px;
  min-width: 0;
  padding: 0 2px;
}

.button.alpha,
.button.beta {
  background: #f7efdf;
  color: #9a6f27;
}

.button.alpha:hover,
.button.beta:hover {
  background: #efe2c8;
  transform: translateY(-1px);
}

.button.prod {
  background: #e1fcbe;
  color: #435926;
}

.button.prod:hover {
  background: #d0f79d;
  transform: translateY(-1px);
}
.muted-dash {
  color: #aaa7b3;
}

.empty-state {
  color: var(--muted);
  padding: 60px 25px;
  text-align: center;
}

.empty-state>span {
  align-items: center;
  background: #f0edff;
  border-radius: 50%;
  color: var(--purple);
  display: inline-flex;
  font-size: 26px;
  height: 55px;
  justify-content: center;
  margin-bottom: 13px;
  width: 55px;
}

.empty-state h3 {
  color: var(--ink);
  margin-bottom: 7px;
}

.empty-state p {
  margin-bottom: 15px;
}

.empty-state.small {
  padding: 32px 20px;
}

.alert {
  border-radius: 10px;
  font-size: 12px;
  margin-bottom: 20px;
  padding: 12px 15px;
  transition: .4s;
}

.alert.success {
  background: #e3f7ed;
  border: 1px solid #c8eddb;
  color: #13714e;
}

.alert.error {
  background: #fff0f2;
  border: 1px solid #f3d7dc;
  color: #b8344c;
}

.alert.fade {
  opacity: 0;
  transform: translateY(-5px);
}

.alert.warning {
  background: #fff7e6;
  border: 1px solid #f0dfb8;
  color: #8a641f;
}

.font-tool {
  max-width: 980px;
}

.font-tool-body {
  padding: 22px;
}

.font-file-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.font-drop-zone {
  background: linear-gradient(180deg, #fff, #fbfbfd);
  border: 2px dashed #d8dce7;
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  min-height: 330px;
  padding: 22px;
  transition: .2s;
}

.font-drop-picker {
  align-content: center;
  align-items: center;
  cursor: pointer;
  display: grid;
  flex: 1;
  gap: 9px;
  justify-items: center;
  min-height: 260px;
  text-align: center;
  width: 100%;
}

.font-drop-zone:hover {
  background: #edf3ff;
  border-color: #6287d8;
  transform: translateY(-1px);
}

.font-drop-zone.dragging {
  background: #dce8ff;
  border-color: #3769c7;
  box-shadow: inset 0 0 0 1px rgba(55, 105, 199, .12);
  transform: translateY(-1px);
}

.font-drop-zone.dragging .font-drop-icon {
  background: #c5d8ff;
  color: #2455ad;
}

.font-drop-zone.disabled {
  cursor: wait;
  opacity: .72;
  pointer-events: none;
}

.font-drop-zone input {
  block-size: 1px;
  inline-size: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.font-drop-icon {
  align-items: center;
  background: #e7ebf2;
  border-radius: 50%;
  color: var(--purple-dark);
  display: flex;
  font-size: 34px;
  font-weight: 700;
  height: 78px;
  justify-content: center;
  width: 78px;
}

.font-drop-title {
  color: var(--ink);
  font: 700 30px "Space Grotesk";
}

.font-drop-copy,
.font-status,
.font-file-size {
  color: var(--muted);
}

.font-tool-actions {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 18px;
}

.font-tool-buttons {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.font-format-control {
  align-items: center;
  display: flex;
  gap: 7px;
}

.font-format-control span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.font-format-control select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  height: 43px;
  min-width: 90px;
  outline: none;
  padding: 0 28px 0 11px;
}

.font-format-control select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(108, 76, 241, .1);
}

.font-format-control select:disabled {
  cursor: wait;
  opacity: .72;
}

.font-tool-buttons [hidden] {
  display: none !important;
}

.font-status {
  font-size: 12px;
  font-weight: 600;
  margin: 0;
  min-height: 18px;
}

.font-status.error {
  color: var(--danger);
}

.font-file-list {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.font-upload-list {
  margin: 0;
  max-height: 190px;
  overflow-y: auto;
  width: 100%;
}

.font-optimized-section {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
}

.font-optimized-section[hidden] {
  display: none;
}

.font-optimized-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.font-optimized-heading h3,
.font-optimized-heading span {
  margin: 0;
}

.font-optimized-heading h3 {
  color: var(--ink);
  font-size: 14px;
}

.font-optimized-heading span,
.font-file-result-status {
  color: var(--success);
  font-size: 11px;
  font-weight: 700;
}

.font-file-list li {
  align-items: center;
  background: #fbfbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: 47px;
  padding: 10px 13px;
}

.font-file-name {
  color: var(--ink);
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.font-file-details {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.font-file-list li.has-error {
  background: #fff7f8;
  border-color: #efc7cf;
}

.font-file-error {
  color: var(--danger);
  font-size: 11px;
  font-weight: 600;
}

.font-file-remove {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--danger);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  gap: 5px;
  padding: 6px 8px;
}

.font-file-remove:hover {
  background: #fcecef;
}

.font-file-remove:disabled {
  cursor: wait;
  opacity: .6;
}

.font-file-size {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
}

.table-game {
  align-items: center;
  display: inline-flex;
  gap: 9px;
}

.table-game img {
  border-radius: 7px;
  height: 30px;
  object-fit: contain;
  width: 30px;
}

.login-page {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  min-height: 100vh;
}

.login-visual {
  align-items: center;
  background: #18162e;
  color: #fff;
  display: flex;
  overflow: hidden;
  padding: 10%;
  position: relative;
}

.visual-grid {
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  inset: 0;
  position: absolute;
  transform: perspective(500px) rotateX(20deg) scale(1.3);
}

.login-visual:after {
  background: radial-gradient(circle, rgba(111, 75, 243, .5), transparent 65%);
  content: "";
  filter: blur(10px);
  height: 500px;
  position: absolute;
  right: -160px;
  top: 0;
  width: 500px;
}

.visual-content {
  max-width: 570px;
  position: relative;
  z-index: 1;
}

.visual-content .eyebrow {
  margin-top: 35px;
}

.visual-content h1 {
  font-size: clamp(40px, 5vw, 66px);
  letter-spacing: -2.5px;
  line-height: 1.02;
  margin: 12px 0 25px;
}

.visual-content>p:last-child {
  color: #aaa6c3;
  font-size: 16px;
  line-height: 1.7;
  max-width: 480px;
}

.login-panel {
  align-items: center;
  background: #faf9fc;
  display: flex;
  justify-content: center;
  padding: 35px;
}

.login-card {
  max-width: 390px;
  width: 100%;
}

.login-card h2 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 5px 0 7px;
}

.login-card .muted {
  color: var(--muted);
  margin-bottom: 30px;
}

.login-card .field {
  margin-bottom: 17px;
}

.login-card .button {
  margin-top: 6px;
}

.login-note {
  color: #9b98a8;
  font-size: 10px;
  margin-top: 18px;
  text-align: center;
}

.login-help {
  display: flex;
  justify-content: flex-end;
  margin: -7px 0 15px;
}

.login-help a,
.login-back a {
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
}

.login-help a:hover,
.login-back a:hover {
  text-decoration: underline;
}

.login-back {
  margin: 20px 0 0;
  text-align: center;
}

.mobile-brand {
  align-items: center;
  display: none;
  font: 700 16px "Space Grotesk";
  gap: 10px;
  margin-bottom: 45px;
}

.confirm-dialog {
  background: transparent;
  border: 0;
  max-width: calc(100vw - 32px);
  padding: 0;
  width: 420px;
}

.confirm-dialog::backdrop {
  background: rgba(12, 16, 28, .55);
  backdrop-filter: blur(2px);
}

.confirm-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 24px 70px rgba(12, 16, 28, .24);
  padding: 26px;
}

.confirm-card h2 {
  font-size: 21px;
  margin: 14px 0 7px;
}

.confirm-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.confirm-symbol {
  align-items: center;
  background: #fff0f2;
  border-radius: 50%;
  color: var(--danger);
  display: flex;
  font-size: 18px;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.confirm-actions {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 18px;
}

.menu-toggle {
  background: none;
  border: 0;
  display: none;
  font-size: 22px;
}

.sidebar-backdrop {
  display: none;
}

.error-page {
  margin: 8vh auto;
  max-width: 650px;
}

@media (max-width: 1080px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-layout,
  .split-layout.wide-form {
    grid-template-columns: 1fr;
  }

  .form-panel {
    position: static;
  }

  .user-meta {
    display: none;
  }
}

@media (max-width: 760px) {
  .sidebar {
    left: 0;
    top: 0;
    height: 100vh;
    border-radius: 0;
    transform: translateX(-100%);
    transition: .25s;
  }

  .menu-open .sidebar {
    transform: translateX(0);
  }

  .menu-open .sidebar-backdrop {
    background: rgba(12, 10, 30, .45);
    display: block;
    inset: 0;
    position: fixed;
    z-index: 15;
  }

  .main {
    margin-left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .topbar {
    height: 72px;
    padding: 0 17px;
  }

  .topbar>div:nth-child(2) {
    margin-right: auto;
  }

  .topbar h1 {
    font-size: 16px;
  }

  .topbar .eyebrow,
  .user-copy {
    display: none;
  }

  .topbar .avatar {
    height: 34px;
    width: 34px;
  }

  .topbar .button {
    font-size: 11px;
    min-height: 32px;
    padding: 0 10px;
  }

  .content {
    padding: 23px 16px 96px;
  }

  .page-heading {
    align-items: start;
    gap: 15px;
  }

  .font-tool-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .font-tool-actions .button {
    width: 100%;
  }

  .font-tool-buttons {
    flex-wrap: wrap;
    width: 100%;
  }

  .font-format-control {
    justify-content: space-between;
    width: 100%;
  }

  .font-format-control select {
    flex: 1;
  }

  .font-drop-zone {
    min-height: 280px;
  }

  .studio-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .studio-heading>div {
    min-width: 0;
  }

  .studio-heading .button {
    width: 100%;
  }

  .studio-heading-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .view-switcher {
    width: 100%;
  }

  .listing-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .listing-heading>div {
    min-width: 0;
  }

  .listing-heading>.button {
    white-space: normal;
    width: 100%;
  }

  .listing-heading-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .listing-heading-actions .button {
    white-space: normal;
    width: 100%;
  }

  .page-heading h2 {
    font-size: 24px;
  }

  .stats-grid {
    gap: 10px;
    grid-template-columns: 1fr 1fr;
  }

  .stat-card {
    gap: 10px;
    padding: 15px;
  }

  .stat-icon {
    height: 38px;
    width: 38px;
  }

  .stat-card strong {
    font-size: 21px;
  }

  .panel-heading {
    padding: 17px;
  }

  .filterable-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .listing-filter {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  .listing-filter select {
    width: 100%;
  }

  .list-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 15px;
  }

  .list-primary {
    flex: 1 1 180px;
  }

  .list-created {
    margin-left: 50px;
    margin-right: auto;
  }

  .role-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .role-top-actions {
    justify-content: space-between;
    width: 100%;
  }

  .user-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .user-row .row-actions {
    margin-left: 50px;
  }

  .login-page {
    display: block;
  }

  .login-visual {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    padding: 25px;
  }

  .mobile-brand {
    display: flex;
  }

  .screen-footer {
    bottom: 10px;
    right: 16px;
  }

  .footer-emblem {
    height: 58px;
    width: 58px;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  }

  .game-card {
    height: 150px;
    max-width: none;
  }

  .game-card-content {
    padding: 16px 13px 14px;
  }

}

@media (max-width: 380px) {
  .game-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .game-art {
    margin-left: 10px;
  }

  .game-card-content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .game-actions {
    gap: 3px;
  }

  .game-actions .button {
    font-size: 10px;
  }
}
