:root {
  --bg: #000000;
  --panel: #000000;
  --panel-soft: #000000;
  --text: #f8f8fb;
  --subtle: #b8c0d4;
  --orange: #ff9f1a;
  --amber: #f9c74f;
  --red: #ff4d6d;
  --purple: #8a3ffc;
  --blue: #1d4ed8;
  --line: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }

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

@font-face {
  font-family: "LuminaBrand";
  src: url("brand/Montserrat-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "LuminaBrand", "Segoe UI", "Trebuchet MS", sans-serif;
  background: #050a12;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 18px 24px 24px;
}

.app-chrome {
  width: min(1280px, 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 14, 22, 0.55);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
}

.chrome-brand-link {
  display: inline-flex;
  flex: 0 0 auto;
}

.chrome-brand-logo {
  width: min(160px, 30vw);
  height: auto;
  opacity: 0.95;
}

.chrome-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
}

.chip-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #e7ecff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.chip-btn:hover {
  border-color: rgba(255, 200, 90, 0.55);
}

.chip-btn-active {
  background: linear-gradient(140deg, #f9c74f, #ff9f1a);
  color: #10161f;
  border-color: transparent;
}

.chip-btn-danger {
  color: #ffe8ea;
  border-color: rgba(255, 77, 109, 0.6);
  background: rgba(255, 77, 109, 0.15);
}

.view {
  width: min(920px, 100%);
  display: none;
  position: relative;
}

#viewLanding {
  width: min(1400px, 100%);
  margin: 0 auto;
}

#viewMyApps {
  width: min(1750px, 100%);
}

#viewSpotLight {
  width: min(1750px, 100%);
}

.view-active {
  display: block;
}

.sr-anchor,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.corner-home {
  position: absolute;
  top: 10px;
  right: 8px;
  display: inline-flex;
  z-index: 10;
}

.corner-logo {
  width: 164px;
  height: auto;
  opacity: 0.98;
}

.landing-brand-compose {
  width: min(1280px, 96vw);
  margin: 42px auto 8px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
}

.landing-logo-primary {
  width: min(1280px, 96vw);
  max-width: 1280px;
  height: auto;
  display: block;
  opacity: 0;
  animation: landingLogoFade 3s ease forwards;
}

.landing-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  opacity: 0;
  width: max-content;
  margin: 0 auto;
  animation: landingButtonsFade 2s ease forwards;
  animation-delay: 3s;
}

#viewLanding .landing-actions .btn {
  min-width: 180px;
}

.btn-image {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-image img {
  width: auto;
  height: 36px;
  display: block;
  max-width: 90vw;
}

.btn-image-login {
  width: auto;
  height: auto;
}

.btn-image-signup {
  width: auto;
  height: auto;
}

@media (max-width: 760px) {
  .btn-image img {
    height: 28px;
  }
}

.btn,
.icon-submit,
.ghost-btn,
.link-btn {
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.btn {
  border-radius: 999px;
  padding: 12px 20px;
  color: #08101b;
}

.btn-primary {
  background: linear-gradient(140deg, var(--amber), var(--orange));
}

.btn-secondary {
  background: linear-gradient(140deg, #d946ef, #7c3aed);
  color: #f8f8fb;
}

.btn-paypal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(140deg, var(--amber), var(--orange));
  color: #08101b;
  border: 1px solid rgba(255, 200, 90, 0.35);
}

.btn-paypal:hover {
  box-shadow: 0 0 0 2px rgba(255, 159, 26, 0.25);
}


.btn-tier-primary {
  background: linear-gradient(140deg, var(--amber), var(--orange));
  color: #08101b;
  border: 1px solid rgba(255, 200, 90, 0.35);
}

.btn-tier-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #e7ecff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-tier-tertiary {
  background: rgba(255, 255, 255, 0.03);
  color: #cfd6e6;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-tier-danger {
  color: #ffe8ea;
  border-color: rgba(255, 77, 109, 0.6);
  background: rgba(255, 77, 109, 0.15);
}

.btn-tier-monetize {
  background: linear-gradient(140deg, var(--amber), var(--orange));
  color: #08101b;
  border: 1px solid rgba(255, 200, 90, 0.35);
}

.paypal-button-wrap {
  margin-top: 14px;
}

.qa-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(420px, 92vw);
  max-height: 70vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 12, 20, 0.94);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  padding: 12px;
  z-index: 80;
}

