:root {
  --paper: #f7f1e7;
  --ink: #1f2430;
  --muted: #5a6473;
  --line: rgba(31, 36, 48, 0.12);
  --panel: rgba(255, 252, 246, 0.88);
  --panel-strong: rgba(255, 250, 242, 0.96);
  --accent: #b24a2c;
  --accent-strong: #7f2f18;
  --accent-soft: #f0d3b8;
  --shadow: 0 24px 60px rgba(54, 34, 20, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  background:
    radial-gradient(circle at top left, rgba(255, 230, 198, 0.9), transparent 28%),
    radial-gradient(circle at top right, rgba(196, 223, 218, 0.7), transparent 24%),
    linear-gradient(180deg, #f3eadb 0%, #efe5d5 42%, #eadfce 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(127, 47, 24, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 47, 24, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}

body.appSurfacePage {
  --hosted-glow: rgba(90, 169, 255, 0.22);
  --hosted-glow-strong: rgba(90, 169, 255, 0.38);
  --hosted-ember: rgba(255, 126, 74, 0.22);
  --hosted-panel-edge: rgba(146, 182, 240, 0.18);
  --hosted-panel-fill: rgba(10, 17, 31, 0.82);
  --hosted-panel-fill-strong: rgba(12, 20, 36, 0.94);
  --hosted-card-fill: linear-gradient(180deg, rgba(15, 24, 42, 0.84), rgba(10, 17, 30, 0.92));
  color: #e7eefc;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size: 16px;
  background:
    radial-gradient(circle at top left, rgba(90, 169, 255, 0.16), transparent 18%),
    radial-gradient(circle at top right, rgba(178, 74, 44, 0.16), transparent 18%),
    linear-gradient(180deg, #08101f 0%, #0b1323 48%, #070c17 100%);
}

body.appSurfacePage::before {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(160, 198, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 198, 255, 0.06) 1px, transparent 1px);
}

.appSurfacePage .app {
  gap: 14px;
  padding: 14px;
}

.appSurfacePage .leftRail {
  position: relative;
  border-color: var(--hosted-panel-edge);
  background:
    linear-gradient(180deg, rgba(8, 14, 27, 0.97), rgba(11, 19, 34, 0.95)),
    radial-gradient(circle at top center, rgba(90, 169, 255, 0.18), transparent 36%);
  box-shadow:
    inset 0 1px 0 rgba(221, 234, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 28px 60px rgba(0, 0, 0, 0.34);
}

.appSurfacePage .leftRail::before {
  content: "";
  position: absolute;
  inset: 10px 10px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hosted-glow-strong), transparent);
  opacity: 0.85;
  pointer-events: none;
}

.appSurfacePage .railButton {
  position: relative;
  padding: 12px 7px;
  border-color: rgba(126, 160, 220, 0.12);
  background:
    linear-gradient(180deg, rgba(12, 19, 35, 0.92), rgba(8, 12, 22, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(222, 235, 255, 0.04),
    0 10px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.appSurfacePage .railButton:hover {
  transform: translateY(-1px);
  border-color: rgba(126, 160, 220, 0.24);
  background:
    linear-gradient(180deg, rgba(14, 23, 42, 0.94), rgba(9, 14, 25, 0.9));
}

.appSurfacePage .railButton[aria-pressed="true"] {
  border-color: rgba(90, 169, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(20, 41, 70, 0.98), rgba(11, 24, 44, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(90, 169, 255, 0.16),
    0 14px 28px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(90, 169, 255, 0.06);
}

.appSurfacePage .railButtonGlyph {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border-color: rgba(158, 196, 255, 0.14);
  background: linear-gradient(180deg, rgba(16, 26, 45, 0.95), rgba(9, 15, 27, 0.95));
  box-shadow: inset 0 1px 0 rgba(222, 235, 255, 0.05);
}

.appSurfacePage .railButton[aria-pressed="true"] .railButtonGlyph {
  border-color: rgba(90, 169, 255, 0.4);
  background: linear-gradient(180deg, rgba(90, 169, 255, 0.18), rgba(30, 74, 136, 0.3));
  color: #f5f9ff;
}

.appSurfacePage .railButtonLabel {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(223, 234, 252, 0.86);
}

.appSurfacePage .contextDrawerHeader,
.appSurfacePage .contextDrawerPanels,
.appSurfacePage .sidebar {
  border-color: var(--hosted-panel-edge);
  background:
    linear-gradient(180deg, rgba(11, 18, 33, 0.94), rgba(8, 14, 27, 0.96)),
    radial-gradient(circle at top left, rgba(90, 169, 255, 0.1), transparent 28%);
  box-shadow:
    inset 0 1px 0 rgba(225, 237, 255, 0.05),
    0 24px 48px rgba(0, 0, 0, 0.32);
}

.appSurfacePage .contextDrawerTitle {
  color: #f3f7ff;
  letter-spacing: 0.01em;
}

.appSurfacePage .contextDrawerTitleBlock .small,
.appSurfacePage .contextDrawerHeader .small {
  color: rgba(176, 194, 223, 0.88);
}

.appSurfacePage .stageWrap {
  position: relative;
  border-color: rgba(124, 160, 220, 0.2);
  background:
    radial-gradient(circle at top center, rgba(90, 169, 255, 0.07), transparent 30%),
    linear-gradient(180deg, rgba(13, 23, 42, 0.52), rgba(9, 15, 27, 0.7));
  box-shadow:
    inset 0 1px 0 rgba(225, 237, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 34px 70px rgba(0, 0, 0, 0.36);
}

.appSurfacePage .stageWrap::before,
.appSurfacePage .stageWrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.appSurfacePage .stageWrap::before {
  border-radius: inherit;
  background:
    radial-gradient(circle at center, transparent 54%, rgba(3, 6, 12, 0.22) 100%),
    linear-gradient(180deg, rgba(130, 173, 255, 0.04), transparent 24%);
}

.appSurfacePage .stageWrap::after {
  inset: 10px;
  border-radius: 12px;
  border: 1px solid rgba(176, 208, 255, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(90, 169, 255, 0.03),
    0 0 0 1px rgba(0, 0, 0, 0.12);
}

.appSurfacePage .topbar {
  border-color: rgba(156, 196, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(13, 22, 39, 0.88), rgba(10, 17, 31, 0.76));
  box-shadow:
    inset 0 1px 0 rgba(225, 237, 255, 0.05),
    0 16px 34px rgba(0, 0, 0, 0.28);
}

.appSurfacePage .pill {
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.76), rgba(8, 13, 24, 0.68));
  border-color: rgba(160, 200, 255, 0.14);
}

.appSurfacePage .stageWatermark {
  opacity: 0.84;
}

.appSurfacePage .stageWatermarkSigil svg {
  filter:
    drop-shadow(0 0 16px rgba(90, 169, 255, 0.12))
    drop-shadow(0 0 32px rgba(90, 169, 255, 0.08));
}

.appSurfacePage .card,
.appSurfacePage .subcard,
.appSurfacePage .decisionCard,
.appSurfacePage #aiSection .drawerActions .checkRow,
.appSurfacePage #aiSection .drawerActions .statusRow {
  background: var(--hosted-card-fill);
  border-color: rgba(126, 160, 220, 0.14);
  box-shadow: inset 0 1px 0 rgba(225, 237, 255, 0.04);
}

.appSurfacePage .subtleLabel {
  color: rgba(160, 189, 239, 0.9);
  letter-spacing: 0.12em;
}

.appSurfacePage .decisionCard {
  position: relative;
  overflow: hidden;
}

.appSurfacePage .decisionCard::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--hosted-glow-strong), var(--hosted-ember));
}

.appSurfacePage .drawerLead,
.appSurfacePage .sectionNote,
.appSurfacePage .footerNote,
.appSurfacePage .small {
  color: rgba(166, 184, 214, 0.92);
}

.appSurfacePage button.primary {
  box-shadow: inset 0 1px 0 rgba(225, 237, 255, 0.06);
}

.appSurfacePage #aiSection .tabBtn.active,
.appSurfacePage #turnSection .tabBtn.active {
  box-shadow: inset 0 1px 0 rgba(225, 237, 255, 0.05), 0 0 0 1px rgba(90, 169, 255, 0.08);
}

body.appSurfacePage[data-session-theme="day"] {
  --hosted-glow: rgba(43, 113, 175, 0.2);
  --hosted-glow-strong: rgba(43, 113, 175, 0.32);
  --hosted-ember: rgba(188, 86, 45, 0.18);
  --hosted-panel-edge: rgba(96, 118, 146, 0.22);
  --hosted-panel-fill: rgba(251, 244, 230, 0.84);
  --hosted-panel-fill-strong: rgba(255, 250, 240, 0.96);
  --hosted-card-fill: linear-gradient(180deg, rgba(255, 249, 236, 0.9), rgba(239, 229, 211, 0.94));
  color: #1e2938;
  background:
    radial-gradient(circle at top left, rgba(255, 198, 120, 0.42), transparent 22%),
    radial-gradient(circle at top right, rgba(78, 148, 199, 0.25), transparent 20%),
    linear-gradient(180deg, #f9efe0 0%, #eadcc7 52%, #ddcbb2 100%);
}

body.appSurfacePage[data-session-theme="day"]::before {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(78, 92, 114, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 92, 114, 0.08) 1px, transparent 1px);
}

.appSurfacePage[data-session-theme="day"] .leftRail,
.appSurfacePage[data-session-theme="day"] .contextDrawerHeader,
.appSurfacePage[data-session-theme="day"] .contextDrawerPanels,
.appSurfacePage[data-session-theme="day"] .sidebar {
  background:
    linear-gradient(180deg, rgba(253, 246, 231, 0.96), rgba(237, 225, 206, 0.95)),
    radial-gradient(circle at top center, rgba(43, 113, 175, 0.14), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    0 24px 52px rgba(76, 55, 31, 0.16);
}

.appSurfacePage[data-session-theme="day"] .stageWrap {
  border-color: rgba(84, 104, 136, 0.24);
  background:
    radial-gradient(circle at top center, rgba(43, 113, 175, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(252, 243, 225, 0.72), rgba(232, 218, 197, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    0 34px 70px rgba(76, 55, 31, 0.18);
}

.appSurfacePage[data-session-theme="day"] .topbar,
.appSurfacePage[data-session-theme="day"] .pill,
.appSurfacePage[data-session-theme="day"] .card,
.appSurfacePage[data-session-theme="day"] .subcard,
.appSurfacePage[data-session-theme="day"] .decisionCard,
.appSurfacePage[data-session-theme="day"] #aiSection .drawerActions .checkRow,
.appSurfacePage[data-session-theme="day"] #aiSection .drawerActions .statusRow {
  background: var(--hosted-card-fill);
  border-color: rgba(96, 118, 146, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.appSurfacePage[data-session-theme="day"] .contextDrawerTitle,
.appSurfacePage[data-session-theme="day"] .panelSection summary h2,
.appSurfacePage[data-session-theme="day"] .sidebar h2 {
  color: #1f2b3c;
}

.appSurfacePage[data-session-theme="day"] .railButton {
  background: linear-gradient(180deg, rgba(255, 250, 239, 0.92), rgba(231, 218, 198, 0.88));
  border-color: rgba(96, 118, 146, 0.18);
  color: #243245;
}

.appSurfacePage[data-session-theme="day"] .railButton[aria-pressed="true"] {
  background: linear-gradient(180deg, rgba(219, 238, 255, 0.96), rgba(186, 213, 238, 0.94));
  border-color: rgba(43, 113, 175, 0.38);
}

.appSurfacePage[data-session-theme="day"] .railButtonLabel,
.appSurfacePage[data-session-theme="day"] .contextDrawerTitleBlock .small,
.appSurfacePage[data-session-theme="day"] .contextDrawerHeader .small,
.appSurfacePage[data-session-theme="day"] .drawerLead,
.appSurfacePage[data-session-theme="day"] .sectionNote,
.appSurfacePage[data-session-theme="day"] .footerNote,
.appSurfacePage[data-session-theme="day"] .small,
.appSurfacePage[data-session-theme="day"] #tokensSection label,
.appSurfacePage[data-session-theme="day"] #mapSection label,
.appSurfacePage[data-session-theme="day"] #fogSection label,
.appSurfacePage[data-session-theme="day"] #turnSection label,
.appSurfacePage[data-session-theme="day"] #sessionSection label,
.appSurfacePage[data-session-theme="day"] #tokensSection .meta,
.appSurfacePage[data-session-theme="day"] #mapSection .sectionNote,
.appSurfacePage[data-session-theme="day"] #fogSection .sectionNote,
.appSurfacePage[data-session-theme="day"] #turnSection .sectionNote,
.appSurfacePage[data-session-theme="day"] #sessionSection .sectionNote,
.appSurfacePage[data-session-theme="day"] #aiSection .small {
  color: #586579;
}

.appSurfacePage[data-session-theme="day"] #mapSection input[type="text"],
.appSurfacePage[data-session-theme="day"] #mapSection input[type="number"],
.appSurfacePage[data-session-theme="day"] #mapSection textarea,
.appSurfacePage[data-session-theme="day"] #mapSection select,
.appSurfacePage[data-session-theme="day"] #fogSection input[type="text"],
.appSurfacePage[data-session-theme="day"] #fogSection input[type="number"],
.appSurfacePage[data-session-theme="day"] #fogSection textarea,
.appSurfacePage[data-session-theme="day"] #fogSection select,
.appSurfacePage[data-session-theme="day"] #tokensSection input[type="text"],
.appSurfacePage[data-session-theme="day"] #tokensSection input[type="number"],
.appSurfacePage[data-session-theme="day"] #tokensSection textarea,
.appSurfacePage[data-session-theme="day"] #tokensSection select,
.appSurfacePage[data-session-theme="day"] #turnSection input[type="text"],
.appSurfacePage[data-session-theme="day"] #turnSection input[type="number"],
.appSurfacePage[data-session-theme="day"] #turnSection textarea,
.appSurfacePage[data-session-theme="day"] #turnSection select,
.appSurfacePage[data-session-theme="day"] #sessionSection input[type="text"],
.appSurfacePage[data-session-theme="day"] #sessionSection input[type="number"],
.appSurfacePage[data-session-theme="day"] #sessionSection textarea,
.appSurfacePage[data-session-theme="day"] #sessionSection select,
.appSurfacePage[data-session-theme="day"] #aiSection input[type="text"],
.appSurfacePage[data-session-theme="day"] #aiSection input[type="number"],
.appSurfacePage[data-session-theme="day"] #aiSection textarea,
.appSurfacePage[data-session-theme="day"] #aiSection select {
  background: rgba(255, 252, 244, 0.86);
  border-color: rgba(96, 118, 146, 0.24);
  color: #1f2b3c;
}

.appSurfacePage[data-session-theme="day"] #mapSection button,
.appSurfacePage[data-session-theme="day"] #fogSection button,
.appSurfacePage[data-session-theme="day"] #tokensSection button,
.appSurfacePage[data-session-theme="day"] #turnSection button,
.appSurfacePage[data-session-theme="day"] #sessionSection button,
.appSurfacePage[data-session-theme="day"] .sessionHomeRow a {
  background: rgba(255, 250, 239, 0.9);
  border-color: rgba(96, 118, 146, 0.24);
  color: #1f2b3c;
}

.appSurfacePage[data-session-theme="day"] #mapSection button.primary,
.appSurfacePage[data-session-theme="day"] #fogSection button.primary,
.appSurfacePage[data-session-theme="day"] #tokensSection button.primary,
.appSurfacePage[data-session-theme="day"] #turnSection button.primary,
.appSurfacePage[data-session-theme="day"] #sessionSection button.primary {
  background: rgba(43, 113, 175, 0.18);
  border-color: rgba(43, 113, 175, 0.35);
}

.appSurfacePage[data-session-theme="day"] .stageWatermarkWordmark {
  color: rgba(31, 43, 60, 0.76);
}

.productShell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  position: relative;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 10, 20, 0.72), rgba(7, 14, 28, 0.9)),
    radial-gradient(circle at top left, rgba(90, 169, 255, 0.16), transparent 26%);
}

.shellSidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  border-right: 1px solid rgba(124, 141, 170, 0.16);
  background:
    linear-gradient(180deg, rgba(7, 13, 25, 0.98), rgba(10, 18, 33, 0.96)),
    radial-gradient(circle at top left, rgba(90, 169, 255, 0.18), transparent 30%);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: inset -1px 0 0 rgba(124, 141, 170, 0.08);
}

