﻿:root {
  color-scheme: light;
  --bg: #fbf8ed;
  --surface: #fbf8ed;
  --surface-soft: #efe9d9;
  --surface-ink: #fbf8ed;
  --ink: #2f6f9f;
  --muted: #5d8aac;
  --faint: #91b0c5;
  --line: #2f6f9f;
  --line-strong: #2a648f;
  --accent: #2f6f9f;
  --accent-2: #e96f6f;
  --bronze: #2f6f9f;
  --shadow: 0 8px 0 rgba(47, 111, 159, 0.16);
  --skin-page-bg: var(--bg);
  --skin-page-surface: var(--surface);
  --skin-shell-border: rgba(47, 111, 159, 0.18);
  --skin-cast-frame-border: rgba(47, 111, 159, 0.82);
  --skin-cast-frame-bg: url("assets/beijing.png") center / cover no-repeat;
  --skin-cast-frame-shadow: inset 0 0 0 1px rgba(255, 248, 223, 0.26), 0 12px 26px rgba(47, 111, 159, 0.14);
  --skin-panel-bg: rgba(251, 248, 237, 0.94);
  --skin-panel-border: rgba(47, 111, 159, 0.78);
  --skin-panel-shadow: inset 0 0 0 1px rgba(47, 111, 159, 0.08);
  --skin-button-bg: rgba(251, 248, 237, 0.96);
  --skin-button-border: var(--line);
  --skin-button-ink: var(--ink);
  --skin-button-shadow: 0 3px 0 rgba(47, 111, 159, 0.12);
  --skin-wordmark-color: rgba(251, 248, 237, 0.92);
  --skin-settings-muted-bg: #e5e1d6;
  --skin-settings-muted-border: rgba(47, 111, 159, 0.36);
  --skin-settings-muted-ink: #8c846f;
  --skin-card-bg: var(--surface);
  --skin-card-border: var(--line);
  --skin-card-shadow: var(--shadow);
  --skin-chart-corner-color: var(--line);
  --skin-chart-corner-size: 26px;
  --skin-chart-corner-offset: -6px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--skin-page-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(47, 111, 159, 0.055), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.12)),
    var(--skin-page-surface);
  overflow-x: hidden;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

button,
textarea,
input {
  font: inherit;
}

input,
textarea,
select,
.cast-nav-editor,
.saved-note-input,
#exportTitleInput,
#exportNoteInput,
#exportWatermarkInput {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.mobile-app {
  width: min(100%, 580px);
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    max(12px, calc(env(safe-area-inset-top) + 6px))
    clamp(10px, 3.6vw, 18px)
    max(16px, calc(env(safe-area-inset-bottom) + 10px));
  background:
    radial-gradient(circle at 10px 12px, rgba(47, 111, 159, 0.055) 0 1px, transparent 1px 13px),
    var(--skin-page-surface);
  border-left: 2px solid var(--skin-shell-border);
  border-right: 2px solid var(--skin-shell-border);
}

.app-page {
  display: none;
}

[hidden] {
  display: none !important;
}

.app-page.is-active {
  display: block;
}

.cast-page.is-active {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  min-height: calc(100vh - max(16px, env(safe-area-inset-top)) - max(28px, env(safe-area-inset-bottom)));
  min-height: calc(100dvh - max(12px, calc(env(safe-area-inset-top) + 6px)) - max(16px, calc(env(safe-area-inset-bottom) + 10px)));
  align-content: start;
}

.chart-page.is-active {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 8px;
  min-height: calc(100vh - max(16px, env(safe-area-inset-top)) - max(28px, env(safe-area-inset-bottom)));
  min-height: calc(100dvh - max(12px, calc(env(safe-area-inset-top) + 6px)) - max(16px, calc(env(safe-area-inset-bottom) + 10px)));
  overflow: hidden;
  align-items: stretch;
}

.sand-page.is-active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: calc(100vh - max(16px, env(safe-area-inset-top)) - max(28px, env(safe-area-inset-bottom)));
  min-height: calc(100dvh - max(12px, calc(env(safe-area-inset-top) + 6px)) - max(16px, calc(env(safe-area-inset-bottom) + 10px)));
}

.splash-page {
  min-height: calc(100vh - 44px);
}

.splash-card {
  position: relative;
  display: grid;
  min-height: calc(100vh - 44px);
  align-content: space-between;
  justify-items: center;
  gap: 12px;
  border: 3px solid var(--line);
  border-radius: 9px;
  padding: 18px 16px;
  background:
    radial-gradient(circle at 14px 18px, rgba(47, 111, 159, 0.16) 0 2px, transparent 2px 18px),
    radial-gradient(circle at 86% 24%, rgba(233, 111, 111, 0.18) 0 2px, transparent 2px 16px),
    radial-gradient(circle at 68% 82%, rgba(47, 111, 159, 0.1) 0 1px, transparent 1px 10px),
    var(--surface);
  text-align: center;
  overflow: hidden;
}

.splash-kicker {
  justify-self: center;
  border-radius: 999px;
  padding: 5px 14px;
  background: #b8d0de;
  color: #fff8df;
  font-family: Impact, "Arial Black", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1;
  text-transform: uppercase;
  animation: splashDrop 650ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.splash-title {
  position: relative;
  display: grid;
  gap: 4px;
  width: min(100%, 360px);
  margin: 0 auto;
  color: var(--accent);
  font-family:
    "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC",
    system-ui, sans-serif;
  font-size: clamp(30px, 8.4vw, 44px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.08;
  text-transform: none;
  text-shadow:
    1px 1px 0 #fff8df,
    3px 3px 0 rgba(233, 111, 111, 0.5);
}

.splash-title span {
  display: block;
  transform-origin: center;
  animation: titleWave 900ms cubic-bezier(0.18, 0.95, 0.22, 1) both;
}

.splash-title span:nth-child(1),
.splash-title span:nth-child(3) {
  justify-self: start;
}

.splash-title span:nth-child(2) {
  justify-self: end;
  animation-delay: 120ms;
}

.splash-title span:nth-child(3) {
  animation-delay: 240ms;
}

.splash-mascot {
  display: grid;
  place-items: center;
  min-height: 218px;
  margin: 0;
}

.splash-art {
  position: relative;
  display: grid;
  place-items: center;
  width: min(78vw, 190px);
  aspect-ratio: 1;
  border: 3px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 13px 13px, rgba(47, 111, 159, 0.24) 0 2px, transparent 2px 15px),
    #f7d06b;
  box-shadow:
    9px 9px 0 rgba(47, 111, 159, 0.22),
    inset 0 0 0 9px #fff8df;
  transform: rotate(-4deg);
  animation: mascotFloat 2600ms ease-in-out infinite;
}

.splash-art::before,
.splash-art::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 3px solid var(--line);
  pointer-events: none;
}

.splash-art::before {
  transform: rotate(45deg);
  background: rgba(255, 248, 223, 0.74);
}

.splash-art::after {
  inset: 52px;
  background: #fbf8ed;
}

.splash-cat,
.splash-crab {
  position: relative;
  z-index: 2;
  width: 112px;
  height: 112px;
  transform: rotate(4deg);
}

.splash-cat {
  border-radius: 50% 50% 44% 44%;
  background: #111;
}

.cat-ear {
  position: absolute;
  top: -10px;
  width: 30px;
  height: 30px;
  background: #111;
}