.qa-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.qa-panel-head h3 {
  margin: 0;
}

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

.qa-item {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.qa-harness-list {
  display: grid;
  gap: 6px;
  margin: 10px 0 12px;
}

.qa-harness-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
  font-size: 0.82rem;
}

.qa-harness-pass {
  color: #9ef7cc;
  font-weight: 700;
}

.qa-harness-fail {
  color: #ffb1be;
  font-weight: 700;
}

.qa-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.view-qa-row {
  margin-bottom: 10px;
}

.surface-card {
  width: min(1040px, 100%);
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 22, 0.55);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  padding: 24px;
}

#viewMyApps .surface-card {
  width: 75%;
  padding: 30px;
}

#viewSpotLight .surface-card {
  width: 75%;
  padding: 30px;
}

.compact-card {
  max-width: 760px;
}

.surface-title {
  margin: 0 0 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.surface-copy {
  margin-top: 0;
  color: var(--subtle);
  max-width: 80ch;
}

.surface-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 12px;
}

.table-shell {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  overflow: hidden;
}

.table-head {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 700;
  min-width: max-content;
}

.table-empty {
  padding: 16px 12px;
  color: #cfdaef;
}

.table-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
  min-width: max-content;
}

.myapps-generated-head,
.myapps-generated-row {
  grid-template-columns:
    120px
    120px
    160px
    160px
    115px
    130px
    100px
    100px
    80px;
  min-width: max-content;
}

#viewMyApps .table-shell {
  max-height: 62vh;
  overflow: auto;
}

#viewSpotLight .table-shell {
  max-height: 62vh;
  overflow: auto;
}

#viewMyApps .myapps-generated-head,
#viewMyApps .myapps-spotlight-head {
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

#viewSpotLight .spotlight-head {
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

#viewMyApps .myapps-generated-row,
#viewMyApps .myapps-spotlight-row {
  font-size: 0.82rem;
}

#viewSpotLight .spotlight-row {
  font-size: 0.82rem;
}

#viewMyApps .table-head,
#viewMyApps .table-row {
  gap: 10px;
  padding: 10px 12px;
}

#viewSpotLight .table-head,
#viewSpotLight .table-row {
  gap: 10px;
  padding: 10px 12px;
}

#viewMyApps .myapps-generated-head span:nth-child(5),
#viewMyApps .myapps-generated-head span:nth-child(6),
#viewMyApps .myapps-generated-row span:nth-child(5),
#viewMyApps .myapps-generated-row span:nth-child(6) {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#viewMyApps .myapps-generated-row span:nth-child(5) .table-action-btn,
#viewMyApps .myapps-generated-row span:nth-child(6) .table-action-btn {
  min-width: 96px;
  padding: 8px 12px;
  width: auto;
}

.myapps-spotlight-head,
.myapps-spotlight-row {
  grid-template-columns:
    100px
    140px
    120px
    260px
    130px
    110px
    120px
    110px;
  min-width: max-content;
}

.spotlight-head,
.spotlight-row {
  grid-template-columns:
    130px
    140px
    120px
    280px
    120px
    120px
    100px
    100px;
  min-width: max-content;
}

.table-head > span,
.table-row > span {
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
  justify-self: stretch;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.table-head > span,
.table-row > span {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.table-head > span:first-child,
.table-row > span:first-child {
  border-left: none;
}

#viewMyApps .myapps-generated-row span:nth-child(5),
#viewMyApps .myapps-generated-row span:nth-child(6),
#viewMyApps .myapps-spotlight-row span:nth-child(5),
#viewSpotLight .spotlight-row span:nth-child(5),
#viewSpotLight .spotlight-row span:nth-child(6),
#viewSpotLight .spotlight-row span:nth-child(8) {
  display: flex;
  align-items: center;
  justify-content: center;
}


.table-link {
  color: #f6d286;
  text-decoration: underline;
}

.fav-star-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffd34d;
  cursor: pointer;
  width: 36px;
  height: 32px;
  line-height: 1;
  font-size: 1.15rem;
}

.table-action-btn {
  width: 100%;
}

.listed-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  font-weight: 900;
}

.state-message {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.state-info {
  background: rgba(29, 78, 216, 0.2);
}

.state-success {
  background: rgba(16, 185, 129, 0.2);
}

.state-error {
  background: rgba(239, 68, 68, 0.2);
}

.spotlight-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 12px;
}

