:root {
  color-scheme: dark;
  --bg: #080e1d;
  --bg-soft: #0d1426;
  --panel: rgba(18, 26, 45, 0.76);
  --panel-strong: rgba(20, 29, 50, 0.95);
  --panel-border: rgba(150, 170, 220, 0.15);
  --panel-border-strong: rgba(160, 178, 232, 0.24);
  --text: #f7f8ff;
  --muted: #aab1c8;
  --muted-strong: #c5cce0;
  --accent: #7248ff;
  --accent-2: #8c5dff;
  --accent-3: #ffc833;
  --mint: #7ed6a2;
  --rose: #ff6f9f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --sidebar-width: 276px;
  --body-bg:
    radial-gradient(circle at 47% 0%, rgba(114, 72, 255, 0.11), transparent 34rem),
    linear-gradient(145deg, #090f1d 0%, #080d1a 44%, #0b1222 100%);
  --sidebar-bg:
    radial-gradient(circle at 30% 6%, rgba(91, 70, 194, 0.16), transparent 16rem),
    rgba(9, 15, 30, 0.93);
}

body[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6fc;
  --bg-soft: #ffffff;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --panel-border: rgba(41, 56, 88, 0.13);
  --panel-border-strong: rgba(41, 56, 88, 0.22);
  --text: #111827;
  --muted: #657089;
  --muted-strong: #3f4b63;
  --shadow: 0 20px 48px rgba(36, 51, 83, 0.12);
  --body-bg:
    radial-gradient(circle at 48% 0%, rgba(114, 72, 255, 0.1), transparent 32rem),
    linear-gradient(145deg, #f8faff 0%, #eef3fb 52%, #f7f9fe 100%);
  --sidebar-bg:
    linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--body-bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

button,
textarea,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

button.loading {
  cursor: progress;
}

button:focus-visible,
textarea:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(255, 200, 51, 0.85);
  outline-offset: 3px;
}

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

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

html.app-loading .app-shell {
  display: none !important;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 26px 14px 14px;
  border-right: 1px solid var(--panel-border);
  background: var(--sidebar-bg);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 6px 26px;
  overflow: visible;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand span:not(.brand-mark) {
  min-width: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 28px;
  place-items: center;
  border-radius: 11px 15px 12px 14px;
  background: linear-gradient(135deg, #7648ff, #9067ff);
  color: #ffdc48;
  box-shadow: 0 10px 24px rgba(109, 68, 255, 0.38);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.6;
}

.spark {
  flex: 0 0 auto;
  margin-left: -4px;
  color: var(--accent-3);
  width: 14px;
  height: 14px;
  transform: translateY(-8px);
}

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 7px;
  background: transparent;
  color: #f2f4ff;
  font-weight: 500;
  text-align: left;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  color: #f1f4ff;
  stroke-width: 1.85;
}

.nav-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 36px;
  min-height: 20px;
  margin-left: auto;
  padding: 0 7px;
  border: 1px solid rgba(255, 200, 51, 0.28);
  border-radius: 999px;
  background: rgba(255, 200, 51, 0.12);
  color: #ffe6a1;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.nav-plan-badge svg {
  width: 12px;
  height: 12px;
  color: currentColor;
  stroke-width: 2.4;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.nav-item.active {
  background: linear-gradient(135deg, #7248ff, #7e4fff);
  box-shadow: 0 16px 34px rgba(109, 68, 255, 0.28);
}

.nav-item.active svg {
  color: var(--accent-3);
}

.nav-divider {
  position: relative;
  margin-top: 10px;
}

.nav-divider::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(166, 183, 232, 0.16);
}

.top-upgrade-button,
.generate-button,
.export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 7px;
  background: linear-gradient(135deg, #7048ff, #7f4eff);
  color: white;
  font-weight: 700;
  box-shadow: 0 18px 34px rgba(98, 63, 238, 0.28);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.top-upgrade-button:hover,
.generate-button:hover,
.export-button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(98, 63, 238, 0.36);
}

.top-upgrade-button svg {
  width: 18px;
  height: 18px;
  color: var(--accent-3);
}

.sidebar-footer {
  display: grid;
  gap: 16px;
  margin-top: auto;
}

.theme-row,
.profile-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 47px;
  padding: 0 10px;
  border: 1px solid rgba(147, 165, 214, 0.11);
  border-radius: var(--radius);
  background: rgba(17, 26, 48, 0.72);
  color: #f5f7ff;
}

body[data-theme="light"] .theme-row,
body[data-theme="light"] .profile-button,
body[data-theme="light"] .ghost-button,
body[data-theme="light"] .random-button,
body[data-theme="light"] .icon-button,
body[data-theme="light"] .mode-toggle {
  border-color: rgba(41, 56, 88, 0.14);
  background: #ffffff;
  color: #1c2437;
}

body[data-theme="light"] .nav-item,
body[data-theme="light"] .nav-item svg,
body[data-theme="light"] .prompt-area label,
body[data-theme="light"] .preview-header h2,
body[data-theme="light"] .export-copy h2,
body[data-theme="light"] .export-card h3 {
  color: #151b2d;
}

body[data-theme="light"] .title-block p {
  color: #3f4b63;
}

body[data-theme="light"] .nav-item.active {
  color: #ffffff;
}

body[data-theme="light"] .nav-item.active svg {
  color: var(--accent-3);
}

body[data-theme="light"] .nav-plan-badge {
  border-color: rgba(155, 96, 0, 0.28);
  background: #fff2c6;
  color: #6f4500;
}

body[data-theme="light"] textarea {
  border-color: rgba(41, 56, 88, 0.16);
  background: #ffffff;
  color: #12182a;
}

body[data-theme="light"] .generator-panel,
body[data-theme="light"] .export-panel,
body[data-theme="light"] .utility-view {
  background: #ffffff;
}

body[data-theme="light"] .preview-panel,
body[data-theme="light"] .export-card,
body[data-theme="light"] .game-preview {
  border-color: rgba(41, 56, 88, 0.12);
  background: #f7f9fe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body[data-theme="light"] .account-menu {
  background: #ffffff;
}

body[data-theme="light"] .balance-card,
body[data-theme="light"] .balance-pill {
  border-color: rgba(119, 72, 0, 0.22);
  background: #fff7dc;
  color: #533800;
}

body[data-theme="light"] .balance-card svg,
body[data-theme="light"] .balance-pill svg,
body[data-theme="light"] .cost {
  color: #7a4d00;
}

body[data-theme="light"] .top-upgrade-button svg {
  color: #ffe08a;
  filter: drop-shadow(0 1px 1px rgba(44, 25, 0, 0.32));
}

body[data-theme="light"] .balance-card strong {
  color: #12182a;
}

body[data-theme="light"] .cost {
  background: rgba(122, 77, 0, 0.12);
}

body[data-theme="light"] .generate-button .cost {
  background: rgba(255, 255, 255, 0.22);
  color: #fff7cd;
}

body[data-theme="light"] .generate-button.is-blocked .cost {
  background: rgba(255, 255, 255, 0.18);
  color: #f7f8ff;
}

body[data-theme="light"] .pro-upsell {
  border-color: rgba(155, 96, 0, 0.18);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 200, 51, 0.22), transparent 7rem),
    #fffaf0;
}