.cat-ear.left {
  left: 14px;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.cat-ear.right {
  right: 14px;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.cat-eye {
  position: absolute;
  top: 44px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fbf8ed;
  box-shadow: 0 0 0 3px #fff8df;
}

.cat-eye.left { left: 34px; }
.cat-eye.right { right: 34px; }

.cat-mouth {
  position: absolute;
  left: 50%;
  top: 62px;
  width: 18px;
  height: 10px;
  margin-left: -9px;
  border-bottom: 3px solid #fff8df;
  border-radius: 0 0 14px 14px;
}

.cat-tail {
  position: absolute;
  right: -14px;
  bottom: 18px;
  width: 34px;
  height: 10px;
  border: 10px solid #111;
  border-left: 0;
  border-radius: 0 18px 18px 0;
  transform: rotate(22deg);
}

.splash-crab::before {
  content: "";
  position: absolute;
  inset: 28px 18px 34px;
  border-radius: 50% 50% 40% 40%;
  background: #111;
}

.crab-eye {
  position: absolute;
  top: 30px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 3px #fff8df;
}

.crab-eye.left { left: 28px; }
.crab-eye.right { right: 28px; }

.crab-claw,
.crab-leg {
  position: absolute;
  background: #111;
}

.crab-claw.left {
  left: 0;
  top: 44px;
  width: 28px;
  height: 18px;
  border-radius: 18px 0 0 18px;
  transform: rotate(-18deg);
}

.crab-claw.right {
  right: 0;
  top: 44px;
  width: 28px;
  height: 18px;
  border-radius: 0 18px 18px 0;
  transform: rotate(18deg);
}

.crab-leg {
  bottom: 14px;
  width: 18px;
  height: 6px;
  border-radius: 999px;
}

.crab-leg.one { left: 14px; transform: rotate(26deg); }
.crab-leg.two { left: 34px; transform: rotate(10deg); }
.crab-leg.three { right: 34px; transform: rotate(-10deg); }
.crab-leg.four { right: 14px; transform: rotate(-26deg); }

.splash-button {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff8df;
  font-family: Impact, "Arial Black", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  animation: splashRise 820ms 420ms cubic-bezier(0.18, 0.95, 0.22, 1) both;
}

.splash-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  animation: splashRise 820ms 520ms cubic-bezier(0.18, 0.95, 0.22, 1) both;
}

.app-version {
  align-self: end;
  color: rgba(47, 111, 159, 0.55);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  animation: splashRise 820ms 600ms cubic-bezier(0.18, 0.95, 0.22, 1) both;
}

@keyframes titleWave {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(0.92);
    filter: blur(8px);
  }
  70% {
    opacity: 1;
    transform: translateY(-3px) scale(1.02);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes splashDrop {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes mascotFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

.app-header,
.chart-header {
  display: grid;
  grid-template-columns: minmax(74px, auto) minmax(0, 1fr) minmax(118px, auto);
  align-items: center;
  gap: 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--surface);
}

.header-title {
  min-width: 0;
  grid-column: 2;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  grid-column: 3;
}

.chart-header {
  position: relative;
  z-index: 140;
  align-items: center;
  grid-template-columns: minmax(64px, auto) minmax(0, 1fr) auto;
  gap: 8px;
  border-width: 3px;
  border-radius: 10px;
  padding: 10px 8px;
  background:
    radial-gradient(circle at 20px 16px, rgba(47, 111, 159, 0.08) 0 1px, transparent 1px 12px),
    var(--surface);
  box-shadow: none;
  overflow: visible;
}

.chart-header .header-actions {
  position: relative;
  flex-wrap: nowrap;
  align-items: center;
  z-index: 141;
}

.app-header {
  margin-bottom: 16px;
}

.cast-page .app-header {
  margin-bottom: 0;
}

.cast-page .header-title {
  display: grid;
  gap: 4px;
}

.cast-page .header-title h1 {
  margin: 0;
  font-size: clamp(30px, 9vw, 42px);
  line-height: 0.94;
  text-align: left;
  text-transform: none;
}

.cast-page .eyebrow {
  text-align: left;
}

.cast-console-header {
  border-width: 3px;
  border-radius: 10px;
  padding: 10px;
  background:
    radial-gradient(circle at 16px 14px, rgba(47, 111, 159, 0.08) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.16)),
    var(--surface);
  box-shadow:
    0 8px 0 rgba(47, 111, 159, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.cast-hero {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 0;
  margin-top: -4px;
  margin-bottom: 6px;
  padding: 0 4px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.cast-hero-art-wrap {
  display: grid;
  justify-items: center;
  align-items: center;
  pointer-events: none;
}

.cast-hero-art {
  width: min(100%, 100%);
}

.cast-hero-stage {
  display: grid;
}

.cast-hero-image {
  display: block;
  width: clamp(72px, 22vw, 112px);
  animation: castHeroFloat 3.4s ease-in-out infinite;
  transform-origin: center;
}

.cast-hero-image img {
  display: block;
  width: 100%;
  max-height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(47, 111, 159, 0.16));
}

@keyframes castHeroFloat {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.88;
  }

  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

@media (max-width: 420px) {
  .cast-hero-art-wrap {
    justify-items: center;
  }
}

.eyebrow {
  margin: 0 0 5px;
  color: #9db7c9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-family: Impact, "Arial Black", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(38px, 12vw, 72px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.82;
  text-transform: uppercase;
  text-align: center;
}

h2 {
  font-family: Impact, "Arial Black", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: uppercase;
}

.chart-title-input {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 6px;
  padding: 0 4px;
  background: transparent;
  color: var(--ink);
  font-family: Impact, "Arial Black", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(40px, 13vw, 76px);
  font-weight: 900;
  line-height: 0.82;
  text-align: center;
  outline: none;
}

.chart-title-input:focus {
  background: rgba(47, 111, 159, 0.08);
  box-shadow: inset 0 -3px 0 var(--line);
}

.chart-skin-ornament,
.chart-skin-badge {
  display: none;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 2px solid var(--skin-button-border);
  border-radius: 6px;
  background: var(--accent);
  color: #fff8df;
  font-weight: 700;
  box-shadow: none;
}

.text-button {
  min-width: 54px;
  height: 42px;
  border: 2px solid var(--skin-button-border);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--skin-button-bg);
  color: var(--skin-button-ink);
  font-size: 13px;
  font-weight: 900;
  box-shadow: var(--skin-button-shadow);
  cursor: pointer;
}

.text-button.primary {
  background: var(--accent);
  color: #fff8df;
}

.back-button {
  min-width: 58px;
  height: 42px;
  border: 2px solid var(--skin-button-border);
  border-radius: 6px;
  background: var(--skin-button-bg);
  color: var(--skin-button-ink);
  font-weight: 900;
  box-shadow: var(--skin-button-shadow);
}

.chart-header .back-button,
.chart-header .text-button {
  min-width: 58px;
  height: 56px;
  border-width: 3px;
  border-radius: 9px;
  background: var(--skin-button-bg);
  color: var(--skin-button-ink);
  font-size: 15px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(47, 111, 159, 0.08);
}

.chart-header .text-button.primary {
  background: var(--surface);
  color: var(--ink);
}

.chart-menu-toggle {
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.chart-menu-toggle-lines {
  display: grid;
  gap: 5px;
}

.chart-menu-toggle-lines span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.chart-menu-toggle[aria-expanded="true"] .chart-menu-toggle-lines span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.chart-menu-toggle[aria-expanded="true"] .chart-menu-toggle-lines span:nth-child(2) {
  opacity: 0;
}

.chart-menu-toggle[aria-expanded="true"] .chart-menu-toggle-lines span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.chart-menu-toggle .chart-menu-toggle-lines span {
  transition: transform 180ms ease, opacity 180ms ease;
}

.chart-action-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 180;
  display: grid;
  gap: 8px;
  width: min(34vw, 132px);
  min-width: 112px;
  padding: 8px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.chart-action-menu-item,
.chart-header .chart-action-menu .text-button {
  width: 100%;
  min-width: 0;
  height: 48px;
  border-width: 2px;
  border-radius: 8px;
  font-size: 14px;
}

.icon-label {
  display: inline-grid;
  place-items: center;
  gap: 3px;
}

.button-icon {
  display: block;
  font-size: 22px;
  line-height: 0.9;
  color: currentColor;
}

.chart-header .eyebrow {
  margin-bottom: 0;
  color: var(--ink);
  font-family: Impact, "Arial Black", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0;
}

.question-panel,
.reference-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.question-panel {
  display: grid;
  gap: 16px;
  padding: 14px;
  border-width: 2px;
}

.cast-page .question-panel {
  gap: 14px;
  padding: 16px;
  border-width: 3px;
  box-shadow:
    0 10px 0 rgba(47, 111, 159, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.cast-workbench {
  display: grid;
  gap: 14px;
}

.cast-station {
  display: grid;
  gap: 12px;
  border: 2px solid rgba(47, 111, 159, 0.24);
  border-radius: 9px;
  padding: 12px;
  background:
    radial-gradient(circle at 14px 14px, rgba(47, 111, 159, 0.05) 0 1px, transparent 1px 12px),
    rgba(251, 248, 237, 0.82);
}

.station-heading {
  display: grid;
  gap: 4px;
}

.station-kicker {
  color: #7d97aa;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.station-heading h2,
.specified-caster-header h3 {
  margin: 0;
  color: var(--accent);
  font-family: Impact, "Arial Black", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 0.96;
  text-transform: none;
}

.station-note,
.specified-caster-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.question-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

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

.question-support-item {
  min-height: 24px;
  border: 2px solid rgba(47, 111, 159, 0.22);
  border-radius: 999px;
  padding: 4px 10px;
  color: #6f8ea3;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  background: rgba(244, 251, 255, 0.84);
}

label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  background: var(--surface-ink);
  color: var(--ink);
  outline: none;
  line-height: 1.55;
}

textarea:focus {
  border-color: var(--bronze);
  box-shadow: 0 0 0 4px rgba(141, 103, 56, 0.09);
}

.cast-button {
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  padding: 0 10px;
  cursor: pointer;
  font-weight: 900;
  line-height: 1.2;
}

.cast-button {
  background: var(--accent);
  color: #fff8df;
  box-shadow: none;
  text-transform: uppercase;
}

.cast-button.secondary {
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.cast-button::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-radius: 50%;
  background: var(--bronze);
}

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

.cast-method-button {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 4px;
  min-height: 64px;
  padding: 10px 14px;
  text-align: left;
}

.cast-method-button::after {
  display: none;
}

.cast-method-label {
  color: inherit;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.05;
}

.cast-method-meta {
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  opacity: 0.84;
}

.specified-caster {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 2px solid rgba(47, 111, 159, 0.24);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(47, 111, 159, 0.05), rgba(47, 111, 159, 0)),
    radial-gradient(circle at 16px 14px, rgba(47, 111, 159, 0.06) 0 1px, transparent 1px 12px),
    rgba(251, 248, 237, 0.86);
}

.specified-caster[hidden] {
  display: none;
}

.specified-caster-header {
  display: grid;
  gap: 6px;
}

.specified-toggle-button.is-open {
  border-color: #6aa6bd;
  background: #d7ecf4;
  color: #2f6f9f;
}

.specified-mothers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  direction: rtl;
  gap: 6px;
}

.specified-mother-slot {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  min-height: 86px;
  border: 2px dashed rgba(47, 111, 159, 0.46);
  border-radius: 7px;
  padding: 5px 3px;
  background: rgba(251, 248, 237, 0.72);
  color: var(--ink);
  direction: ltr;
  text-align: center;
}

.specified-mother-slot.is-active {
  border-style: solid;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px rgba(47, 111, 159, 0.12);
}

.specified-mother-slot.is-filled {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff8df;
}

.specified-mother-slot span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.specified-mother-slot.is-filled span,
.specified-mother-slot.is-filled strong {
  color: #fff8df;
}

.specified-mother-slot.is-filled .dot {
  background: #fff8df;
  box-shadow: none;
}

.specified-mother-slot strong,
.specified-figure strong {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.specified-mother-slot .glyph,
.specified-figure .glyph {
  gap: 2px;
  min-height: 30px;
  margin: 2px 0;
}

.specified-mother-slot .row,
.specified-figure .row {
  min-height: 5px;
}

.specified-mother-slot .dot,
.specified-figure .dot {
  width: 5px;
  height: 5px;
}

.specified-figure-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.specified-figure {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  min-height: 88px;
  border: 2px solid rgba(47, 111, 159, 0.5);
  border-radius: 7px;
  padding: 5px 3px;
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  cursor: grab;
}

.specified-figure:active {
  cursor: grabbing;
}

.specified-figure span {
  max-width: 100%;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

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

.specified-actions .cast-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.cast-page.is-active {
  position: relative;
  gap: 12px;
  padding: clamp(8px, 2.8vw, 14px);
  border: 3px solid var(--skin-cast-frame-border);
  border-radius: clamp(16px, 4.8vw, 22px);
  background: var(--skin-cast-frame-bg);
  box-shadow: var(--skin-cast-frame-shadow);
  overflow: hidden;
}

.cast-page.is-active::before {
  content: none;
}

.cast-page.is-active::after {
  content: none;
}

.cast-page .app-header {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  border: 2px solid var(--skin-panel-border);
  border-radius: 14px;
  padding: 6px 8px;
  background: var(--skin-panel-bg);
  box-shadow: var(--skin-panel-shadow);
}

.cast-page .header-title {
  display: grid;
  align-items: center;
  min-width: 0;
}

.cast-page .header-actions {
  align-self: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.cast-nav-brand {
  display: grid;
  align-items: center;
  min-width: 0;
}

.cast-nav-editor {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: var(--ink);
  font-family: "Arial Black", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  outline: none;
}

.cast-nav-editor::placeholder {
  color: rgba(47, 111, 159, 0.65);
}

.cast-nav-editor:focus {
  border-radius: 6px;
  box-shadow: inset 0 -2px 0 rgba(47, 111, 159, 0.32);
}

.cast-page .text-button,
.cast-page .icon-button {
  min-width: 48px;
  height: 32px;
  border: 3px solid var(--line);
  border-radius: 10px;
  background: var(--skin-button-bg);
  color: var(--ink);
  font-family: "Arial Black", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 900;
  box-shadow: var(--skin-button-shadow);
}

.cast-page .cast-hero {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  min-height: 0;
  margin: 0;
  padding: 4px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.cast-wordmark {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  font-family: "Arial Black", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(44px, 16vw, 80px);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0;
  text-align: center;
  color: var(--skin-wordmark-color);
  text-shadow:
    4px 4px 0 rgba(47, 111, 159, 0.68),
    0 0 0 rgba(47, 111, 159, 0.75);
  opacity: 0.96;
  user-select: none;
  pointer-events: none;
}

.cast-wordmark::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(58vw, 260px);
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: rgba(251, 248, 237, 0.52);
  transform: translateX(-50%);
}

.cast-button-primary::before {
  content: none;
}

.cast-page .question-panel {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 0;
  min-height: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding-bottom: 0;
}

.cast-workbench {
  gap: 10px;
}

.cast-page .question-panel::after {
  content: none;
}

.cast-station {
  gap: 12px;
  border: 3px solid var(--line);
  border-radius: clamp(16px, 4.2vw, 22px);
  padding: clamp(10px, 3vw, 14px) clamp(10px, 3vw, 14px) clamp(10px, 2.6vw, 12px);
  background: rgba(251, 248, 237, 0.98);
  box-shadow:
    0 8px 0 rgba(255, 248, 223, 0.32),
    inset 0 0 0 1px rgba(47, 111, 159, 0.06);
}

.station-heading,
.specified-caster-header {
  gap: 12px;
}

.station-heading h2,
.specified-caster-header h3 {
  color: var(--accent);
  font-family: "Arial Black", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(24px, 8.6vw, 34px);
  line-height: 0.92;
  text-transform: none;
}

.cast-intake-station {
  gap: 8px;
  padding: 12px 12px 10px;
}

.cast-intake-station .station-heading {
  gap: 6px;
}

.cast-intake-station .station-heading h2 {
  font-size: clamp(20px, 7vw, 28px);
}

.cast-page textarea {
  min-height: clamp(70px, 14vw, 88px);
  border: 3px solid var(--line);
  border-radius: 16px;
  padding: 12px 12px;
  background: #fdfbf2;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(47, 111, 159, 0.04);
}

.cast-page textarea::placeholder {
  color: #87a5ba;
  font-weight: 700;
}

.export-page {
  display: none;
}

.export-page.is-active {
  display: grid;
  align-content: start;
  gap: 14px;
}

.export-layout {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.export-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.export-panel-head h2 {
  text-transform: none;
}

.export-mode-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.export-watermark-mode-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.export-mode-button {
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: rgba(251, 248, 237, 0.96);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.export-mode-button.is-active {
  background: var(--accent);
  color: #fff8df;
}

.export-field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.export-field input,
.export-field textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fdfbf2;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.export-field textarea {
  resize: vertical;
  min-height: 96px;
}

#exportWatermarkInput {
  font-weight: 700;
  letter-spacing: 0;
}

.export-action-row {
  display: grid;
}

.export-download-button[disabled] {
  opacity: 0.52;
  cursor: not-allowed;
}

.export-share-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.export-preview-panel {
  min-height: 0;
}

.export-preview-frame {
  display: grid;
  place-items: center;
  min-height: 280px;
  border: 2px dashed rgba(47, 111, 159, 0.28);
  border-radius: 14px;
  padding: 12px;
  background: rgba(251, 248, 237, 0.52);
  overflow: auto;
}

.export-preview-empty {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  color: var(--muted);
}

.export-preview-empty strong {
  color: var(--ink);
  font-size: 16px;
}

.export-preview-image {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(47, 111, 159, 0.14);
}

.export-render-sandbox {
  position: fixed;
  left: -20000px;
  top: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

.export-render-sandbox .shield-board {
  min-height: 720px;
}

.export-render-sandbox .house-svg-wrap {
  min-height: 1000px;
}

@media (min-width: 760px) {
  .export-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
  }

  .export-preview-frame {
    min-height: 420px;
  }
}

.cast-page textarea:focus {
  border-color: var(--line);
  box-shadow:
    inset 0 0 0 2px rgba(47, 111, 159, 0.08),
    0 0 0 4px rgba(255, 248, 223, 0.32);
}

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

.question-support-item {
  justify-content: center;
  text-align: center;
  font-size: 13px;
  line-height: 1.15;
}

.cast-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 8px;
  align-items: stretch;
}

.cast-methods-station {
  position: relative;
  padding-bottom: 12px;
}

.cast-methods-station::after {
  content: none;
}

.cast-methods-station::before {
  content: none;
}

.cast-button {
  position: relative;
  min-height: clamp(68px, 16vw, 78px);
  border: 3px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 0 rgba(255, 248, 223, 0.34);
  text-transform: none;
  overflow: hidden;
}

.cast-button::after {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 10px;
  height: 10px;
  margin-left: 0;
  background: currentColor;
  justify-self: end;
}

.cast-method-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 0;
  text-align: left;
}

.cast-method-label {
  font-family: "Arial Black", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  line-height: 0.92;
}

.cast-method-meta {
  display: none;
}

.cast-button-primary {
  grid-row: span 2;
  min-height: 100%;
  justify-content: end;
}

.cast-button-primary .cast-method-label {
  font-size: clamp(34px, 10vw, 46px);
  line-height: 0.86;
}

.cast-button-secondary .cast-method-label,
.cast-button-tertiary .cast-method-label {
  font-size: clamp(20px, 5.8vw, 26px);
  line-height: 0.92;
}

.cast-page #castButton,
.cast-button-primary {
  background: linear-gradient(180deg, #5e88af, #4f79a2);
  color: #fff8df;
}

.cast-page #castButton .cast-method-meta {
  color: rgba(255, 248, 223, 0.9);
  opacity: 1;
}

.cast-button-primary::before {
  content: "闅忔満";
  position: absolute;
  left: 18px;
  top: 12px;
  color: rgba(255, 248, 223, 0.75);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.cast-page #sandStartButton,
.cast-page #specifiedToggleButton,
.cast-button-secondary,
.cast-button-tertiary {
  background: rgba(251, 248, 237, 0.98);
  color: var(--ink);
}

.cast-page #castButton.cast-button-primary::before,
.cast-page #castButton::before {
  content: none;
}

.cast-page #specifiedToggleButton:disabled,
.cast-button-tertiary:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  border-color: rgba(47, 111, 159, 0.36);
  color: rgba(47, 111, 159, 0.62);
  box-shadow: none;
}

.cast-page #specifiedToggleButton.is-ready,
.cast-button-tertiary.is-ready {
  background: linear-gradient(180deg, #5e88af, #4f79a2);
  color: #fff8df;
}

.cast-page #specifiedToggleButton.is-ready::before,
.cast-button-tertiary.is-ready::before {
  background: rgba(255, 248, 223, 0.5);
}

.cast-button-secondary::before,
.cast-button-tertiary::before {
  content: "";
  position: absolute;
  inset: auto 16px 12px auto;
  width: 36px;
  height: 3px;
  border-radius: 999px;
  background: rgba(47, 111, 159, 0.24);
}

.specified-caster {
  gap: 12px;
  padding: 12px;
  border: 3px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(231, 238, 244, 0.92), rgba(251, 248, 237, 0.95));
  box-shadow: inset 0 0 0 1px rgba(47, 111, 159, 0.06);
}

.specified-mothers,
.specified-figure-grid {
  gap: 8px;
}

.specified-mother-slot,
.specified-figure {
  min-height: clamp(72px, 18vw, 84px);
  border-width: 3px;
  border-radius: 14px;
  padding: 7px 4px;
  background: rgba(251, 248, 237, 0.96);
  box-shadow: inset 0 0 0 1px rgba(47, 111, 159, 0.04);
}

.specified-mother-slot {
  border-style: dashed;
}

.specified-mother-slot.is-filled {
  background: linear-gradient(180deg, #5e88af, #4f79a2);
  color: #fff8df;
}

.specified-mother-slot strong,
.specified-figure strong {
  font-size: 13px;
}

.specified-figure span {
  font-size: 10px;
}

@media (max-width: 420px) {
  .cast-page.is-active {
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
  }

  .cast-page.is-active::after {
    content: none;
  }

  .cast-page .app-header {
    gap: 8px;
    padding: 5px 6px;
  }

  .cast-page .text-button,
  .cast-page .icon-button {
    min-width: 44px;
    height: 30px;
    border-radius: 9px;
    font-size: 11px;
  }

  .cast-nav-brand {
    width: 100%;
  }

  .cast-nav-editor {
    font-size: 11px;
  }

  .cast-wordmark {
    font-size: clamp(34px, 13vw, 56px);
  }

  .cast-page .question-panel {
    gap: 8px;
  }

  .cast-page .question-panel::after {
    content: none;
  }

  .cast-intake-station {
    padding: 10px 10px 9px;
  }

  .cast-page textarea {
    min-height: 68px;
    padding: 10px 11px;
    font-size: 13px;
  }

  .cast-actions {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .cast-methods-station::after,
  .cast-methods-station::before {
    content: none;
  }

  .cast-button,
  .cast-button-primary {
    min-height: 66px;
    grid-row: auto;
    border-radius: 16px;
    padding: 10px 12px;
  }

  .cast-method-label {
    font-size: 22px;
  }

  .cast-button-primary .cast-method-label,
  .cast-button-secondary .cast-method-label,
  .cast-button-tertiary .cast-method-label {
    font-size: clamp(20px, 6.2vw, 24px);
  }

  .specified-mothers,
  .specified-figure-grid {
    gap: 6px;
  }

  .specified-caster {
    gap: 8px;
    padding: 10px;
    border-radius: 16px;
  }

  .specified-mother-slot,
  .specified-figure {
    min-height: 68px;
    border-radius: 12px;
    padding: 5px 3px;
  }

  .specified-mother-slot strong,
  .specified-figure strong {
    font-size: 12px;
  }

  .specified-figure span {
    font-size: 9px;
  }

  .chart-action-menu {
    width: min(38vw, 128px);
    min-width: 106px;
    gap: 6px;
    padding: 6px;
    border-radius: 10px;
  }

  .chart-action-menu-item,
  .chart-header .chart-action-menu .text-button {
    height: 44px;
    font-size: 13px;
  }

  .chart-fab-menu {
    right: 12px;
    bottom: max(22px, calc(env(safe-area-inset-bottom) + 22px));
    gap: 8px;
  }

  .chart-fab-action {
    min-width: 58px;
    min-height: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: 12px;
  }

  .chart-fab-toggle {
    width: 52px;
    min-width: 52px;
    height: 52px;
  }
}

@media (max-width: 360px) {
  .mobile-app {
    padding:
      max(10px, calc(env(safe-area-inset-top) + 4px))
      8px
      max(14px, calc(env(safe-area-inset-bottom) + 8px));
  }

  .cast-page.is-active {
    gap: 7px;
    padding: 7px;
    border-radius: 14px;
  }

  .cast-page .app-header {
    padding: 4px 5px;
  }

  .cast-nav-editor {
    font-size: 10px;
  }

  .cast-wordmark {
    font-size: clamp(30px, 12.5vw, 46px);
  }

  .station-heading h2,
  .specified-caster-header h3 {
    font-size: clamp(20px, 7.2vw, 24px);
  }

  .cast-page textarea {
    min-height: 62px;
    font-size: 12px;
  }

  .cast-button,
  .cast-button-primary {
    min-height: 60px;
    padding: 9px 10px;
  }

  .cast-method-label,
  .cast-button-primary .cast-method-label,
  .cast-button-secondary .cast-method-label,
  .cast-button-tertiary .cast-method-label {
    font-size: clamp(18px, 5.8vw, 21px);
  }

  .specified-mothers,
  .specified-figure-grid {
    gap: 5px;
  }

  .specified-mother-slot,
  .specified-figure {
    min-height: 62px;
  }

  .specified-mother-slot span,
  .specified-figure span {
    font-size: 8px;
  }

  .specified-mother-slot strong,
  .specified-figure strong {
    font-size: 11px;
  }
}

.chart-meta {
  display: none;
}

.recast-inline {
  position: relative;
  z-index: 80;
  display: block;
  width: 100%;
  height: 40px;
  margin: 0;
  border-width: 3px;
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-family: Impact, "Arial Black", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  letter-spacing: 0;
}

.sand-page-header {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 8px;
}

.sand-page-header .header-title {
  min-width: 0;
  text-align: center;
}

.sand-page-header h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.sand-field-panel {
  min-height: 0;
  border: 3px solid rgba(47, 111, 159, 0.32);
  border-radius: 9px;
  padding: 8px;
  background:
    linear-gradient(90deg, rgba(233, 111, 111, 0.13) 0 1px, transparent 1px 44px),
    radial-gradient(circle at 14% 18%, rgba(47, 111, 159, 0.045) 0 1px, transparent 1px 12px),
    #f7f1df;
  box-shadow:
    inset 0 1px 4px rgba(47, 111, 159, 0.08),
    0 8px 0 rgba(47, 111, 159, 0.12);
}

.sand-field {
  display: grid;
  grid-template-rows: repeat(16, minmax(0, 1fr));
  width: 100%;
  height: 100%;
  min-height: min(68vh, 720px);
  border: 2px solid rgba(47, 111, 159, 0.22);
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(47, 111, 159, 0.035) 0 1px, transparent 1px 15px),
    radial-gradient(circle at 72% 76%, rgba(233, 111, 111, 0.045) 0 1px, transparent 1px 18px),
    linear-gradient(90deg, rgba(47, 111, 159, 0.035) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, #fbf8ed, #f3ecd8);
}

.sand-region {
  position: relative;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid rgba(47, 111, 159, 0.16);
  border-radius: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  overflow: hidden;
  touch-action: manipulation;
}

.sand-region:last-child {
  border-bottom: 0;
}

.sand-region.has-points {
  background: rgba(47, 111, 159, 0.025);
}

.sand-region:focus {
  outline: none;
}

.sand-pit {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 0;
  transform: translate(-50%, -50%) rotate(var(--pit-rotate, -12deg)) scale(var(--pit-scale, 1));
  background:
    radial-gradient(circle at 48% 50%, rgba(68, 66, 60, 0.34) 0 1.8px, rgba(82, 78, 69, 0.18) 1.9px 4px, transparent 4.8px),
    radial-gradient(circle at 64% 42%, rgba(75, 72, 65, 0.2) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 35% 65%, rgba(86, 80, 70, 0.18) 0 1.1px, transparent 2.3px),
    radial-gradient(circle at 57% 69%, rgba(72, 69, 62, 0.14) 0 1px, transparent 2px),
    radial-gradient(circle at 29% 39%, rgba(72, 69, 62, 0.12) 0 0.9px, transparent 1.8px);
  opacity: 0.82;
  filter: blur(0.35px);
  pointer-events: none;
}

.sand-pit::before,
.sand-pit::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  width: 13px;
  height: 1px;
  border-radius: 0;
  background: rgba(70, 66, 58, 0.18);
  transform: rotate(-18deg);
}

.sand-pit::after {
  left: 6px;
  top: 5px;
  width: 8px;
  background: rgba(70, 66, 58, 0.12);
  transform: rotate(21deg);
}

.sand-page-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  align-items: center;
  gap: 10px;
}

.sand-page-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.sand-page-footer .cast-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.view-switcher {
  position: relative;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
}

.view-tabs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  border: 3px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.view-tab {
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.view-tab.is-active {
  background: var(--accent);
  color: #fff8df;
  box-shadow: none;
}

.fly-button,
.seek-button,
.source-button,
.precision-aspect-button,
.first-heaven-button,
.motion-button,
.derived-house-button,
.unlock-button {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  height: 52px;
  border-width: 3px;
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-family: Impact, "Arial Black", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  line-height: 1.05;
}

.fly-button.is-active,
.seek-button.is-active,
.source-button.is-active,
.precision-aspect-button.is-active,
.first-heaven-button.is-active,
.motion-button.is-active,
.derived-house-button.is-active,
.unlock-button.is-ready {
  background: #d7ecf4;
  border-color: #6aa6bd;
  color: #2f6f9f;
  box-shadow:
    0 5px 12px rgba(106, 166, 189, 0.24),
    inset 0 2px 0 rgba(255, 255, 255, 0.72),
    inset 0 -3px 8px rgba(106, 166, 189, 0.16);
}

.precision-aspect-button {
  font-family: "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 950;
}

.first-heaven-button {
  font-family: "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 950;
  touch-action: manipulation;
  user-select: none;
}

.chart-fab-menu {
  position: fixed;
  right: max(14px, calc((100vw - min(100vw, 580px)) / 2 + 14px));
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 28px));
  z-index: 190;
  display: grid;
  justify-items: end;
  gap: 10px;
  touch-action: none;
  user-select: none;
  will-change: left, top, transform;
}

.chart-fab-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
  order: 2;
  transform-origin: top right;
}

.chart-fab-actions[hidden] {
  display: none;
}

.chart-fab-actions.is-open {
  animation: chartFabActionsDrop 220ms cubic-bezier(0.2, 0.92, 0.28, 1) both;
}

.chart-fab-action {
  min-width: 64px;
  width: auto;
  min-height: 46px;
  height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.chart-fab-toggle {
  position: relative;
  width: 58px;
  min-width: 58px;
  height: 58px;
  border-width: 3px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff8df;
  box-shadow:
    0 10px 18px rgba(47, 111, 159, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  touch-action: none;
  transform-origin: 50% 50%;
  transition:
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 180ms ease;
  will-change: transform, box-shadow;
  order: 1;
}

.chart-fab-toggle.is-dragging {
  transition: none;
}

.chart-fab-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  transform: translateY(-1px);
  transition: transform 180ms ease, opacity 180ms ease;
}

.chart-fab-toggle[aria-expanded="true"] .chart-fab-label {
  transform: translateY(-1px) scale(1.04);
}

.chart-fab-toggle:active {
  transition-duration: 90ms;
}

@keyframes chartFabActionsDrop {
  from {
    opacity: 0;
    transform: translate3d(0, -8px, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.motion-button {
  font-family: "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 950;
}

.derived-house-button {
  font-family: "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 950;
}

.unlock-button:disabled {
  background: #e2ded2;
  border-color: #bdb6a4;
  color: #958b77;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.78;
}

.unlock-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.chart-step-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
  margin-top: 0;
  min-height: 0;
}

.chart-workspace {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.chart-step-row > div {
  min-width: 0;
}

.unlock-switcher,
.derived-house-switcher {
  min-height: 42px;
  padding: 4px 6px;
  border: 2px solid rgba(47, 111, 159, 0.18);
  border-radius: 10px;
  background: rgba(255, 253, 246, 0.74);
}

.unlock-switcher span,
.derived-house-switcher span {
  min-width: 0;
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.unlock-step-button,
.derived-house-step-button {
  min-width: 40px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
}

.derived-house-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.settings-page.is-active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-height: calc(100vh - max(16px, env(safe-area-inset-top)) - max(28px, env(safe-area-inset-bottom)));
  min-height: calc(100dvh - max(12px, calc(env(safe-area-inset-top) + 6px)) - max(16px, calc(env(safe-area-inset-bottom) + 10px)));
  align-content: start;
}

.settings-header-spacer {
  display: block;
  width: 44px;
  height: 1px;
}

.settings-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.settings-panel {
  margin-top: 0;
  padding: 14px;
}

.settings-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.settings-panel-head h2 {
  color: var(--ink);
  font-size: clamp(22px, 6.5vw, 28px);
  line-height: 0.96;
  text-transform: none;
}

.settings-panel-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  text-align: right;
}

.settings-panel-subhead {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 2px solid rgba(47, 111, 159, 0.16);
}

.settings-page .first-heaven-manager {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.settings-page .first-heaven-manager-panel {
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  gap: 6px;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.settings-page .first-heaven-presets {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.settings-page .first-heaven-editor,
.settings-page .first-heaven-palette {
  min-height: 0;
}

.settings-coming-button {
  width: 100%;
  min-height: 58px;
  border: 2px dashed var(--skin-settings-muted-border);
  border-radius: 12px;
  padding: 0 12px;
  background: var(--skin-settings-muted-bg);
  color: var(--skin-settings-muted-ink);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.settings-coming-button::after {
  content: ">";
  margin-left: 10px;
  font-size: 18px;
  line-height: 1;
}

.skin-settings-block {
  display: grid;
  gap: 10px;
}

.skin-preset-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
}

.skin-preset {
  min-height: 62px;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.skin-preset strong,
.skin-preset span {
  display: block;
}

.skin-preset strong {
  font-size: 14px;
  font-weight: 900;
}

.skin-preset span {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.skin-preset.is-active {
  border-color: var(--accent);
  background: #d7ecf4;
  box-shadow:
    0 5px 12px rgba(106, 166, 189, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.72);
}

.skin-preview-card {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 2px solid rgba(47, 111, 159, 0.18);
  border-radius: 12px;
  background: rgba(251, 248, 237, 0.78);
}

.skin-preview-card strong {
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
}

.skin-preview-card p:last-child {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

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

.settings-info-row {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(47, 111, 159, 0.18);
  border-radius: 10px;
  background: rgba(251, 248, 237, 0.78);
}

.settings-info-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.settings-info-row strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.first-heaven-manager {
  position: fixed;
  inset: 0;
  z-index: 560;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 0;
  background: rgba(32, 24, 20, 0.2);
  overflow: hidden;
}

.first-heaven-manager[hidden] {
  display: none;
}

.first-heaven-manager-panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) minmax(0, 1fr) auto;
  width: min(100vw, 580px);
  max-width: 100vw;
  height: min(100vh, 780px);
  height: min(100dvh, 780px);
  gap: 6px;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 12px;
  border: 3px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(32, 24, 20, 0.24);
  overscroll-behavior: contain;
}

.first-heaven-manager-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.first-heaven-manager-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(14px, 4vw, 17px);
  font-weight: 950;
}

.first-heaven-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.first-heaven-preset {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--ink);
  cursor: pointer;
}

.first-heaven-preset {
  min-height: 32px;
  padding: 3px 2px;
  display: grid;
  place-items: center;
  gap: 0;
}

.first-heaven-preset span {
  color: var(--accent);
  font-family: Impact, "Arial Black", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.first-heaven-preset strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 8px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.first-heaven-preset.is-active {
  border-color: var(--accent);
  background: #d7ecf4;
  color: #2f6f9f;
}

.first-heaven-name-field {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
}

.first-heaven-name-field span {
  color: #2f6f9f;
}

.first-heaven-name-field input {
  width: 100%;
  min-height: 30px;
  padding: 0 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--ink);
  font: inherit;
}

.first-heaven-editor {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(38px, 1fr));
  min-height: 0;
  gap: 4px;
  padding: 5px;
  border: 2px solid rgba(47, 111, 159, 0.36);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(235, 245, 249, 0.98), rgba(226, 239, 243, 0.92));
}

.first-heaven-editor-slot {
  min-height: 0;
  padding: 3px 2px;
  border: 1px solid rgba(47, 111, 159, 0.34);
  border-radius: 7px;
  background: #f8fcfd;
  color: #315b73;
  cursor: pointer;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
}

.first-heaven-editor-slot.is-active {
  border-color: var(--accent);
  background: linear-gradient(180deg, #2f6f9f, #285f89);
  color: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 3px 10px rgba(47, 111, 159, 0.22);
}

.first-heaven-editor-slot.is-active .first-heaven-editor-index,
.first-heaven-editor-slot.is-active strong {
  color: #ffffff;
}

.first-heaven-editor-slot.is-active .dot {
  background: #ffffff;
}

.first-heaven-editor-index {
  color: currentColor;
  font-family: Impact, "Arial Black", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.first-heaven-editor-slot strong {
  font-size: 8px;
  font-weight: 950;
  line-height: 1.1;
}

.first-heaven-option-glyph {
  display: grid;
  place-items: center;
  transform: scale(0.44);
}

.first-heaven-option-glyph .glyph {
  gap: 1px;
}

.first-heaven-option-glyph .row {
  gap: 3px;
}

.first-heaven-option-glyph .dot {
  width: 6px;
  height: 6px;
}

.first-heaven-palette {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(34px, 1fr));
  min-height: 0;
  gap: 4px;
  padding: 5px;
  border: 2px dashed rgba(33, 26, 21, 0.2);
  border-radius: 8px;
  background: #fff7e5;
}

.first-heaven-palette-item {
  min-height: 0;
  padding: 2px 2px;
  border: 1px solid rgba(33, 26, 21, 0.14);
  border-radius: 7px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 0;
}

.first-heaven-palette-item span:last-child {
  font-size: 8px;
  font-weight: 950;
  color: var(--ink);
}

@media (max-width: 640px) {
  .chart-step-row {
    grid-template-columns: 1fr;
  }
}

.first-heaven-palette-item:hover,
.first-heaven-palette-item:focus-visible {
  border-color: #9cc6d8;
  background: #f4fbff;
}

.first-heaven-manager-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.first-heaven-manager-actions .text-button {
  min-height: 32px;
  font-size: 11px;
}

@media (max-width: 480px) {
  .first-heaven-manager {
    padding: 0;
  }

  .first-heaven-manager-panel {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    padding: 8px 12px;
    gap: 6px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-sizing: border-box;
  }

  .first-heaven-manager-header {
    gap: 6px;
  }

  .first-heaven-manager-header h2 {
    font-size: 15px;
  }

  .first-heaven-presets {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .first-heaven-editor {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .first-heaven-editor,
  .first-heaven-palette {
    width: 100%;
    box-sizing: border-box;
  }

  .first-heaven-palette {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .first-heaven-option-glyph {
    transform: scale(0.4);
  }

  .settings-panel {
    padding: 12px;
  }

  .settings-panel-head {
    margin-bottom: 8px;
  }

  .settings-panel-head h2 {
    font-size: 24px;
  }

  .settings-panel-note {
    font-size: 11px;
  }

  .settings-page .first-heaven-preset span {
    font-size: 12px;
  }

  .settings-page .first-heaven-preset strong {
    font-size: 7px;
  }
}

.unlock-switcher[hidden] {
  display: none;
}

.unlock-step-button {
  min-width: 46px;
  min-height: 32px;
  padding: 0 10px;
}

.unlock-step-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.shield-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 28%),
    var(--surface);
  background-size: 12.5% 100%, 100% 20%;
  box-shadow: none;
}

.fly-lines {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fly-lines path,
.fly-lines-svg path {
  fill: none;
  stroke: var(--fly-line);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2 9;
  vector-effect: non-scaling-stroke;
  opacity: 0.52;
  filter: drop-shadow(0 4px 7px var(--fly-shadow));
}

.shield-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  margin-top: 0;
  padding: 8px;
  border: 3px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.chart-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: visible;
  margin-top: 0;
}

.chart-stage[hidden] {
  display: none;
}

.shield-stage,
.house-stage {
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  align-items: stretch;
  justify-content: stretch;
}

.meaning-overlay {
  position: absolute;
  inset: 0 0 auto;
  z-index: 260;
  display: grid;
  grid-template-columns: minmax(92px, 0.34fr) minmax(0, 1fr);
  gap: 10px;
  border: 3px solid var(--line);
  border-radius: 11px;
  padding: 10px 36px 10px 10px;
  background:
    radial-gradient(circle at 16px 18px, rgba(47, 111, 159, 0.08) 0 1px, transparent 1px 12px),
    rgba(251, 248, 237, 0.98);
  box-shadow: 0 10px 0 rgba(47, 111, 159, 0.14);
  height: min(212px, calc(100vh - 18px));
  max-height: min(212px, calc(100vh - 18px));
  overflow: hidden;
  pointer-events: auto;
}

.meaning-overlay.is-motion-selection {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 8px 36px 8px 10px;
  box-shadow: 0 8px 0 rgba(47, 111, 159, 0.1);
}

.meaning-overlay[hidden] {
  display: none;
}

.meaning-figure-card {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 5px;
  min-height: 0;
  height: 100%;
  border-radius: 7px;
  padding: 10px 8px;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 18px),
    var(--ink);
  color: #fff8df;
}

.meaning-glyph {
  display: grid;
  place-items: center;
  width: 52px;
  min-height: 58px;
}

.meaning-glyph .glyph {
  min-height: 52px;
  margin-top: 0;
  gap: 4px;
}

.meaning-glyph .row {
  width: 38px;
  min-height: 8px;
  gap: 6px;
}

.meaning-glyph .dot {
  width: 8px;
  height: 8px;
  background: var(--surface);
}

.meaning-overlay h2 {
  color: #fff8df;
  font-family: Impact, "Arial Black", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(18px, 5vw, 23px);
  line-height: 1.04;
  text-align: center;
  text-transform: none;
}

.meaning-overlay p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.38;
}

#selectionMeaning {
  white-space: pre-wrap;
}

.meaning-overlay .eyebrow {
  margin: 0;
  color: rgba(255, 248, 223, 0.86);
  font-size: 11px;
  text-align: center;
}

.meaning-figure-card #selectionMeta {
  color: rgba(255, 248, 223, 0.82);
  font-size: 12px;
  text-align: center;
}

.meaning-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.meaning-overlay.is-motion-selection .meaning-figure-card {
  display: none;
}

.meaning-overlay.is-motion-selection .meaning-glyph,
.meaning-overlay.is-motion-selection .meaning-summary,
.meaning-overlay.is-motion-selection .meaning-section:nth-of-type(2),
.meaning-overlay.is-motion-selection .meaning-section:nth-of-type(4) {
  display: none;
}

.meaning-overlay.is-motion-selection h2 {
  text-align: left;
}

.meaning-overlay.is-motion-selection .meaning-figure-card #selectionMeta,
.meaning-overlay.is-motion-selection .eyebrow {
  text-align: left;
}

.meaning-overlay.is-motion-selection .meaning-detail-card {
  display: block;
  overflow: hidden;
  padding-right: 0;
}

.meaning-overlay.is-motion-selection .meaning-section {
  border-top: 0;
  padding-top: 0;
}

.meaning-overlay.is-motion-selection .meaning-section h3 {
  display: none;
}

.meaning-section {
  display: grid;
  gap: 5px;
  min-width: 0;
  border-top: 2px solid rgba(47, 111, 159, 0.45);
  padding-top: 6px;
}

.meaning-summary {
  grid-column: 1 / -1;
  border-top: 0;
  padding-top: 0;
}

.meaning-section h3 {
  margin: 0;
  color: var(--ink);
  font-family: Impact, "Arial Black", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1;
}

.meaning-tags,
.meaning-related {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meaning-tags span,
.meaning-related span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 2px solid rgba(47, 111, 159, 0.45);
  border-radius: 6px;
  padding: 3px 8px;
  background: #f4fbff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.meaning-overlay.is-motion-selection .meaning-related {
  display: grid;
  gap: 7px;
}

.motion-path-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 4px 0 7px;
  border-bottom: 1px solid rgba(47, 111, 159, 0.14);
}

.motion-path-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.motion-path-kind {
  align-self: start;
  min-width: 34px;
  color: #7d97aa;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

.motion-path-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.motion-path-name {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.15;
}

.motion-path-route {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #6e8697;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  flex-wrap: wrap;
}

.motion-path-palace {
  white-space: nowrap;
}

.motion-path-arrow {
  color: rgba(47, 111, 159, 0.62);
  font-size: 12px;
  font-weight: 900;
}

.motion-path-distance {
  justify-self: end;
  align-self: center;
  color: #2f6f9f;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.motion-path-item.is-incoming .motion-path-name {
  color: #2f6f9f;
}

.motion-path-item.is-outgoing .motion-path-name {
  color: #cc6868;
}

.motion-path-empty {
  color: #7d97aa;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.meaning-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
  line-height: 1;
}

.house-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.house-svg-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 0;
}

.geomancy-house-chart {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center top;
  background: var(--surface);
}

.ghc-background {
  fill: var(--surface);
}

.ghc-outer,
.ghc-diamond,
.ghc-inner,
.ghc-slot {
  fill: none;
  stroke: #211a15;
  vector-effect: non-scaling-stroke;
}

.ghc-outer {
  stroke-width: 1.2;
}

.ghc-diamond {
  stroke-width: 1.2;
}

.ghc-inner {
  fill: transparent;
  stroke: transparent;
  stroke-width: 0;
}

.ghc-slot {
  fill: var(--surface);
  stroke: transparent;
  stroke-width: 0;
}

.ghc-outline-layer {
  pointer-events: none;
}

.ghc-outline {
  fill: none;
  stroke: #211a15;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.ghc-outline-slot,
.ghc-outline-framework {
  stroke-width: 1.2;
}

.ghc-click-target {
  cursor: pointer;
  outline: none;
}

.ghc-click-target.is-derived-selecting .ghc-slot {
  fill: rgba(47, 111, 159, 0.05);
  stroke: rgba(47, 111, 159, 0.26);
  stroke-width: 2;
}

.ghc-click-target:hover .ghc-slot,
.ghc-click-target:focus-visible .ghc-slot,
.ghc-click-target.is-selected .ghc-slot {
  fill: var(--ink);
  stroke: transparent;
  stroke-width: 0;
}

.ghc-click-target:hover .ghc-slot-label,
.ghc-click-target:focus-visible .ghc-slot-label,
.ghc-click-target.is-selected .ghc-slot-label,
.ghc-click-target:hover .ghc-figure-symbol,
.ghc-click-target:focus-visible .ghc-figure-symbol,
.ghc-click-target.is-selected .ghc-figure-symbol,
.ghc-click-target:hover .ghc-figure-name,
.ghc-click-target:focus-visible .ghc-figure-name,
.ghc-click-target.is-selected .ghc-figure-name {
  fill: var(--surface);
}

.ghc-click-target:hover .ghc-dot,
.ghc-click-target:focus-visible .ghc-dot,
.ghc-click-target.is-selected .ghc-dot {
  fill: var(--surface);
}

.ghc-click-target.is-fly-marked .ghc-slot {
  fill: #dceefa;
  stroke: transparent;
  stroke-width: 0;
  filter: none;
}

.ghc-click-target.is-fly-focus .ghc-slot {
  fill: var(--ink);
  stroke: transparent;
  stroke-width: 0;
  filter: none;
}

.ghc-click-target.is-fly-marked .ghc-dot,
.ghc-click-target.is-fly-marked .ghc-court-dot {
  fill: var(--ink);
}

.ghc-click-target.is-fly-focus .ghc-dot,
.ghc-click-target.is-fly-focus .ghc-court-dot {
  fill: var(--surface);
  filter: none;
}

.ghc-click-target:hover .ghc-court-dot,
.ghc-click-target:focus-visible .ghc-court-dot,
.ghc-click-target.is-selected .ghc-court-dot {
  fill: var(--surface);
}

.ghc-framework {
  stroke: #82a6bf;
  stroke-width: 0.55;
  vector-effect: non-scaling-stroke;
}

.ghc-slot-label {
  stroke: none;
  fill: #2f6f9f;
  font-family: Impact, "Arial Black", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.ghc-figure-symbol {
  fill: #201814;
  font-family: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 34px;
  font-weight: 600;
}

.ghc-dot,
.ghc-court-dot {
  fill: #201814;
}

.ghc-court-dot {
  fill: #201814;
}

.ghc-figure-name {
  fill: #71665b;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.ghc-court-label {
  stroke: none;
  fill: #2f6f9f;
  font-family: Impact, "Arial Black", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0;
}

.ghc-court-field {
  fill: var(--surface);
  stroke: transparent;
  stroke-width: 0;
  rx: 0;
  ry: 0;
  vector-effect: non-scaling-stroke;
}

.ghc-click-target:not(.ghc-court-text):hover .ghc-slot,
.ghc-click-target:not(.ghc-court-text):focus-visible .ghc-slot,
.ghc-click-target:not(.ghc-court-text).is-selected .ghc-slot {
  fill: var(--ink);
  stroke: transparent;
  stroke-width: 0;
}

.ghc-click-target:not(.ghc-court-text):hover .ghc-slot-label,
.ghc-click-target:not(.ghc-court-text):focus-visible .ghc-slot-label,
.ghc-click-target:not(.ghc-court-text).is-selected .ghc-slot-label,
.ghc-click-target:not(.ghc-court-text):hover .ghc-figure-symbol,
.ghc-click-target:not(.ghc-court-text):focus-visible .ghc-figure-symbol,
.ghc-click-target:not(.ghc-court-text).is-selected .ghc-figure-symbol,
.ghc-click-target:not(.ghc-court-text):hover .ghc-figure-name,
.ghc-click-target:not(.ghc-court-text):focus-visible .ghc-figure-name,
.ghc-click-target:not(.ghc-court-text).is-selected .ghc-figure-name,
.ghc-click-target:not(.ghc-court-text):hover .ghc-dot,
.ghc-click-target:not(.ghc-court-text):focus-visible .ghc-dot,
.ghc-click-target:not(.ghc-court-text).is-selected .ghc-dot {
  fill: var(--surface);
}

.ghc-court-text:hover .ghc-court-dot,
.ghc-court-text:focus-visible .ghc-court-dot,
.ghc-court-text.is-selected .ghc-court-dot {
  fill: var(--surface);
  filter: none;
}

.ghc-court-text:hover .ghc-court-label,
.ghc-court-text:focus-visible .ghc-court-label,
.ghc-court-text.is-selected .ghc-court-label,
.ghc-court-text:hover .ghc-figure-name,
.ghc-court-text:focus-visible .ghc-figure-name,
.ghc-court-text.is-selected .ghc-figure-name {
  fill: var(--surface);
  font-weight: 900;
}

.ghc-court-text:hover .ghc-court-field,
.ghc-court-text:focus-visible .ghc-court-field,
.ghc-court-text.is-selected .ghc-court-field {
  fill: var(--ink);
  stroke: var(--ink);
  stroke-width: 0;
}

.ghc-click-target:not(.ghc-court-text).is-fly-marked .ghc-slot {
  fill: #dceefa;
  stroke: transparent;
  stroke-width: 0;
}

.ghc-click-target:not(.ghc-court-text).is-fly-marked .ghc-slot-label,
.ghc-click-target:not(.ghc-court-text).is-fly-marked .ghc-figure-name,
.ghc-click-target:not(.ghc-court-text).is-fly-marked .ghc-dot {
  fill: var(--ink);
}

.ghc-click-target:not(.ghc-court-text).is-fly-focus .ghc-slot {
  fill: var(--ink);
  stroke: transparent;
  stroke-width: 0;
}

.ghc-click-target:not(.ghc-court-text).is-fly-focus .ghc-slot-label,
.ghc-click-target:not(.ghc-court-text).is-fly-focus .ghc-figure-name,
.ghc-click-target:not(.ghc-court-text).is-fly-focus .ghc-dot {
  fill: var(--surface);
}

.ghc-court-text.is-fly-marked .ghc-court-field {
  fill: #dceefa;
  stroke: #211a15;
  stroke-width: 1.2;
}

.ghc-court-text.is-fly-marked .ghc-court-dot,
.ghc-court-text.is-fly-marked .ghc-court-label,
.ghc-court-text.is-fly-marked .ghc-figure-name {
  fill: var(--ink);
}

.ghc-court-text.is-fly-focus .ghc-court-field {
  fill: var(--ink);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.ghc-court-text.is-fly-focus .ghc-court-dot,
.ghc-court-text.is-fly-focus .ghc-court-label,
.ghc-court-text.is-fly-focus .ghc-figure-name {
  fill: var(--surface);
}

.seek-line-1 { background: #d8ad38 !important; fill: #d8ad38 !important; stroke: #d8ad38 !important; }
.seek-line-2 { background: #f8f4e8 !important; fill: #f8f4e8 !important; stroke: #f8f4e8 !important; }
.seek-line-3 { background: #5f9863 !important; fill: #5f9863 !important; stroke: #5f9863 !important; }
.seek-line-4 { background: #171717 !important; fill: #171717 !important; stroke: #171717 !important; }

.seek-line-2 {
  filter: drop-shadow(0 0 0.5px rgba(32, 24, 20, 0.45));
}

.palace.is-seek-source,
.palace.is-seek-match,
.palace.is-source-origin,
.palace.is-source-path {
  box-shadow:
    inset 0 0 0 2px rgba(47, 111, 159, 0.26),
    inset 0 -6px 12px rgba(47, 111, 159, 0.05);
}

.ghc-court-text.is-seek-source .ghc-court-field,
.ghc-court-text.is-seek-match .ghc-court-field,
.ghc-court-text.is-source-origin .ghc-court-field,
.ghc-court-text.is-source-path .ghc-court-field {
  fill: var(--surface);
  stroke: transparent;
  stroke-width: 0;
}

.ghc-dot.seek-line-1,
.ghc-dot.seek-line-2,
.ghc-dot.seek-line-3,
.ghc-dot.seek-line-4,
.ghc-court-dot.seek-line-1,
.ghc-court-dot.seek-line-2,
.ghc-court-dot.seek-line-3,
.ghc-court-dot.seek-line-4 {
  stroke-width: 0;
}

.ghc-click-target.is-seek-source .ghc-slot-label,
.ghc-click-target.is-seek-match .ghc-slot-label,
.ghc-click-target.is-source-origin .ghc-slot-label,
.ghc-click-target.is-source-path .ghc-slot-label,
.ghc-click-target.is-seek-source .ghc-figure-name,
.ghc-click-target.is-seek-match .ghc-figure-name,
.ghc-click-target.is-source-origin .ghc-figure-name,
.ghc-click-target.is-source-path .ghc-figure-name,
.ghc-court-text.is-seek-source .ghc-court-label,
.ghc-court-text.is-seek-match .ghc-court-label,
.ghc-court-text.is-source-origin .ghc-court-label,
.ghc-court-text.is-source-path .ghc-court-label,
.ghc-court-text.is-seek-source .ghc-figure-name,
.ghc-court-text.is-seek-match .ghc-figure-name,
.ghc-court-text.is-source-origin .ghc-figure-name,
.ghc-court-text.is-source-path .ghc-figure-name {
  fill: var(--ink);
}

.ghc-click-target.is-precision-subject .ghc-slot {
  fill: #dceefa;
  stroke: var(--accent);
  stroke-width: 3;
}

.ghc-click-target.is-precision-object .ghc-slot {
  fill: #f8f4e8;
  stroke: #e96f6f;
  stroke-width: 3;
}

.ghc-click-target.is-precision-related .ghc-slot {
  stroke: rgba(47, 111, 159, 0.72);
  stroke-width: 2;
}

.ghc-click-target.is-precision-hit .ghc-slot {
  fill: #dceefa;
  stroke: var(--accent);
  stroke-width: 4;
}

.precision-aspect-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.82;
}

.precision-aspect-line.is-union {
  stroke: #5f9863;
}

.precision-aspect-line.is-mutation {
  stroke: #e96f6f;
  stroke-dasharray: 14 10;
}

.precision-aspect-line.is-transfer {
  stroke: #d8ad38;
  stroke-dasharray: 6 8;
}

.precision-aspect-badge {
  pointer-events: none;
}

.precision-aspect-label-bg {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 5;
}

.precision-aspect-label-bg.is-union {
  fill: #4f8a57;
}

.precision-aspect-label-bg.is-mutation {
  fill: #d95b5b;
}

.precision-aspect-label-bg.is-transfer {
  fill: #bd8b10;
}

.precision-aspect-label {
  fill: #ffffff;
  stroke: none;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: 0;
  pointer-events: none;
}

.motion-layer {
  pointer-events: none;
}

.motion-line {
  fill: none;
  stroke: #e96f6f;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 10 8;
  opacity: 0.58;
  vector-effect: non-scaling-stroke;
}

.motion-source {
  pointer-events: none;
}

.motion-line.is-incoming {
  stroke: #2f6f9f;
  stroke-dasharray: 9 8;
}

.motion-source .first-heaven-dot {
  fill: #e96f6f;
  stroke: #fff8df;
  stroke-width: 3;
}

.ghc-click-target.is-motion-source .ghc-slot,
.ghc-court-text.is-motion-source .ghc-court-field {
  fill: rgba(233, 111, 111, 0.12);
  stroke: rgba(233, 111, 111, 0.8);
  stroke-width: 4;
}

.ghc-click-target.is-motion-target .ghc-slot,
.ghc-court-text.is-motion-target .ghc-court-field {
  fill: rgba(233, 111, 111, 0.18);
  stroke: #e96f6f;
  stroke-width: 5;
}

.ghc-click-target.is-motion-target .ghc-dot,
.ghc-court-text.is-motion-target .ghc-court-dot {
  fill: #e96f6f;
  stroke: #fff8df;
  stroke-width: 2;
}

.ghc-click-target.is-motion-selected .ghc-slot,
.ghc-court-text.is-motion-selected .ghc-court-field {
  fill: rgba(47, 111, 159, 0.18);
  stroke: #2f6f9f;
  stroke-width: 5;
}

.ghc-click-target.is-motion-selected .ghc-dot,
.ghc-court-text.is-motion-selected .ghc-court-dot,
.ghc-click-target.is-motion-selected .ghc-slot-label,
.ghc-court-text.is-motion-selected .ghc-court-label,
.ghc-court-text.is-motion-selected .ghc-figure-name {
  fill: #2f6f9f;
  color: #2f6f9f;
}

.first-heaven-layer {
  pointer-events: none;
}

.first-heaven-badge {
  pointer-events: none;
}

.first-heaven-badge-bg {
  fill: rgba(255, 250, 236, 0.98);
  stroke: rgba(47, 111, 159, 0.35);
  stroke-width: 4;
}

.first-heaven-badge-title {
  fill: var(--ink);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0;
}

.first-heaven-dot {
  fill: var(--ink);
  stroke: var(--surface);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.first-heaven-frame {
  fill: none;
  stroke: rgba(47, 111, 159, 0.24);
  stroke-width: 4;
  stroke-dasharray: 12 10;
}

.precision-aspect-house-note {
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 7;
  fill: var(--accent);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
  pointer-events: none;
}

.ghc-click-target,
.palace,
.saved-item-head,
.saved-preview-button,
.back-button,
.text-button,
.icon-button,
.cast-button,
.view-tab {
  -webkit-tap-highlight-color: transparent;
}

.ghc-click-target:focus,
.palace:focus,
.saved-item-head:focus,
.saved-preview-button:focus,
.back-button:focus,
.text-button:focus,
.icon-button:focus,
.cast-button:focus,
.view-tab:focus {
  outline: none;
}

.palace {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-right: 1.5px solid #d8e1ea;
  border-bottom: 1.5px solid #d8e1ea;
  border-radius: 0;
  padding: 8px 3px 7px;
  background: var(--surface);
  cursor: pointer;
  outline: none;
  transition:
    background-color 160ms ease,
    box-shadow 220ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.palace:hover,
.palace:focus-visible,
.palace.is-selected {
  background: var(--ink);
  color: var(--surface);
  box-shadow:
    inset 0 0 0 2px var(--ink),
    inset 0 -8px 14px rgba(0, 0, 0, 0.08);
}

.palace:hover .palace-number,
.palace:focus-visible .palace-number,
.palace.is-selected .palace-number,
.palace:hover .palace-name,
.palace:focus-visible .palace-name,
.palace.is-selected .palace-name {
  color: var(--surface);
}

.palace:hover .dot,
.palace:focus-visible .dot,
.palace.is-selected .dot {
  background: var(--surface);
}

.palace.is-fly-marked {
  background: #dceefa;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.palace.is-fly-focus {
  background: var(--ink);
  color: var(--surface);
  border-radius: 0;
  box-shadow:
    inset 0 0 0 2px var(--ink),
    inset 0 -8px 14px rgba(0, 0, 0, 0.08);
  transform: none;
}

.palace.is-fly-marked .dot {
  background: var(--ink);
}

.palace.is-fly-focus .dot {
  background: var(--surface);
}

.palace.is-fly-focus .palace-number,
.palace.is-fly-focus .palace-name {
  color: var(--surface);
}

.palace.major {
  min-height: 0;
  border-color: #b9d0e1;
  background: var(--surface);
}

.palace.judge {
  min-height: 0;
  border-color: #9fc0d9;
  background: var(--surface);
}

.palace.p-1 { grid-column: 8 / 9; grid-row: 1; }
.palace.p-2 { grid-column: 7 / 8; grid-row: 1; }
.palace.p-3 { grid-column: 6 / 7; grid-row: 1; }
.palace.p-4 { grid-column: 5 / 6; grid-row: 1; }
.palace.p-5 { grid-column: 4 / 5; grid-row: 1; }
.palace.p-6 { grid-column: 3 / 4; grid-row: 1; }
.palace.p-7 { grid-column: 2 / 3; grid-row: 1; }
.palace.p-8 { grid-column: 1 / 2; grid-row: 1; }
.palace.p-9 { grid-column: 7 / 9; grid-row: 2; }
.palace.p-10 { grid-column: 5 / 7; grid-row: 2; }
.palace.p-11 { grid-column: 3 / 5; grid-row: 2; }
.palace.p-12 { grid-column: 1 / 3; grid-row: 2; }
.palace.p-13 { grid-column: 5 / 9; grid-row: 3; }
.palace.p-14 { grid-column: 1 / 5; grid-row: 3; }
.palace.p-15 { grid-column: 1 / 9; grid-row: 4; }
.palace.p-16 { grid-column: 1 / 9; grid-row: 5; }

.palace.p-15,
.palace.p-16 {
  border-left: 0;
}

.palace-number {
  color: var(--faint);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.palace-name {
  margin-top: 1px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  word-break: keep-all;
}

.major .palace-name {
  font-size: 12px;
}

.glyph {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  min-height: 40px;
  margin-top: 2px;
}

.row {
  display: flex;
  justify-content: center;
  gap: 5px;
  width: 34px;
  min-height: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: none;
}

.major .dot,
.judge .dot {
  background: var(--bronze);
  box-shadow: none;
}

.palace.major:hover .dot,
.palace.major:focus-visible .dot,
.palace.major.is-selected .dot,
.palace.judge:hover .dot,
.palace.judge:focus-visible .dot,
.palace.judge.is-selected .dot {
  background: var(--surface);
}

.palace.major:hover,
.palace.major:focus-visible,
.palace.major.is-selected,
.palace.judge:hover,
.palace.judge:focus-visible,
.palace.judge.is-selected {
  background: var(--ink);
  color: var(--surface);
  box-shadow:
    inset 0 0 0 2px var(--ink),
    inset 0 -8px 14px rgba(0, 0, 0, 0.08);
}

.palace.major:hover .palace-number,
.palace.major:focus-visible .palace-number,
.palace.major.is-selected .palace-number,
.palace.major:hover .palace-name,
.palace.major:focus-visible .palace-name,
.palace.major.is-selected .palace-name,
.palace.judge:hover .palace-number,
.palace.judge:focus-visible .palace-number,
.palace.judge.is-selected .palace-number,
.palace.judge:hover .palace-name,
.palace.judge:focus-visible .palace-name,
.palace.judge.is-selected .palace-name {
  color: var(--surface);
}

.palace.is-fly-marked,
.palace.major.is-fly-marked,
.palace.judge.is-fly-marked {
  background: #dceefa;
  color: var(--ink);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.palace.is-fly-marked .palace-number,
.palace.is-fly-marked .palace-name,
.palace.major.is-fly-marked .palace-number,
.palace.major.is-fly-marked .palace-name,
.palace.judge.is-fly-marked .palace-number,
.palace.judge.is-fly-marked .palace-name {
  color: var(--ink);
}

.palace.is-fly-marked .dot,
.palace.major.is-fly-marked .dot,
.palace.judge.is-fly-marked .dot {
  background: var(--ink);
}

.palace.is-fly-focus,
.palace.major.is-fly-focus,
.palace.judge.is-fly-focus {
  background: var(--ink);
  color: var(--surface);
  box-shadow:
    inset 0 0 0 2px var(--ink),
    inset 0 -8px 14px rgba(0, 0, 0, 0.08);
}

.palace.is-fly-focus .palace-number,
.palace.is-fly-focus .palace-name,
.palace.major.is-fly-focus .palace-number,
.palace.major.is-fly-focus .palace-name,
.palace.judge.is-fly-focus .palace-number,
.palace.judge.is-fly-focus .palace-name {
  color: var(--surface);
}

.palace.is-fly-focus .dot,
.palace.major.is-fly-focus .dot,
.palace.judge.is-fly-focus .dot {
  background: var(--surface);
}

.reference-panel,
.saved-panel {
  margin-top: 16px;
  padding: 18px;
}

.saved-panel {
  border: 2px solid var(--skin-card-border);
  border-radius: 8px;
  background: var(--skin-card-bg);
  box-shadow: var(--skin-card-shadow);
}

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

.saved-list {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.saved-item {
  display: grid;
  width: 100%;
  border: 2px solid rgba(47, 111, 159, 0.26);
  border-radius: 8px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  overflow: hidden;
}

.saved-item.is-active,
.saved-item.is-expanded {
  border-color: var(--line);
  background: var(--surface);
}

.saved-item-head {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 0;
  padding: 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.saved-item-head:focus-visible {
  outline: 3px solid rgba(47, 111, 159, 0.24);
  outline-offset: -3px;
}

.saved-item-head strong {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.saved-item-head span,
.saved-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.saved-item-body {
  display: grid;
  gap: 10px;
  border-top: 2px solid rgba(47, 111, 159, 0.18);
  padding: 12px;
  background: var(--surface);
}

.saved-item-body[hidden] {
  display: none;
}

.saved-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.saved-preview-slot {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 90px;
  border: 1px solid rgba(47, 111, 159, 0.3);
  border-radius: 7px;
  padding: 7px 4px;
  background: var(--surface);
}

.saved-preview-index {
  color: var(--faint);
  font-size: 10px;
  font-weight: 900;
}

.saved-preview-slot .glyph {
  min-height: 36px;
  margin: 0;
}

.saved-preview-slot strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.saved-note {
  border: 1px solid rgba(47, 111, 159, 0.22);
  border-radius: 7px;
  padding: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
  white-space: pre-wrap;
}

.saved-note.is-empty {
  color: var(--muted);
}

.saved-note-label {
  margin-top: 2px;
}

.saved-note-input {
  min-height: 90px;
}

.saved-editor-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8px;
}

.saved-preview-button {
  min-height: 42px;
  border: 2px solid var(--line);
  border-radius: 7px;
  background: var(--accent);
  color: #fff8df;
  font-weight: 900;
  cursor: pointer;
}

.figure-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.mini-figure {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
}

.mini-figure strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

.mini-figure span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.mini-figure .glyph {
  gap: 3px;
  min-height: 34px;
  margin: 0;
}

.mini-figure .row {
  min-height: 5px;
}

.mini-figure .dot {
  width: 5px;
  height: 5px;
}

@media (min-width: 720px) {
  .mobile-app {
    border-left: 2px solid rgba(47, 111, 159, 0.25);
    border-right: 2px solid rgba(47, 111, 159, 0.25);
  }
}

@media (max-width: 390px) {
  .mobile-app {
    padding-left: 10px;
    padding-right: 10px;
  }

  .palace {
    min-height: 0;
    padding: 6px 2px;
  }

  .palace.major {
    min-height: 0;
  }

  .palace.judge {
    min-height: 0;
  }

  .palace-number,
  .palace-name {
    font-size: 9px;
  }

  .palace-role {
    display: none;
  }

  .row {
    gap: 4px;
    width: 28px;
  }

.dot {
  width: 7px;
  height: 7px;
}

.glyph {
  min-height: 34px;
}

}

body[data-skin="atelier"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 239, 230, 0.92)),
    #f4efe6;
}

body[data-skin="atelier"] .mobile-app {
  position: relative;
  width: min(100%, 620px);
  border: 0;
  background: transparent;
  isolation: isolate;
}

body[data-skin="atelier"] .mobile-app::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 13%, rgba(23, 20, 17, 0.04) 0 1px, transparent 1px 22px),
    radial-gradient(circle at 86% 18%, rgba(23, 20, 17, 0.03) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 72% 74%, rgba(23, 20, 17, 0.035) 0 1px, transparent 1px 24px),
    repeating-radial-gradient(circle at 24% 18%, rgba(23, 20, 17, 0.032) 0 1px, transparent 1px 15px, transparent 15px 26px),
    repeating-radial-gradient(circle at 78% 66%, rgba(23, 20, 17, 0.024) 0 1px, transparent 1px 16px, transparent 16px 28px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
}

body[data-skin="atelier"] .app-page {
  position: relative;
  z-index: 1;
}

body[data-skin="atelier"] .cast-page.is-active {
  gap: 16px;
  padding-top: 2px;
}

body[data-skin="atelier"] .cast-page .app-header {
  gap: 14px;
  padding: 2px 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(24, 22, 19, 0.14);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-skin="atelier"] .cast-nav-brand {
  align-items: start;
}

body[data-skin="atelier"] .cast-nav-editor {
  padding: 4px 0;
  color: #171411;
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

body[data-skin="atelier"] .cast-nav-editor::placeholder {
  color: rgba(110, 102, 93, 0.86);
}

body[data-skin="atelier"] .cast-nav-editor:focus {
  box-shadow: inset 0 -1px 0 rgba(23, 20, 17, 0.42);
}

body[data-skin="atelier"] .cast-page .header-actions {
  gap: 10px;
}

body[data-skin="atelier"] .cast-page .text-button,
body[data-skin="atelier"] .cast-page .icon-button {
  min-width: 52px;
  height: 38px;
  border: 1px solid rgba(24, 22, 19, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.76);
  color: #171411;
  font-size: 12px;
  box-shadow: 0 10px 24px rgba(31, 28, 25, 0.08);
  backdrop-filter: blur(10px);
}

body[data-skin="atelier"] .cast-page .cast-hero {
  justify-content: center;
  margin: 0;
  padding: 2px 0 0;
}

body[data-skin="atelier"] .cast-wordmark {
  display: grid;
  justify-items: center;
  width: 100%;
  min-height: 108px;
  color: transparent;
  font-size: 0;
  text-shadow: none;
  opacity: 1;
}

body[data-skin="atelier"] .cast-wordmark::before {
  content: "鍦板崰";
  display: block;
  color: #171411;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(50px, 16vw, 82px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0;
}

body[data-skin="atelier"] .cast-wordmark::after {
  content: "GEOMANCY";
  position: static;
  width: min(100%, 280px);
  height: auto;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(24, 22, 19, 0.18);
  background: transparent;
  color: rgba(73, 66, 59, 0.82);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.38em;
  line-height: 1;
  text-align: center;
  transform: none;
}

body[data-skin="atelier"] .cast-page .question-panel {
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-skin="atelier"] .cast-workbench {
  gap: 14px;
}

body[data-skin="atelier"] .cast-station {
  gap: 12px;
  border: 1px solid rgba(24, 22, 19, 0.12);
  border-radius: 26px;
  padding: 16px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 18px 36px rgba(31, 28, 25, 0.08);
  backdrop-filter: blur(14px);
}

body[data-skin="atelier"] .station-heading h2,
body[data-skin="atelier"] .specified-caster-header h3 {
  color: #171411;
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  font-size: clamp(20px, 6vw, 26px);
  font-weight: 900;
  line-height: 1.05;
}

body[data-skin="atelier"] .cast-intake-station {
  gap: 10px;
  padding: 16px;
}

body[data-skin="atelier"] .cast-page textarea {
  min-height: clamp(76px, 15vw, 96px);
  border: 1px solid rgba(24, 22, 19, 0.16);
  border-radius: 18px;
  padding: 14px 15px;
  background: rgba(252, 250, 246, 0.96);
  color: #171411;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body[data-skin="atelier"] .cast-page textarea::placeholder {
  color: rgba(110, 102, 93, 0.9);
}

body[data-skin="atelier"] .cast-page textarea:focus {
  border-color: rgba(24, 22, 19, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(24, 22, 19, 0.08),
    0 0 0 3px rgba(244, 239, 230, 0.84);
}

body[data-skin="atelier"] .cast-methods-station {
  gap: 14px;
}

body[data-skin="atelier"] .cast-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body[data-skin="atelier"] .cast-button,
body[data-skin="atelier"] .cast-button-primary {
  min-height: 88px;
  grid-row: auto;
  border: 1px solid rgba(24, 22, 19, 0.14);
  border-radius: 22px;
  padding: 14px 14px 12px;
  box-shadow:
    0 16px 28px rgba(31, 28, 25, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body[data-skin="atelier"] .cast-button::after {
  right: 14px;
  bottom: 14px;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.34;
}

body[data-skin="atelier"] .cast-method-button {
  height: 100%;
  align-content: space-between;
}

body[data-skin="atelier"] .cast-method-label {
  font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  font-size: clamp(18px, 5.2vw, 24px);
  font-weight: 900;
  line-height: 1.06;
}

body[data-skin="atelier"] .cast-button-primary .cast-method-label {
  font-size: clamp(20px, 5.8vw, 26px);
}

body[data-skin="atelier"] .cast-page #castButton,
body[data-skin="atelier"] .cast-button-primary {
  background: linear-gradient(180deg, #211d19, #2e2822);
  color: #f8f2e8;
  border-color: rgba(24, 22, 19, 0.28);
  box-shadow:
    0 18px 30px rgba(31, 28, 25, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-skin="atelier"] .cast-page #sandStartButton,
body[data-skin="atelier"] .cast-page #specifiedToggleButton,
body[data-skin="atelier"] .cast-button-secondary,
body[data-skin="atelier"] .cast-button-tertiary {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(247, 242, 233, 0.9));
  color: #171411;
}

body[data-skin="atelier"] .cast-button-secondary::before,
body[data-skin="atelier"] .cast-button-tertiary::before {
  inset: auto 14px 13px auto;
  width: 28px;
  height: 2px;
  background: rgba(23, 20, 17, 0.22);
}

body[data-skin="atelier"] .cast-page #specifiedToggleButton:disabled,
body[data-skin="atelier"] .cast-button-tertiary:disabled {
  border-color: rgba(24, 22, 19, 0.12);
  color: rgba(110, 102, 93, 0.62);
  background: rgba(239, 233, 224, 0.9);
  box-shadow: none;
}

body[data-skin="atelier"] .cast-page #specifiedToggleButton.is-ready,
body[data-skin="atelier"] .cast-button-tertiary.is-ready {
  background: linear-gradient(180deg, #8f7962, #786451);
  color: #fff9f0;
}

body[data-skin="atelier"] .specified-caster {
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(24, 22, 19, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(248, 243, 236, 0.92));
  box-shadow:
    0 16px 32px rgba(31, 28, 25, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body[data-skin="atelier"] .specified-caster-header {
  gap: 8px;
}

body[data-skin="atelier"] .specified-mothers,
body[data-skin="atelier"] .specified-figure-grid {
  gap: 10px;
}

body[data-skin="atelier"] .specified-mother-slot,
body[data-skin="atelier"] .specified-figure {
  min-height: 84px;
  border: 1px solid rgba(24, 22, 19, 0.12);
  border-radius: 18px;
  padding: 8px 6px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow:
    0 10px 22px rgba(31, 28, 25, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body[data-skin="atelier"] .specified-mother-slot {
  border-style: solid;
  background: linear-gradient(180deg, rgba(247, 242, 233, 0.94), rgba(255, 253, 248, 0.98));
}

body[data-skin="atelier"] .specified-mother-slot.is-active {
  border-color: rgba(143, 121, 98, 0.72);
  box-shadow:
    0 0 0 2px rgba(143, 121, 98, 0.16),
    0 12px 24px rgba(31, 28, 25, 0.06);
}

body[data-skin="atelier"] .specified-mother-slot.is-filled {
  background: linear-gradient(180deg, #221d18, #342c24);
  border-color: rgba(24, 22, 19, 0.22);
  color: #fff9f0;
}

body[data-skin="atelier"] .specified-mother-slot span,
body[data-skin="atelier"] .specified-figure span {
  color: var(--muted);
}

body[data-skin="atelier"] .specified-mother-slot.is-filled span,
body[data-skin="atelier"] .specified-mother-slot.is-filled strong {
  color: #fff9f0;
}

body[data-skin="atelier"] .specified-mother-slot strong,
body[data-skin="atelier"] .specified-figure strong {
  font-size: 13px;
}

body[data-skin="atelier"] .specified-figure {
  background: rgba(250, 247, 241, 0.92);
}

body[data-skin="atelier"] .skin-preset-list {
  gap: 10px;
}

body[data-skin="atelier"] .skin-preset {
  border-color: rgba(24, 22, 19, 0.12);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 14px 28px rgba(31, 28, 25, 0.06);
}

body[data-skin="atelier"] .skin-preset span {
  color: rgba(110, 102, 93, 0.92);
}

body[data-skin="atelier"] .skin-preset.is-active {
  border-color: rgba(24, 22, 19, 0.9);
  background: linear-gradient(180deg, #1f1c19, #2a2520);
  box-shadow: 0 16px 30px rgba(31, 28, 25, 0.16);
}

body[data-skin="atelier"] .skin-preset.is-active strong,
body[data-skin="atelier"] .skin-preset.is-active span {
  color: #fff9f0;
}

body[data-skin="atelier"] .skin-preview-card,
body[data-skin="atelier"] .settings-info-row,
body[data-skin="atelier"] .settings-coming-button {
  border-color: rgba(24, 22, 19, 0.1);
  background: rgba(255, 253, 248, 0.84);
  box-shadow: 0 14px 28px rgba(31, 28, 25, 0.06);
}

body[data-skin="atelier"] .settings-coming-button {
  color: #5f564d;
}

body[data-skin="atelier"] .settings-panel-subhead {
  border-top-color: rgba(24, 22, 19, 0.12);
}

@media (max-width: 420px) {
  body[data-skin="atelier"] .cast-page.is-active {
    gap: 14px;
  }

  body[data-skin="atelier"] .cast-page .app-header {
    padding-bottom: 8px;
  }

  body[data-skin="atelier"] .cast-nav-editor {
    font-size: 14px;
  }

  body[data-skin="atelier"] .cast-wordmark {
    min-height: 92px;
  }

  body[data-skin="atelier"] .cast-wordmark::before {
    font-size: clamp(42px, 14vw, 62px);
  }

  body[data-skin="atelier"] .cast-wordmark::after {
    width: min(100%, 220px);
    margin-top: 10px;
    padding-top: 8px;
    font-size: 10px;
    letter-spacing: 0.3em;
  }

  body[data-skin="atelier"] .cast-station,
  body[data-skin="atelier"] .cast-intake-station,
  body[data-skin="atelier"] .specified-caster {
    padding: 12px;
    border-radius: 22px;
  }

  body[data-skin="atelier"] .cast-actions {
    gap: 8px;
  }

  body[data-skin="atelier"] .cast-button,
  body[data-skin="atelier"] .cast-button-primary {
    min-height: 76px;
    border-radius: 18px;
    padding: 11px 11px 10px;
  }

  body[data-skin="atelier"] .cast-method-label,
  body[data-skin="atelier"] .cast-button-primary .cast-method-label {
    font-size: clamp(16px, 4.9vw, 20px);
  }

  body[data-skin="atelier"] .specified-mother-slot,
  body[data-skin="atelier"] .specified-figure {
    min-height: 76px;
    border-radius: 16px;
  }
}

body[data-skin="crosscorners"] .shield-card,
body[data-skin="crosscorners"] .house-svg-wrap {
  position: relative;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

body[data-skin="crosscorners"] {
  background: var(--skin-page-bg);
}

body[data-skin="crosscorners"] .mobile-app {
  background: transparent;
  border-left-color: rgba(33, 26, 21, 0.1);
  border-right-color: rgba(33, 26, 21, 0.1);
}

body[data-skin="crosscorners"] .cast-page.is-active {
  gap: 10px;
  padding: clamp(10px, 3vw, 14px);
  border: 1.5px solid rgba(76, 125, 171, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.74)),
    var(--skin-cast-frame-bg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.62),
    0 12px 26px rgba(47, 111, 159, 0.08);
}

body[data-skin="crosscorners"] .cast-page .app-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-skin="crosscorners"] .cast-console-header {
  background: transparent;
  box-shadow: none;
}

body[data-skin="crosscorners"] .cast-page .header-title {
  min-width: 0;
}

body[data-skin="crosscorners"] .cast-nav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

body[data-skin="crosscorners"] .cast-nav-editor {
  width: auto;
  max-width: 100%;
  padding: 0;
  background: transparent;
  color: #4c7dab;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(15px, 3.8vw, 22px);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  box-shadow: none;
}

body[data-skin="crosscorners"] .cast-nav-editor:focus {
  box-shadow: none;
}

body[data-skin="crosscorners"] .cast-page .header-actions {
  display: grid;
  grid-auto-flow: column;
  gap: 8px;
  align-items: start;
}

body[data-skin="crosscorners"] .cast-page .text-button,
body[data-skin="crosscorners"] .cast-page .icon-button {
  min-width: 56px;
  width: 56px;
  height: 70px;
  border: 1.5px solid rgba(76, 125, 171, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: #2f6f9f;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: 18px;
  font-weight: 700;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.74),
    0 10px 20px rgba(47, 111, 159, 0.06);
}

body[data-skin="crosscorners"] .cast-page #recordsButton,
body[data-skin="crosscorners"] .cast-page #settingsButton {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 7px;
  padding-top: 12px;
  font-size: 0;
}

body[data-skin="crosscorners"] .cast-page #recordsButton::before,
body[data-skin="crosscorners"] .cast-page #settingsButton::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  color: currentColor;
}

body[data-skin="crosscorners"] .cast-page #recordsButton::after,
body[data-skin="crosscorners"] .cast-page #settingsButton::after {
  color: #2f6f9f;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

body[data-skin="crosscorners"] .cast-page #recordsButton::before {
  border: 1.8px solid currentColor;
  border-radius: 5px;
  background:
    linear-gradient(currentColor, currentColor) 4px 5px / 12px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) 4px 9px / 12px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) 4px 13px / 9px 1.6px no-repeat;
}

body[data-skin="crosscorners"] .cast-page #recordsButton::after {
  content: "记录";
}

body[data-skin="crosscorners"] .cast-page #settingsButton::before {
  border-radius: 6px;
  background:
    radial-gradient(circle at 6px 5px, currentColor 0 2.2px, transparent 2.4px),
    radial-gradient(circle at 14px 10px, currentColor 0 2.2px, transparent 2.4px),
    radial-gradient(circle at 9px 15px, currentColor 0 2.2px, transparent 2.4px),
    linear-gradient(currentColor, currentColor) center 5px / 16px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center 10px / 16px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center 15px / 16px 1.6px no-repeat;
}

body[data-skin="crosscorners"] .cast-page #settingsButton::after {
  content: "设置";
}

body[data-skin="crosscorners"] .cast-page .cast-hero {
  justify-content: stretch;
  margin: 0;
  padding: 0 2px;
}

body[data-skin="crosscorners"] .cast-hero-shell {
  display: grid;
  gap: 6px;
  width: 100%;
}

body[data-skin="crosscorners"] .cast-hero-heading {
  display: grid;
  gap: 6px;
  justify-items: start;
}

body[data-skin="crosscorners"] .cast-hero-title-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 6px 10px;
  width: 100%;
}

body[data-skin="crosscorners"] .cast-hero-title {
  margin: 0;
  color: #2f6f9f;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(38px, 12.5vw, 68px);
  font-weight: 700;
  line-height: 0.9;
  text-align: left;
  letter-spacing: 0;
}

body[data-skin="crosscorners"] .cast-hero-date {
  padding-bottom: 2px;
  color: #2f6f9f;
  font-family: "Cormorant Garamond", "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(18px, 5vw, 28px);
  font-weight: 500;
  line-height: 1;
}

body[data-skin="crosscorners"] .cast-wordmark {
  width: 100%;
  max-width: none;
  margin: 0;
  color: rgba(52, 71, 98, 0.08);
  font-family: "Cormorant Garamond", "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(44px, 14vw, 86px);
  font-weight: 500;
  line-height: 0.9;
  text-align: left;
  text-shadow: none;
  opacity: 1;
}

body[data-skin="crosscorners"] .cast-wordmark::after {
  content: none;
}

body[data-skin="crosscorners"] .cast-hero-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: min(100%, 220px);
}

body[data-skin="crosscorners"] .cast-hero-divider-line {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(76, 125, 171, 0.46), rgba(76, 125, 171, 0.12));
}

body[data-skin="crosscorners"] .cast-hero-divider-star {
  color: #4c7dab;
  font-size: 14px;
  line-height: 1;
}

body[data-skin="crosscorners"] .cast-hero-subtitle {
  color: #4c7dab;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(13px, 3.6vw, 18px);
  font-weight: 600;
  line-height: 1.2;
}

body[data-skin="crosscorners"] .cast-page .question-panel {
  gap: 10px;
  padding: 0;
  background: transparent;
}

body[data-skin="crosscorners"] .cast-station,
body[data-skin="crosscorners"] .specified-caster {
  border: 1.5px solid rgba(76, 125, 171, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 8px 20px rgba(47, 111, 159, 0.05);
}

body[data-skin="crosscorners"] .cast-intake-station,
body[data-skin="crosscorners"] .cast-methods-station {
  gap: 10px;
  padding: 14px 14px 12px;
}

body[data-skin="crosscorners"] .station-heading,
body[data-skin="crosscorners"] .specified-caster-header,
body[data-skin="crosscorners"] .specified-library-heading {
  display: grid;
  gap: 4px;
}

body[data-skin="crosscorners"] .station-kicker {
  color: rgba(76, 125, 171, 0.58);
  font-family: "Cormorant Garamond", "Times New Roman", "Noto Serif SC", serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-skin="crosscorners"] .station-heading h2,
body[data-skin="crosscorners"] .specified-caster-header h3,
body[data-skin="crosscorners"] .specified-library-heading h4 {
  margin: 0;
  color: #2f6f9f;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
}

body[data-skin="crosscorners"] .station-heading h2,
body[data-skin="crosscorners"] .specified-caster-header h3 {
  font-size: clamp(18px, 5vw, 24px);
}

body[data-skin="crosscorners"] .specified-library-heading h4 {
  font-size: clamp(17px, 4.8vw, 22px);
}

body[data-skin="crosscorners"] .cast-page textarea {
  min-height: clamp(76px, 18vw, 100px);
  border: 1.5px solid rgba(76, 125, 171, 0.24);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.54);
  color: #6d7d90;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(14px, 3.8vw, 18px);
  font-weight: 500;
  line-height: 1.45;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

body[data-skin="crosscorners"] .cast-page textarea::placeholder {
  color: rgba(109, 125, 144, 0.74);
  font-weight: 500;
}

body[data-skin="crosscorners"] .cast-page textarea:focus {
  border-color: rgba(76, 125, 171, 0.32);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.84),
    0 0 0 3px rgba(76, 125, 171, 0.08);
}

body[data-skin="crosscorners"] .cast-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body[data-skin="crosscorners"] .cast-button,
body[data-skin="crosscorners"] .cast-button-primary,
body[data-skin="crosscorners"] .cast-button-secondary,
body[data-skin="crosscorners"] .cast-button-tertiary {
  min-height: 96px;
  border: 1.5px solid rgba(76, 125, 171, 0.24);
  border-radius: 16px;
  padding: 10px 8px 10px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    0 10px 22px rgba(47, 111, 159, 0.06);
}

body[data-skin="crosscorners"] .cast-button::after {
  right: 10px;
  bottom: 10px;
  width: 10px;
  height: 10px;
  background: currentColor;
  opacity: 0.86;
}

body[data-skin="crosscorners"] .cast-page #castButton,
body[data-skin="crosscorners"] .cast-button-primary {
  background: linear-gradient(180deg, #4d80bb, #275f9f);
  color: #fffdf8;
}

body[data-skin="crosscorners"] .cast-page #sandStartButton,
body[data-skin="crosscorners"] .cast-page #specifiedToggleButton,
body[data-skin="crosscorners"] .cast-button-secondary,
body[data-skin="crosscorners"] .cast-button-tertiary {
  background: rgba(255, 255, 255, 0.5);
  color: #2f6f9f;
}

body[data-skin="crosscorners"] .settings-page.is-active {
  gap: 12px;
  padding: clamp(10px, 3vw, 14px);
  border: 1.5px solid rgba(76, 125, 171, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 12px 26px rgba(47, 111, 159, 0.06);
}

body[data-skin="crosscorners"] .settings-page .app-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-skin="crosscorners"] .settings-page .header-title {
  min-width: 0;
}

body[data-skin="crosscorners"] .settings-page .header-title .eyebrow {
  color: rgba(76, 125, 171, 0.58);
  font-family: "Cormorant Garamond", "Times New Roman", "Noto Serif SC", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-skin="crosscorners"] .settings-page .header-title h1 {
  color: #2f6f9f;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(28px, 8.8vw, 38px);
  font-weight: 700;
  line-height: 0.96;
}

body[data-skin="crosscorners"] .settings-page .back-button {
  min-width: 56px;
  width: 56px;
  height: 70px;
  border: 1.5px solid rgba(76, 125, 171, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: #2f6f9f;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: 18px;
  font-weight: 700;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.74),
    0 10px 20px rgba(47, 111, 159, 0.06);
}

body[data-skin="crosscorners"] .settings-stack {
  gap: 10px;
}

body[data-skin="crosscorners"] .settings-panel.saved-panel {
  margin-top: 0;
  padding: 14px;
  border: 1.5px solid rgba(76, 125, 171, 0.22);
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.76),
    0 8px 20px rgba(47, 111, 159, 0.04);
}

body[data-skin="crosscorners"] .settings-panel-head {
  margin-bottom: 12px;
}

body[data-skin="crosscorners"] .settings-panel-head .eyebrow {
  color: rgba(76, 125, 171, 0.54);
  font-family: "Cormorant Garamond", "Times New Roman", "Noto Serif SC", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-skin="crosscorners"] .settings-panel-head h2 {
  color: #2f6f9f;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(24px, 6.8vw, 30px);
  font-weight: 700;
  line-height: 0.98;
}

body[data-skin="crosscorners"] .settings-panel-note {
  color: rgba(88, 115, 144, 0.7);
  font-size: 11px;
  font-weight: 700;
}

body[data-skin="crosscorners"] .settings-panel-subhead {
  border-top-color: rgba(76, 125, 171, 0.12);
}

body[data-skin="crosscorners"] .settings-page .first-heaven-name-field {
  color: rgba(88, 115, 144, 0.76);
}

body[data-skin="crosscorners"] .settings-page .first-heaven-name-field span {
  color: #2f6f9f;
  font-weight: 700;
}

body[data-skin="crosscorners"] .settings-page .first-heaven-name-field input {
  border: 1.5px solid rgba(76, 125, 171, 0.24);
  border-radius: 10px;
  background: #ffffff;
  color: #506174;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82);
}

body[data-skin="crosscorners"] .settings-page .first-heaven-presets {
  gap: 6px;
}

body[data-skin="crosscorners"] .settings-page .first-heaven-preset {
  min-height: 36px;
  border: 1.5px solid rgba(76, 125, 171, 0.18);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.86);
}

body[data-skin="crosscorners"] .settings-page .first-heaven-preset span {
  color: #4c7dab;
}

body[data-skin="crosscorners"] .settings-page .first-heaven-preset strong {
  color: rgba(73, 92, 116, 0.86);
}

body[data-skin="crosscorners"] .settings-page .first-heaven-preset.is-active {
  border-color: rgba(76, 125, 171, 0.34);
  background: rgba(238, 246, 252, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.88),
    0 4px 12px rgba(47, 111, 159, 0.08);
}

body[data-skin="crosscorners"] .settings-page .first-heaven-editor {
  gap: 6px;
  padding: 8px;
  border: 1.5px solid rgba(76, 125, 171, 0.18);
  border-radius: 14px;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(47, 111, 159, 0.035);
}

body[data-skin="crosscorners"] .settings-page .first-heaven-editor-slot {
  border: 1.5px solid rgba(76, 125, 171, 0.14);
  border-radius: 10px;
  background: rgba(249, 252, 255, 0.98);
  color: #537085;
}

body[data-skin="crosscorners"] .settings-page .first-heaven-editor-slot.is-active {
  border-color: rgba(76, 125, 171, 0.32);
  background: linear-gradient(180deg, rgba(80, 127, 175, 0.96), rgba(54, 99, 144, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 5px 14px rgba(47, 111, 159, 0.16);
}

body[data-skin="crosscorners"] .settings-page .first-heaven-palette {
  gap: 6px;
  padding: 8px;
  border: 1.5px solid rgba(76, 125, 171, 0.16);
  border-radius: 14px;
  background: rgba(252, 254, 255, 0.98);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

body[data-skin="crosscorners"] .settings-page .first-heaven-palette-item {
  border: 1.5px solid rgba(76, 125, 171, 0.14);
  border-radius: 10px;
  background: #ffffff;
  color: rgba(85, 107, 129, 0.86);
}

body[data-skin="crosscorners"] .settings-page .first-heaven-palette-item span:last-child {
  color: #556b81;
}

body[data-skin="crosscorners"] .settings-page .first-heaven-palette-item:hover,
body[data-skin="crosscorners"] .settings-page .first-heaven-palette-item:focus-visible {
  border-color: rgba(76, 125, 171, 0.28);
  background: rgba(241, 248, 253, 0.96);
}

body[data-skin="crosscorners"] .settings-page .first-heaven-manager-actions .text-button,
body[data-skin="crosscorners"] .settings-page .skin-preset,
body[data-skin="crosscorners"] .settings-page .settings-coming-button {
  border-width: 1.5px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.84),
    0 8px 18px rgba(47, 111, 159, 0.04);
}

body[data-skin="crosscorners"] .settings-page .first-heaven-manager-actions .text-button {
  min-height: 34px;
  color: #2f6f9f;
  border-color: rgba(76, 125, 171, 0.2);
}

body[data-skin="crosscorners"] .settings-page .first-heaven-manager-actions .text-button.primary {
  background: linear-gradient(180deg, #4d80bb, #275f9f);
  color: #fffdf8;
  border-color: rgba(76, 125, 171, 0.34);
  box-shadow: 0 10px 20px rgba(47, 111, 159, 0.08);
}

body[data-skin="crosscorners"] .settings-page .skin-preset-list {
  gap: 10px;
}

body[data-skin="crosscorners"] .settings-page .skin-preset {
  min-height: 72px;
  border-color: rgba(76, 125, 171, 0.18);
  color: #506174;
}

body[data-skin="crosscorners"] .settings-page .skin-preset strong {
  color: #2f6f9f;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: 15px;
  font-weight: 700;
}

body[data-skin="crosscorners"] .settings-page .skin-preset span {
  color: rgba(88, 115, 144, 0.72);
}

body[data-skin="crosscorners"] .settings-page .skin-preset.is-active {
  border-color: rgba(76, 125, 171, 0.34);
  background: rgba(239, 246, 252, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.88),
    0 8px 18px rgba(47, 111, 159, 0.08);
}

body[data-skin="crosscorners"] .settings-page .settings-coming-button {
  border-style: solid;
  border-color: rgba(76, 125, 171, 0.16);
  background: rgba(249, 252, 255, 0.98);
  color: rgba(109, 125, 144, 0.76);
}

body[data-skin="crosscorners"] .settings-page .settings-info-row,
body[data-skin="crosscorners"] .settings-page .skin-preview-card {
  border: 1.5px solid rgba(76, 125, 171, 0.16);
  border-radius: 12px;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.86),
    0 8px 18px rgba(47, 111, 159, 0.035);
}

body[data-skin="crosscorners"] .settings-page .skin-preview-card strong,
body[data-skin="crosscorners"] .settings-page .settings-info-row strong {
  color: #2f6f9f;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-weight: 700;
}

body[data-skin="crosscorners"] .settings-page .skin-preview-card p:last-child,
body[data-skin="crosscorners"] .settings-page .settings-info-label {
  color: rgba(88, 115, 144, 0.72);
}

body[data-skin="crosscorners"] .cast-button-primary {
  grid-row: auto;
}

body[data-skin="crosscorners"] .cast-method-button {
  justify-items: center;
  align-content: center;
  text-align: center;
}

body[data-skin="crosscorners"] .cast-method-label {
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(15px, 4vw, 20px);
  font-weight: 700;
  line-height: 1.15;
}

body[data-skin="crosscorners"] .cast-button-primary .cast-method-label {
  font-size: clamp(16px, 4.2vw, 21px);
}

body[data-skin="crosscorners"] .cast-button-secondary::before,
body[data-skin="crosscorners"] .cast-button-tertiary::before,
body[data-skin="crosscorners"] .cast-page #specifiedToggleButton.is-ready::before,
body[data-skin="crosscorners"] .cast-button-tertiary.is-ready::before {
  display: none;
}

body[data-skin="crosscorners"] .specified-caster {
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.48);
}

body[data-skin="crosscorners"] .specified-library-heading {
  margin-top: 2px;
}

body[data-skin="crosscorners"] .specified-mothers,
body[data-skin="crosscorners"] .specified-figure-grid {
  gap: 8px;
}

body[data-skin="crosscorners"] .specified-mother-slot,
body[data-skin="crosscorners"] .specified-figure {
  min-height: 86px;
  border-width: 1.5px;
  border-radius: 12px;
  padding: 6px 4px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.78),
    0 6px 16px rgba(47, 111, 159, 0.04);
}

body[data-skin="crosscorners"] .specified-mother-slot {
  border-style: dashed;
  border-color: rgba(76, 125, 171, 0.28);
  background: rgba(255, 255, 255, 0.42);
}

body[data-skin="crosscorners"] .specified-mother-slot.is-active {
  border-style: solid;
  border-color: rgba(47, 111, 159, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.84),
    0 0 0 2px rgba(47, 111, 159, 0.06);
}

body[data-skin="crosscorners"] .specified-mother-slot.is-filled {
  border-color: rgba(47, 111, 159, 0.88);
  background: linear-gradient(180deg, #4d80bb, #275f9f);
  color: #fffdf8;
}

body[data-skin="crosscorners"] .specified-mother-slot span,
body[data-skin="crosscorners"] .specified-figure span {
  color: rgba(76, 125, 171, 0.78);
  font-family: "Cormorant Garamond", "Times New Roman", "Noto Serif SC", serif;
  font-size: 10px;
  font-weight: 700;
}

body[data-skin="crosscorners"] .specified-mother-slot strong,
body[data-skin="crosscorners"] .specified-figure strong {
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

body[data-skin="crosscorners"] .specified-figure {
  border-color: rgba(76, 125, 171, 0.22);
  background: rgba(255, 255, 255, 0.42);
  color: #2f6f9f;
}

body[data-skin="crosscorners"] .specified-mother-slot .glyph,
body[data-skin="crosscorners"] .specified-figure .glyph {
  min-height: 28px;
  gap: 2px;
}

body[data-skin="crosscorners"] .specified-mother-slot .row,
body[data-skin="crosscorners"] .specified-figure .row {
  min-height: 5px;
}

body[data-skin="crosscorners"] .specified-mother-slot .dot,
body[data-skin="crosscorners"] .specified-figure .dot {
  width: 5px;
  height: 5px;
}

@media (max-width: 680px) {
  body[data-skin="crosscorners"] .cast-page .header-actions {
    gap: 6px;
  }

  body[data-skin="crosscorners"] .cast-page .text-button,
  body[data-skin="crosscorners"] .cast-page .icon-button {
    min-width: 52px;
    width: 52px;
    height: 64px;
    border-radius: 14px;
  }

  body[data-skin="crosscorners"] .cast-button,
  body[data-skin="crosscorners"] .cast-button-primary,
  body[data-skin="crosscorners"] .cast-button-secondary,
  body[data-skin="crosscorners"] .cast-button-tertiary {
    min-height: 88px;
    padding: 8px 6px 8px;
    border-radius: 14px;
  }

  body[data-skin="crosscorners"] .cast-method-label {
    font-size: clamp(14px, 3.8vw, 17px);
  }

  body[data-skin="crosscorners"] .cast-button-primary .cast-method-label {
    font-size: clamp(15px, 4vw, 18px);
  }
}

@media (max-width: 420px) {
  body[data-skin="crosscorners"] .cast-page.is-active {
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
  }

  body[data-skin="crosscorners"] .cast-page .app-header {
    gap: 6px;
  }

  body[data-skin="crosscorners"] .cast-nav-editor {
    font-size: 12px;
  }

  body[data-skin="crosscorners"] .cast-hero-title {
    font-size: clamp(34px, 11.5vw, 52px);
  }

  body[data-skin="crosscorners"] .cast-hero-date {
    font-size: clamp(15px, 4.8vw, 22px);
  }

  body[data-skin="crosscorners"] .cast-wordmark {
    font-size: clamp(38px, 12vw, 64px);
  }

  body[data-skin="crosscorners"] .cast-hero-subtitle {
    font-size: 12px;
  }

  body[data-skin="crosscorners"] .cast-intake-station,
  body[data-skin="crosscorners"] .cast-methods-station,
  body[data-skin="crosscorners"] .specified-caster {
    padding: 10px;
    border-radius: 14px;
  }

  body[data-skin="crosscorners"] .station-heading h2,
  body[data-skin="crosscorners"] .specified-caster-header h3,
  body[data-skin="crosscorners"] .specified-library-heading h4 {
    font-size: clamp(16px, 4.8vw, 20px);
  }

  body[data-skin="crosscorners"] .cast-page textarea {
    min-height: 66px;
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 13px;
  }

  body[data-skin="crosscorners"] .cast-button,
  body[data-skin="crosscorners"] .cast-button-primary,
  body[data-skin="crosscorners"] .cast-button-secondary,
  body[data-skin="crosscorners"] .cast-button-tertiary {
    min-height: 74px;
    padding: 7px 5px 7px;
    border-radius: 12px;
  }

  body[data-skin="crosscorners"] .specified-mothers,
  body[data-skin="crosscorners"] .specified-figure-grid {
    gap: 6px;
  }

  body[data-skin="crosscorners"] .specified-mother-slot,
  body[data-skin="crosscorners"] .specified-figure {
    min-height: 72px;
    border-radius: 10px;
    padding: 5px 3px;
  }

  body[data-skin="crosscorners"] .specified-mother-slot strong,
  body[data-skin="crosscorners"] .specified-figure strong {
    font-size: 11px;
  }

  body[data-skin="crosscorners"] .specified-mother-slot span,
  body[data-skin="crosscorners"] .specified-figure span {
    font-size: 9px;
  }
}

@media (max-width: 360px) {
  body[data-skin="crosscorners"] .cast-button,
  body[data-skin="crosscorners"] .cast-button-primary,
  body[data-skin="crosscorners"] .cast-button-secondary,
  body[data-skin="crosscorners"] .cast-button-tertiary {
    min-height: 68px;
  }

  body[data-skin="crosscorners"] .cast-method-label {
    font-size: 13px;
  }

  body[data-skin="crosscorners"] .cast-button-primary .cast-method-label {
    font-size: 14px;
  }
}

body[data-skin="crosscorners"] .chart-page.is-active,
body[data-skin="crosscorners"] .chart-workspace {
  background: transparent;
}

body[data-skin="crosscorners"] .chart-page.is-active {
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 8px;
}

body[data-skin="crosscorners"] .chart-header {
  grid-row: 1;
}

body[data-skin="crosscorners"] .recast-inline {
  grid-row: 2;
}

body[data-skin="crosscorners"] .chart-workspace {
  grid-row: 4;
}

body[data-skin="crosscorners"] .view-switcher {
  grid-row: 3;
}

body[data-skin="crosscorners"] .chart-header {
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: start;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
}

body[data-skin="crosscorners"] .chart-header .back-button,
body[data-skin="crosscorners"] .chart-header .text-button,
body[data-skin="crosscorners"] .chart-action-menu,
body[data-skin="crosscorners"] .view-tabs,
body[data-skin="crosscorners"] .recast-inline,
body[data-skin="crosscorners"] .unlock-switcher,
body[data-skin="crosscorners"] .derived-house-switcher {
  background: rgba(255, 255, 255, 0.06);
  border-color: transparent;
  border-width: 0;
  box-shadow: none;
  backdrop-filter: blur(5px);
}

body[data-skin="crosscorners"] .chart-header .text-button.primary {
  background: rgba(255, 255, 255, 0.1);
}

body[data-skin="crosscorners"] .chart-header .header-title {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding-top: 2px;
}

body[data-skin="crosscorners"] .chart-header .eyebrow {
  margin: 0;
  color: #4c7dab;
  font-family: "Cormorant Garamond", "Times New Roman", "Noto Serif SC", serif;
  font-size: clamp(11px, 2.4vw, 14px);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
}

body[data-skin="crosscorners"] .chart-title-input {
  min-height: auto;
  padding: 0;
  color: #2f6f9f;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(32px, 10vw, 54px);
  font-weight: 700;
  line-height: 0.96;
}

body[data-skin="crosscorners"] .chart-title-input::placeholder {
  color: rgba(47, 111, 159, 0.62);
}

body[data-skin="crosscorners"] .chart-title-input:focus {
  background: transparent;
  box-shadow: none;
}

body[data-skin="crosscorners"] .chart-skin-ornament {
  display: grid;
  grid-template-columns: minmax(0, 110px) auto minmax(0, 110px);
  align-items: center;
  gap: 10px;
  width: min(100%, 258px);
  color: #4c7dab;
}

body[data-skin="crosscorners"] .chart-skin-line {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(76, 125, 171, 0), rgba(76, 125, 171, 0.8), rgba(76, 125, 171, 0));
}

body[data-skin="crosscorners"] .chart-skin-star {
  display: block;
  color: #4c7dab;
  font-size: 13px;
  line-height: 1;
  transform: translateY(-1px);
}

body[data-skin="crosscorners"] .chart-skin-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 38px;
  padding: 0 22px;
  border: 1px solid rgba(76, 125, 171, 0.65);
  border-radius: 999px;
  color: #4c7dab;
  font-family: "Cormorant Garamond", "Times New Roman", "Noto Serif SC", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.08);
}

body[data-skin="crosscorners"] .chart-header .back-button,
body[data-skin="crosscorners"] .chart-header .text-button {
  align-self: start;
  min-width: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #2f6f9f;
  font-size: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body[data-skin="crosscorners"] .chart-header .back-button {
  position: relative;
}

body[data-skin="crosscorners"] .chart-header .back-button::before {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  margin: 0 auto;
  border-left: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg);
}

body[data-skin="crosscorners"] .chart-header .header-actions {
  position: relative;
  justify-content: flex-end;
  z-index: 90;
}

body[data-skin="crosscorners"] .chart-menu-toggle {
  position: relative;
  z-index: 91;
}

body[data-skin="crosscorners"] .chart-menu-toggle-lines {
  gap: 5px;
}

body[data-skin="crosscorners"] .chart-menu-toggle-lines span {
  width: 18px;
  height: 2px;
  background: currentColor;
}

body[data-skin="crosscorners"] .chart-action-menu {
  top: calc(100% + 10px);
  right: 0;
  z-index: 92;
  width: 88px;
  min-width: 88px;
  padding: 6px;
  border: 1px solid rgba(76, 125, 171, 0.22);
  border-radius: 14px;
  background: rgba(247, 251, 255, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.62),
    0 14px 28px rgba(47, 111, 159, 0.08);
  backdrop-filter: blur(12px) saturate(1.1);
}

body[data-skin="crosscorners"] .chart-action-menu-item,
body[data-skin="crosscorners"] .chart-header .chart-action-menu .text-button {
  min-height: 38px;
  height: 38px;
  width: 100%;
  padding: 0 6px;
  border: 1px solid rgba(76, 125, 171, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.44);
  color: #2f6f9f;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

body[data-skin="crosscorners"] .chart-header .chart-action-menu .text-button.primary {
  background: linear-gradient(180deg, rgba(78, 127, 184, 0.88), rgba(39, 95, 159, 0.92));
  border-color: rgba(76, 125, 171, 0.2);
  color: #fffdf8;
  box-shadow: 0 8px 18px rgba(47, 111, 159, 0.08);
}

body[data-skin="crosscorners"] .view-switcher {
  gap: 8px;
  padding: 0 8px;
}

body[data-skin="crosscorners"] .view-tabs {
  position: relative;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
}

body[data-skin="crosscorners"] .view-tabs::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(76, 125, 171, 0.22);
}

body[data-skin="crosscorners"] .view-tab {
  position: relative;
  min-height: 42px;
  color: rgba(47, 111, 159, 0.58);
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(16px, 4.8vw, 22px);
  font-weight: 600;
}

body[data-skin="crosscorners"] .view-tab.is-active {
  background: transparent;
  color: #2f6f9f;
}

body[data-skin="crosscorners"] .view-tab.is-active::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: #2f6f9f;
}

body[data-skin="crosscorners"] .recast-inline {
  width: auto;
  justify-self: center;
  min-width: 0;
  min-height: 30px;
  height: 30px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2f6f9f;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(14px, 4vw, 19px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

body[data-skin="crosscorners"] .recast-inline::before {
  content: "↻";
  margin-right: 8px;
  font-size: 1.05em;
  line-height: 1;
}

body[data-skin="crosscorners"] .crosscorners-mark-tip {
  stroke: rgba(33, 26, 21, 0.86);
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

body[data-skin="crosscorners"] .shield-stage,
body[data-skin="crosscorners"] .house-stage {
  box-sizing: border-box;
  padding: 10px 8px 14px;
}

body[data-skin="crosscorners"] .shield-card {
  padding: 0;
  background: transparent;
}

body[data-skin="crosscorners"] .shield-board {
  position: relative;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

body[data-skin="crosscorners"] .house-svg-wrap {
  position: relative;
  border: 0;
  background: transparent;
  overflow: visible;
}

body[data-skin="crosscorners"] .house-panel,
body[data-skin="crosscorners"] .geomancy-house-chart {
  background: transparent;
}

body[data-skin="crosscorners"] .ghc-background,
body[data-skin="crosscorners"] .ghc-outer,
body[data-skin="crosscorners"] .ghc-diamond,
body[data-skin="crosscorners"] .ghc-inner {
  fill: transparent;
  stroke: transparent;
  stroke-width: 0;
}

body[data-skin="crosscorners"] .chart-workspace,
body[data-skin="crosscorners"] .chart-stage,
body[data-skin="crosscorners"] .shield-stage,
body[data-skin="crosscorners"] .house-stage {
  background: transparent;
}

body[data-skin="crosscorners"] .palace,
body[data-skin="crosscorners"] .palace.major,
body[data-skin="crosscorners"] .palace.judge {
  position: relative;
  z-index: 1;
  border-right: 0;
  border-bottom: 0;
  background: transparent;
}

body[data-skin="crosscorners"] .palace.p-1,
body[data-skin="crosscorners"] .palace.p-2,
body[data-skin="crosscorners"] .palace.p-3,
body[data-skin="crosscorners"] .palace.p-4,
body[data-skin="crosscorners"] .palace.p-5,
body[data-skin="crosscorners"] .palace.p-6,
body[data-skin="crosscorners"] .palace.p-7,
body[data-skin="crosscorners"] .palace.p-8 {
  display: block;
  padding: 0 2px 6px;
}

body[data-skin="crosscorners"] .palace.p-1 .glyph-wired,
body[data-skin="crosscorners"] .palace.p-2 .glyph-wired,
body[data-skin="crosscorners"] .palace.p-3 .glyph-wired,
body[data-skin="crosscorners"] .palace.p-4 .glyph-wired,
body[data-skin="crosscorners"] .palace.p-5 .glyph-wired,
body[data-skin="crosscorners"] .palace.p-6 .glyph-wired,
body[data-skin="crosscorners"] .palace.p-7 .glyph-wired,
body[data-skin="crosscorners"] .palace.p-8 .glyph-wired {
  position: absolute;
  left: 50%;
  top: 50%;
  min-height: 0;
  margin: 0;
  transform: translate(-50%, -50%);
}

body[data-skin="crosscorners"] .palace.p-1 .palace-name,
body[data-skin="crosscorners"] .palace.p-2 .palace-name,
body[data-skin="crosscorners"] .palace.p-3 .palace-name,
body[data-skin="crosscorners"] .palace.p-4 .palace-name,
body[data-skin="crosscorners"] .palace.p-5 .palace-name,
body[data-skin="crosscorners"] .palace.p-6 .palace-name,
body[data-skin="crosscorners"] .palace.p-7 .palace-name,
body[data-skin="crosscorners"] .palace.p-8 .palace-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  margin-top: 0;
}

body[data-skin="crosscorners"] .palace-name {
  margin-top: 0;
  line-height: 1.08;
}

body[data-skin="crosscorners"] .palace-number {
  display: none;
}

body[data-skin="crosscorners"] .ghc-slot-label {
  display: none;
}

body[data-skin="crosscorners"] .ghc-court-label {
  display: none;
}

body[data-skin="crosscorners"] .crosscorners-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body[data-skin="crosscorners"] .crosscorners-overlay {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

body[data-skin="crosscorners"] .crosscorners-mark line {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

body[data-skin="crosscorners"] .crosscorners-mark-soft {
  stroke: rgba(33, 26, 21, 0.22);
}

body[data-skin="crosscorners"] .crosscorners-mark-core {
  stroke: rgba(33, 26, 21, 0.96);
}

body[data-skin="crosscorners"] .crosscorners-mark.is-house {
  opacity: 0.78;
}

body[data-skin="crosscorners"] .crosscorners-mark.is-house .crosscorners-mark-soft {
  stroke: rgba(33, 26, 21, 0.14);
}

body[data-skin="crosscorners"] .crosscorners-mark.is-house .crosscorners-mark-core {
  stroke: rgba(33, 26, 21, 0.68);
}

body[data-skin="crosscorners"] .crosscorners-mark.is-shield {
  opacity: 0.96;
}

body[data-skin="crosscorners"] .glyph-wired {
  display: grid;
  place-items: center;
  min-height: 50px;
  margin-top: 1px;
}

body[data-skin="crosscorners"] .glyph-wired-svg {
  width: 52px;
  height: 66px;
  overflow: visible;
}

body[data-skin="crosscorners"] .glyph-wire,
body[data-skin="crosscorners"] .ghc-segment,
body[data-skin="crosscorners"] .ghc-court-segment,
body[data-skin="crosscorners"] .first-heaven-segment {
  fill: none;
  stroke: rgba(51, 85, 120, 0.74);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
  transition:
    stroke 180ms ease,
    opacity 180ms ease,
    filter 220ms ease,
    transform 220ms ease;
}

body[data-skin="crosscorners"] .glyph-wire-bar,
body[data-skin="crosscorners"] .ghc-segment-bar,
body[data-skin="crosscorners"] .ghc-court-segment-bar,
body[data-skin="crosscorners"] .first-heaven-segment-bar {
  stroke-width: 2.35;
}

body[data-skin="crosscorners"] .glyph-wire-stem,
body[data-skin="crosscorners"] .ghc-segment-stem,
body[data-skin="crosscorners"] .ghc-court-segment-stem,
body[data-skin="crosscorners"] .first-heaven-segment-stem {
  stroke-width: 2.25;
}

body[data-skin="crosscorners"] .palace.major .glyph-wire,
body[data-skin="crosscorners"] .palace.judge .glyph-wire,
body[data-skin="crosscorners"] .ghc-court-text .ghc-court-segment {
  stroke: rgba(47, 111, 159, 0.86);
}

body[data-skin="crosscorners"] .palace:hover .glyph-wire,
body[data-skin="crosscorners"] .palace:focus-visible .glyph-wire,
body[data-skin="crosscorners"] .ghc-click-target:hover .ghc-segment,
body[data-skin="crosscorners"] .ghc-click-target:focus-visible .ghc-segment,
body[data-skin="crosscorners"] .ghc-click-target:hover .ghc-court-segment,
body[data-skin="crosscorners"] .ghc-click-target:focus-visible .ghc-court-segment,
body[data-skin="crosscorners"] .ghc-court-text:hover .ghc-court-segment,
body[data-skin="crosscorners"] .ghc-court-text:focus-visible .ghc-court-segment {
  stroke: rgba(47, 111, 159, 0.82);
}

body[data-skin="crosscorners"] .palace.is-selected .glyph-wire,
body[data-skin="crosscorners"] .ghc-click-target.is-selected .ghc-segment,
body[data-skin="crosscorners"] .ghc-click-target.is-selected .ghc-court-segment,
body[data-skin="crosscorners"] .ghc-court-text.is-selected .ghc-court-segment {
  stroke: #235fa6;
  filter: drop-shadow(0 0 8px rgba(48, 103, 171, 0.2));
}

body[data-skin="crosscorners"] .palace.is-fly-focus .glyph-wire,
body[data-skin="crosscorners"] .ghc-click-target.is-fly-focus .ghc-segment,
body[data-skin="crosscorners"] .ghc-click-target.is-fly-focus .ghc-court-segment,
body[data-skin="crosscorners"] .ghc-court-text.is-fly-focus .ghc-court-segment {
  stroke: #d8ad38;
}

body[data-skin="crosscorners"] .palace.is-fly-marked .glyph-wire,
body[data-skin="crosscorners"] .ghc-click-target.is-fly-marked .ghc-segment,
body[data-skin="crosscorners"] .ghc-click-target.is-fly-marked .ghc-court-segment,
body[data-skin="crosscorners"] .ghc-court-text.is-fly-marked .ghc-court-segment {
  stroke: var(--ink);
}

body[data-skin="crosscorners"] .motion-source .first-heaven-segment {
  stroke: #e96f6f;
  stroke-width: 2.5;
}

body[data-skin="crosscorners"] .ghc-click-target.is-motion-target .ghc-segment,
body[data-skin="crosscorners"] .ghc-court-text.is-motion-target .ghc-court-segment {
  stroke: #e96f6f;
  stroke-width: 2.7;
}

body[data-skin="crosscorners"] .ghc-click-target.is-motion-selected .ghc-segment,
body[data-skin="crosscorners"] .ghc-court-text.is-motion-selected .ghc-court-segment {
  stroke: #2f6f9f;
  stroke-width: 2.7;
}

body[data-skin="crosscorners"] .glyph-wire.seek-line-1,
body[data-skin="crosscorners"] .ghc-segment.seek-line-1,
body[data-skin="crosscorners"] .ghc-court-segment.seek-line-1,
body[data-skin="crosscorners"] .first-heaven-segment.seek-line-1 {
  stroke: #d8ad38 !important;
}

body[data-skin="crosscorners"] .glyph-wire.seek-line-2,
body[data-skin="crosscorners"] .ghc-segment.seek-line-2,
body[data-skin="crosscorners"] .ghc-court-segment.seek-line-2,
body[data-skin="crosscorners"] .first-heaven-segment.seek-line-2 {
  stroke: #f8f4e8 !important;
}

body[data-skin="crosscorners"] .glyph-wire.seek-line-3,
body[data-skin="crosscorners"] .ghc-segment.seek-line-3,
body[data-skin="crosscorners"] .ghc-court-segment.seek-line-3,
body[data-skin="crosscorners"] .first-heaven-segment.seek-line-3 {
  stroke: #5f9863 !important;
}

body[data-skin="crosscorners"] .glyph-wire.seek-line-4,
body[data-skin="crosscorners"] .ghc-segment.seek-line-4,
body[data-skin="crosscorners"] .ghc-court-segment.seek-line-4,
body[data-skin="crosscorners"] .first-heaven-segment.seek-line-4 {
  stroke: #171717 !important;
}

body[data-skin="crosscorners"] .ghc-outline-layer {
  display: none;
}

body[data-skin="crosscorners"] .ghc-slot {
  fill: transparent;
}

body[data-skin="crosscorners"] .ghc-court-field {
  fill: transparent;
  stroke: transparent;
  stroke-width: 0;
}

body[data-skin="crosscorners"] .palace:hover,
body[data-skin="crosscorners"] .palace:focus-visible,
body[data-skin="crosscorners"] .palace.is-selected {
  background: transparent;
  color: rgba(47, 111, 159, 0.86);
  box-shadow: none;
}

body[data-skin="crosscorners"] .palace-name,
body[data-skin="crosscorners"] .ghc-figure-name,
body[data-skin="crosscorners"] .ghc-court-label {
  color: rgba(49, 79, 110, 0.78);
  fill: rgba(49, 79, 110, 0.78);
  transition:
    color 180ms ease,
    fill 180ms ease,
    opacity 180ms ease,
    text-shadow 220ms ease;
}

body[data-skin="crosscorners"] .palace:hover .palace-name,
body[data-skin="crosscorners"] .palace:focus-visible .palace-name,
body[data-skin="crosscorners"] .palace.is-selected .palace-name {
  color: #235fa6;
  text-shadow: 0 0 10px rgba(47, 111, 159, 0.12);
}

body[data-skin="crosscorners"] .ghc-click-target:hover .ghc-figure-name,
body[data-skin="crosscorners"] .ghc-click-target:focus-visible .ghc-figure-name,
body[data-skin="crosscorners"] .ghc-click-target.is-selected .ghc-figure-name,
body[data-skin="crosscorners"] .ghc-court-text:hover .ghc-figure-name,
body[data-skin="crosscorners"] .ghc-court-text:focus-visible .ghc-figure-name,
body[data-skin="crosscorners"] .ghc-court-text.is-selected .ghc-figure-name,
body[data-skin="crosscorners"] .ghc-court-text:hover .ghc-court-label,
body[data-skin="crosscorners"] .ghc-court-text:focus-visible .ghc-court-label,
body[data-skin="crosscorners"] .ghc-court-text.is-selected .ghc-court-label {
  color: #235fa6;
  fill: #235fa6;
}

body[data-skin="crosscorners"] .palace.is-selected .glyph-wired-svg,
body[data-skin="crosscorners"] .ghc-click-target.is-selected .ghc-figure-glyph,
body[data-skin="crosscorners"] .ghc-court-text.is-selected .ghc-court-glyph {
  filter: drop-shadow(0 0 10px rgba(47, 111, 159, 0.16));
}

body[data-skin="crosscorners"] .ghc-click-target:hover .ghc-slot,
body[data-skin="crosscorners"] .ghc-click-target:focus-visible .ghc-slot,
body[data-skin="crosscorners"] .ghc-click-target.is-selected .ghc-slot,
body[data-skin="crosscorners"] .ghc-court-text:hover .ghc-court-field,
body[data-skin="crosscorners"] .ghc-court-text:focus-visible .ghc-court-field,
body[data-skin="crosscorners"] .ghc-court-text.is-selected .ghc-court-field {
  fill: rgba(47, 111, 159, 0.045);
  stroke: rgba(47, 111, 159, 0.18);
  stroke-width: 1;
}

body[data-skin="crosscorners"] .ghc-click-target.is-fly-marked .ghc-slot,
body[data-skin="crosscorners"] .ghc-court-text.is-fly-marked .ghc-court-field {
  fill: rgba(62, 90, 119, 0.038);
  stroke: rgba(62, 90, 119, 0.18);
  stroke-width: 1;
}

body[data-skin="crosscorners"] .ghc-click-target.is-fly-focus .ghc-slot,
body[data-skin="crosscorners"] .ghc-court-text.is-fly-focus .ghc-court-field {
  fill: rgba(216, 173, 56, 0.06);
  stroke: rgba(216, 173, 56, 0.26);
  stroke-width: 1.1;
}

body[data-skin="crosscorners"] .ghc-click-target.is-seek-source .ghc-slot,
body[data-skin="crosscorners"] .ghc-click-target.is-seek-match .ghc-slot,
body[data-skin="crosscorners"] .ghc-click-target.is-source-origin .ghc-slot,
body[data-skin="crosscorners"] .ghc-click-target.is-source-path .ghc-slot,
body[data-skin="crosscorners"] .ghc-court-text.is-seek-source .ghc-court-field,
body[data-skin="crosscorners"] .ghc-court-text.is-seek-match .ghc-court-field,
body[data-skin="crosscorners"] .ghc-court-text.is-source-origin .ghc-court-field,
body[data-skin="crosscorners"] .ghc-court-text.is-source-path .ghc-court-field {
  fill: rgba(216, 173, 56, 0.055);
  stroke: rgba(216, 173, 56, 0.22);
  stroke-width: 1;
}

body[data-skin="crosscorners"] .ghc-click-target.is-precision-subject .ghc-slot,
body[data-skin="crosscorners"] .ghc-click-target.is-precision-object .ghc-slot,
body[data-skin="crosscorners"] .ghc-click-target.is-precision-related .ghc-slot,
body[data-skin="crosscorners"] .ghc-click-target.is-precision-hit .ghc-slot,
body[data-skin="crosscorners"] .ghc-court-text.is-motion-source .ghc-court-field,
body[data-skin="crosscorners"] .ghc-court-text.is-motion-target .ghc-court-field,
body[data-skin="crosscorners"] .ghc-court-text.is-motion-selected .ghc-court-field,
body[data-skin="crosscorners"] .ghc-click-target.is-motion-source .ghc-slot,
body[data-skin="crosscorners"] .ghc-click-target.is-motion-target .ghc-slot,
body[data-skin="crosscorners"] .ghc-click-target.is-motion-selected .ghc-slot {
  fill: rgba(47, 111, 159, 0.05);
  stroke: rgba(47, 111, 159, 0.22);
  stroke-width: 1.15;
}

body[data-skin="crosscorners"] .ghc-click-target.is-motion-target .ghc-slot,
body[data-skin="crosscorners"] .ghc-court-text.is-motion-target .ghc-court-field {
  fill: rgba(233, 111, 111, 0.06);
  stroke: rgba(233, 111, 111, 0.24);
}

body[data-skin="crosscorners"] .ghc-click-target.is-fly-marked .ghc-slot-label,
body[data-skin="crosscorners"] .ghc-click-target.is-fly-marked .ghc-figure-name,
body[data-skin="crosscorners"] .ghc-click-target.is-fly-marked .ghc-dot,
body[data-skin="crosscorners"] .ghc-court-text.is-fly-marked .ghc-court-label,
body[data-skin="crosscorners"] .ghc-court-text.is-fly-marked .ghc-figure-name,
body[data-skin="crosscorners"] .ghc-court-text.is-fly-marked .ghc-court-dot {
  fill: rgba(54, 82, 108, 0.86);
  color: rgba(54, 82, 108, 0.86);
}

body[data-skin="crosscorners"] .ghc-click-target.is-fly-focus .ghc-slot-label,
body[data-skin="crosscorners"] .ghc-click-target.is-fly-focus .ghc-figure-name,
body[data-skin="crosscorners"] .ghc-click-target.is-fly-focus .ghc-dot,
body[data-skin="crosscorners"] .ghc-court-text.is-fly-focus .ghc-court-label,
body[data-skin="crosscorners"] .ghc-court-text.is-fly-focus .ghc-figure-name,
body[data-skin="crosscorners"] .ghc-court-text.is-fly-focus .ghc-court-dot {
  fill: rgba(151, 105, 0, 0.92);
  color: rgba(151, 105, 0, 0.92);
}

body[data-skin="crosscorners"] .ghc-click-target.is-seek-source .ghc-slot-label,
body[data-skin="crosscorners"] .ghc-click-target.is-seek-match .ghc-slot-label,
body[data-skin="crosscorners"] .ghc-click-target.is-source-origin .ghc-slot-label,
body[data-skin="crosscorners"] .ghc-click-target.is-source-path .ghc-slot-label,
body[data-skin="crosscorners"] .ghc-click-target.is-seek-source .ghc-figure-name,
body[data-skin="crosscorners"] .ghc-click-target.is-seek-match .ghc-figure-name,
body[data-skin="crosscorners"] .ghc-click-target.is-source-origin .ghc-figure-name,
body[data-skin="crosscorners"] .ghc-click-target.is-source-path .ghc-figure-name,
body[data-skin="crosscorners"] .ghc-court-text.is-seek-source .ghc-court-label,
body[data-skin="crosscorners"] .ghc-court-text.is-seek-match .ghc-court-label,
body[data-skin="crosscorners"] .ghc-court-text.is-source-origin .ghc-court-label,
body[data-skin="crosscorners"] .ghc-court-text.is-source-path .ghc-court-label,
body[data-skin="crosscorners"] .ghc-court-text.is-seek-source .ghc-figure-name,
body[data-skin="crosscorners"] .ghc-court-text.is-seek-match .ghc-figure-name,
body[data-skin="crosscorners"] .ghc-court-text.is-source-origin .ghc-figure-name,
body[data-skin="crosscorners"] .ghc-court-text.is-source-path .ghc-figure-name,
body[data-skin="crosscorners"] .ghc-court-text.is-seek-source .ghc-court-dot,
body[data-skin="crosscorners"] .ghc-court-text.is-seek-match .ghc-court-dot,
body[data-skin="crosscorners"] .ghc-court-text.is-source-origin .ghc-court-dot,
body[data-skin="crosscorners"] .ghc-court-text.is-source-path .ghc-court-dot {
  fill: rgba(151, 105, 0, 0.9);
  color: rgba(151, 105, 0, 0.9);
}

body[data-skin="crosscorners"] .ghc-click-target.is-selected .ghc-dot,
body[data-skin="crosscorners"] .ghc-court-text.is-selected .ghc-court-dot,
body[data-skin="crosscorners"] .ghc-click-target.is-motion-selected .ghc-dot,
body[data-skin="crosscorners"] .ghc-court-text.is-motion-selected .ghc-court-dot,
body[data-skin="crosscorners"] .ghc-click-target.is-motion-selected .ghc-slot-label,
body[data-skin="crosscorners"] .ghc-court-text.is-motion-selected .ghc-court-label,
body[data-skin="crosscorners"] .ghc-court-text.is-motion-selected .ghc-figure-name {
  fill: #235fa6;
  color: #235fa6;
}

body[data-skin="crosscorners"] .geomancy-house-chart {
  position: relative;
  z-index: 1;
}

body[data-skin="crosscorners"] .meaning-overlay {
  inset: 0 0 auto;
  z-index: 620;
  grid-template-columns: minmax(112px, 0.24fr) minmax(0, 1fr);
  gap: 16px;
  border: 1.5px solid rgba(99, 136, 177, 0.78);
  border-radius: 0;
  padding: 18px 64px 18px 18px;
  background: #ffffff;
  box-shadow:
    0 18px 42px rgba(53, 86, 126, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(7px);
}

body[data-skin="crosscorners"] .meaning-overlay::before,
body[data-skin="crosscorners"] .meaning-overlay::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(84, 126, 170, 0.72);
  background: #ffffff;
  transform: translateX(-50%) rotate(45deg);
}

body[data-skin="crosscorners"] .meaning-overlay::before {
  top: -6px;
}

body[data-skin="crosscorners"] .meaning-overlay::after {
  bottom: -6px;
}

body[data-skin="crosscorners"] .meaning-overlay {
  overflow: visible;
}

body[data-skin="crosscorners"] .meaning-overlay .meaning-detail-card::before,
body[data-skin="crosscorners"] .meaning-overlay .meaning-detail-card::after,
body[data-skin="crosscorners"] .meaning-overlay .meaning-figure-card::before,
body[data-skin="crosscorners"] .meaning-overlay .meaning-figure-card::after {
  pointer-events: none;
}

body[data-skin="crosscorners"] .meaning-close {
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(84, 126, 170, 0.82);
  background: rgba(255, 252, 246, 0.9);
  color: #356ea8;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(53, 86, 126, 0.06);
}

body[data-skin="crosscorners"] .meaning-figure-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr;
  gap: 0;
  align-content: stretch;
  justify-items: center;
  border-radius: 0;
  padding: 10px;
  background: linear-gradient(180deg, rgba(39, 89, 146, 0.98), rgba(35, 74, 126, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 18px 28px rgba(47, 79, 116, 0.16);
  overflow: hidden;
}

body[data-skin="crosscorners"] .meaning-figure-card::before,
body[data-skin="crosscorners"] .meaning-figure-card::after {
  content: none;
}

body[data-skin="crosscorners"] .meaning-figure-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

body[data-skin="crosscorners"] .meaning-figure-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 104px;
  height: 104px;
  background: url("assets/quan1.png") center / contain no-repeat;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.94;
}

body[data-skin="crosscorners"] .meaning-glyph {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 68px;
  min-height: 0;
  padding-top: 0;
  transform: translate(-50%, -50%);
}

body[data-skin="crosscorners"] .meaning-glyph .glyph-wired-svg {
  width: 52px;
  height: 68px;
}

body[data-skin="crosscorners"] .meaning-glyph .glyph-wire {
  stroke: rgba(255, 255, 255, 0.98);
  stroke-width: 3;
}

body[data-skin="crosscorners"] .meaning-figure-info {
  display: none;
}

body[data-skin="crosscorners"] .meaning-overlay .eyebrow {
  display: none;
  color: rgba(230, 241, 255, 0.82);
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-skin="crosscorners"] .meaning-overlay h2 {
  color: #ffffff;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(14px, 4.4vw, 20px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
  margin: 0;
  text-align: center;
}

body[data-skin="crosscorners"] .meaning-figure-card #selectionMeta {
  margin-top: 0;
  color: rgba(238, 246, 255, 0.94);
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
}

body[data-skin="crosscorners"] .meaning-detail-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "summary"
    "keywords"
    "related";
  align-content: start;
  gap: 12px;
  padding-top: 2px;
  padding-right: 2px;
  overflow: auto;
  overscroll-behavior: contain;
}

body[data-skin="crosscorners"] .meaning-section {
  gap: 8px;
  border-top: 0;
  padding-top: 0;
}

body[data-skin="crosscorners"] .meaning-summary {
  grid-area: summary;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(76, 125, 171, 0.16);
}

body[data-skin="crosscorners"] .meaning-section h3 {
  color: #3d6d9d;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
}

body[data-skin="crosscorners"] .meaning-overlay p {
  color: rgba(55, 82, 112, 0.92);
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.72;
}

body[data-skin="crosscorners"] #selectionMeaning {
  color: #41668f;
  font-size: 15px;
  line-height: 1.74;
}

body[data-skin="crosscorners"] .meaning-tags,
body[data-skin="crosscorners"] .meaning-related {
  gap: 8px;
}

body[data-skin="crosscorners"] .meaning-section:nth-child(2) {
  grid-area: keywords;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  row-gap: 6px;
}

body[data-skin="crosscorners"] .meaning-section:nth-child(3) {
  grid-area: related;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  row-gap: 6px;
}

body[data-skin="crosscorners"] .meaning-section:nth-child(2) h3,
body[data-skin="crosscorners"] .meaning-section:nth-child(3) h3 {
  padding-top: 8px;
}

body[data-skin="crosscorners"] .meaning-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

body[data-skin="crosscorners"] .meaning-tags span,
body[data-skin="crosscorners"] .meaning-related span {
  min-height: 34px;
  color: #476f99;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.24;
}

body[data-skin="crosscorners"] .meaning-tags span {
  justify-content: center;
  border: 1px solid rgba(84, 126, 170, 0.22);
  border-radius: 999px;
  padding: 7px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(243, 248, 255, 0.72));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.52),
    0 6px 12px rgba(47, 111, 159, 0.04);
}

body[data-skin="crosscorners"] .meaning-related {
  align-content: start;
  min-height: 0;
  border: 1px solid rgba(84, 126, 170, 0.18);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(248, 252, 255, 0.86);
}

body[data-skin="crosscorners"] .meaning-section:last-child .meaning-related {
  min-height: 112px;
}

body[data-skin="crosscorners"] .meaning-section:last-child .meaning-related span {
  justify-content: flex-start;
  position: relative;
  border: 0;
  border-radius: 10px;
  padding: 8px 12px 8px 18px;
  background: rgba(76, 125, 171, 0.08);
  box-shadow: inset 0 0 0 1px rgba(76, 125, 171, 0.08);
}

body[data-skin="crosscorners"] .meaning-section:last-child .meaning-related span::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #4c7dab;
  transform: translateY(-50%);
}

body[data-skin="crosscorners"] .meaning-related-empty {
  width: 100%;
  min-height: 92px;
  white-space: pre-line;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

body[data-skin="crosscorners"] .meaning-section:last-child .meaning-related .meaning-related-empty {
  justify-content: center;
  padding: 12px;
  background: rgba(76, 125, 171, 0.04);
  box-shadow: none;
}

body[data-skin="crosscorners"] .meaning-section:last-child .meaning-related .meaning-related-empty::before {
  content: none;
}

body[data-skin="crosscorners"] .records-page.is-active {
  gap: 12px;
  padding: clamp(10px, 3vw, 14px);
  border: 1.5px solid rgba(76, 125, 171, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 12px 26px rgba(47, 111, 159, 0.06);
}

body[data-skin="crosscorners"] .records-page .app-header {
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: start;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-skin="crosscorners"] .records-page .header-title {
  min-width: 0;
  justify-items: center;
}

body[data-skin="crosscorners"] .records-page .header-title .eyebrow {
  color: rgba(76, 125, 171, 0.58);
  font-family: "Cormorant Garamond", "Times New Roman", "Noto Serif SC", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-skin="crosscorners"] .records-page .header-title h1 {
  color: #2f6f9f;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(28px, 8.8vw, 38px);
  font-weight: 700;
  line-height: 0.96;
}

body[data-skin="crosscorners"] .records-page .back-button,
body[data-skin="crosscorners"] .records-page .icon-button,
body[data-skin="crosscorners"] .records-page .cast-button,
body[data-skin="crosscorners"] .records-page .saved-preview-button {
  border: 1.5px solid rgba(76, 125, 171, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #2f6f9f;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-weight: 700;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.78),
    0 8px 18px rgba(47, 111, 159, 0.05);
}

body[data-skin="crosscorners"] .records-page .icon-button {
  min-width: 56px;
  width: 56px;
  height: 56px;
  font-size: 18px;
}

body[data-skin="crosscorners"] .records-page .saved-panel {
  margin-top: 0;
  padding: 14px;
  border: 1.5px solid rgba(76, 125, 171, 0.22);
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.76),
    0 8px 20px rgba(47, 111, 159, 0.04);
}

body[data-skin="crosscorners"] .records-page .saved-item {
  border: 1.5px solid rgba(76, 125, 171, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.84),
    0 8px 18px rgba(47, 111, 159, 0.04);
}

body[data-skin="crosscorners"] .records-page .saved-item.is-active,
body[data-skin="crosscorners"] .records-page .saved-item.is-expanded {
  border-color: rgba(76, 125, 171, 0.3);
  background: rgba(246, 250, 255, 0.98);
}

body[data-skin="crosscorners"] .records-page .saved-item-head strong {
  color: #2f6f9f;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: 16px;
  font-weight: 700;
}

body[data-skin="crosscorners"] .records-page .saved-item-head span,
body[data-skin="crosscorners"] .records-page .saved-empty,
body[data-skin="crosscorners"] .records-page .saved-note-label {
  color: rgba(88, 115, 144, 0.76);
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: 12px;
  font-weight: 600;
}

body[data-skin="crosscorners"] .records-page .saved-item-body {
  border-top: 1px solid rgba(76, 125, 171, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

body[data-skin="crosscorners"] .records-page .saved-preview-slot,
body[data-skin="crosscorners"] .records-page .saved-note,
body[data-skin="crosscorners"] .records-page .saved-note-input {
  border: 1.5px solid rgba(76, 125, 171, 0.16);
  border-radius: 12px;
  background: #ffffff;
  color: #506174;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.84);
}

body[data-skin="crosscorners"] .records-page .saved-preview-index {
  color: rgba(88, 115, 144, 0.66);
}

body[data-skin="crosscorners"] .records-page .saved-preview-slot strong,
body[data-skin="crosscorners"] .records-page .saved-note {
  color: #4a6179;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
}

body[data-skin="crosscorners"] .records-page .saved-editor-actions .back-button {
  min-height: 42px;
  height: 42px;
}

body[data-skin="crosscorners"] .records-page .saved-editor-actions .cast-button,
body[data-skin="crosscorners"] .records-page .saved-preview-button {
  background: linear-gradient(180deg, #4d80bb, #275f9f);
  border-color: rgba(76, 125, 171, 0.34);
  color: #fffdf8;
  box-shadow: 0 10px 20px rgba(47, 111, 159, 0.08);
}

body[data-skin="crosscorners"] .export-page.is-active {
  gap: 12px;
  padding: clamp(10px, 3vw, 14px);
  border: 1.5px solid rgba(76, 125, 171, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 12px 24px rgba(47, 111, 159, 0.05);
}

body[data-skin="crosscorners"] .export-page .app-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  padding: 0 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(76, 125, 171, 0.18);
}

body[data-skin="crosscorners"] .export-page .header-title {
  gap: 2px;
  align-items: center;
  text-align: center;
}

body[data-skin="crosscorners"] .export-page .header-title .eyebrow {
  color: rgba(76, 125, 171, 0.7);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-skin="crosscorners"] .export-page .header-title h1 {
  color: #2f6f9f;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(22px, 5.8vw, 28px);
  font-weight: 700;
  line-height: 1.1;
}

body[data-skin="crosscorners"] .export-page .header-actions {
  gap: 8px;
}

body[data-skin="crosscorners"] .export-page .back-button,
body[data-skin="crosscorners"] .export-page .text-button,
body[data-skin="crosscorners"] .export-page .cast-button,
body[data-skin="crosscorners"] .export-mode-button {
  border: 1px solid rgba(76, 125, 171, 0.26);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #2f6f9f;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.52),
    0 8px 16px rgba(47, 111, 159, 0.04);
}

body[data-skin="crosscorners"] .export-page .back-button,
body[data-skin="crosscorners"] .export-page .text-button {
  min-height: 40px;
  height: 40px;
}

body[data-skin="crosscorners"] .export-page .back-button {
  width: 42px;
  min-width: 42px;
  padding: 0;
  font-size: 0;
}

body[data-skin="crosscorners"] .export-page .back-button::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

body[data-skin="crosscorners"] .export-page .text-button {
  min-width: 64px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

body[data-skin="crosscorners"] .export-page .text-button.primary,
body[data-skin="crosscorners"] .export-page .cast-button,
body[data-skin="crosscorners"] .export-mode-button.is-active {
  background: linear-gradient(180deg, #4d80bb, #275f9f);
  color: #fffdf8;
}

body[data-skin="crosscorners"] .export-page .saved-panel.export-panel {
  gap: 12px;
  border: 1px solid rgba(76, 125, 171, 0.2);
  border-radius: 16px;
  background: rgba(252, 254, 255, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.76),
    0 10px 22px rgba(47, 111, 159, 0.05);
}

body[data-skin="crosscorners"] .export-page .export-panel-head .eyebrow {
  color: rgba(76, 125, 171, 0.72);
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  letter-spacing: 0.08em;
}

body[data-skin="crosscorners"] .export-page .export-panel-head h2 {
  color: #2f6f9f;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: 21px;
  font-weight: 700;
}

body[data-skin="crosscorners"] .export-page .export-field {
  color: #54779a;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  font-size: 13px;
  font-weight: 700;
}

body[data-skin="crosscorners"] .export-page .export-field input,
body[data-skin="crosscorners"] .export-page .export-field textarea {
  border: 1px solid rgba(76, 125, 171, 0.24);
  border-radius: 14px;
  background: rgba(248, 252, 255, 0.88);
  color: #34597f;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

body[data-skin="crosscorners"] .export-page .export-field textarea {
  min-height: 88px;
}

body[data-skin="crosscorners"] .export-page .export-share-note {
  color: rgba(76, 125, 171, 0.76);
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
}

body[data-skin="crosscorners"] .export-page .export-preview-frame {
  min-height: 300px;
  border: 1px dashed rgba(76, 125, 171, 0.26);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 249, 255, 0.88));
}

body[data-skin="crosscorners"] .export-page .export-preview-empty {
  color: rgba(76, 125, 171, 0.76);
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
}

body[data-skin="crosscorners"] .export-page .export-preview-empty strong {
  color: #2f6f9f;
  font-family: "STSong", "Songti SC", "Noto Serif SC", serif;
}

body[data-skin="crosscorners"] .export-page .export-preview-image {
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(47, 111, 159, 0.08);
}

body[data-skin="crosscorners"] .meaning-overlay.is-motion-selection {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 14px 50px 14px 16px;
}

body[data-skin="crosscorners"] .meaning-overlay.is-motion-selection .meaning-detail-card {
  display: block;
  padding-top: 0;
  overflow: hidden;
}

body[data-skin="crosscorners"] .meaning-overlay.is-motion-selection .meaning-section {
  border-top: 0;
  padding-top: 0;
}

body[data-skin="crosscorners"] .meaning-overlay.is-motion-selection .meaning-related {
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

body[data-skin="crosscorners"] .meaning-overlay.is-motion-selection .motion-path-item {
  padding: 8px 0 10px;
  border-bottom: 1px solid rgba(84, 126, 170, 0.2);
}

body[data-skin="crosscorners"] .meaning-overlay.is-motion-selection .motion-path-kind {
  color: rgba(86, 124, 160, 0.9);
}

body[data-skin="crosscorners"] .meaning-overlay.is-motion-selection .motion-path-name,
body[data-skin="crosscorners"] .meaning-overlay.is-motion-selection .motion-path-palace,
body[data-skin="crosscorners"] .meaning-overlay.is-motion-selection .motion-path-distance,
body[data-skin="crosscorners"] .meaning-overlay.is-motion-selection .motion-path-arrow,
body[data-skin="crosscorners"] .meaning-overlay.is-motion-selection .motion-path-empty,
body[data-skin="crosscorners"] .meaning-overlay.is-motion-selection .motion-path-line {
  color: #41668f;
}