.spotlight-controls label {
  display: grid;
  gap: 6px;
}

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

.profile-form {
  margin-bottom: 14px;
}

.profile-download-history {
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.profile-download-history h3 {
  margin: 0 0 8px;
}

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

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.store-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.store-card h3 {
  margin: 0 0 8px;
}

.store-price {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.store-unit {
  margin: 6px 0 8px;
  color: var(--subtle);
}

.store-sku {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #d8e2f7;
}

.feature-list {
  margin: 10px 0 0;
  color: #d8e1f6;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.stat-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.stat-card h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.stat-card p {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
}

#viewAuth {
  width: min(980px, 100%);
  margin: 0 auto;
  min-height: 74vh;
  padding-top: 48px;
}

#viewInput {
  width: min(980px, 100%);
  margin: 0 auto;
  min-height: 74vh;
  padding-top: 48px;
}

.auth-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 10px 0 10px;
  background: transparent;
  backdrop-filter: none;
}

.input-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 10px 0 10px;
  background: transparent;
}

.auth-home-link {
  display: inline-flex;
}

.auth-home-logo {
  width: min(170px, 38vw);
  height: auto;
  opacity: 0.94;
}

.input-home-link {
  display: inline-flex;
}

.input-home-logo {
  width: min(170px, 38vw);
  height: auto;
  opacity: 0.94;
}

.auth-watermark {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: min(960px, 96vw);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.input-watermark {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: min(960px, 96vw);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.auth-card,
.input-card {
  position: relative;
  background: rgba(5, 10, 18, 0.86);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

.auth-glass {
  width: min(520px, 92vw);
  margin: 0 auto;
  border: 0;
  background: rgba(10, 14, 22, 0.1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.input-glass {
  width: min(620px, 92vw);
  margin: 0 auto;
  border: 0;
  background: rgba(10, 14, 22, 0.1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  z-index: 2;
}

.input-layout {
  position: relative;
  min-height: 280px;
}

.status-glass {
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: 330px;
  width: min(340px, 30vw);
  border: 0;
  border-radius: 24px;
  background: rgba(10, 14, 22, 0.1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  padding: 18px;
  min-height: 220px;
  z-index: 2;
}

.auth-eyebrow {
  margin: 0 0 6px;
  color: #9ba7c7;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.auth-card h2 {
  margin: 0;
  font-size: 1.88rem;
  letter-spacing: 0.01em;
}

.auth-hint {
  color: var(--subtle);
  margin: 8px 0 20px;
  text-align: center;
  text-transform: uppercase;
  font-size: 1.08rem;
  letter-spacing: 0.1em;
}

.auth-form,
.input-form {
  display: grid;
  gap: 11px;
}

.run-mode-group {
  margin: 8px 0 4px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.run-mode-group legend {
  padding: 0 6px;
  color: #d6def2;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.run-mode-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #f0f4ff;
  font-size: 0.9rem;
}

.run-mode-option input[type="radio"] {
  accent-color: var(--orange);
}

label {
  font-size: 0.92rem;
  color: #d6def2;
}

input,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 14, 22, 0.92);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}

select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 14, 22, 0.92);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(255, 159, 26, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 159, 26, 0.18);
}

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.remember-row input {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--orange);
}

.link-btn {
  margin-top: 2px;
  padding: 0;
  text-align: left;
  color: #f6d286;
  background: transparent;
  text-decoration: underline;
}

.icon-submit {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 10px 20px;
  background: linear-gradient(140deg, #111a30, #1e2a4f);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f7f8fb;
}

.auth-image-submit {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 14px auto 0;
  width: fit-content;
  cursor: pointer;
}

.auth-image-submit img {
  height: 36px;
  width: auto;
  display: block;
}

.icon-submit img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
}

.auth-switch-row {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

#viewAuth .auth-switch-row {
  display: none;
}

.ghost-btn {
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--subtle);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-message {
  min-height: 22px;
  margin: 12px 0 0;
  color: #b9ffe8;
}

.link-btn-bottom {
  margin-top: 14px;
  width: 100%;
  text-align: center;
  align-self: center;
}

.input-card h2 {
  margin-top: 0;
  margin-bottom: 18px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.08rem;
}

.create-btn {
  margin: 16px auto 4px;
  width: fit-content;
}

.create-image-submit {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 14px auto 4px;
  width: fit-content;
  cursor: pointer;
}

.create-image-submit img {
  height: 36px;
  width: auto;
  display: block;
  max-width: 90vw;
}

.run-experience {
  margin-top: 20px;
  text-align: center;
}

.filament-run-wrap {
  position: relative;
  width: 88px;
  margin: 0 auto;
}

.filament-run {
  width: 88px;
  border-radius: 999px;
  opacity: 0.95;
}

.filament-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 26%, rgba(255, 200, 90, 0.92) 50%, transparent 74%);
  filter: blur(2px);
  animation: sweep 1.1s linear infinite;
}

.run-phrase {
  margin: 12px 0 10px;
  color: #f9d38d;
}

.stage-area {
  margin: 0 auto;
  width: min(560px, 100%);
}

.progress-track {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(140deg, var(--amber), var(--orange), var(--purple));
  transition: width 220ms ease;
}

.progress-text,
.run-stage-text {
  margin: 8px 0 0;
  color: var(--subtle);
}

.download-experience {
  margin-top: 18px;
  text-align: center;
}

.download-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
}