body[data-theme="light"] .pro-upsell-header {
  color: #3b2a09;
}

body[data-theme="light"] .pro-upsell-icon {
  background: #fff0bd;
  color: #7a4d00;
}

body[data-theme="light"] .pro-upsell p {
  color: #5a647a;
}

.theme-row {
  position: relative;
  cursor: pointer;
}

.theme-row > span:first-child,
.profile-button span:not(.avatar) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.theme-row svg,
.profile-button svg {
  width: 18px;
  height: 18px;
}

.theme-row > span:first-child svg {
  color: #d6d7ff;
}

.pro-upsell {
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid rgba(255, 200, 51, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 200, 51, 0.16), transparent 7rem),
    rgba(21, 29, 52, 0.78);
}

.pro-upsell[hidden] {
  display: none;
}

.pro-upsell-header {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff7df;
  font-weight: 900;
}

.pro-upsell-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 200, 51, 0.16);
  color: #ffd45d;
}

.pro-upsell-icon svg {
  width: 16px;
  height: 16px;
}

.pro-upsell p {
  margin: 0;
  color: #d6dce9;
  font-size: 13px;
  line-height: 1.45;
}

.pro-upsell-button {
  min-height: 36px;
  border-radius: 7px;
  background: linear-gradient(135deg, #7048ff, #7f4eff);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.theme-checkbox,
.mode-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.switch {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #6c52e7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 19px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transform: translateY(-50%);
  transition: left 180ms ease, background 180ms ease;
}

.theme-checkbox:not(:checked) + .switch::after {
  left: 3px;
}

.theme-checkbox:not(:checked) + .switch,
.settings-theme-checkbox:not(:checked) + .switch {
  background: #d8dee9;
  box-shadow: inset 0 0 0 1px rgba(41, 56, 88, 0.16);
}

.theme-checkbox:not(:checked) + .switch::after,
.settings-theme-checkbox:not(:checked) + .switch::after {
  background: #ffffff;
}

.profile-button {
  width: 100%;
  gap: 9px;
  justify-content: flex-start;
  padding: 0 8px;
}

.profile-button svg {
  margin-left: auto;
  color: var(--muted);
}

.avatar,
.avatar-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid #b5d9ff;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #cce9ff);
  color: #253149;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(83, 145, 255, 0.22);
}

.profile-button .avatar {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

.avatar img,
.avatar-button img,
.profile-large-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 47px;
  padding: 0 12px;
  border: 1px solid rgba(255, 200, 51, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 200, 51, 0.08);
  color: #f6f0d4;
}

.balance-card span,
.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.balance-card svg,
.balance-pill svg {
  width: 18px;
  height: 18px;
  color: var(--accent-3);
}

.balance-card strong {
  color: white;
  font-size: 15px;
}

.workspace {
  min-width: 0;
  padding: 26px 30px 28px;
}

.topbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  min-height: 68px;
  margin-bottom: 1px;
}