.shellSidebarToggle {
  align-self: flex-start;
  border: 1px solid rgba(124, 141, 170, 0.18);
  background: rgba(18, 28, 48, 0.85);
  color: #c9d8f2;
  padding: 8px 12px;
  border-radius: 999px;
  font: 600 11px/1 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shellBrand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shellBrandMark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(90, 169, 255, 0.9), rgba(33, 87, 166, 0.9));
  color: #eff6ff;
  font: 700 18px/1 Arial, sans-serif;
}

.shellBrandTitle {
  color: #e7eefc;
  font: 700 15px/1.2 Arial, sans-serif;
}

.shellBrandMeta,
.shellNavLabel,
.shellSidebarFooter,
.shellSubtitle,
.shellEyebrow {
  color: #9fb1d1;
}

.shellBrandMeta,
.shellSidebarFooter,
.shellSubtitle {
  font: 400 13px/1.55 Arial, sans-serif;
}

.shellNav {
  display: grid;
  gap: 18px;
}

.shellNavGroup {
  display: grid;
  gap: 8px;
}

.shellNavLabel,
.shellEyebrow {
  font: 700 11px/1.2 Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shellNavLink {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 11px 12px;
  color: #d9e4f8;
  text-decoration: none;
  font: 600 14px/1.2 Arial, sans-serif;
  background: rgba(15, 24, 40, 0.45);
}

.shellNavLink:hover {
  border-color: rgba(124, 141, 170, 0.22);
  background: rgba(18, 28, 48, 0.72);
}

.shellNavLink.is-active {
  border-color: rgba(90, 169, 255, 0.35);
  background: rgba(90, 169, 255, 0.16);
  color: #eff6ff;
}

.shellNavLink.is-disabled {
  opacity: 0.48;
  pointer-events: none;
}

.shellSidebarFooter {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(124, 141, 170, 0.14);
}

.shellMain {
  min-width: 0;
  padding: 24px 28px 40px;
}

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

.shellHeader h1 {
  margin: 8px 0 0;
  color: #f3f7ff;
  font: 700 clamp(28px, 3vw, 42px)/1.05 Arial, sans-serif;
  max-width: 760px;
}

.shellAnnouncement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(124, 141, 170, 0.16);
  border-radius: 18px;
  background: rgba(12, 20, 36, 0.74);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.shellAnnouncement strong {
  color: #f3f7ff;
  font: 700 14px/1.4 Arial, sans-serif;
}

.shellHeaderActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shellHeaderButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(124, 141, 170, 0.18);
  background: rgba(18, 28, 48, 0.85);
  color: #e7eefc;
  text-decoration: none;
  padding: 0 14px;
  font: 600 13px/1 Arial, sans-serif;
}