.download-title {
  margin: 10px 0 12px;
  font-size: 1.06rem;
}

.run-output {
  margin-top: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #050505;
  color: #dce3f7;
  padding: 12px;
  white-space: pre-wrap;
  min-height: 84px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(7px);
  display: grid;
  place-items: center;
  z-index: 70;
}

.overlay-panel {
  width: min(640px, 92vw);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 18px;
}

.overlay-body {
  max-height: 340px;
  overflow: auto;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 12px;
  color: #e8ecf7;
}

.overlay-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-accept {
  background: #22c55e;
  color: #05150b;
}

.btn-cancel {
  background: #ef4444;
  color: #fff;
}

.hidden { display: none !important; }

body.theme-light {
  --text: #121621;
  --subtle: #3c475d;
  --line: rgba(11, 21, 33, 0.22);
  background: #f3f6fb;
}

body.theme-light .app-chrome,
body.theme-light .surface-card,
body.theme-light .auth-glass,
body.theme-light .input-glass,
body.theme-light .status-glass {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.16);
}

body.theme-light input,
body.theme-light textarea {
  color: #121621;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(11, 21, 33, 0.22);
}

body.theme-light select {
  color: #121621;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(11, 21, 33, 0.22);
}

body.theme-light .chip-btn {
  color: #1a2333;
  border-color: rgba(11, 21, 33, 0.2);
}

body.theme-light .run-output {
  background: #f7f8fc;
  color: #1a2333;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes landingLogoFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes landingButtonsFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sweep {
  from { transform: translateX(-105%); }
  to { transform: translateX(105%); }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 12px 12px 20px;
    gap: 12px;
  }

  .app-chrome {
    padding: 10px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .chrome-brand-logo {
    width: min(132px, 44vw);
  }

  .chrome-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .chip-btn {
    white-space: nowrap;
  }

  .landing-actions {
    flex-direction: column;
  }

  #viewAuth {
    padding-top: 44px;
  }

  #viewInput {
    padding-top: 44px;
  }

  .auth-topbar {
    height: 32px;
    padding-top: 4px;
  }

  .input-topbar {
    height: 32px;
    padding-top: 4px;
  }

  .auth-home-logo {
    width: min(140px, 48vw);
  }

  .input-home-logo {
    width: min(140px, 48vw);
  }

  .auth-card,
  .auth-glass {
    padding: 22px;
  }

  .input-card,
  .input-glass {
    padding: 22px;
  }

  .input-layout {
    min-height: 0;
  }

  .surface-card {
    padding: 16px;
    border-radius: 18px;
  }

  .action-grid,
  .store-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-controls {
    grid-template-columns: 1fr;
  }

  .status-glass {
    position: static;
    width: 100%;
    margin-left: 0;
    margin-top: 14px;
    padding: 14px;
    min-height: 140px;
  }

  .create-image-submit img {
    height: 28px;
  }

  .btn,
  .icon-submit,
  .ghost-btn {
    width: 100%;
  }

  .corner-logo {
    width: 118px;
  }

  .landing-brand-compose {
    width: min(1040px, 96vw);
    margin-top: 54px;
  }
}