.title-block {
  grid-column: 1;
  justify-self: center;
  max-width: 560px;
  text-align: center;
}

.title-block h1 {
  margin: 0 0 7px;
  font-size: clamp(21px, 1.7vw, 24px);
  font-weight: 800;
  letter-spacing: 0;
}

.title-block h1 span {
  color: var(--accent-3);
}

.title-block p {
  margin: 0;
  color: #d2d7e7;
  font-size: 14px;
}

.top-actions {
  grid-column: 2;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.balance-pill {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 200, 51, 0.2);
  border-radius: 8px;
  background: rgba(255, 200, 51, 0.08);
  color: #fff8d9;
  font-weight: 800;
}

.ghost-button,
.top-upgrade-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--panel-border-strong);
  border-radius: 8px;
  color: white;
  font-weight: 700;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: rgba(17, 25, 45, 0.74);
}

.ghost-button:hover {
  background: rgba(28, 39, 68, 0.84);
}

.ghost-button svg {
  width: 19px;
  height: 19px;
}

.top-upgrade-button {
  min-width: 129px;
}

.avatar-button {
  width: 49px;
  height: 49px;
  min-width: 49px;
  max-width: 49px;
  padding: 0;
  flex: 0 0 49px;
  aspect-ratio: 1 / 1;
}

.account-menu-wrap {
  position: relative;
  display: inline-flex;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 178px;
  padding: 8px;
  border: 1px solid var(--panel-border-strong);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.account-menu[hidden] {
  display: none;
}

.account-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  text-align: left;
}

.account-menu button:hover {
  background: rgba(114, 72, 255, 0.14);
}

.account-menu svg {
  width: 18px;
  height: 18px;
  color: var(--muted-strong);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) minmax(390px, 520px);
  gap: 18px;
  align-items: stretch;
}

.generator-panel,
.export-panel {
  min-width: 0;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 48% 18%, rgba(118, 88, 255, 0.08), transparent 26rem),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.generator-panel {
  padding: 20px 16px 12px;
}

.generation-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: min(100%, 360px);
  margin: 0 0 18px 6px;
  padding: 5px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: rgba(10, 16, 30, 0.58);
}

.generation-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 800;
}

.generation-tab.active {
  background: linear-gradient(135deg, rgba(112, 72, 255, 0.95), rgba(127, 78, 255, 0.95));
  color: #fff;
  box-shadow: 0 12px 26px rgba(98, 63, 238, 0.2);
}

.generation-tab svg {
  width: 16px;
  height: 16px;
  color: var(--accent-3);
}

.prompt-area label {
  display: block;
  margin: 0 0 9px 8px;
  color: #f5f6ff;
  font-weight: 600;
}

.prompt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 280px);
  gap: 14px;
  align-items: start;
}

textarea {
  display: block;
  width: 100%;
  min-height: 68px;
  max-height: 180px;
  resize: vertical;
  padding: 14px 16px;
  border: 1px solid rgba(155, 172, 218, 0.19);
  border-radius: 8px;
  background: rgba(10, 16, 30, 0.64);
  color: var(--text);
  line-height: 1.45;
}

textarea::placeholder {
  color: #747d9d;
}

.generate-button {
  width: 100%;
  min-height: 54px;
  align-self: start;
  padding: 0 18px;
  white-space: nowrap;
  font-size: 16px;
}

.generate-button span:not(.cost) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.generate-button.is-blocked {
  background: linear-gradient(135deg, rgba(86, 96, 122, 0.95), rgba(56, 65, 90, 0.95));
  box-shadow: none;
}

.generate-button.is-blocked .cost {
  background: rgba(255, 255, 255, 0.16);
  color: #f7f8ff;
}

.generate-button svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--accent-3);
}

.cost {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff7cd;
  font-size: 12px;
  font-weight: 800;
}

.tip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0 16px 6px;
  color: var(--muted);
  font-size: 13px;
}

.tip svg {
  width: 15px;
  height: 15px;
  color: var(--accent-3);
}

.preview-panel {
  position: relative;
  padding: 17px 12px 0;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(21, 30, 54, 0.9), rgba(16, 24, 43, 0.9)),
    rgba(15, 23, 42, 0.9);
}

.preview-panel::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -6px;
  right: -6px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.preview-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

#generationStatus {
  min-height: 20px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 700;
}

#generationStatus[data-tone="error"] {
  color: var(--rose);
}

#generationStatus[data-tone="warning"] {
  color: var(--accent-3);
}

.game-preview {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 783 / 430;
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 213, 105, 0.08), rgba(114, 72, 255, 0.08)),
    rgba(9, 15, 30, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.preview-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.preview-empty svg {
  width: 52px;
  height: 52px;
  color: var(--accent-2);
}

.preview-empty strong {
  color: var(--text);
  font-size: 18px;
}

.preview-empty span {
  max-width: 340px;
  line-height: 1.55;
}

.preview-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 61px;
}