.shellHeaderButton.is-primary {
  background: rgba(90, 169, 255, 0.18);
  border-color: rgba(90, 169, 255, 0.35);
}

.shellContent {
  display: grid;
  gap: 18px;
}

.shellContent--app > .app {
  width: 100%;
}

.dashboardHero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.dashboardHeroCard--feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: 18px;
  overflow: hidden;
}

.dashboardHeroCopy {
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.dashboardHeroCard,
.dashboardStatCard,
.dashboardCard {
  border: 1px solid rgba(124, 141, 170, 0.16);
  border-radius: 24px;
  background: rgba(10, 17, 30, 0.84);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  padding: 22px;
}

.dashboardHeroCard h2,
.dashboardCard h3,
.dashboardStatCard strong {
  color: #f3f7ff;
  font-family: Arial, sans-serif;
}

.dashboardHeroCard h2 {
  margin: 8px 0 10px;
  font-size: 28px;
  line-height: 1.12;
}

.heroActionRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboardHeroStats,
.accountPulse,
.dashboardGrid {
  display: grid;
  gap: 18px;
}

.accountPulse {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboardGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboardSplit {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.dashboardCard--soft {
  background:
    linear-gradient(180deg, rgba(11, 21, 39, 0.92), rgba(10, 17, 30, 0.84)),
    radial-gradient(circle at top right, rgba(178, 74, 44, 0.18), transparent 24%);
}

.pulseCard {
  border: 1px solid rgba(124, 141, 170, 0.16);
  border-radius: 24px;
  background: rgba(10, 17, 30, 0.84);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  padding: 20px;
}

.pulseCard--plan {
  background:
    linear-gradient(180deg, rgba(17, 29, 48, 0.94), rgba(10, 17, 30, 0.88)),
    radial-gradient(circle at top right, rgba(90, 169, 255, 0.18), transparent 28%);
}

.pulseCard strong {
  display: block;
  margin-top: 8px;
  color: #f3f7ff;
  font: 700 18px/1.25 Arial, sans-serif;
}

.dashboardCard--list h3,
.dashboardCard--soft h3 {
  margin-top: 8px;
}

.dashboardList {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #c8d6ef;
  display: grid;
  gap: 10px;
  font: 400 14px/1.5 Arial, sans-serif;
}

.dashboardList--compact {
  gap: 6px;
  margin-bottom: 16px;
}

.dashboardArtwork {
  min-height: 320px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 20%, rgba(255, 226, 166, 0.34), transparent 12%),
    linear-gradient(180deg, #10213b 0%, #132d4b 28%, #1f2a3f 58%, #0e1624 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.artSky,
.artMoon,
.artRuin,
.artFog,
.artCaption,
.miniScene,
.miniSceneGlow,
.miniSceneKeep,
.miniScenePath {
  position: absolute;
}

.artSky {
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 245, 210, 0.1), transparent 18%),
    radial-gradient(circle at 76% 24%, rgba(255, 220, 163, 0.16), transparent 14%);
}

.artMoon {
  width: 108px;
  height: 108px;
  top: 30px;
  right: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95), rgba(241, 214, 161, 0.92) 48%, rgba(255, 213, 146, 0.16) 72%, transparent 73%);
  filter: blur(0.2px);
}

