:root {
  color-scheme: dark;
  --bg: #0d1217;
  --panel: #121920;
  --panel-2: #151f28;
  --panel-3: #0b1116;
  --line: #293744;
  --line-soft: #1e2b36;
  --text: #edf4fb;
  --muted: #9badbc;
  --accent: #6bd4ac;
  --accent-soft: #18372f;
  --blue: #7ab4ff;
  --danger: #ff8d88;
  --shadow: 0 20px 40px rgb(0 0 0 / 0.28);
  font-family: Inter, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

.platform-header {
  height: 54px;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(260px, 620px) minmax(120px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #0b1117;
}

.platform-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.platform-brand h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1;
}

.platform-tabs,
.platform-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.platform-links {
  justify-content: flex-end;
}

.platform-tabs button,
.action,
.secondary-action {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #1a2430;
  color: var(--text);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.platform-tabs button[aria-pressed="true"],
.action.primary {
  background: var(--accent-soft);
  border-color: #2e6658;
  color: var(--accent);
}

.action.danger {
  background: rgb(149 50 50 / 0.22);
  border-color: #7f3a3a;
  color: #ff9f9f;
}

.platform-shell {
  height: calc(100vh - 54px);
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  min-width: 0;
}

.platform-rail {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: var(--panel);
  display: grid;
  grid-template-rows: 1fr 1fr;
}

.rail-section {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-soft);
}

.section-heading h2 {
  margin: 0;
  font-size: 16px;
  color: var(--blue);
}

.rail-list {
  min-height: 0;
  overflow: auto;
  padding: 10px;
}

.rail-item {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  padding: 6px 9px;
  text-align: left;
  cursor: pointer;
}

.rail-item:hover,
.rail-item[aria-selected="true"] {
  background: #192631;
  border-color: #315042;
}

.rail-item[aria-selected="true"] {
  box-shadow: inset 4px 0 0 var(--accent);
}

.kind {
  height: 24px;
  border: 1px solid #314252;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #a9c9e6;
  background: #0f1720;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.rail-title,
.item-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-meta,
.item-meta,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.scene-view {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 24px;
  background: #0c1116;
}

.scene-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.scene-header h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.scene-header p {
  margin: 0;
  color: var(--muted);
}

.scene-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.surface {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 16px;
}

.surface h3 {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 17px;
}

.item-list {
  display: grid;
  gap: 8px;
}

.list-row {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--panel-3);
  color: var(--text);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.list-row.interactive {
  cursor: pointer;
}

.list-row.interactive:hover,
.list-row[aria-selected="true"] {
  border-color: #315042;
  background: #14251f;
}

.status-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  background: #1d2733;
  color: #bad1e7;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
}

.form {
  display: grid;
  gap: 10px;
}

.form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}

.form input,
.form select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0d141b;
  color: var(--text);
  padding: 0 10px;
}

.detail-table {
  display: grid;
  gap: 8px;
}

.detail-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
}

.detail-row strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.placeholder {
  border: 1px dashed #365062;
  border-radius: 7px;
  background: #101821;
  color: var(--muted);
  padding: 18px;
}

.runtime-frame {
  width: 100%;
  height: min(640px, calc(100vh - 220px));
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #000;
}

.pane-title {
  color: var(--blue);
  font-size: 16px;
  font-weight: 850;
}

.pane-subtitle {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.ai-message-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
}

.ai-message {
  display: grid;
  gap: 5px;
  border: 1px solid #263445;
  border-radius: 7px;
  background: #101821;
  padding: 10px;
}

.ai-message span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.ai-message p,
.ai-draft-summary p,
.ai-panel-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.ai-message.is-user {
  background: #14251f;
  border-color: #315042;
}