.device-toggle {
  display: inline-flex;
  gap: 8px;
  justify-self: start;
}

.icon-button {
  display: grid;
  width: 45px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(139, 153, 203, 0.16);
  border-radius: 8px;
  background: rgba(10, 16, 31, 0.58);
  color: #aab3ca;
}

.icon-button.active {
  border-color: rgba(126, 83, 255, 0.88);
  color: #8e66ff;
  box-shadow: inset 0 0 0 1px rgba(126, 83, 255, 0.2);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.mode-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: center;
  height: 36px;
  padding: 0 15px;
  border-radius: 8px;
  background: rgba(17, 25, 48, 0.72);
  color: #aab3ca;
}

.mode-toggle svg {
  width: 17px;
  height: 17px;
}

.mode-switch {
  position: relative;
  width: 37px;
  height: 20px;
  border-radius: 999px;
  background: #6b52de;
}

.mode-switch span {
  position: absolute;
  top: 3px;
  left: 19px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #8b6cff;
  box-shadow: 0 0 0 4px rgba(139, 108, 255, 0.2);
  transition: left 180ms ease, background 180ms ease;
}

.mode-toggle input:not(:checked) + .mode-switch span {
  left: 4px;
  background: #ffc833;
}

.random-button {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(24, 33, 57, 0.86);
  color: #d6dcf1;
  font-size: 13px;
}

.random-button:hover {
  background: rgba(36, 48, 78, 0.9);
}

.random-button svg {
  width: 16px;
  height: 16px;
}

.export-panel {
  display: flex;
  flex-direction: column;
  min-height: 722px;
  padding: 36px 28px 28px;
}

.export-copy {
  margin-bottom: 24px;
}

.export-copy h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.export-copy p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.55;
}

.export-stack {
  display: grid;
  gap: 16px;
  margin: auto 0;
}

.export-card {
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0;
  padding: 32px 24px 26px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 17%, rgba(100, 78, 218, 0.12), transparent 19rem),
    rgba(16, 24, 43, 0.64);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.code-illustration {
  position: relative;
  width: 180px;
  height: 156px;
  margin-bottom: 12px;
}

.doc-icon {
  position: absolute;
  top: 30px;
  left: 62px;
  display: grid;
  width: 82px;
  height: 96px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(140deg, #7652ff, #7454ff 58%, #5d45e8);
  box-shadow: 0 24px 48px rgba(91, 69, 232, 0.38);
}

.doc-icon::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  border-radius: 0 10px 0 10px;
  background: #9172ff;
  clip-path: polygon(0 0, 100% 100%, 100% 0);
  box-shadow: -1px 1px 0 rgba(255, 255, 255, 0.08);
}

.doc-icon svg {
  width: 44px;
  height: 44px;
  color: #dbe3ff;
  stroke-width: 2.5;
}

.orbit {
  position: absolute;
  border: 6px solid rgba(95, 68, 198, 0.26);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.orbit-one {
  right: 12px;
  bottom: 20px;
  width: 110px;
  height: 36px;
}

.orbit-two {
  left: 43px;
  bottom: 16px;
  width: 110px;
  height: 36px;
  border-color: rgba(62, 83, 160, 0.18);
}

.star,
.dot {
  position: absolute;
  display: block;
}

.star {
  color: #90a7ff;
  text-shadow: 0 0 17px rgba(125, 153, 255, 0.65);
}

.star-one {
  top: 8px;
  right: 42px;
  font-size: 30px;
}

.star-two {
  top: 42px;
  right: 20px;
  font-size: 22px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #755dff;
  opacity: 0.7;
}

.dot-one {
  top: 18px;
  right: 88px;
  background: #6d87ff;
}

.dot-two {
  top: 82px;
  right: 30px;
}

.dot-three {
  left: 34px;
  top: 74px;
}

.export-card h3 {
  max-width: 330px;
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
}

.export-card p {
  max-width: 330px;
  margin: 0 0 24px;
  color: var(--muted-strong);
  line-height: 1.65;
}

.export-button {
  width: 100%;
  max-width: 384px;
  min-height: 54px;
  margin-bottom: 18px;
  font-size: 15px;
}

.export-button svg {
  width: 23px;
  height: 23px;
}

.export-card small {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #99a1ba;
  font-size: 13px;
  line-height: 1.4;
}

.export-card small svg {
  width: 17px;
  height: 17px;
}

.export-card[hidden] {
  display: none;
}

.export-card-secondary {
  align-items: stretch;
  justify-items: stretch;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(25, 36, 63, 0.74), rgba(15, 23, 42, 0.78)),
    rgba(16, 24, 43, 0.64);
}

.export-card-secondary h3,
.export-card-secondary p {
  max-width: none;
}

.secondary-export-button {
  justify-self: center;
  border: 1px solid rgba(160, 178, 232, 0.28);
  background: rgba(10, 16, 31, 0.72);
  box-shadow: none;
  text-align: center;
}

.secondary-export-button:hover {
  background: rgba(33, 45, 77, 0.92);
}