.artRuin {
  inset: auto 0 0 0;
  height: 62%;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(6, 10, 18, 0.94) 10% 14%, transparent 14% 20%, rgba(8, 14, 24, 0.92) 20% 28%, transparent 28% 36%, rgba(10, 16, 29, 0.95) 36% 44%, transparent 44% 54%, rgba(8, 14, 24, 0.92) 54% 60%, transparent 60% 100%),
    linear-gradient(180deg, transparent 0 36%, rgba(6, 10, 18, 0.88) 36% 100%);
  clip-path: polygon(0 100%, 0 58%, 12% 44%, 18% 38%, 24% 44%, 34% 30%, 43% 36%, 52% 22%, 63% 36%, 74% 24%, 86% 42%, 100% 58%, 100% 100%);
}

.artFog {
  inset: auto -10% -18% -10%;
  height: 42%;
  background:
    radial-gradient(circle at 20% 40%, rgba(126, 163, 196, 0.28), transparent 18%),
    radial-gradient(circle at 48% 36%, rgba(139, 154, 183, 0.24), transparent 20%),
    radial-gradient(circle at 70% 42%, rgba(109, 130, 156, 0.2), transparent 18%);
  filter: blur(18px);
}

.artCaption {
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(8, 13, 24, 0.58);
  color: #eff6ff;
  display: grid;
  gap: 6px;
}

.artCaption strong {
  font: 700 16px/1.25 Arial, sans-serif;
}

.workspaceIntro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.workspaceIntroCopy,
.workspaceSummaryCard {
  border: 1px solid rgba(124, 141, 170, 0.16);
  border-radius: 22px;
  padding: 20px;
  background: rgba(10, 17, 30, 0.84);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.workspaceIntroCopy h2 {
  color: #f3f7ff;
  font: 700 28px/1.14 Arial, sans-serif;
  margin: 8px 0 10px;
}

.workspaceSummary {
  display: grid;
  gap: 18px;
}

.workspaceSummaryCard strong {
  color: #f3f7ff;
  font: 700 18px/1.3 Arial, sans-serif;
}

.workspaceSummaryCard--art {
  min-height: 150px;
  position: relative;
  overflow: hidden;
}

.miniScene {
  inset: 0;
  background:
    linear-gradient(180deg, #142645 0%, #1d3554 38%, #0f1725 100%);
  border-radius: 16px;
  overflow: hidden;
}

.miniSceneGlow {
  top: 20px;
  right: 22px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 235, 191, 0.95), rgba(255, 223, 153, 0.22) 62%, transparent 63%);
}

.miniSceneKeep {
  left: 18px;
  right: 18px;
  bottom: 26px;
  height: 54px;
  background:
    linear-gradient(90deg, rgba(7, 12, 22, 0.95) 0 16%, transparent 16% 22%, rgba(7, 12, 22, 0.92) 22% 38%, transparent 38% 46%, rgba(7, 12, 22, 0.95) 46% 58%, transparent 58% 70%, rgba(7, 12, 22, 0.92) 70% 84%, transparent 84% 100%);
  clip-path: polygon(0 100%, 0 52%, 9% 34%, 18% 46%, 30% 22%, 40% 38%, 50% 12%, 62% 36%, 76% 18%, 88% 42%, 100% 62%, 100% 100%);
}

.miniScenePath {
  left: 30%;
  right: 10%;
  bottom: 0;
  height: 52px;
  background: linear-gradient(180deg, rgba(225, 189, 132, 0.15), rgba(176, 123, 74, 0.48));
  clip-path: polygon(20% 0, 44% 0, 100% 100%, 0 100%);
}

.settingsShellContent {
  gap: 20px;
}

.settingsShellLayout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.settingsPrimary,
.settingsRail {
  display: grid;
  gap: 18px;
}

.shellSidebarCollapsed .productShell {
  grid-template-columns: 88px minmax(0, 1fr);
}

.shellSidebarCollapsed .shellBrandMeta,
.shellSidebarCollapsed .shellBrand > div:last-child,
.shellSidebarCollapsed .shellNavLabel,
.shellSidebarCollapsed .shellSidebarFooter {
  display: none;
}

.shellSidebarCollapsed .shellNavLink {
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
}

@media (max-width: 1080px) {
  .productShell {
    grid-template-columns: 1fr;
  }

  .shellSidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(124, 141, 170, 0.16);
  }

  .dashboardHero,
  .accountPulse,
  .dashboardGrid,
  .dashboardSplit,
  .workspaceIntro,
  .settingsShellLayout,
  .heroPanel--landing,
  .landingFlow,
  .storyBand,
  .featureRunway {
    grid-template-columns: 1fr;
  }
}

.appSurfacePage .hostedSidebarSection summary h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.appSurfacePage .hostedAccountCard {
  padding: 16px;
  background: rgba(12, 18, 31, 0.78);
}