.ai-draft-summary {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.ai-runtime-frame {
  min-height: 0;
  display: grid;
}

.ai-runtime-frame.is-web-runtime {
  overflow: hidden;
}

.ai-runtime-frame .runtime-frame {
  height: 100%;
  min-height: 0;
}

.ai-runtime-frame.is-web-runtime .runtime-frame {
  width: calc(100% + 320px);
  max-width: none;
}

.ai-debug-summary {
  display: grid;
  gap: 8px;
}

.placeholder.compact {
  padding: 12px;
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .platform-header,
  .platform-shell {
    height: auto;
    display: block;
  }

  .platform-header {
    padding: 12px;
  }

  .platform-tabs,
  .platform-links {
    margin-top: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .platform-rail {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .game-page-layout {
    grid-template-columns: 1fr;
  }

}

/* Platform DEMO formal portal UE */

.platform-header {
  height: 54px;
  grid-template-columns: minmax(230px, 1fr) minmax(260px, 620px) minmax(120px, 1fr);
  gap: 16px;
  padding: 0 16px 0 0;
  border-bottom-color: #1c2230;
  background: #121421;
}

.platform-brand {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-brand .menu-button {
  width: 64px;
  flex: 0 0 64px;
  height: 54px;
  border-radius: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #4f5cf7;
  color: white;
  font-weight: 900;
  box-shadow: inset 0 -8px 18px rgb(0 0 0 / 0.18);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
  flex: 0 0 auto;
}

.brand-copy h1 {
  margin: 0;
  font-size: 17px;
}

.brand-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.platform-search {
  height: 40px;
  min-width: 0;
  display: grid;
  grid-template-columns: 0 minmax(0, 1fr);
  align-items: center;
  border: 1px solid #303653;
  border-radius: 999px;
  background: #242840;
  padding: 0 18px;
}

.platform-search span {
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.platform-search input {
  width: 100%;
  height: 38px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.platform-search input::placeholder {
  color: #b0b5c7;
}

.platform-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.icon-button,
.user-chip {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1a2230;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.icon-button {
  width: 38px;
  padding: 0;
  font-weight: 800;
}

.menu-button {
  background: transparent;
  border-color: transparent;
  color: #d6e0ef;
}

.user-chip {
  width: 40px;
  border-radius: 999px;
  background: #ffb172;
  color: #222331;
  font-weight: 900;
}

.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: 260px;
  border: 1px solid #303653;
  border-radius: 8px;
  background: #101721;
  box-shadow: var(--shadow);
  padding: 10px;
}

.user-menu-title {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  padding: 4px 6px 8px;
}

.user-menu-list {
  display: grid;
  gap: 6px;
}

.user-menu-actions,
.user-menu-account {
  display: grid;
  gap: 8px;
}

.user-menu-account {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  border: 1px solid #263445;
  border-radius: 7px;
  background: #0d141b;
  padding: 8px;
}

.user-menu-item,
.user-menu-create {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.user-menu-item {
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 8px;
}

.user-menu-item:hover,
.user-menu-item[aria-current="true"] {
  background: #17231f;
  border-color: #2e6658;
}

.user-menu-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffb172;
  color: #222331;
  font-size: 12px;
  font-weight: 950;
}

.user-menu-item strong,
.user-menu-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-item small {
  color: var(--muted);
  margin-top: 3px;
}

.user-menu-account strong,
.user-menu-account small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-account small,
.user-menu-help {
  color: var(--muted);
  font-size: 12px;
}

.user-menu-help {
  padding: 2px 6px 8px;
  line-height: 1.45;
}

.user-menu-create {
  min-height: 36px;
  margin-top: 8px;
  background: #1a2430;
  border-color: var(--line);
  font-weight: 850;
}

.user-menu-create:hover {
  background: var(--accent-soft);
  border-color: #2e6658;
  color: var(--accent);
}

.platform-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgb(3 6 10 / 0.62);
  padding: 24px;
}

.platform-modal {
  width: min(560px, 100%);
  border: 1px solid #303653;
  border-radius: 8px;
  background: #101721;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.platform-modal-header,
.platform-modal-actions {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.platform-modal-header h2 {
  margin: 0;
  font-size: 20px;
}

.platform-modal-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.platform-modal-body label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.platform-modal-body input,
.platform-modal-body select {
  height: 38px;
  border: 1px solid #303653;
  border-radius: 7px;
  background: #0c121a;
  color: var(--text);
  padding: 0 12px;
}

.modal-fieldset {
  border: 1px solid #303653;
  border-radius: 7px;
  padding: 12px;
}

.modal-fieldset legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.platform-modal-body .checkbox-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  min-height: 30px;
}

.platform-modal-body .checkbox-row input {
  width: 16px;
  height: 16px;
  padding: 0;
}

.modal-note {
  margin: 0;
  color: var(--muted);
}

.modal-copy {
  border: 1px solid #263445;
  border-radius: 7px;
  background: #0d141b;
  color: var(--muted);
  padding: 12px;
  line-height: 1.45;
}

.modal-copy.danger {
  border: 1px solid #6b3333;
  border-radius: 7px;
  background: rgb(120 34 34 / 0.18);
  color: #ffb4b4;
  padding: 12px;
  line-height: 1.45;
}

.modal-error {
  border: 1px solid #6b3333;
  border-radius: 7px;
  background: rgb(120 34 34 / 0.18);
  color: #ffb4b4;
  padding: 10px 12px;
  line-height: 1.45;
}

.platform-modal-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  padding: 14px 18px;
}

.platform-shell {
  height: calc(100vh - 54px);
  grid-template-columns: 76px minmax(0, 1fr);
  position: relative;
}

.platform-sidebar {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 76px;
  min-width: 0;
  border-right: 1px solid #1c2230;
  background: #0f1220;
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  transition: width 140ms ease;
}

.platform-shell.is-sidebar-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.platform-shell.is-sidebar-hidden .platform-sidebar {
  display: none;
}

.platform-shell.is-sidebar-hidden .scene-view {
  grid-column: 1;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #aeb8ce;
  padding: 0;
  cursor: pointer;
}

.side-nav button span:last-child {
  display: none;
}

.side-nav button:hover,
.side-nav button[aria-pressed="true"] {
  background: #171b2c;
  border-color: #2a3150;
  color: var(--text);
}

.side-nav button:disabled,
.side-nav button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.46;
}

.side-nav button:disabled:hover,
.side-nav button[aria-disabled="true"]:hover {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.side-nav button[aria-pressed="true"] {
  box-shadow: inset 4px 0 0 #8ca7ff;
}

.nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1a2035;
  color: #aebcff;
  font-size: 11px;
  font-weight: 900;
}

.side-spacer {
  flex: 1;
}

.scene-view {
  grid-column: 2;
  position: relative;
  z-index: 1;
  padding: 24px 52px 60px;
  background:
    radial-gradient(circle at top right, rgb(89 199 232 / 0.12), transparent 32%),
    linear-gradient(180deg, #090c12 0%, #0c1118 100%);
}

.scene-header {
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.scene-kicker {
  display: none;
}

.scene-header h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.scene-header p {
  display: none;
}

.toolbar-select {
  height: 38px;
  min-width: 170px;
  border: 1px solid #3a4059;
  border-radius: 8px;
  background: #101620;
  color: var(--text);
  padding: 0 12px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.game-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 232px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-2px);
}

.game-cover {
  position: relative;
  display: block;
  width: 100%;
  height: 142px;
  border: 1px solid #253244;
  border-radius: 8px;
  overflow: hidden;
  background: #17202d;
  box-shadow: var(--shadow);
}

.cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-art {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--cover-a, #58d68d), transparent 58%),
    linear-gradient(315deg, var(--cover-b, #6c63ff), transparent 54%),
    radial-gradient(circle at 72% 28%, rgb(255 255 255 / 0.26), transparent 24%),
    #111926;
}

.cover-grid {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
}

.cover-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: white;
  font-size: 28px;
  font-weight: 950;
  line-height: 0.95;
  text-shadow: 0 4px 12px rgb(0 0 0 / 0.5);
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  min-height: 24px;
  border-radius: 6px;
  background: white;
  color: #26201e;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 900;
}

.game-card-body {
  display: block;
  padding: 10px 2px 0;
}

.game-card h3 {
  margin: 0;
  font-size: 17px;
}

.game-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.card-open {
  min-height: 26px;
  border-radius: 6px;
  background: #202838;
  color: #bfd2e6;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 850;
}

.game-card:hover .card-open,
.action.primary {
  background: #1f4f43;
  border-color: #39846d;
  color: #9af1ca;
}

.game-page-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.game-page-cover {
  position: relative;
  min-height: 330px;
  border: 1px solid #253244;
  border-radius: 8px;
  overflow: hidden;
  background: #17202d;
  box-shadow: var(--shadow);
}

.game-page-cover .cover-title {
  font-size: clamp(32px, 5vw, 58px);
}

.static-runtime-scene {
  min-height: min(560px, calc(100vh - 260px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 70% 30%, rgb(89 199 232 / 0.2), transparent 28%),
    linear-gradient(135deg, #0b1119, #111d2a);
  display: grid;
  place-items: center;
  padding: 28px;
}

.static-window {
  width: min(520px, 100%);
  border: 1px solid #31506a;
  border-radius: 8px;
  background: rgb(11 17 25 / 0.82);
  box-shadow: var(--shadow);
  padding: 24px;
}

.static-window-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.static-window h4 {
  margin: 8px 0;
  font-size: 30px;
}

.static-window p {
  margin: 0 0 18px;
  color: var(--muted);
}

.static-window-panels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.static-window-panels span {
  min-height: 74px;
  border: 1px solid #31506a;
  border-radius: 7px;
  background: #122436;
}

.dashboard-grid,
.hub-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.35fr);
  gap: 18px;
}

.profile-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffb172;
  color: #222331;
  font-weight: 950;
  font-size: 20px;
}

.project-card {
  min-height: 96px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #0d141d;
  color: var(--text);
  padding: 12px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.project-card:hover,
.project-card[aria-selected="true"] {
  border-color: #4b725f;
  background: #12231f;
}

.mini-cover {
  position: relative;
  display: block;
  overflow: hidden;
  height: 62px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, var(--cover-a, #59c7e8), transparent),
    linear-gradient(315deg, var(--cover-b, #ffd166), transparent),
    #101721;
}

.mini-cover .cover-image {
  position: static;
  width: 100%;
  height: 100%;
}

.status-pill.available {
  background: #1c3c35;
  color: #8de8c0;
}

.status-pill.shell {
  background: #3b3348;
  color: #d9baff;
}

.status-pill.draft {
  background: #37351e;
  color: #ffe58a;
}

.hub-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.hub-actions.compact-actions {
  grid-template-columns: 1fr;
  margin: 14px 0;
}

.hub-action {
  display: flex;
  align-items: center;
  min-height: 112px;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #0d141d;
  color: var(--text);
  padding: 16px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.hub-action:hover {
  border-color: #425f89;
  background: #121d2d;
}

.hub-action.danger {
  border-color: #4a2d35;
}

.hub-action.danger:hover {
  border-color: #7f3a3a;
  background: #21141a;
}

.hub-action:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.hub-action:disabled:hover {
  border-color: var(--line-soft);
  background: #0d141d;
}

.hub-action strong {
  display: block;
  margin-bottom: 6px;
}

.hub-action span {
  color: var(--muted);
  font-size: 13px;
}

.review-admin-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.65fr) minmax(0, 1.6fr);
  gap: 18px;
}

.review-admin-list {
  min-width: 0;
}

.review-admin-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border-top: 1px solid var(--line-soft);
  padding: 10px 0;
}

.review-admin-row:first-of-type {
  border-top: 0;
}

.review-admin-row strong,
.review-admin-row span {
  display: block;
  min-width: 0;
}

.review-admin-row span {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.review-admin-actions .secondary-action {
  min-height: 32px;
  padding: 0 10px;
}

.mini-table {
  display: grid;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: hidden;
}

.mini-table-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) 90px minmax(130px, 1fr) minmax(260px, auto);
  gap: 12px;
  align-items: center;
  min-width: 720px;
  min-height: 52px;
  padding: 10px 12px;
  border-top: 1px solid var(--line-soft);
}

.mini-table-row:first-child {
  border-top: 0;
}

.mini-table-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.inline-actions .secondary-action {
  min-height: 32px;
  padding: 0 10px;
}

.status-pill.danger {
  border-color: #7f3a3a;
  color: #ff9f9f;
  background: rgb(149 50 50 / 0.16);
}

.empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed #3b5064;
  border-radius: 8px;
  color: var(--muted);
}

.empty-projects {
  grid-column: 1 / -1;
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #243648;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgb(31 79 67 / 0.44), transparent 42%),
    linear-gradient(315deg, rgb(122 180 255 / 0.18), transparent 42%),
    #0e151d;
  padding: 28px;
}

.empty-projects-copy {
  max-width: 560px;
  min-width: 0;
}

.empty-projects-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.empty-projects h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.empty-projects p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (min-width: 1180px) {
  .platform-sidebar:hover:not(.is-forced-collapsed) {
    width: 230px;
    box-shadow: 18px 0 30px rgb(0 0 0 / 0.36);
  }

  .platform-sidebar:hover:not(.is-forced-collapsed) .side-nav button {
    justify-content: flex-start;
    padding: 0 12px;
  }

  .platform-sidebar:hover:not(.is-forced-collapsed) .side-nav button span:last-child {
    display: inline;
    font-weight: 800;
  }
}

@media (max-width: 980px) {
  .empty-projects {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-admin-layout {
    grid-template-columns: 1fr;
  }

  .review-admin-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .review-admin-actions {
    justify-content: flex-start;
  }

  .game-page-layout {
    grid-template-columns: 1fr;
  }
}