.import-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 16px;
}

.import-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: rgba(17, 25, 45, 0.56);
}

.import-card-header {
  display: grid;
  gap: 10px;
}

.import-card h3,
.import-card p {
  margin: 0;
}

.import-card p {
  color: var(--muted-strong);
  line-height: 1.55;
}

.file-drop {
  position: relative;
  display: grid;
  min-height: 150px;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 22px;
  border: 1px dashed rgba(160, 178, 232, 0.34);
  border-radius: 8px;
  background: rgba(10, 16, 31, 0.58);
  color: var(--muted-strong);
  text-align: center;
  cursor: pointer;
}

.file-drop svg {
  width: 36px;
  height: 36px;
  color: var(--accent-2);
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.file-drop:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.68;
}

.import-status {
  min-height: 20px;
  margin: 0;
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
}

.import-status[data-tone="error"] {
  color: var(--rose);
}

.import-status[data-tone="warning"] {
  color: var(--accent-3);
}

.import-rules ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.import-rules li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted-strong);
  line-height: 1.45;
}

.import-rules li svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--mint);
}

.app-view[hidden] {
  display: none;
}

.utility-view {
  min-height: 722px;
  padding: 28px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 48% 18%, rgba(118, 88, 255, 0.08), transparent 26rem),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.utility-header {
  margin-bottom: 24px;
}

.utility-header h2,
.settings-card h3 {
  margin: 0;
  letter-spacing: 0;
}

.utility-header h2 {
  font-size: 24px;
}

.utility-header p {
  margin: 8px 0 0;
  color: var(--muted-strong);
}

.record-list {
  display: grid;
  gap: 12px;
}

.record-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: rgba(17, 25, 45, 0.56);
}

.record-card h3 {
  margin: 0 0 7px;
  font-size: 16px;
}

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

.record-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 13px;
  white-space: nowrap;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 280px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.empty-state svg {
  width: 42px;
  height: 42px;
  color: var(--accent-2);
}

.empty-state p {
  max-width: 520px;
  margin: 0;
  line-height: 1.5;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: rgba(17, 25, 45, 0.56);
}

.profile-large-avatar {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 2px solid #b5d9ff;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #cce9ff);
  color: #253149;
  font-size: 22px;
  font-weight: 800;
}

.profile-summary h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.profile-summary p {
  margin: 0;
  color: var(--muted);
}

.profile-stat {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.profile-summary-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.profile-stat span {
  color: var(--muted);
}

.profile-stat strong {
  font-size: 22px;
}

.profile-logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--panel-border-strong);
  border-radius: 8px;
  background: rgba(17, 25, 45, 0.56);
  color: var(--text);
  font-weight: 800;
}

.profile-logout-button:hover {
  background: rgba(255, 111, 159, 0.12);
}

.profile-logout-button svg {
  width: 18px;
  height: 18px;
  color: var(--rose);
}

.profile-editor {
  display: grid;
  gap: 18px;
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: rgba(17, 25, 45, 0.56);
}

.profile-editor h3 {
  margin: 0;
  font-size: 18px;
}

.profile-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-editor label,
.profile-picture-control {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 800;
}

.profile-editor input[type="text"],
.profile-editor input[type="email"],
.profile-editor input[type="file"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--panel-border-strong);
  border-radius: 8px;
  background: rgba(10, 16, 30, 0.64);
  color: var(--text);
}

.profile-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-editor-actions.is-hidden {
  display: none;
}

.profile-editor-actions .settings-action,
.profile-editor-actions .ghost-button {
  width: auto;
  min-height: 46px;
  margin-top: 0;
  padding: 0 18px;
}

.profile-status {
  min-height: 20px;
  margin: 0;
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
}

.profile-status[data-tone="error"] {
  color: var(--rose);
}

.settings-card {
  padding: 20px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: rgba(17, 25, 45, 0.56);
}

.settings-card dl {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
}

.settings-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.settings-card dt {
  color: var(--muted);
}

.settings-card dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.settings-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  margin-top: 20px;
}

.settings-toggle > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.settings-toggle svg {
  width: 18px;
  height: 18px;
}

.settings-theme-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.settings-theme-checkbox:not(:checked) + .switch::after {
  left: 3px;
}

.settings-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7048ff, #7f4eff);
  color: white;
  font-weight: 800;
}

body[data-theme="light"] .record-card,
body[data-theme="light"] .settings-card,
body[data-theme="light"] .import-card,
body[data-theme="light"] .profile-summary,
body[data-theme="light"] .profile-logout-button,
body[data-theme="light"] .profile-editor {
  border-color: rgba(41, 56, 88, 0.12);
  background: #f8faff;
}

body[data-theme="light"] .profile-editor input[type="text"],
body[data-theme="light"] .profile-editor input[type="email"],
body[data-theme="light"] .profile-editor input[type="file"] {
  background: #ffffff;
  color: #111827;
}

body[data-theme="light"] .file-drop,
body[data-theme="light"] .generation-tabs,
body[data-theme="light"] .export-card-secondary,
body[data-theme="light"] .secondary-export-button {
  background: #ffffff;
  color: #111827;
}