.appSurfacePage .hostedAccountTitle {
  margin-top: 4px;
  color: #e7eefc;
  font-family: Arial;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.appSurfacePage .hostedAccountCard .small {
  margin: 6px 0 0;
  color: #9fb1d1;
  font-size: 12px;
}

.appSurfacePage .hostedStatusList {
  gap: 10px;
  margin-top: 12px;
}

.appSurfacePage .hostedStatusList div {
  padding-top: 10px;
}

.appSurfacePage .hostedStatusList dd {
  font-size: 14px;
}

.appSurfacePage .hostedNavRow {
  gap: 8px;
  margin-top: 10px;
}

.appSurfacePage .hostedNavRow .ghostButton {
  padding: 8px 10px;
  border-radius: 10px;
  font-family: Arial;
  font-size: 12px;
  font-weight: 600;
}

.appSurfacePage .hostedAccountCard .sectionNote {
  margin-top: 10px;
  font-size: 12px;
}

.appSurfacePage .panelSection summary h2,
.appSurfacePage .sidebar h2 {
  font-size: 14px;
  line-height: normal;
}

.appSurfacePage .turnInfoPill {
  min-height: 38px;
  justify-content: flex-start;
}

.hostedTokenList,
.directorLog {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hostedTokenList li {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.appSurfacePage .contextMenu,
.appSurfacePage .card,
.appSurfacePage .subcard,
.appSurfacePage .tokRow,
.appSurfacePage .fileMeta,
.appSurfacePage .footerNote,
.appSurfacePage .sectionNote,
.appSurfacePage .small,
.appSurfacePage label,
.appSurfacePage dt {
  color: inherit;
}

.appSurfacePage {
  --hosted-control-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --hosted-control-font-size: 13px;
}

.appSurfacePage #tokensSection label,
.appSurfacePage #mapSection label,
.appSurfacePage #fogSection label,
.appSurfacePage #turnSection label,
.appSurfacePage #sessionSection label,
.appSurfacePage #mapSection .checkRow label,
.appSurfacePage #fogSection .checkRow label,
.appSurfacePage #tokensSection .meta,
.appSurfacePage #mapSection .sectionNote,
.appSurfacePage #fogSection .sectionNote,
.appSurfacePage #mapSection .fileMeta,
.appSurfacePage #turnSection .sectionNote,
.appSurfacePage #sessionSection .sectionNote,
.appSurfacePage #sessionSection .footerNote,
.appSurfacePage #aiSection .checkRow label,
.appSurfacePage #aiSection .sectionNote,
.appSurfacePage #aiSection .small {
  color: #9fb1d1;
}

.appSurfacePage #mapSection .checkRow label {
  color: #9fb1d1 !important;
}

.appSurfacePage #mapSection input[type="text"],
.appSurfacePage #mapSection input[type="number"],
.appSurfacePage #mapSection textarea,
.appSurfacePage #mapSection select,
.appSurfacePage #fogSection input[type="text"],
.appSurfacePage #fogSection input[type="number"],
.appSurfacePage #fogSection textarea,
.appSurfacePage #fogSection select,
.appSurfacePage #tokensSection input[type="text"],
.appSurfacePage #tokensSection input[type="number"],
.appSurfacePage #tokensSection textarea,
.appSurfacePage #tokensSection select,
.appSurfacePage #turnSection input[type="text"],
.appSurfacePage #turnSection input[type="number"],
.appSurfacePage #turnSection textarea,
.appSurfacePage #turnSection select,
.appSurfacePage #sessionSection input[type="text"],
.appSurfacePage #sessionSection input[type="number"],
.appSurfacePage #sessionSection textarea,
.appSurfacePage #sessionSection select,
.appSurfacePage #aiSection input[type="text"],
.appSurfacePage #aiSection input[type="number"],
.appSurfacePage #aiSection textarea,
.appSurfacePage #aiSection select,
.appSurfacePage #mapSection button,
.appSurfacePage #fogSection button,
.appSurfacePage #tokensSection button,
.appSurfacePage #turnSection button,
.appSurfacePage #sessionSection button,
.appSurfacePage #aiSection button,
.appSurfacePage #aiSection .tabBtn,
.appSurfacePage .sessionPrimaryActions a,
.appSurfacePage .sessionHomeAction a {
  font-family: var(--hosted-control-font);
  font-size: var(--hosted-control-font-size);
}

.appSurfacePage #mapSection button,
.appSurfacePage #fogSection button,
.appSurfacePage #tokensSection button,
.appSurfacePage #turnSection button,
.appSurfacePage #sessionSection button {
  border: 1px solid rgba(110, 150, 210, 0.20);
  background: rgba(10, 18, 35, 0.85);
  color: #e7eefc;
  padding: 9px 10px;
  border-radius: 10px;
  font-weight: 600;
  transform: none;
}

.appSurfacePage #mapSection button.primary,
.appSurfacePage #fogSection button.primary,
.appSurfacePage #tokensSection button.primary,
.appSurfacePage #turnSection button.primary,
.appSurfacePage #sessionSection button.primary {
  background: rgba(90, 169, 255, 0.18);
  border-color: rgba(90, 169, 255, 0.35);
}

.appSurfacePage .sessionHomeRow {
  margin: 0 0 10px;
}

.appSurfacePage .sessionPrimaryRow {
  display: block;
}

.appSurfacePage .sessionPrimaryRow .sessionNameCard {
  margin: 0;
}

.appSurfacePage .sessionPrimaryActions {
  margin: 10px 0 0;
}

.appSurfacePage .sessionHomeRow a,
.appSurfacePage .sessionPrimaryActions button,
.appSurfacePage .sessionPrimaryActions a {
  height: 39px;
  min-height: 39px;
  min-width: 88px;
  padding: 9px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(110, 150, 210, 0.20);
  font-weight: 600;
  line-height: 1;
  transform: none;
}

.appSurfacePage .sessionHomeRow a {
  background: rgba(10, 18, 35, 0.85);
  color: #e7eefc;
  text-decoration: none;
}

.appSurfacePage .sessionPrimaryActions a {
  text-decoration: none;
}

.appSurfacePage .tokRow {
  cursor: pointer;
}

.appSurfacePage .tokLabel {
  min-width: 0;
}

.appSurfacePage .tokThumb {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border-color: rgba(110, 150, 210, 0.22);
  background: rgba(10, 18, 35, 0.92);
}

.appSurfacePage .tokThumbFallback {
  font-size: 12px;
  font-weight: 700;
  color: rgba(7, 14, 26, 0.88);
}

.appSurfacePage .tokRow:focus-visible {
  outline: 2px solid rgba(90, 169, 255, 0.55);
  outline-offset: 1px;
}

.appSurfacePage .tokenNamePalette {
  margin-top: 4px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(110, 150, 210, 0.16);
  background: rgba(8, 13, 24, 0.58);
}

