:root {
  --void: #080b12;
  --surface: #0d141e;
  --surface-2: #111a25;
  --line: #283441;
  --text: #f2eee7;
  --muted: #98a2b1;
  --accent: #d4776a;
  --accent-soft: rgba(212, 119, 106, 0.12);
  --gold: var(--accent);
  --gold-light: #efa198;
  --faint: #697486;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
  background: var(--void);
  color-scheme: dark;
}

body.report-entry-page {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% 0%, rgba(212, 119, 106, 0.07), transparent 30rem),
    var(--void);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.report-entry-page .cosmic-bg,
body.report-entry-page #stars-canvas,
body.report-entry-page .grid-overlay,
body.report-entry-page .line-record,
body.report-entry-page #reportPanel,
body.report-entry-page .page-switcher {
  display: none !important;
}

body.report-entry-page .navbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 max(20px, calc((100vw - 1080px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(8, 11, 18, 0.96);
}

body.report-entry-page .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

body.report-entry-page .logo-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  background: center / contain no-repeat url("/assets/tianji-brand-mark-v7.svg");
  border-radius: 0;
  animation: none;
  transform: none;
}

body.report-entry-page .logo-text {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

body.report-entry-page .logo-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

body.report-entry-page .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.report-entry-page .nav-links a {
  min-height: 40px;
  box-sizing: border-box;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

body.report-entry-page .nav-links a:hover,
body.report-entry-page .nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

body.report-entry-page .nav-links .nav-cta {
  border: 1px solid rgba(212, 119, 106, 0.36);
  color: #f0a59a;
}

body.report-entry-page .layout {
  display: block !important;
  width: min(760px, calc(100% - 36px)) !important;
  margin: 0 auto !important;
  padding: 60px 0 72px;
}

body.report-entry-page .center-stage {
  width: 100%;
}

body.report-entry-page .stage-copy {
  margin: 0 0 32px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.report-entry-page .section-kicker {
  margin: 0 0 12px;
  color: #ee9488;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.report-entry-page .stage-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 8vw, 62px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text);
}

body.report-entry-page .stage-copy h1 span {
  color: #eca095;
}

body.report-entry-page .stage-copy > p:last-child {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

body.report-entry-page .module-grid {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
  margin: 0 0 16px;
}

body.report-entry-page .module-card {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  box-sizing: border-box;
  padding: 7px 11px !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--muted);
  font-size: 12px;
}

body.report-entry-page .module-card span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #efa196;
  font-size: 11px;
}

body.report-entry-page .module-card strong {
  color: inherit;
  font-weight: 600;
}

body.report-entry-page .form-panel {
  box-sizing: border-box;
  margin: 0 !important;
  padding: clamp(22px, 5vw, 34px) !important;
  border: 1px solid var(--line) !important;
  border-radius: 24px !important;
  background: var(--surface) !important;
  box-shadow: none !important;
}

body.report-entry-page .form-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

body.report-entry-page .local-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid rgba(212, 119, 106, 0.28);
  border-radius: 14px;
  background: var(--accent-soft);
  color: #efa196;
  font-family: var(--serif);
  font-size: 20px;
}

body.report-entry-page .form-head h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: 0.02em;
}

body.report-entry-page .form-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

body.report-entry-page .form-section {
  margin: 0 0 26px;
  padding: 0 0 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

body.report-entry-page .form-section h3 {
  margin: 0 0 17px;
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.02em;
}

body.report-entry-page label {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  color: #c5ccd6;
  font-size: 13px;
  line-height: 1.5;
}

body.report-entry-page .field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.report-entry-page input,
body.report-entry-page select,
body.report-entry-page textarea {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: #0a1018;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 140ms ease, background-color 140ms ease;
}

body.report-entry-page textarea {
  min-height: 96px;
  resize: vertical;
}

body.report-entry-page input:focus,
body.report-entry-page select:focus,
body.report-entry-page textarea:focus {
  border-color: rgba(212, 119, 106, 0.70);
  background: #0c131c;
}

body.report-entry-page input::placeholder,
body.report-entry-page textarea::placeholder {
  color: #667181;
}

body.report-entry-page .profile-memory {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin: 0 0 24px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #0a1018;
}

body.report-entry-page .profile-memory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

body.report-entry-page button,
body.report-entry-page .profile-memory a {
  font: inherit;
}

body.report-entry-page .outline-button,
body.report-entry-page .profile-memory button,
body.report-entry-page .profile-memory a {
  min-height: 42px;
  box-sizing: border-box;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: #c9d0da;
  text-decoration: none;
}

body.report-entry-page .profile-memory-actions button.primary {
  border-color: rgba(212, 119, 106, 0.36);
  background: var(--accent-soft);
  color: #efa196;
}

body.report-entry-page .consent-line {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 12px;
}

body.report-entry-page .consent-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

body.report-entry-page a {
  color: #e59488;
}

body.report-entry-page .submit-row {
  display: block;
}

body.report-entry-page .chop-button {
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff9f4;
  box-shadow: none;
  font-weight: 700;
  cursor: pointer;
}

body.report-entry-page .chop-button:hover {
  background: #dd8275;
}

body.report-entry-page .chop-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

body.report-entry-page .entry-flow-status {
  display: block;
  min-height: 0;
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid rgba(212, 119, 106, 0.26);
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--text);
}

body.report-entry-page .entry-flow-status.empty {
  display: none;
}

body.report-entry-page .entry-flow-status.loading {
  border-color: rgba(212, 119, 106, 0.42);
  background: rgba(212, 119, 106, 0.10);
  color: #f1c1ba;
}

body.report-entry-page .entry-flow-status.error {
  border-color: rgba(237, 112, 94, 0.58);
  background: rgba(169, 78, 67, 0.16);
  color: #ffd9d3;
  box-shadow: 0 0 0 1px rgba(237, 112, 94, 0.08), 0 12px 30px rgba(79, 22, 17, 0.16);
}

body.report-entry-page .entry-flow-action {
  width: fit-content;
  min-height: 42px;
  margin-top: 12px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(238, 151, 138, 0.54);
  border-radius: 999px;
  background: rgba(212, 119, 106, 0.12);
  color: #ffd9d3;
  font-weight: 700;
  text-decoration: none;
}

body.report-entry-page .liuyao-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

body.report-entry-page .liuyao-controls .chop-button {
  width: auto;
  min-height: 44px;
  padding-inline: 18px;
}

body.report-entry-page .liuyao-progress {
  margin-left: auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

body.report-entry-page .coin-tray {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

body.report-entry-page .coin-face {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #0a1018;
  color: var(--muted);
  font-size: 12px;
}

body.report-entry-page .coin-face.yang {
  border-color: rgba(212, 119, 106, 0.45);
  color: #efa196;
}

body.report-entry-page .inline-hexagram {
  display: flex;
  min-height: 18px;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0a1018;
}

body.report-entry-page .footer {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 0 20px 92px;
  color: #6f7988;
  font-size: 11px;
  text-align: center;
}

body.report-entry-page .footer a {
  color: #8e98a7;
}

@media (max-width: 720px) {
  body.report-entry-page .navbar {
    min-height: 58px;
    padding: 0 16px;
  }

  body.report-entry-page .logo-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  body.report-entry-page .logo-text {
    font-size: 15px;
  }

  body.report-entry-page .logo-sub {
    display: none;
  }

  body.report-entry-page .nav-links a:not(.nav-cta) {
    display: none;
  }

  body.report-entry-page .nav-links .nav-cta {
    display: none;
  }

  body.report-entry-page .layout {
    width: min(100% - 28px, 680px) !important;
    padding: 36px 0 48px;
  }

  body.report-entry-page .stage-copy {
    margin-bottom: 24px;
  }

  body.report-entry-page .stage-copy h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  body.report-entry-page .module-grid {
    overflow-x: auto;
    flex-wrap: nowrap;
    margin-right: -14px;
    padding-right: 14px;
    scrollbar-width: none;
  }

  body.report-entry-page .module-grid::-webkit-scrollbar {
    display: none;
  }

  body.report-entry-page .form-panel {
    padding: 22px 16px !important;
    border-radius: 20px !important;
  }

  body.report-entry-page .field-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  body.report-entry-page .profile-memory-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.report-entry-page .profile-memory-actions > * {
    justify-content: center;
    text-align: center;
  }

  body.report-entry-page .footer {
    display: grid;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.report-entry-page *,
  body.report-entry-page *::before,
  body.report-entry-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