body[data-theme="light"] .generation-tab {
  color: #34415d;
}

body[data-theme="light"] .generation-tab.active {
  color: #ffffff;
}

body[data-theme="light"] .import-rules li,
body[data-theme="light"] .export-card p,
body[data-theme="light"] .import-card p {
  color: #3f4b63;
}

body[data-theme="light"] .import-rules li svg {
  color: #1f9d61;
}

@media (max-width: 1230px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .export-panel {
    min-height: auto;
  }

  .export-copy {
    margin-bottom: 28px;
  }
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    min-height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--panel-border);
  }

  .brand {
    padding: 0;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0 0;
  }

  .nav-item {
    position: relative;
    justify-content: center;
    min-height: 46px;
    padding: 0 10px;
  }

  .nav-item span {
    display: none;
  }

  .nav-plan-badge {
    display: inline-flex;
    position: absolute;
    right: 3px;
    top: 3px;
    gap: 3px;
    min-width: 34px;
    min-height: 16px;
    padding: 0 5px;
    font-size: 9px;
  }

  .nav-plan-badge svg {
    width: 9px;
    height: 9px;
  }

  .nav-divider {
    margin-top: 0;
  }

  .nav-divider::before {
    content: none;
  }

  .sidebar-footer {
    display: none;
  }

  .workspace {
    padding: 20px 16px 24px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr);
    justify-content: flex-start;
    min-height: auto;
    margin-bottom: 20px;
  }

  .title-block {
    grid-column: 1;
    max-width: none;
    padding-right: 0;
    text-align: center;
  }

  .top-actions {
    grid-column: 1;
    justify-self: center;
    margin-top: 14px;
    gap: 8px;
  }

  .ghost-button,
  .top-upgrade-button {
    min-height: 40px;
    padding: 0 13px;
  }

  .avatar-button {
    width: 42px;
    height: 42px;
    min-width: 42px;
    max-width: 42px;
    flex-basis: 42px;
    font-size: 14px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .topbar {
    display: grid;
    gap: 14px;
  }

  .title-block {
    padding-right: 0;
  }

  .top-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .prompt-row {
    grid-template-columns: 1fr;
  }

  .generation-tabs {
    width: 100%;
    margin-left: 0;
  }

  .generate-button {
    min-height: 52px;
    width: 100%;
  }

  .tip {
    align-items: flex-start;
    line-height: 1.45;
  }

  .game-preview {
    min-height: 0;
  }

  .preview-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 0;
  }

  .device-toggle,
  .mode-toggle,
  .random-button {
    justify-self: stretch;
  }

  .device-toggle {
    justify-content: center;
  }

  .mode-toggle,
  .random-button {
    justify-content: center;
  }

  .export-panel {
    padding: 28px 18px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .import-grid {
    grid-template-columns: 1fr;
  }

  .record-card {
    grid-template-columns: 1fr;
  }

  .profile-summary,
  .profile-editor-grid {
    grid-template-columns: 1fr;
  }

  .profile-summary-actions,
  .profile-stat {
    justify-items: start;
  }

  .export-card {
    padding: 28px 16px 24px;
  }

  .code-illustration {
    width: 190px;
    height: 180px;
  }

  .doc-icon {
    left: 60px;
    top: 38px;
    width: 88px;
    height: 109px;
  }

  .doc-icon svg {
    width: 49px;
    height: 49px;
  }

  .main-nav {
    grid-template-columns: repeat(6, 1fr);
  }

  .nav-item {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .workspace {
    padding: 16px 10px 20px;
  }

  .sidebar {
    padding: 14px 10px;
  }

  .brand {
    font-size: 19px;
  }

  .brand-mark {
    width: 35px;
    height: 26px;
  }

  .main-nav {
    gap: 5px;
  }

  .nav-item {
    min-height: 42px;
    padding: 0;
  }

  .top-actions {
    width: 100%;
  }

  .balance-pill {
    width: 100%;
    justify-content: center;
  }

  .ghost-button,
  .top-upgrade-button {
    flex: 1;
  }

  .avatar-button {
    flex: 0 0 42px;
  }

  .generator-panel {
    padding: 14px 10px 8px;
  }

  .preview-panel {
    padding: 14px 8px 0;
  }

  .export-copy h2 {
    font-size: 22px;
  }
}

.landing-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 9%, rgba(128, 82, 255, 0.34), transparent 28rem),
    radial-gradient(circle at 24% 24%, rgba(48, 113, 255, 0.13), transparent 28rem),
    linear-gradient(180deg, #060b18 0%, #081020 52%, #060b16 100%);
  color: #f8fbff;
}

.landing-page main {
  overflow: hidden;
}

.landing-nav {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 0 clamp(22px, 5vw, 72px);
  border-bottom: 1px solid rgba(147, 164, 210, 0.12);
  background: rgba(5, 10, 22, 0.78);
  backdrop-filter: blur(18px);
}