.appSurfacePage .tokenNamePaletteLabel {
  margin-bottom: 7px;
  color: #9fb1d1;
  font: 700 10px/1 var(--hosted-control-font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.appSurfacePage .tokenNamePaletteSwatches {
  display: grid;
  grid-template-columns: repeat(6, 24px);
  grid-template-rows: repeat(3, 24px);
  gap: 6px;
}

.appSurfacePage .tokenNameSwatch {
  width: 24px;
  height: 24px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--swatch);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 8px 16px rgba(0, 0, 0, 0.18);
}

.appSurfacePage .tokenNameSwatch[aria-pressed="true"] {
  outline: 2px solid rgba(90, 169, 255, 0.82);
  outline-offset: 2px;
}

.appSurfacePage[data-session-theme="day"] .tokenNamePalette {
  background: rgba(255, 250, 239, 0.68);
  border-color: rgba(96, 118, 146, 0.2);
}

.appSurfacePage[data-session-theme="day"] .tokenNamePaletteLabel {
  color: #586579;
}

.appSurfacePage .modalBackdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 7, 14, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.appSurfacePage .modalBackdrop[hidden] {
  display: none;
}

.appSurfacePage .artModal {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(110, 150, 210, 0.24);
  background: rgba(12, 17, 29, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.appSurfacePage .artPreviewCard,
.appSurfacePage .artControlsCard {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 12px;
}

.appSurfacePage .artPreviewShell {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
  margin: 8px auto 0;
  border-radius: 18px;
  border: 1px solid rgba(110, 150, 210, 0.16);
  background:
    radial-gradient(circle at center, rgba(90, 169, 255, 0.08), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.appSurfacePage .artPreviewShell.dragging {
  cursor: grabbing;
}

.appSurfacePage #stage.fogAuthoring {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath fill='%23f4f8ff' stroke='%23081122' stroke-width='1.5' d='M7 23l8.2-8.2 2 2L9 25H7z'/%3E%3Cpath fill='%23ffd166' stroke='%23081122' stroke-width='1.5' d='M16.2 9.3l3-3a2.2 2.2 0 0 1 3.1 0l3.4 3.4a2.2 2.2 0 0 1 0 3.1l-3 3-6.5-6.5z'/%3E%3Crect x='19.5' y='19.5' width='9' height='9' rx='1' stroke='%235fd6aa' stroke-width='1.5' stroke-dasharray='2 2'/%3E%3C/g%3E%3C/svg%3E") 6 24, crosshair;
}

.appSurfacePage .artPreviewCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.appSurfacePage .artCropRing {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 999px rgba(3, 7, 14, 0.42);
  pointer-events: none;
}

.appSurfacePage .artHint {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  line-height: 1.35;
}

.appSurfacePage .artToolbar,
.appSurfacePage .artModalActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.appSurfacePage .artModalActions {
  justify-content: flex-end;
  margin-top: 14px;
}

.appSurfacePage .sliderGrid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.appSurfacePage .sliderGrid label {
  margin-bottom: 4px;
}

.appSurfacePage .sliderGrid input[type="range"] {
  width: 100%;
}

.appSurfacePage .artMeta {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 10px;
}

.appSurfacePage .sessionPresenceCard {
  margin-top: 12px;
}

.appSurfacePage .sessionPresenceList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.appSurfacePage .presenceChip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(124, 141, 170, 0.2);
  background: rgba(11, 17, 30, 0.82);
  color: #e7eefc;
}

.appSurfacePage .presenceChip.is-self {
  border-color: rgba(90, 169, 255, 0.32);
  background: rgba(17, 31, 56, 0.9);
}

.appSurfacePage .presenceAvatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(90, 169, 255, 0.9), rgba(178, 74, 44, 0.9));
  color: #eff6ff;
  font: 700 11px/1 Arial, sans-serif;
}

.appSurfacePage img.presenceAvatar {
  object-fit: cover;
}

.appSurfacePage .presenceName {
  font: 600 13px/1 Arial, sans-serif;
}

.appSurfacePage .presenceRoleBadge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(90, 169, 255, 0.16);
  border: 1px solid rgba(90, 169, 255, 0.28);
  color: #bfe1ff;
  font: 700 10px/1 Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .appSurfacePage .sessionHomeRow {
    margin-bottom: 10px;
  }

  .appSurfacePage .sessionHomeRow a,
  .appSurfacePage .sessionPrimaryActions button {
    min-height: 40px;
    width: 100%;
  }

  .appSurfacePage .artModal {
    grid-template-columns: 1fr;
  }
}

.appSurfacePage #mapSection button.danger,
.appSurfacePage #tokensSection button.danger,
.appSurfacePage #turnSection button.danger,
.appSurfacePage #sessionSection button.danger {
  background: rgba(255, 90, 122, 0.12);
  border-color: rgba(255, 90, 122, 0.35);
}

.appSurfacePage #mapSection .fileTrigger {
  color: #e7eefc;
}

.appSurfacePage #turnSection .tabBtn {
  padding: 7px 10px;
  border-radius: 999px;
  font-family: Arial;
  font-size: 11px;
  font-weight: 600;
  background: rgba(8, 12, 22, 0.38);
}

.appSurfacePage #turnSection .tabBtn.active {
  background: rgba(90, 169, 255, 0.18);
  border-color: rgba(90, 169, 255, 0.35);
}

.shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
  position: relative;
  z-index: 1;
}

.shell--marketing {
  width: min(1200px, calc(100vw - 32px));
}

.marketingPage {
  scroll-behavior: smooth;
}

.publicNav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.publicNavActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shellBrand--public {
  text-decoration: none;
}

.heroPanel--landing {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.heroPanel--compact {
  padding: 32px;
}

.landingHeroCopy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.authCard--inline {
  margin-top: 8px;
}

.landingShowcase {
  min-height: 420px;
  border-radius: 26px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(178, 74, 44, 0.26), transparent 26%),
    radial-gradient(circle at top left, rgba(74, 118, 178, 0.22), transparent 20%),
    linear-gradient(180deg, rgba(17, 28, 46, 0.92), rgba(8, 14, 26, 0.98));
}

.showcaseStage {
  position: relative;
  height: 100%;
  min-height: 384px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, #07111f, #0b1626);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.showcaseTopbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #dfeaff;
  background: rgba(8, 13, 24, 0.82);
  font: 600 12px/1.2 Arial, sans-serif;
  z-index: 2;
}

.showcaseGrid,
.showcaseMapGlow {
  position: absolute;
  inset: 0;
}

.showcaseGrid {
  background-image:
    linear-gradient(rgba(143, 182, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 182, 255, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
}

.showcaseMapGlow {
  background:
    radial-gradient(circle at 26% 56%, rgba(255, 193, 107, 0.24), transparent 18%),
    radial-gradient(circle at 68% 38%, rgba(90, 169, 255, 0.20), transparent 18%),
    linear-gradient(135deg, rgba(56, 87, 55, 0.24), transparent 40%);
}

.showcaseToken {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 14px/1 Arial, sans-serif;
  color: #f5f8ff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.showcaseToken--goblin {
  top: 145px;
  left: 112px;
  background: #8d3c36;
}

.showcaseToken--aria {
  top: 210px;
  left: 282px;
  background: #496fa8;
}

.showcaseDrawer {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(290px, calc(100% - 36px));
  padding: 12px;
  border-radius: 18px;
  background: rgba(9, 15, 27, 0.88);
  border: 1px solid rgba(137, 171, 235, 0.16);
  color: #e8effc;
}

.showcaseDrawerTabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.showcaseDrawerTabs span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(21, 31, 53, 0.76);
  font: 600 11px/1 Arial, sans-serif;
}

.showcaseDrawerTabs .is-active {
  background: rgba(90, 169, 255, 0.22);
}

.showcasePacket {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(16, 24, 42, 0.9);
}

.showcaseRibbon {
  position: absolute;
  left: 16px;
  bottom: 18px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(178, 74, 44, 0.18);
  border: 1px solid rgba(178, 74, 44, 0.26);
  color: #f2e2d4;
  font: 700 11px/1 Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcasePacket strong {
  display: block;
  margin-top: 6px;
  font: 700 14px/1.4 Arial, sans-serif;
}

.entryPanel--marketing {
  display: grid;
  gap: 18px;
}

.storyBand {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px;
  margin: 24px 0;
  padding: 24px;
  border: 1px solid rgba(140, 171, 235, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 22% 24%, rgba(208, 109, 66, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(11, 18, 31, 0.96), rgba(7, 12, 24, 0.98));
  box-shadow: 0 18px 48px rgba(3, 8, 18, 0.45);
  overflow: hidden;
}

.storyBand--pinned {
  min-height: 420px;
}

.storyCopy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.storyVisual {
  position: relative;
  min-height: 320px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.9), rgba(12, 20, 36, 0.95));
}

.storyVisual--parallax {
  background-attachment: fixed;
}

.storyLayer {
  position: absolute;
  inset: 0;
}

.storyLayer--mist {
  background:
    radial-gradient(circle at 20% 30%, rgba(219, 118, 88, 0.22), transparent 18%),
    radial-gradient(circle at 72% 42%, rgba(95, 157, 255, 0.2), transparent 20%),
    radial-gradient(circle at 50% 78%, rgba(212, 185, 122, 0.14), transparent 22%);
  filter: blur(2px);
  transform: scale(1.03);
}

.storyLayer--ruins {
  background:
    linear-gradient(120deg, transparent 0 30%, rgba(173, 124, 88, 0.11) 30% 35%, transparent 35% 100%),
    linear-gradient(180deg, transparent 0 64%, rgba(33, 50, 70, 0.58) 64% 100%),
    linear-gradient(90deg, rgba(26, 34, 52, 0.0) 0 18%, rgba(26, 34, 52, 0.5) 18% 22%, rgba(26, 34, 52, 0.0) 22% 100%);
}

.storyLayer--grid {
  background-image:
    linear-gradient(rgba(143, 182, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 182, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.8;
}

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

.featureRunway {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
  gap: 18px;
  margin: 24px 0;
}

.runwayPanel {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(140, 171, 235, 0.14);
  background: linear-gradient(180deg, rgba(13, 20, 34, 0.94), rgba(9, 15, 27, 0.98));
  box-shadow: 0 18px 48px rgba(3, 8, 18, 0.38);
}

.runwayPanel--image {
  min-height: 260px;
}

.runwayArt {
  position: relative;
  height: 100%;
  min-height: 212px;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 10, 20, 0.96), rgba(9, 16, 30, 0.96)),
    radial-gradient(circle at top right, rgba(213, 133, 91, 0.16), transparent 26%);
}

.runwayArtGlow {
  position: absolute;
  inset: auto auto 16% 12%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 157, 113, 0.22), transparent 70%);
  filter: blur(16px);
}

