:root {
  --purple:#7454cc;
  --purple-dark:#34234e;
  --purple-soft:#f1ecfb;
  --ink:#29233a;
  --muted:#837c90;
  --border:#eae6f0;
  --background:#f6f5f9;
  --success:#278369;
  --danger:#bc4a64;
  --warning:#a66c22;
  --shadow:0 10px 35px rgba(48,31,76,.055);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink);
  font-size:14px;
  line-height:1.55;
  font-synthesis:none
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--background)
}
button,input,select,textarea {
  font:inherit
}
button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
button:disabled {
  cursor:wait;
  opacity:.55
}
a {
  color:inherit;
  text-decoration:none
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid #bba4ee;
  outline-offset:3px
}
[hidden] {
  display:none!important
}
h1,h2,h3,p {
  margin-top:0
}
h1,h2,h3 {
  font-weight:650;
  letter-spacing:-.025em
}
h2 {
  font-size:25px;
  margin-bottom:10px
}
h3 {
  font-size:16px;
  margin-bottom:6px
}
.muted {
  color:var(--muted)
}
.small {
  font-size:12px
}
.purple-text {
  color:var(--purple)
}
.eyebrow {
  font-size:11px;
  font-weight:650;
  letter-spacing:.15em
}
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  font-size:18px;
  font-weight:650;
  white-space:nowrap
}
.brand small {
  display:block;
  font-size:8px;
  letter-spacing:.16em;
  opacity:.55;
  margin-top:2px
}
.brand-mark {
  display:grid;
  place-items:center;
  width:38px;
  height:42px;
  border-radius:12px;
  background:linear-gradient(140deg,#ad86ec,#7860c9);
  font-size:28px;
  line-height:1;
  color:white;
  box-shadow:0 5px 18px #160a2920
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:39px;
  padding:9px 16px;
  border:1px solid var(--border);
  border-radius:9px;
  background:white;
  color:var(--ink);
  font-size:13px;
  font-weight:550;
  transition:background .15s,box-shadow .15s,transform .15s
}
.button:hover:not(:disabled) {
  background:#f7f4fc;
  box-shadow:0 3px 10px #30204c0a
}
.button.primary {
  background:var(--purple);
  border-color:var(--purple);
  color:white;
  box-shadow:0 3px 8px #7454cc20
}
.button.primary:hover:not(:disabled) {
  background:#6443bd
}
.button.subtle {
  background:transparent
}
.button.danger {
  background:#fff0f3;
  border-color:#f3d8df;
  color:var(--danger)
}
.button.small {
  min-height:32px;
  padding:5px 11px;
  font-size:12px
}
.button.icon {
  padding:4px;
  min-width:32px
}
.button-link {
  border:0;
  background:none;
  color:var(--purple);
  padding:0;
  cursor:pointer;
  font-size:13px
}
.field {
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:20px;
  font-size:13px
}
.field>span {
  font-weight:550
}
.field input,.field select,.field textarea,.game-switcher select {
  width:100%;
  min-height:43px;
  padding:10px 12px;
  background:#fff;
  border:1px solid #dfd9e9;
  border-radius:8px;
  color:var(--ink);
  transition:border-color .15s;
  outline-offset:2px
}
.field input:hover,.field textarea:hover,.game-switcher select:hover {
  border-color:#b9a6d5
}
.field input::placeholder,.field textarea::placeholder {
  color:#aaa2b6
}
.field input[readonly] {
  background:#f5f3f8;
  color:var(--muted)
}
.field textarea {
  resize:vertical;
  min-height:106px
}
.field small {
  font-size:12px;
  color:var(--muted);
  line-height:1.7;
  font-weight:400
}
.form-error {
  padding:10px 12px;
  border:1px solid #f2ccd6;
  border-radius:8px;
  background:#fff4f6;
  color:#a53651;
  font-size:13px;
  margin-bottom:16px
}
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 24px
}
.span-two {
  grid-column:1/-1
}
.form-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  border-top:1px solid var(--border);
  padding-top:21px;
  margin-top:7px
}
.form-actions .save-note {
  margin-right:auto;
  font-size:12px;
  color:var(--muted)
}
.notice {
  background:#f5f1fc;
  border:1px solid #e8dff7;
  padding:13px 15px;
  border-radius:9px;
  color:#6b538b;
  font-size:12px;
  line-height:1.8;
  margin-bottom:21px
}
.notice.warning {
  background:#fff9ef;
  border-color:#f4e8d0;
  color:#916322
}
.toggle-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 0;
  border-bottom:1px solid #f0edf5
}
.toggle-copy strong {
  display:block;
  font-size:13px;
  font-weight:550
}
.toggle-copy small {
  display:block;
  margin-top:3px;
  font-size:12px;
  color:var(--muted)
}
.switch {
  position:relative;
  flex-shrink:0;
  display:inline-flex;
  width:38px;
  height:22px;
  cursor:pointer
}
.switch input {
  position:absolute;
  opacity:0;
  width:100%;
  height:100%;
  margin:0
}
.switch span {
  width:38px;
  height:22px;
  border-radius:20px;
  background:#d8d1e2;
  pointer-events:none;
  transition:background .2s
}
.switch span:after {
  content:"";
  position:absolute;
  left:3px;
  top:3px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:white;
  box-shadow:0 1px 4px #0002;
  transition:transform .2s
}
.switch input:checked+span {
  background:var(--purple)
}
.switch input:checked+span:after {
  transform:translateX(16px)
}
.switch input:focus-visible+span {
  outline:3px solid #bba4ee;
  outline-offset:3px
}
.login-screen {
  display:grid;
  grid-template-columns:minmax(440px,1.1fr) minmax(420px,1fr);
  min-height:100vh
}
.login-story {
  position:relative;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  padding:46px 56px 26px;
  color:white;
  background:radial-gradient(ellipse at 0% 70%,#744cb94d,transparent 65%),linear-gradient(145deg,#352249,#261b3e)
}
.login-brand {
  font-size:20px
}
.story-copy {
  position:relative;
  z-index:1;
  margin:auto 0;
  padding:70px 0 100px
}
.story-copy .eyebrow {
  color:#c6b1e4;
  letter-spacing:.08em
}
.story-copy h1 {
  font-size:clamp(38px,4.2vw,63px);
  line-height:1.3;
  letter-spacing:-.055em;
  margin:24px 0
}
.story-copy p {
  color:#bdb0cf;
  font-size:15px;
  line-height:1.9
}
.story-tags {
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  margin-top:30px
}
.story-tags span {
  border:1px solid #a084bd42;
  border-radius:50px;
  font-size:11px;
  padding:6px 13px;
  color:#d0c0e2;
  background:#ffffff04
}
.story-footer {
  color:#9f8bba;
  font-size:11px;
  letter-spacing:.03em;
  z-index:1;
  margin:0
}
.story-decoration {
  position:absolute;
  right:-100px;
  bottom:20px;
  transform:rotate(-25deg);
  opacity:.65;
  width:350px;
  height:350px
}
.story-decoration span {
  position:absolute;
  width:280px;
  height:280px;
  border:1px solid #b799d733;
  border-radius:48px;
  left:30px;
  top:30px
}
.story-decoration span:nth-child(2) {
  transform:rotate(18deg)
}
.story-decoration span:nth-child(3) {
  transform:rotate(36deg)
}
.story-decoration span:nth-child(4) {
  transform:rotate(54deg);
  background:#9570bd0a
}
.login-panel {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:70px 48px;
  background:#fbfafc
}
.login-box {
  width:100%;
  max-width:360px
}
.login-box h2 {
  font-size:29px;
  margin:12px 0 10px
}
.login-box>.muted {
  font-size:13px;
  margin-bottom:34px
}
.login-submit {
  width:100%;
  justify-content:space-between;
  margin-top:4px;
  min-height:46px
}
.login-note {
  display:flex;
  gap:11px;
  border-top:1px solid var(--border);
  padding-top:22px;
  margin-top:30px;
  color:#a399b1
}
.login-note>span {
  font-size:23px;
  line-height:1
}
.login-note p {
  font-size:11px;
  line-height:1.8;
  margin:0
}
.login-copyright {
  position:absolute;
  bottom:23px;
  left:0;
  right:0;
  text-align:center;
  font-size:10px;
  letter-spacing:.14em;
  color:#b0a6bd
}
.app-shell {
  min-height:100vh;
  display:flex
}
.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:228px;
  display:flex;
  flex-direction:column;
  padding:29px 20px 20px;
  color:#e6dced;
  background:linear-gradient(165deg,#352447,#281e39);
  z-index:10
}
.sidebar .brand {
  padding-left:7px;
  font-size:17px
}
.sidebar .brand-mark {
  width:34px;
  height:38px;
  font-size:25px;
  border-radius:10px
}
.sidebar .brand small {
  font-size:7px
}
.nav-label {
  font-size:10px;
  color:#9d8aaf;
  letter-spacing:.08em;
  margin:41px 0 14px;
  padding-left:16px
}
.navigation {
  display:flex;
  flex-direction:column;
  gap:7px
}
.nav-item {
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  padding:12px 15px;
  border:1px solid transparent;
  border-radius:9px;
  text-align:left;
  background:transparent;
  color:#bcaecb;
  font-size:13px;
  white-space:nowrap
}
.nav-item>span {
  display:inline-flex;
  justify-content:center;
  width:19px;
  font-size:20px;
  line-height:1
}
.nav-item:hover {
  background:#ffffff09;
  color:#fff
}
.nav-item.active {
  color:#fff;
  background:linear-gradient(95deg,#7650bd,#7252ab);
  border-color:#ad85e033;
  box-shadow:0 4px 14px #13091e1c
}
.sidebar-bottom {
  margin-top:auto;
  padding-top:40px
}
.workspace-note {
  font-size:11px;
  color:#c0aece;
  padding:15px;
  border:1px solid #82679545;
  border-radius:10px;
  background:#ffffff03
}
.workspace-note p {
  font-size:10px;
  margin:5px 0 0 12px;
  color:#947fa8
}
.status-dot {
  display:inline-block;
  width:5px;
  height:5px;
  border-radius:50%;
  background:#a2d2a7;
  vertical-align:middle;
  margin-right:7px
}
.account-row {
  display:flex;
  align-items:center;
  gap:10px;
  padding:22px 7px 0
}
.account-avatar {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  background:#5a426f;
  color:#e4d3f4;
  border:1px solid #a88abd35;
  border-radius:10px;
  font-size:12px;
  font-weight:600
}
.account-row strong {
  display:block;
  font-size:11px;
  font-weight:550;
  max-width:115px;
  overflow:hidden;
  text-overflow:ellipsis
}
.account-row small {
  display:block;
  font-size:9px;
  color:#9581a6
}
.logout-button {
  margin-left:auto;
  border:0;
  padding:4px;
  background:none;
  color:#bdabcd;
  font-size:22px
}
.logout-button:hover {
  color:white
}
.workspace {
  margin-left:228px;
  width:calc(100% - 228px);
  min-width:0;
  display:flex;
  flex-direction:column
}
.topbar {
  height:87px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:20px 37px;
  border-bottom:1px solid var(--border);
  background:#fffdfefa
}
.game-switcher {
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0
}
.game-switcher label {
  font-size:11px;
  color:var(--muted);
  white-space:nowrap
}
.game-switcher select {
  padding:9px 34px 9px 11px;
  font-size:12px;
  min-width:190px;
  max-width:300px;
  min-height:38px;
  background:#faf9fc
}
.topbar-actions {
  display:flex;
  gap:10px;
  flex-shrink:0
}
.main-content {
  padding:31px 37px 40px;
  max-width:1500px;
  width:100%;
  margin:0 auto;
  outline:none
}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:25px
}
.page-heading h1 {
  font-size:26px;
  margin:0 0 6px;
  line-height:1.4
}
.page-heading>div {
  min-width:0
}
.page-heading p {
  font-size:12px;
  color:var(--muted);
  margin:0
}
.page-heading .heading-meta {
  font-size:11px;
  color:var(--muted);
  white-space:nowrap
}
.game-key {
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:11px;
  color:#9589a2;
  background:#efedf4;
  padding:4px 9px;
  border-radius:5px;
  white-space:nowrap;
  max-width:45%;
  overflow:hidden;
  text-overflow:ellipsis
}
.card {
  border:1px solid var(--border);
  border-radius:13px;
  background:white;
  box-shadow:var(--shadow);
  overflow:hidden
}
.card-padded {
  padding:24px
}
.card-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:22px 24px 18px;
  border-bottom:1px solid #f0edf5
}
.card-heading h2,.card-heading h3 {
  font-size:15px;
  margin:0 0 3px
}
.card-heading p {
  font-size:11px;
  color:var(--muted);
  margin:0
}
.metrics {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:15px;
  margin-bottom:23px
}
.metric {
  padding:21px 19px;
  position:relative;
  min-width:0
}
.metric-icon {
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  background:#f3effb;
  border-radius:8px;
  color:#8b6ac7;
  margin-bottom:18px;
  font-size:17px
}
.metric-label {
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-bottom:5px
}
.metric-value {
  font-size:29px;
  font-weight:650;
  line-height:1.3;
  letter-spacing:-.04em;
  font-variant-numeric:tabular-nums
}
.metric-foot {
  display:block;
  color:#aca4b6;
  font-size:10px;
  margin-top:8px
}
.content-grid {
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
  gap:23px;
  align-items:start
}
.summary-list {
  margin:0;
  padding:0;
  list-style:none
}
.summary-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:15px 0;
  border-bottom:1px solid #f0edf5;
  font-size:12px
}
.summary-row:first-child {
  padding-top:0
}
.summary-row:last-child {
  border-bottom:0;
  padding-bottom:0
}
.summary-label {
  color:var(--muted);
  flex-shrink:0
}
.summary-value {
  text-align:right;
  overflow-wrap:anywhere
}
.badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 8px;
  border-radius:5px;
  font-size:10px;
  line-height:1.3;
  font-weight:550;
  white-space:nowrap;
  background:#f0edf5;
  color:#877b96
}
.badge.success {
  background:#edf7f2;
  color:#32816c
}
.badge.warning {
  background:#fff4df;
  color:#a47a30
}
.badge.danger {
  background:#fff0f3;
  color:#b95069
}
.badge.purple {
  background:#f1ebfb;
  color:#8363bb
}
.health-items {
  padding:6px 24px
}
.health-item {
  padding:15px 0;
  border-bottom:1px solid #f0edf5;
  display:flex;
  align-items:center;
  gap:13px
}
.health-item:last-child {
  border:0
}
.health-icon {
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:30px;
  height:30px;
  border-radius:50%;
  background:#edf7f2;
  color:#55937b;
  font-size:13px
}
.health-icon.warning {
  background:#fff4df;
  color:#ab8038
}
.health-item strong {
  display:block;
  font-size:12px;
  font-weight:550
}
.health-item p {
  color:var(--muted);
  font-size:11px;
  margin:3px 0 0;
  overflow-wrap:anywhere
}
.quick-actions {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:11px;
  margin-top:23px
}
.quick-action {
  padding:15px 13px;
  display:flex;
  align-items:center;
  gap:10px;
  background:white;
  border:1px solid var(--border);
  border-radius:10px;
  text-align:left;
  color:var(--ink)
}
.quick-action>span {
  font-size:18px;
  color:#9c83bd
}
.quick-action strong {
  display:block;
  font-size:11px;
  font-weight:550
}
.quick-action small {
  display:block;
  font-size:9px;
  color:var(--muted);
  margin-top:3px
}
.quick-action:hover {
  border-color:#c9b8e6;
  background:#fcfaff
}
.announcement {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:12px;
  color:#6e617e;
  line-height:1.9;
  padding:16px 0 0;
  margin:16px 0 0;
  border-top:1px solid var(--border)
}
.config-form {
  max-width:1000px
}
.form-section {
  padding:25px 27px;
  border-bottom:1px solid var(--border)
}
.form-section:last-child {
  border:0
}
.form-section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:22px
}
.form-section-heading h2 {
  font-size:15px;
  margin:0
}
.form-section-heading p {
  font-size:11px;
  color:var(--muted);
  margin:5px 0 0
}
.form-section .field:last-child {
  margin-bottom:0
}
.form-section .notice:last-child {
  margin-bottom:0
}
.settings-submit {
  padding:20px 27px;
  background:#fdfcfe;
  display:flex;
  align-items:center;
  gap:11px
}
.settings-submit .save-note {
  margin-right:auto;
  color:var(--muted);
  font-size:11px
}
.table-wrap {
  width:100%;
  overflow:auto
}
.data-table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:12px;
  white-space:nowrap
}
.data-table th {
  background:#fcfbfe;
  color:#91859f;
  font-size:10px;
  font-weight:550;
  letter-spacing:.02em;
  padding:13px 22px;
  border-bottom:1px solid var(--border)
}
.data-table td {
  padding:17px 22px;
  border-bottom:1px solid #f1eef6;
  color:#5c526a;
  vertical-align:middle
}
.data-table tbody tr:last-child td {
  border-bottom:0
}
.data-table tbody tr:hover {
  background:#fefcff
}
.data-table .mono {
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:10px;
  color:#93849f
}
.player-cell {
  display:flex;
  align-items:center;
  gap:10px;
  max-width:220px
}
.player-avatar {
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:32px;
  height:32px;
  border-radius:10px;
  background:#f0eafa;
  color:#9674bc;
  font-size:11px
}
.player-cell strong {
  display:block;
  font-size:12px;
  font-weight:550;
  color:#51435f;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:170px
}
.player-cell small {
  display:block;
  font-size:9px;
  color:#a093ad;
  margin-top:2px
}
.table-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  border-top:1px solid var(--border);
  padding:16px 22px;
  font-size:11px;
  color:var(--muted)
}
.pagination {
  display:flex;
  align-items:center;
  gap:11px
}
.pagination .button {
  font-size:11px;
  min-height:30px;
  padding:4px 11px
}
.rank {
  display:inline-grid;
  place-items:center;
  width:27px;
  height:27px;
  border-radius:8px;
  color:#a596b2;
  background:#f5f2f9;
  font-size:11px;
  font-weight:600
}
.rank.first {
  background:#fff4dc;
  color:#b78a29
}
.rank.second {
  background:#edf1f9;
  color:#8796ae
}
.rank.third {
  background:#fbede7;
  color:#b68b6e
}
.table-empty {
  padding:40px!important;
  text-align:center!important;
  color:var(--muted)!important;
  white-space:normal;
  line-height:1.8
}
.empty-state {
  padding:70px 25px;
  text-align:center
}
.empty-symbol {
  display:inline-grid;
  place-items:center;
  width:60px;
  height:60px;
  border-radius:19px;
  color:#a38bbb;
  background:#f1ebfa;
  font-size:31px;
  margin-bottom:20px
}
.empty-state h2 {
  font-size:20px
}
.empty-state p {
  font-size:12px;
  color:var(--muted);
  max-width:420px;
  margin:0 auto 24px;
  line-height:1.9
}
.loading {
  padding:80px 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  color:#9583a8;
  font-size:12px
}
.spinner {
  display:inline-block;
  width:17px;
  height:17px;
  border:2px solid #e8dff2;
  border-top-color:var(--purple);
  border-radius:50%;
  animation:spin .7s linear infinite
}
.workspace-footer {
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:5px 37px 22px;
  margin-top:auto;
  color:#b3a8bf;
  font-size:9px;
  letter-spacing:.03em
}
.modal {
  border:0;
  border-radius:15px;
  padding:0;
  max-width:min(760px,calc(100vw - 36px));
  width:760px;
  max-height:calc(100vh - 50px);
  background:#fff;
  box-shadow:0 25px 90px #150e3860;
  color:var(--ink)
}
.modal::backdrop {
  background:#1f15385c;
  backdrop-filter:blur(3px)
}
.modal-header {
  padding:24px 27px 19px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--border)
}
.modal-header h2 {
  font-size:21px;
  margin:0 0 3px
}
.modal-header p {
  font-size:11px;
  margin:0;
  color:var(--muted)
}
.close-modal {
  background:#f7f4fa;
  border:0;
  border-radius:7px;
  min-width:30px;
  min-height:30px;
  font-size:21px;
  color:#9c8bab
}
.modal-body {
  padding:25px 27px
}
.modal-body p {
  font-size:13px;
  color:#7a6b87;
  line-height:1.9
}
.modal .settings-submit {
  position:sticky;
  bottom:0;
  border-top:1px solid var(--border);
  z-index:1
}
.modal .form-section {
  padding-top:22px;
  padding-bottom:22px
}
.toast-region {
  position:fixed;
  right:26px;
  bottom:25px;
  z-index:50;
  display:flex;
  flex-direction:column;
  gap:10px;
  width:min(380px,calc(100vw - 36px));
  pointer-events:none
}
.toast {
  padding:14px 17px;
  border:1px solid #e3d9f0;
  border-radius:11px;
  background:#fff;
  box-shadow:0 8px 35px #30204820;
  color:#655078;
  font-size:12px;
  line-height:1.8;
  pointer-events:auto;
  animation:appear .2s ease
}
.toast.error {
  color:#a3415d;
  border-color:#f0d0d9;
  background:#fff9fa
}
.toast.success {
  color:#35765f;
  border-color:#d0e9de
}
.toast-dismiss {
  float:right;
  border:0;
  color:inherit;
  background:none;
  padding:0 0 0 12px;
  font-size:16px
}
.nowrap {
  white-space:nowrap
}
@keyframes spin {
  to {
    transform:rotate(360deg)
  }
}
@keyframes appear {
  from {
    opacity:0;
    transform:translateY(7px)
  }
  to {
    opacity:1;
    transform:translateY(0)
  }
}
@media(min-width:1500px) {
  .main-content {
    padding-top:40px
  }
  .metrics {
    gap:20px
  }
  .metric {
    padding:25px
  }
  .metric-value {
    font-size:34px
  }
  .topbar {
    padding-right:45px;
    padding-left:45px
  }
}
@media(max-width:1150px) {
  .sidebar {
    width:200px;
    padding-right:15px;
    padding-left:15px
  }
  .sidebar .brand {
    font-size:15px;
    padding-left:4px;
    gap:8px
  }
  .workspace {
    margin-left:200px;
    width:calc(100% - 200px)
  }
  .topbar {
    padding-right:25px;
    padding-left:25px
  }
  .main-content {
    padding:26px 25px 35px
  }
  .metrics {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px
  }
  .metric {
    padding:17px
  }
  .metric-icon {
    margin-bottom:11px
  }
  .metric-value {
    font-size:26px
  }
  .content-grid {
    gap:18px;
    grid-template-columns:1fr 1fr
  }
  .quick-actions {
    gap:8px
  }
  .quick-action {
    gap:7px;
    padding:13px 9px
  }
  .workspace-footer {
    padding-right:25px;
    padding-left:25px
  }
}
@media(max-width:900px) {
  .login-story {
    padding:35px
  }
  .story-copy h1 {
    font-size:42px
  }
  .login-panel {
    padding:60px 32px
  }
  .login-screen {
    grid-template-columns:1fr 1fr
  }
  .content-grid {
    grid-template-columns:1fr
  }
  .form-grid {
    gap:0 18px
  }
  .game-switcher label {
    display:none
  }
  .game-switcher select {
    min-width:170px
  }
  .topbar-actions {
    gap:6px
  }
  .topbar-actions .button {
    padding:8px 11px
  }
  .page-heading .heading-meta {
    display:none
  }
  .quick-actions {
    margin-top:18px
  }
}
@media(max-width:760px) {
  .sidebar {
    position:static;
    width:100%;
    padding:16px 18px 12px;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    gap:13px
  }
  .sidebar .brand {
    font-size:16px
  }
  .sidebar .brand-mark {
    width:31px;
    height:34px
  }
  .sidebar .brand small {
    display:none
  }
  .nav-label,.workspace-note {
    display:none
  }
  .sidebar-bottom {
    margin:0 0 0 auto;
    padding:0
  }
  .account-row {
    padding:0;
    gap:8px
  }
  .account-avatar {
    width:28px;
    height:28px;
    font-size:10px
  }
  .account-row small {
    display:none
  }
  .account-row strong {
    max-width:90px
  }
  .logout-button {
    font-size:20px;
    margin-left:7px
  }
  .navigation {
    order:3;
    width:100%;
    flex-direction:row;
    overflow:auto;
    gap:5px;
    padding-top:3px
  }
  .nav-item {
    width:auto;
    padding:9px 11px;
    gap:6px;
    font-size:11px
  }
  .nav-item>span {
    width:15px;
    font-size:16px
  }
  .app-shell {
    display:block
  }
  .workspace {
    margin:0;
    width:100%
  }
  .topbar {
    height:auto;
    padding:16px 20px;
    gap:12px
  }
  .main-content {
    padding:24px 20px 30px
  }
  .game-switcher select {
    min-width:150px;
    max-width:210px;
    font-size:11px
  }
  .topbar-actions .button {
    font-size:11px;
    min-height:36px
  }
  .page-heading {
    margin-bottom:20px
  }
  .page-heading h1 {
    font-size:23px
  }
  .metrics {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .metric {
    padding:16px 14px
  }
  .metric-value {
    font-size:25px
  }
  .card-padded,.form-section {
    padding:22px
  }
  .settings-submit {
    padding:18px 22px
  }
  .card-heading {
    padding:19px 22px 16px
  }
  .workspace-footer {
    padding:0 20px 20px
  }
  .data-table td,.data-table th {
    padding-left:18px;
    padding-right:18px
  }
  .login-screen {
    grid-template-columns:1fr
  }
  .login-story {
    min-height:0;
    padding:25px 30px
  }
  .story-copy {
    padding:36px 0 18px;
    margin:0
  }
  .story-copy h1 {
    font-size:36px;
    margin:13px 0 12px
  }
  .story-copy h1 br {
    display:none
  }
  .story-copy p {
    font-size:12px;
    margin-bottom:0
  }
  .story-copy p br,.story-tags,.story-footer {
    display:none
  }
  .story-decoration {
    width:230px;
    height:230px;
    right:-100px;
    bottom:-70px;
    opacity:.4
  }
  .login-panel {
    padding:45px 26px 75px
  }
  .login-box {
    max-width:420px
  }
  .login-box h2 {
    font-size:26px
  }
  .login-box>.muted {
    margin-bottom:25px
  }
  .login-copyright {
    bottom:19px
  }
}
@media(max-width:480px) {
  .topbar {
    padding:13px 15px
  }
  .game-switcher {
    flex:1
  }
  .game-switcher select {
    min-width:0;
    max-width:none;
    width:100%
  }
  .topbar-actions .button {
    padding:8px 10px
  }
  .topbar-actions #refresh-button {
    font-size:0;
    gap:0;
    padding:6px 11px
  }
  .topbar-actions #refresh-button span {
    font-size:17px
  }
  .main-content {
    padding:23px 15px 25px
  }
  .page-heading h1 {
    font-size:22px
  }
  .page-heading p {
    font-size:11px
  }
  .metrics {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:11px
  }
  .metric:last-child {
    grid-column:1/-1;
    display:grid;
    grid-template-columns:38px 1fr;
    gap:0 8px;
    align-items:center
  }
  .metric:last-child .metric-icon {
    grid-row:1/4;
    margin:0
  }
  .metric:last-child .metric-value {
    font-size:23px
  }
  .metric:last-child .metric-foot {
    display:none
  }
  .metric-label {
    font-size:10px
  }
  .metric-foot {
    font-size:9px
  }
  .form-grid {
    grid-template-columns:1fr
  }
  .span-two {
    grid-column:auto
  }
  .form-section {
    padding:20px
  }
  .form-section-heading {
    align-items:flex-start
  }
  .form-section-heading .badge {
    margin-top:3px
  }
  .settings-submit {
    padding:16px 20px;
    flex-wrap:wrap
  }
  .settings-submit .save-note {
    width:100%;
    margin-bottom:2px
  }
  .quick-actions {
    grid-template-columns:1fr;
    gap:8px
  }
  .quick-action {
    padding:13px 16px
  }
  .quick-action small {
    display:inline;
    margin-left:9px
  }
  .quick-action strong {
    display:inline
  }
  .table-footer {
    padding:14px 16px;
    flex-wrap:wrap;
    gap:10px
  }
  .pagination {
    margin-left:auto
  }
  .modal {
    max-width:calc(100vw - 20px);
    max-height:calc(100vh - 24px)
  }
  .modal-header,.modal-body {
    padding:20px
  }
  .modal-header h2 {
    font-size:19px
  }
  .modal .form-section {
    padding:20px
  }
  .nav-item {
    padding:8px 10px
  }
  .nav-item>span {
    display:none
  }
  .workspace-footer {
    font-size:8px;
    padding-left:17px;
    padding-right:17px
  }
  .toast-region {
    right:18px;
    bottom:18px
  }
  .login-brand {
    font-size:17px
  }
  .story-copy h1 {
    font-size:30px
  }
  .story-copy .eyebrow {
    font-size:9px
  }
  .story-copy p {
    font-size:11px
  }
}
.config-form>.form-error {
  margin:18px 27px
}
.copy-field {
  margin-bottom:20px
}
.copy-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px
}
.copy-heading label {
  font-size:12px;
  font-weight:550
}
.copy-field input,.copy-field textarea {
  display:block;
  width:100%;
  padding:11px 12px;
  border:1px solid #dfd9e9;
  border-radius:8px;
  background:#faf8fc;
  color:#62506f;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:11px;
  line-height:1.8
}
.copy-field textarea {
  resize:vertical;
  min-height:145px
}
.integration-body .copy-hint {
  font-size:11px;
  color:var(--muted);
  margin:7px 0 0;
  line-height:1.8
}
.public-config-status {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:17px
}
.public-config-status+.notice {
  margin-bottom:16px
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation-duration:.01ms!important;
    transition:none!important
  }
}