.landing-brand,
.landing-menu,
.landing-nav-actions,
.landing-kicker,
.landing-proof,
.landing-proof span,
.landing-dashboard aside span,
.landing-recent > div:first-child,
.landing-project-list p,
.landing-trusted div,
.landing-trusted span {
  display: flex;
  align-items: center;
}

.landing-brand {
  gap: 12px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.landing-logo {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #6f45ff, #8f55ff);
  color: #ffd84f;
  box-shadow: 0 0 30px rgba(126, 78, 255, 0.46);
}

.landing-logo svg {
  width: 21px;
  height: 21px;
}

.landing-menu {
  gap: 38px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 800;
}

.landing-nav-actions {
  justify-content: flex-end;
  gap: 14px;
}

.landing-nav-button {
  min-height: 44px;
  border-radius: 7px;
}

.landing-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: linear-gradient(135deg, #7447ff, #9055ff);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(120, 74, 255, 0.34);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(560px, 1.14fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1480px;
  min-height: 690px;
  margin: 0 auto;
  padding: 72px clamp(22px, 5vw, 72px) 52px;
}

.landing-hero-copy {
  position: relative;
  z-index: 1;
}

.landing-kicker {
  width: fit-content;
  gap: 8px;
  margin: 0 0 24px;
  padding: 8px 15px;
  border: 1px solid rgba(143, 171, 255, 0.22);
  border-radius: 999px;
  background: rgba(14, 22, 45, 0.72);
  color: #c9d1ff;
  font-size: 13px;
  font-weight: 800;
}

.landing-kicker svg {
  width: 15px;
  height: 15px;
  color: #8f55ff;
}

.landing-hero h1 {
  max-width: 650px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(52px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: 0;
}

.landing-hero h1 span,
.landing-section h2 span,
.landing-final h2 span {
  color: #8f55ff;
}

.landing-lede {
  max-width: 570px;
  margin: 26px 0 0;
  color: #b8c2d8;
  font-size: 20px;
  line-height: 1.55;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.landing-primary,
.landing-secondary {
  display: inline-flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 30px;
  border-radius: 7px;
  font-weight: 900;
}

.landing-primary {
  background: linear-gradient(135deg, #7447ff, #9055ff);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(120, 74, 255, 0.4);
}

.landing-secondary {
  border: 1px solid rgba(161, 177, 221, 0.36);
  background: rgba(9, 17, 35, 0.5);
  color: #ffffff;
}

.landing-primary svg,
.landing-secondary svg {
  width: 20px;
  height: 20px;
}

.landing-proof {
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 34px;
  color: #aeb8d1;
  font-size: 14px;
}

.landing-proof span {
  gap: 8px;
}

.landing-proof svg {
  width: 16px;
  height: 16px;
  color: #b3a7ff;
}

.landing-dashboard {
  position: relative;
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(137, 97, 255, 0.52);
  border-radius: 8px;
  background: rgba(8, 14, 28, 0.9);
  box-shadow:
    0 0 0 1px rgba(171, 139, 255, 0.08) inset,
    0 0 68px rgba(120, 74, 255, 0.35),
    0 36px 110px rgba(0, 0, 0, 0.5);
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
}

.landing-dashboard::before {
  content: "";
  position: absolute;
  top: -26px;
  right: 30px;
  width: 370px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #9b73ff, #ffffff, transparent);
  filter: blur(0.4px);
}

.landing-dashboard aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 455px;
  padding: 14px 12px;
  border-right: 1px solid rgba(149, 168, 215, 0.12);
}

.landing-dashboard aside strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 13px;
}

.landing-dashboard aside span {
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 5px;
  color: #d8def2;
  font-size: 12px;
  font-weight: 800;
}

.landing-dashboard aside span.active {
  background: linear-gradient(135deg, #7447ff, #9055ff);
  color: #ffffff;
}

.landing-dashboard aside svg {
  width: 14px;
  height: 14px;
}

.landing-dashboard-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.landing-builder,
.landing-recent,
.landing-project-list {
  border: 1px solid rgba(149, 168, 215, 0.13);
  border-radius: 8px;
  background: rgba(12, 21, 41, 0.8);
}

.landing-builder {
  padding: 18px;
}

.landing-builder h2,
.landing-recent h3,
.landing-project-list h3 {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
}

.landing-builder p {
  margin: 5px 0 12px;
  color: #9ca8c0;
  font-size: 12px;
}

.landing-builder div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.landing-builder div span {
  min-height: 48px;
  padding: 15px;
  border: 1px solid rgba(149, 168, 215, 0.16);
  border-radius: 6px;
  color: #dce2f4;
  font-size: 12px;
}

.landing-builder button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 126px;
  justify-content: center;
  border-radius: 6px;
  background: linear-gradient(135deg, #7447ff, #9055ff);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.landing-builder button svg {
  width: 15px;
}

.landing-recent {
  padding: 16px;
}

.landing-recent > div:first-child {
  justify-content: space-between;
  margin-bottom: 12px;
}

.landing-recent a {
  color: #7ed6a2;
  font-size: 12px;
  font-weight: 900;
}

.landing-thumb-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.landing-thumb-row article,
.landing-showcase-grid article {
  overflow: hidden;
  border: 1px solid rgba(149, 168, 215, 0.17);
  border-radius: 7px;
  background: rgba(7, 13, 27, 0.82);
}

.landing-thumb-row img {
  display: block;
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
}

.landing-thumb-row strong,
.landing-thumb-row span {
  display: block;
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-thumb-row strong {
  margin-top: 7px;
  color: #ffffff;
  font-size: 11px;
}

.landing-thumb-row span {
  margin: 2px 0 9px;
  color: #7f8aa4;
  font-size: 10px;
}

.landing-project-list {
  padding: 16px;
}

.landing-project-list h3 {
  margin-bottom: 10px;
}

.landing-project-list p {
  justify-content: space-between;
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid rgba(149, 168, 215, 0.1);
  color: #dce2f4;
  font-size: 12px;
}

.landing-project-list svg {
  width: 16px;
  height: 16px;
  color: #9aa5bc;
}

.landing-trusted {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px 38px;
  color: #9faac2;
  text-align: center;
}

.landing-trusted p {
  margin: 0 0 18px;
}

.landing-trusted div {
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(20px, 5vw, 70px);
}

.landing-trusted span {
  gap: 10px;
}

.landing-trusted svg {
  width: 20px;
  height: 20px;
  color: #8f55ff;
}

.landing-section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 64px clamp(22px, 5vw, 72px);
  border-top: 1px solid rgba(149, 168, 215, 0.12);
  text-align: center;
}

.landing-section-kicker {
  width: fit-content;
  margin: 0 auto 12px;
  padding: 8px 16px;
  border: 1px solid rgba(143, 171, 255, 0.22);
  border-radius: 999px;
  color: #bcb4ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-section h2,
.landing-final h2 {
  margin: 0 auto;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: 0;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-top: 34px;
}

.landing-feature-grid article {
  min-height: 250px;
  padding: 34px 24px;
  border: 1px solid rgba(149, 168, 215, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(120, 74, 255, 0.14), transparent 11rem),
    rgba(12, 21, 41, 0.74);
}

.landing-feature-grid article > svg {
  width: 64px;
  height: 64px;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7447ff, #9055ff);
  color: #ffffff;
}

.landing-feature-grid h3 {
  margin: 24px 0 12px;
  color: #ffffff;
  font-size: 20px;
}

.landing-feature-grid p {
  margin: 0;
  color: #aeb8d1;
  line-height: 1.55;
}

.landing-showcase {
  padding-top: 42px;
}

.landing-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
  text-align: left;
}

.landing-showcase-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1.58;
  object-fit: cover;
}

.landing-showcase-grid strong {
  display: block;
  padding: 13px 14px 15px;
  color: #ffffff;
}

.landing-final {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 44px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto 70px;
  padding: 44px clamp(22px, 5vw, 72px);
  border: 1px solid rgba(137, 97, 255, 0.36);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 18%, rgba(120, 74, 255, 0.25), transparent 18rem),
    radial-gradient(circle at 88% 16%, rgba(126, 214, 162, 0.09), transparent 18rem),
    rgba(12, 21, 41, 0.78);
}

.landing-final-art {
  display: grid;
  min-height: 230px;
  place-items: center;
}

.landing-final-art svg {
  width: 132px;
  height: 132px;
  padding: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7447ff, #9055ff);
  color: #ffffff;
  box-shadow: 0 0 60px rgba(120, 74, 255, 0.45);
}

.landing-final .landing-section-kicker,
.landing-final h2 {
  margin-left: 0;
  text-align: left;
}

.landing-final p:not(.landing-section-kicker) {
  max-width: 560px;
  margin: 14px 0 0;
  color: #aeb8d1;
  font-size: 18px;
  line-height: 1.5;
}

.landing-final .landing-actions {
  margin-top: 24px;
}

@media (max-width: 1100px) {
  .landing-nav {
    grid-template-columns: 1fr auto;
  }

  .landing-menu {
    display: none;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .landing-dashboard {
    transform: none;
  }

  .landing-feature-grid,
  .landing-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .landing-nav {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 18px;
  }

  .landing-nav-actions {
    justify-content: flex-start;
  }

  .landing-hero {
    padding: 44px 18px 38px;
  }

  .landing-hero h1 {
    font-size: clamp(42px, 15vw, 64px);
  }

  .landing-lede {
    font-size: 17px;
  }

  .landing-primary,
  .landing-secondary {
    width: 100%;
  }

  .landing-dashboard {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .landing-dashboard aside {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(149, 168, 215, 0.12);
  }

  .landing-dashboard aside span:nth-of-type(n + 4) {
    display: none;
  }

  .landing-builder div,
  .landing-thumb-row,
  .landing-feature-grid,
  .landing-showcase-grid,
  .landing-final {
    grid-template-columns: 1fr;
  }

  .landing-final {
    margin: 0 18px 48px;
    padding: 30px 18px;
  }

  .landing-final-art {
    display: none;
  }
}