.runwayArtCard {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: min(280px, calc(100% - 44px));
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 17, 30, 0.88);
}

.runwayBadge {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(90, 169, 255, 0.15);
  color: #dfeaff;
  font: 600 11px/1 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.planGrid--marketing {
  margin-top: 0;
}

.planList {
  margin: 14px 0 18px;
  padding-left: 18px;
  color: var(--ink-soft);
}

.planList li + li {
  margin-top: 8px;
}

.planCard--featured {
  border-color: rgba(178, 74, 44, 0.32);
}

.planCallout {
  display: inline-flex;
  margin: 4px 0 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(178, 74, 44, 0.16);
  color: var(--accent-strong);
  font: 700 11px/1 Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.heroPanel,
.entryPanel,
.infoCard,
.placeholderCard,
.statusRail,
.metricCard,
.planCard {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.heroPanel,
.entryPanel,
.placeholderCard,
.statusRail,
.metricCard,
.planCard,
.infoCard {
  padding: 24px;
}

.heroPanel {
  padding: 40px;
  margin-bottom: 24px;
}

.eyebrow,
.planEyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0 0 12px;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 12ch;
}

h2 {
  font-size: 1.5rem;
}

.heroCopy,
.smallNote,
.infoCard p,
.placeholderCard p,
.statusRail p,
.metricCard p,
.planCard li,
.planCard p,
.tokenForm label {
  color: var(--muted);
}

.heroCopy {
  max-width: 56ch;
  font-size: 1.1rem;
}

.heroActions,
.tokenActions,
.topNav,
.accountToolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.authCard,
.detailsCard {
  margin-top: 18px;
}

.compactAuthCard {
  margin-top: 0;
  flex: 1 1 420px;
}

.authHeadline,
.smallLabel {
  margin: 0;
}

.smallLabel {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authHeadline {
  margin-top: 6px;
  font-size: 1.35rem;
  font-weight: 700;
}

.detailsCard {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.detailsCard summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-strong);
}

.detailsCard[open] {
  padding-bottom: 6px;
}

.infoGrid,
.settingsGrid,
.planGrid {
  display: grid;
  gap: 18px;
}

.infoGrid,
.settingsGrid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.planGrid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 20px;
}

.primaryButton,
.secondaryButton,
.ghostButton,
button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.primaryButton {
  background: var(--accent);
  color: #fff9f2;
}

.secondaryButton {
  background: #264653;
  color: #f8fbfc;
}

.ghostButton {
  background: rgba(31, 36, 48, 0.07);
  color: var(--ink);
}

.primaryButton:hover,
.secondaryButton:hover,
.ghostButton:hover,
button:hover {
  transform: translateY(-1px);
}

.topNav a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600;
}

.appSurfacePage .topNav a {
  color: #b8d2ff;
}

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

.inlineTokenForm {
  flex: 1 1 460px;
}

input {
  width: 100%;
  border: 1px solid rgba(31, 36, 48, 0.16);
  border-radius: 14px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font: inherit;
}

.appSurfacePage input[type="checkbox"] {
  width: auto;
}

.surfaceHeader {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.surfaceLayout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
}

.workspaceShell {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(250px, 300px);
  gap: 20px;
  min-height: 540px;
}

.workspaceRail,
.mapWorkspace,
.directorRail {
  min-width: 0;
}

.workspaceCard {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  padding: 24px;
  height: 100%;
}

.appSurfacePage .statusRail,
.appSurfacePage .workspaceCard {
  border-color: rgba(121, 160, 230, 0.18);
  background: rgba(16, 24, 42, 0.84);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.appSurfacePage .statusRail h2,
.appSurfacePage .workspaceCard h2,
.appSurfacePage .workspaceCard .eyebrow,
.appSurfacePage .smallLabel {
  color: #eef4ff;
}

.appSurfacePage .statusRail p,
.appSurfacePage .tokenMeta,
.appSurfacePage .mapLegend,
.appSurfacePage .smallNote,
.appSurfacePage dt {
  color: #9fb1d1;
}

.workspaceCardHeader {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.tokenRoster,
.directorLog {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.tokenRosterItem {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.tokenChip {
  flex: 1 1 auto;
  justify-content: flex-start;
  text-align: left;
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  border: 1px solid rgba(31, 36, 48, 0.08);
}

.appSurfacePage .tokenChip {
  background: rgba(7, 13, 25, 0.92);
  color: #eef4ff;
  border-color: rgba(121, 160, 230, 0.16);
}

.tokenRosterItem[data-selected="true"] .tokenChip {
  background: linear-gradient(180deg, rgba(178, 74, 44, 0.18), rgba(255, 255, 255, 0.84));
  border-color: rgba(178, 74, 44, 0.28);
}

.appSurfacePage .tokenRosterItem[data-selected="true"] .tokenChip {
  background: linear-gradient(180deg, rgba(90, 169, 255, 0.22), rgba(7, 13, 25, 0.96));
  border-color: rgba(90, 169, 255, 0.45);
}

.tokenMeta {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.battleStageCard {
  display: grid;
  grid-template-rows: auto 1fr;
}

.battleStage {
  position: relative;
  min-height: 440px;
  border-radius: 24px;
  border: 1px solid rgba(31, 36, 48, 0.12);
  overflow: hidden;
  background:
    linear-gradient(rgba(127, 47, 24, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 47, 24, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 30% 28%, rgba(56, 90, 91, 0.24), transparent 22%),
    radial-gradient(circle at 70% 62%, rgba(178, 74, 44, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(244, 236, 220, 0.92), rgba(235, 225, 206, 0.94));
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}

.appSurfacePage .battleStage {
  border-color: rgba(121, 160, 230, 0.16);
  background:
    linear-gradient(rgba(160, 198, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 198, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 30% 28%, rgba(62, 99, 110, 0.32), transparent 20%),
    radial-gradient(circle at 70% 62%, rgba(178, 74, 44, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(11, 20, 35, 0.98), rgba(10, 18, 30, 0.98));
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}

.hostedLoadingOverlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, rgba(7, 12, 21, 0.82), rgba(7, 12, 21, 0.92));
  backdrop-filter: blur(6px);
}

.hostedLoadingOverlay[hidden] {
  display: none;
}

.hostedLoadingCard {
  width: min(420px, 100%);
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid rgba(160, 198, 255, 0.16);
  background: rgba(13, 20, 34, 0.96);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.hostedLoadingEyebrow {
  margin-bottom: 6px;
  color: rgba(188, 225, 255, 0.72);
  font: 600 11px/1.2 Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hostedLoadingCard h2 {
  margin: 0 0 8px;
  color: rgba(247, 250, 255, 0.96);
  font-size: 1.15rem;
}

.hostedLoadingCard p {
  margin: 0;
  color: rgba(220, 231, 246, 0.78);
  line-height: 1.5;
}

.hostedLoadingActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.stageToken {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 88px;
  max-width: 120px;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 0.92rem;
  border: 1px solid rgba(31, 36, 48, 0.12);
  box-shadow: 0 12px 24px rgba(54, 34, 20, 0.12);
}

.stageToken[data-role="monster"] {
  background: rgba(178, 74, 44, 0.92);
  color: #fff6ef;
}

.stageToken[data-role="pc"] {
  background: rgba(38, 70, 83, 0.92);
  color: #f4fbff;
}

.stageToken[data-selected="true"] {
  outline: 3px solid rgba(247, 241, 231, 0.95);
  box-shadow: 0 0 0 6px rgba(178, 74, 44, 0.18), 0 16px 32px rgba(54, 34, 20, 0.18);
}

.appSurfacePage .stageToken[data-selected="true"] {
  outline: 3px solid rgba(200, 222, 255, 0.98);
  box-shadow: 0 0 0 6px rgba(90, 169, 255, 0.22), 0 16px 32px rgba(0, 0, 0, 0.34);
}

.vttTopbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(121, 160, 230, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(12, 19, 33, 0.92), rgba(8, 14, 26, 0.92));
}

.vttMiniField {
  display: grid;
  gap: 4px;
  min-width: 110px;
}

.vttTopbarValue {
  color: #eef4ff;
  font-size: 0.96rem;
  font-weight: 700;
}

.battleMapHeading {
  margin-bottom: 14px;
}

.mapLegend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
}

.legendSwatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: middle;
}

.monsterSwatch {
  background: var(--accent);
}

.partySwatch {
  background: #264653;
}

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

.modeBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(178, 74, 44, 0.12);
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.appSurfacePage .modeBadge {
  background: rgba(90, 169, 255, 0.18);
  color: #dce8ff;
}

.modeSelect {
  width: 100%;
  border: 1px solid rgba(31, 36, 48, 0.16);
  border-radius: 14px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font: inherit;
}

.appSurfacePage .modeSelect {
  background: rgba(7, 13, 25, 0.92);
  border-color: rgba(121, 160, 230, 0.18);
  color: #eef4ff;
}

.logCard {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.appSurfacePage .logCard {
  border-top-color: rgba(121, 160, 230, 0.16);
}

.appSurfacePage .primaryButton {
  background: #5aa9ff;
  color: #08101f;
}

.appSurfacePage .secondaryButton {
  background: #193245;
  color: #eef4ff;
}

.appSurfacePage .ghostButton {
  background: rgba(255, 255, 255, 0.06);
  color: #eef4ff;
}

.appSurfacePage #aiSection button,
.appSurfacePage #aiSection .tabBtn {
  border: 1px solid rgba(110,150,210,.20);
  background: rgba(10,18,35,.85);
  color: #e7eefc;
  padding: 9px 10px;
  border-radius: 10px;
  font-weight: 600;
  transform: none;
}

.appSurfacePage #aiSection button.primary {
  background: rgba(90,169,255,.18);
  border-color: rgba(90,169,255,.35);
}

.appSurfacePage #aiSection .tabBtn {
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(8,12,22,.38);
}

.appSurfacePage #aiSection .tabBtn.active {
  background: rgba(90,169,255,.18);
  border-color: rgba(90,169,255,.35);
}

.appSurfacePage #aiSection input[type="text"],
.appSurfacePage #aiSection input[type="number"],
.appSurfacePage #aiSection textarea,
.appSurfacePage #aiSection select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(110,150,210,.20);
  padding: 9px 10px;
  background: rgba(8,12,22,.75);
  color: #e7eefc;
}

.appSurfacePage #aiSection textarea {
  min-height: 120px;
  resize: vertical;
}

.appSurfacePage #aiSection .decisionCard,
.appSurfacePage #aiSection .drawerActions .checkRow,
.appSurfacePage #aiSection .drawerActions .statusRow {
  border-color: rgba(110,150,210,.14);
  background: rgba(8,12,22,.38);
}

.appSurfacePage #fogSection .fogBrushRow {
  margin-top: 10px;
}

.statusList,
.metricList {
  display: grid;
  gap: 14px;
}

.statusList div,
.metricList div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

dt {
  color: var(--muted);
  font-size: 0.9rem;
}

dd {
  margin: 4px 0 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.canvasPlaceholder {
  min-height: 460px;
  display: grid;
}

.placeholderCard {
  display: grid;
  align-content: center;
  justify-items: start;
  background:
    linear-gradient(140deg, rgba(178, 74, 44, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 247, 236, 0.9));
}

.modeList,
.planCard ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.planCard[data-active="true"] {
  border-color: rgba(178, 74, 44, 0.45);
  background: var(--panel-strong);
  box-shadow: 0 26px 64px rgba(127, 47, 24, 0.15);
}

.planCard[data-active="true"]::after {
  content: "Current plan";
  display: inline-block;
  margin-top: 14px;
  color: var(--accent-strong);
  font-weight: 700;
}

.planCard button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.planCard button[disabled]:hover {
  transform: none;
}

.priceLine {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(31, 36, 48, 0.06);
  font-size: 0.95em;
}

@media (max-width: 840px) {
  .hostedApp {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .hostedStageWrap {
    min-height: 860px;
  }

  .hostedBattleSection {
    padding-bottom: 280px;
  }

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

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

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

  .surfaceHeader {
    flex-direction: column;
  }

  .heroPanel {
    padding: 28px;
  }
}
