:root {
  --ink: #153128;
  --ink-soft: #52645d;
  --forest: #174f3a;
  --forest-2: #226a4e;
  --mint: #dcefe5;
  --mint-2: #edf7f1;
  --cream: #f8f5ec;
  --paper: #fffdf8;
  --orange: #f36f3d;
  --orange-deep: #d95528;
  --line: rgba(21, 49, 40, 0.13);
  --danger: #b93737;
  --success: #167049;
  --shadow-sm: 0 8px 30px rgba(21, 49, 40, 0.08);
  --shadow-lg: 0 24px 70px rgba(21, 49, 40, 0.15);
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --content: 1120px;
}

.admin-config-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 5%, rgba(255, 122, 61, .14), transparent 28rem),
    radial-gradient(circle at 90% 40%, rgba(25, 105, 90, .13), transparent 30rem),
    var(--paper);
}

.admin-config-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 34rem);
  gap: 2rem;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: 5rem;
}

.admin-config-intro {
  align-self: start;
  max-width: 38rem;
  padding-top: 2rem;
}

.admin-config-intro h1 {
  margin: .5rem 0 1rem;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.06em;
}

.admin-config-intro > p:last-child {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.8;
}

.admin-import-card,
.admin-result-card {
  grid-column: 2;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 1.5rem 4rem rgba(30, 50, 42, .09);
}

.compact-heading {
  margin-bottom: 1.8rem;
}

.field-label {
  display: block;
  margin: 1.2rem 0 .55rem;
  font-weight: 800;
}

.admin-import-card input[type="password"],
.admin-import-card input[type="file"],
.change-preview-card textarea,
.published-link-row input {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.change-preview-card textarea {
  width: 100%;
  min-height: 6.5rem;
  resize: vertical;
}

.change-preview-summary {
  color: var(--ink-soft);
  line-height: 1.7;
}

.change-list {
  display: grid;
  gap: .75rem;
  margin: 1.2rem 0;
}

.change-item {
  display: grid;
  gap: .35rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
}

.change-item strong {
  color: var(--forest);
}

.change-item span,
.change-empty {
  margin: 0;
  color: var(--ink-soft);
  font-size: .84rem;
  overflow-wrap: anywhere;
}

.notification-option[data-disabled="true"] {
  opacity: .55;
}

.admin-import-card input:focus,
.published-link-row input:focus {
  outline: 3px solid rgba(255, 122, 61, .18);
  border-color: var(--orange);
}

.field-help,
.file-selection {
  margin: .55rem 0 0;
  color: var(--ink-soft);
  font-size: .85rem;
  line-height: 1.6;
}

.file-selection {
  padding: .7rem .85rem;
  border-radius: 0;
  background: var(--cream);
}

.file-selection[data-valid="true"] {
  color: var(--forest);
  background: rgba(25, 105, 90, .1);
}

.consent-row {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  margin: 1.4rem 0;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.6;
}

.consent-row input {
  margin-top: .3rem;
}

.admin-result-card {
  border-color: rgba(25, 105, 90, .28);
}

.admin-result-card h2 {
  margin: .35rem 0 1.2rem;
  font-size: 1.8rem;
}

.success-kicker {
  color: var(--forest);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.admin-result-card dl {
  margin: 0;
}

.admin-result-card dl div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}

.admin-result-card dt {
  color: var(--ink-soft);
}

.admin-result-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.published-link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .6rem;
  margin-bottom: .8rem;
}

.published-link-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.published-link-list > section {
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.published-link-list .field-label { margin-top: 0; }
.published-link-list .button-block { margin-top: 0; }
.published-private-link { border-left: 4px solid var(--forest) !important; }

.admin-security-note {
  grid-column: 1;
  grid-row: 2 / span 2;
  align-self: start;
  max-width: 38rem;
  padding: 1.2rem 1.4rem;
  border-left: 3px solid var(--orange);
  background: rgba(255, 255, 255, .55);
  color: var(--ink-soft);
}

.admin-security-note strong {
  color: var(--ink);
}

.admin-security-note p {
  margin: .4rem 0 0;
  line-height: 1.7;
}

@media (max-width: 800px) {
  .admin-config-main {
    grid-template-columns: 1fr;
  }

  .admin-config-intro,
  .admin-import-card,
  .admin-result-card,
  .admin-security-note {
    grid-column: 1;
    grid-row: auto;
  }

  .admin-config-intro {
    padding-top: 0;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

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

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-140%);
  border-radius: 0;
  color: white;
  background: var(--forest);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  color: white;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.brand-mark::before {
  width: 17px;
  height: 17px;
  content: "";
  transform: rotate(45deg);
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-left-color: transparent;
  border-radius: 2px 8px 2px 8px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

.brand-mark img[hidden] {
  display: none;
}

.brand-mark.has-logo {
  overflow: hidden;
  padding: 4px;
  background: rgba(255, 255, 255, 0.94);
}

.brand-mark.has-logo::before {
  display: none;
}

.brand-copy {
  display: grid;
  line-height: 1.25;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: 0.08em;
}

.brand-copy small {
  opacity: 0.68;
  font-size: 10px;
  letter-spacing: 0.17em;
}

.mode-badge {
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.mode-badge[data-mode="demo"]::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  content: "";
  border-radius: 50%;
  background: #ffc76a;
}

.hero {
  position: relative;
  min-height: 750px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 72% 28%, rgba(116, 205, 156, 0.32), transparent 25%),
    linear-gradient(130deg, #10372a 0%, #19533d 56%, #10382c 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero-cover-media {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.hero-cover-media[hidden] {
  display: none;
}

.hero-cover-image,
.hero-cover-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
}

.hero-cover-image {
  object-fit: cover;
}

.hero-cover-overlay {
  background: linear-gradient(105deg, rgba(10, 43, 32, 0.96) 0%, rgba(16, 55, 42, 0.82) 52%, rgba(10, 43, 32, 0.58) 100%);
}

.hero::before {
  top: 10%;
  right: -12%;
  width: 690px;
  height: 690px;
  opacity: 0.38;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 47% 53% 62% 38% / 44% 39% 61% 56%;
  box-shadow:
    0 0 0 48px rgba(255, 255, 255, 0.035),
    0 0 0 98px rgba(255, 255, 255, 0.028),
    0 0 0 152px rgba(255, 255, 255, 0.02);
  transform: rotate(-17deg);
}

.hero::after {
  right: 9%;
  bottom: -140px;
  width: 500px;
  height: 420px;
  opacity: 0.22;
  border-radius: 55% 45% 0 0;
  background: linear-gradient(145deg, #8dd0aa, transparent 65%);
  transform: rotate(-8deg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.72fr);
  gap: 72px;
  align-items: center;
  min-height: 750px;
  padding-top: 110px;
  padding-bottom: 76px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #a7dfbd;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 770;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-summary {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 22px;
  cursor: pointer;
  transition: 180ms ease;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.text-link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(243, 111, 61, 0.34);
  outline-offset: 2px;
}

.button-primary {
  color: white;
  background: var(--orange);
  box-shadow: 0 12px 28px rgba(243, 111, 61, 0.27);
}

.button-primary:hover {
  background: var(--orange-deep);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: white;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(10px);
}

.button-forest {
  color: white;
  background: var(--forest);
}

.button-block {
  width: 100%;
}

.button[disabled] {
  cursor: wait;
  transform: none;
  opacity: 0.68;
}

.hero-facts {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(18px);
}

.hero-facts::before {
  position: absolute;
  top: -10px;
  right: 36px;
  width: 54px;
  height: 20px;
  content: "";
  border-radius: 50%;
  background: rgba(128, 216, 166, 0.5);
  filter: blur(15px);
}

.fact-main {
  padding-bottom: 23px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.fact-label {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.fact-main strong {
  display: block;
  font-size: 27px;
  line-height: 1.3;
}

.fact-main [data-location] {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.navigation-link {
  display: inline-flex;
  margin-top: 13px;
  padding: 7px 12px;
  transition: 160ms ease;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  color: white;
  background: rgba(255, 255, 255, 0.09);
  font-size: 12px;
  font-weight: 700;
  align-items: center;
}

.navigation-link::after {
  margin-left: 6px;
  content: "↗";
}

.navigation-link:hover {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.16);
}

.navigation-link[hidden] {
  display: none;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 21px 16px;
  padding-top: 23px;
}

.fact-item span {
  display: block;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.fact-item strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
}

.fact-fee {
  display: grid;
  gap: 3px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.fact-fee[hidden] {
  display: none;
}

.fact-fee span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.fact-fee strong {
  font-size: 17px;
}

.fact-fee small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 11px;
  line-height: 1.55;
}

.trust-strip {
  position: relative;
  z-index: 4;
  margin-top: -33px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.trust-item {
  display: flex;
  gap: 14px;
  min-height: 92px;
  padding: 20px 24px;
  align-items: center;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

.trust-number {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 29px;
  font-style: italic;
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item strong {
  font-size: 14px;
}

.trust-item span {
  color: var(--ink-soft);
  font-size: 12px;
}

.section {
  padding: 96px 0;
}

.section-tint {
  background: var(--mint-2);
}

.section-dark {
  color: white;
  background: var(--forest);
}

.section-heading {
  display: flex;
  gap: 30px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 44px;
}

.section-kicker {
  margin: 0 0 9px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.section h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 49px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.section-heading > p:last-child {
  max-width: 430px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.section-dark .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.65);
}

.details-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.timeline,
.gear-panel,
.safety-panel,
.form-card,
.status-card,
.dashboard-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.timeline {
  padding: 32px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 22px;
  padding: 0 0 27px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:not(:last-child)::after {
  position: absolute;
  top: 30px;
  bottom: 4px;
  left: 65px;
  width: 1px;
  content: "";
  background: var(--line);
}

.timeline-time {
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
}

.timeline-dot {
  position: absolute;
  top: 6px;
  left: 61px;
  z-index: 2;
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--forest-2);
  box-shadow: 0 0 0 1px var(--forest-2);
}

.timeline-content {
  padding-left: 7px;
}

.timeline-content strong {
  display: block;
  margin-bottom: 3px;
  font-size: 17px;
}

.timeline-content span {
  color: var(--ink-soft);
  font-size: 13px;
}

.side-stack {
  display: grid;
  gap: 24px;
}

.gear-panel,
.safety-panel {
  padding: 30px;
}

.panel-title {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 0 0 20px;
  font-size: 19px;
}

.panel-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 0;
  color: var(--forest);
  background: var(--mint);
  font-size: 15px;
  font-weight: 800;
}

.check-list,
.notice-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.notice-list li {
  position: relative;
  padding-left: 25px;
  color: var(--ink-soft);
  font-size: 14px;
}

.check-list li::before {
  position: absolute;
  top: 3px;
  left: 0;
  display: grid;
  width: 16px;
  height: 16px;
  content: "✓";
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--forest-2);
  font-size: 10px;
  font-weight: 900;
}

.notice-list {
  gap: 14px;
}

.notice-list li::before {
  position: absolute;
  top: 6px;
  left: 4px;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--orange);
}

.signup-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: 55px;
  align-items: start;
}

.signup-copy {
  position: sticky;
  top: 28px;
}

.signup-copy h2 {
  margin-bottom: 18px;
}

.signup-copy > p {
  color: rgba(255, 255, 255, 0.67);
}

.signup-mini-facts {
  display: grid;
  gap: 13px;
  margin-top: 30px;
}

.signup-mini-fact {
  display: flex;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  align-items: flex-start;
}

.signup-mini-fact span:first-child {
  color: #94d8af;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.signup-mini-fact strong,
.signup-mini-fact small {
  display: block;
}

.signup-mini-fact strong {
  font-size: 15px;
}

.signup-mini-fact small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.54);
}

.form-card {
  padding: 34px;
  color: var(--ink);
}

.form-card-head {
  margin-bottom: 25px;
}

.form-card-head h3 {
  margin: 0 0 5px;
  font-size: 24px;
}

.form-card-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

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

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

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field-legend {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.required::after {
  margin-left: 3px;
  content: "*";
  color: var(--orange);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 49px;
  padding: 11px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  border: 1px solid rgba(21, 49, 40, 0.17);
  border-radius: var(--radius-sm);
  color: var(--ink);
  outline: 0;
  background: #fff;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #a5aea9;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 4px rgba(34, 106, 78, 0.09);
}

.field-hint {
  color: #7a8983;
  font-size: 11px;
}

.consent-stack {
  display: grid;
  gap: 13px;
  margin: 25px 0 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.checkbox-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.checkbox-row input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--forest-2);
}

.text-link {
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  border: 0;
  color: var(--forest-2);
  background: none;
  text-underline-offset: 3px;
}

.form-alert {
  display: none;
  margin-bottom: 15px;
  padding: 11px 14px;
  border-radius: 0;
  color: var(--danger);
  background: #fff0ee;
  font-size: 13px;
}

.signup-security {
  display: grid;
  gap: 8px;
  margin: 0 0 15px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #f7faf8;
}

.signup-security[hidden] {
  display: none;
}

.signup-security p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.form-alert.is-visible {
  display: block;
}

.form-footnote {
  margin: 12px 0 0;
  text-align: center;
  color: #83908b;
  font-size: 11px;
}

.site-footer {
  padding: 33px 0 88px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--cream);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-brand {
  display: grid;
  gap: 2px;
}

.footer-brand small {
  opacity: .66;
  font-size: 9px;
  letter-spacing: .14em;
}

.footer-links a {
  text-decoration: none;
}

.sticky-cta {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 -8px 25px rgba(21, 49, 40, 0.08);
  backdrop-filter: blur(14px);
}

.dialog-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  padding: 20px;
  overflow-y: auto;
  background: rgba(9, 27, 21, 0.7);
  place-items: center;
  backdrop-filter: blur(8px);
}

.dialog-backdrop.is-open {
  display: grid;
}

.dialog {
  position: relative;
  width: min(100%, 540px);
  max-height: min(780px, calc(100vh - 40px));
  padding: 34px;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  cursor: pointer;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: var(--mint-2);
  place-items: center;
}

.dialog h2 {
  margin: 0 45px 13px 0;
  font-size: 28px;
}

.dialog h3 {
  margin: 24px 0 8px;
  font-size: 15px;
}

.dialog p,
.dialog li {
  color: var(--ink-soft);
  font-size: 13px;
}

.dialog ul {
  padding-left: 19px;
}

.success-mark {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 20px;
  border-radius: 0;
  color: white;
  background: var(--success);
  box-shadow: 0 12px 26px rgba(22, 112, 73, 0.22);
  font-size: 28px;
  font-weight: 900;
  place-items: center;
}

.code-card {
  margin: 22px 0;
  padding: 22px;
  text-align: center;
  border: 1px dashed rgba(21, 49, 40, 0.25);
  border-radius: var(--radius-md);
  background: var(--mint-2);
}

.code-card span {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
}

.code-card strong {
  display: block;
  margin-top: 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 30px;
  letter-spacing: 0.16em;
}

.device-credential-status {
  margin: -8px 0 20px;
  padding: 11px 13px;
  border-radius: 0;
  color: var(--ink-soft);
  background: var(--cream);
  font-size: 12px !important;
  line-height: 1.55;
}

.device-credential-status[data-ready="true"] {
  color: var(--forest);
  background: var(--mint-2);
}

.payment-disclosure {
  margin: 4px 0 12px;
  padding: 18px;
  border: 1px solid rgba(243, 111, 61, 0.42);
  border-radius: 0;
  background: #fff8ef;
  color: var(--ink);
}

.payment-disclosure-head,
.payment-amount-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.payment-disclosure-head span,
.payment-step {
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.payment-disclosure-head strong { font-size: 24px; color: var(--orange); }
.payment-disclosure dl { margin: 14px 0; }
.payment-disclosure dl div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(23,79,58,.12); }
.payment-disclosure dt { color: var(--soft); font-size: 13px; }
.payment-disclosure dd { margin: 0; font-size: 13px; line-height: 1.65; }
.payment-disclosure > p { margin: 8px 0 0; font-size: 12px; color: var(--soft); }

.payment-dialog { max-width: 590px; max-height: min(90vh, 860px); overflow-y: auto; }
.payment-amount-card { margin: 18px 0; padding: 18px; border-radius: 0; background: var(--forest); color: white; flex-wrap: wrap; }
.payment-code-card { margin: 16px 0; }
.payment-code-card strong { font-size: 24px; }
.payment-amount-card strong { font-size: 30px; }
.payment-amount-card small { width: 100%; color: rgba(255,255,255,.76); }
.payment-qr { display: block; width: min(76vw, 290px); aspect-ratio: 1; object-fit: contain; margin: 0 auto; border: 1px solid var(--line); border-radius: 0; background: white; }
.payment-qr-tip, .payment-note, .payment-verification-notice { color: var(--soft); font-size: 12px !important; text-align: center; }
.payment-note { padding: 10px 12px; border-radius: 0; background: var(--cream); color: var(--ink); }
.payment-waiting { margin: 18px 0; padding: 18px; border-radius: 0; background: var(--mint); color: var(--forest); }
.payment-waiting p { margin-bottom: 0; }
.admin-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-row-actions .button { min-height: 38px; padding: 8px 12px; font-size: 12px; }
.admin-row-actions > input[type="text"] { width: 100%; min-width: 190px; }
.admin-confirm-check { display: flex; align-items: flex-start; gap: 7px; width: 100%; font-size: 12px; line-height: 1.45; }
.admin-confirm-check input { margin-top: 2px; }
.payment-admin-page .admin-config-intro h1 { font-size: clamp(42px, 4vw, 56px); }

@media (max-width: 640px) {
  .payment-disclosure dl div { grid-template-columns: 1fr; gap: 2px; }
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* 签到页 */
.simple-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 8%, rgba(112, 192, 145, 0.18), transparent 26%),
    var(--cream);
}

.simple-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.simple-header .nav {
  min-height: 68px;
}

.simple-header .brand {
  color: var(--forest);
}

.simple-header .brand-mark {
  border-color: rgba(21, 79, 58, 0.16);
  background: var(--mint-2);
}

.simple-header .mode-badge {
  border-color: var(--line);
  color: var(--ink-soft);
  background: white;
}

.checkin-main {
  display: grid;
  min-height: calc(100vh - 69px);
  padding: 55px 0 80px;
  place-items: start center;
}

.checkin-wrap {
  width: min(100%, 570px);
}

.checkin-intro {
  margin-bottom: 24px;
  text-align: center;
}

.checkin-intro .section-kicker {
  margin-bottom: 7px;
}

.checkin-intro h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.checkin-intro p {
  margin: 12px auto 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.checkin-card {
  padding: 32px;
}

.checkin-event {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  margin-bottom: 26px;
  padding: 15px;
  border-radius: var(--radius-md);
  background: var(--mint-2);
  align-items: center;
}

.date-tile {
  display: grid;
  width: 54px;
  height: 58px;
  border-radius: 0;
  color: white;
  background: var(--forest);
  line-height: 1.05;
  place-items: center;
}

.date-tile strong {
  font-size: 22px;
}

.date-tile span {
  font-size: 10px;
}

.checkin-event strong,
.checkin-event small {
  display: block;
}

.checkin-event small {
  color: var(--ink-soft);
}

.checkin-form {
  display: grid;
  gap: 18px;
}

.device-checkin-panel,
.manual-checkin-panel {
  display: grid;
  gap: 18px;
}

.device-checkin-panel[hidden],
.manual-checkin-panel[hidden],
.device-identity[hidden],
.device-actions [hidden] {
  display: none;
}

.device-checkin-panel {
  padding: 20px;
  border: 1px solid rgba(34, 106, 78, 0.16);
  border-radius: var(--radius-md);
  background: var(--mint-2);
}

.device-status-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: start;
}

.device-status-head strong,
.device-status-head p {
  display: block;
}

.device-status-head strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 16px;
}

.device-status-head p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.device-status-mark {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 0;
  color: white;
  background: var(--forest-2);
  font-weight: 900;
  place-items: center;
}

.device-identity {
  padding: 17px;
  text-align: center;
  border: 1px dashed rgba(21, 79, 58, 0.24);
  border-radius: 0;
  background: var(--paper);
}

.device-identity span,
.device-identity strong,
.device-identity small {
  display: block;
}

.device-identity span {
  color: var(--forest-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.device-identity strong {
  margin-top: 7px;
  font-size: 24px;
}

.device-identity small {
  margin-top: 3px;
  color: var(--ink-soft);
}

.device-actions {
  display: grid;
  gap: 12px;
  text-align: center;
}

.manual-checkin-label {
  display: flex;
  gap: 12px;
  margin: 1px 0;
  color: var(--ink-soft);
  font-size: 11px;
  align-items: center;
}

.manual-checkin-label::before,
.manual-checkin-label::after {
  height: 1px;
  content: "";
  background: var(--line);
  flex: 1;
}

.code-input {
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 19px !important;
  letter-spacing: 0.12em;
}

.checkin-help {
  margin: 18px 0 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 12px;
}

.qr-display-mode .checkin-wrap {
  width: min(100%, 1120px);
}

.qr-display-card {
  display: grid;
  gap: 22px;
  padding: 38px;
  text-align: center;
}

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

.qr-display-copy h1 {
  margin: 5px 0 12px;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.15;
}

.qr-display-copy p {
  margin: 6px auto;
  color: var(--ink-soft);
}

.qr-display-copy strong {
  color: var(--ink);
  font-size: 18px;
}

.onsite-dual-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.onsite-dual-board.is-single {
  grid-template-columns: minmax(0, 540px);
  justify-content: center;
}

.onsite-qr-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--cream);
}

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

.onsite-qr-card h2,
.onsite-qr-card p {
  margin: 0;
}

.onsite-qr-card p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.onsite-step {
  justify-self: center;
  padding: 6px 11px;
  border-radius: 0;
  color: var(--forest);
  background: var(--mint-2);
  font-size: 12px;
  font-weight: 800;
}

.onsite-step-payment {
  color: #8a411f;
  background: #fff0e7;
}

.payment-qr-shell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.onsite-payment-details {
  margin: 0;
  text-align: left;
}

.onsite-payment-details div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.onsite-payment-details dt {
  color: var(--ink-soft);
  font-size: 12px;
}

.onsite-payment-details dd {
  margin: 0;
  font-size: 13px;
  font-weight: 750;
}

.qr-code-shell {
  width: min(100%, 390px);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: white;
  box-shadow: 0 18px 55px rgba(15, 49, 37, 0.1);
}

.qr-code {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
}

.qr-code svg {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-target-url {
  max-width: 620px;
  margin: -6px auto 0;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.qr-actions .button {
  min-width: 145px;
}

.qr-display-note {
  margin: 0;
  padding: 13px 16px;
  border-radius: 0;
  color: var(--ink-soft);
  background: var(--mint-2);
  font-size: 12px;
  line-height: 1.6;
}

.checkin-result {
  display: none;
  padding: 20px;
  text-align: center;
}

.checkin-result.is-visible {
  display: block;
}

.checkin-result .success-mark {
  margin-right: auto;
  margin-left: auto;
}

.checkin-result h2 {
  margin: 0;
  font-size: 27px;
}

.checkin-result p {
  margin: 8px 0 20px;
  color: var(--ink-soft);
}

.checkin-result-actions {
  display: grid;
  gap: 10px;
}

.onsite-fee-guidance {
  margin: 0 0 18px;
  padding: 15px;
  border: 1px solid rgba(243, 111, 61, 0.26);
  border-radius: 0;
  color: var(--ink);
  background: #fff3eb;
  text-align: left;
}

.onsite-fee-guidance[hidden] {
  display: none;
}

.onsite-fee-guidance p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

/* 参与者实时到场页：仅显示脱敏汇总 */
.live-page {
  background:
    radial-gradient(circle at 86% 8%, rgba(112, 192, 145, 0.22), transparent 28%),
    linear-gradient(180deg, #f4f8f2 0%, var(--cream) 62%);
}

.live-connection {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink-soft);
  background: white;
  font-size: 12px;
}

.live-connection span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0a33f;
  box-shadow: 0 0 0 4px rgba(208, 163, 63, 0.12);
}

.live-connection[data-state="online"] span {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 112, 73, 0.12);
}

.live-connection[data-state="error"] span {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(185, 55, 55, 0.12);
}

.live-connection[data-state="paused"] span {
  background: #87928e;
  box-shadow: 0 0 0 4px rgba(82, 100, 93, 0.12);
}

.live-main {
  min-height: calc(100vh - 69px);
  padding: 52px 0 68px;
}

.live-shell {
  width: min(calc(100% - 40px), 1040px);
}

.live-heading {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.live-heading .section-kicker {
  margin-bottom: 7px;
}

.live-heading h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.live-heading p,
.live-heading small {
  display: block;
  margin: 10px 0 0;
}

.live-heading p {
  font-size: 17px;
}

.live-heading small {
  color: var(--ink-soft);
  font-size: 13px;
}

.live-overview {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 38px 48px;
  border: 1px solid rgba(21, 79, 58, 0.12);
  border-radius: var(--radius-lg);
  color: white;
  background:
    radial-gradient(circle at 92% 16%, rgba(130, 215, 168, 0.25), transparent 30%),
    linear-gradient(135deg, #123f30, #1d6047);
  box-shadow: var(--shadow-lg);
}

.live-ring {
  position: relative;
  display: grid;
  width: 240px;
  height: 240px;
  padding: 18px;
  border-radius: 50%;
  background: conic-gradient(var(--orange) calc(var(--progress) * 1%), rgba(255, 255, 255, 0.12) 0);
  place-items: center;
}

.live-ring::after {
  position: absolute;
  content: "";
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.live-ring > div {
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  text-align: center;
  border-radius: 50%;
  background: #174f3a;
  place-content: center;
}

.live-ring span,
.live-ring small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.live-ring strong {
  display: block;
  margin: 2px 0;
  font-size: 50px;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.live-ring small b {
  color: white;
}

.live-overview-copy h2 {
  max-width: 560px;
  margin: 6px 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.live-overview-copy > p:not(.live-overline) {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.live-overline {
  margin: 0;
  color: #a7dfbd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.live-progress {
  margin-top: 30px;
}

.live-progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.live-progress-label strong {
  color: white;
}

.live-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.13);
}

.live-progress-track span {
  display: block;
  width: calc(var(--capacity-progress) * 1%);
  height: 100%;
  transition: width 380ms ease;
  border-radius: inherit;
  background: linear-gradient(90deg, #f36f3d, #ff9a70);
}

.live-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 18px;
}

.live-metric-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.live-metric-card span,
.live-metric-card small {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
}

.live-metric-card strong {
  display: block;
  margin: 3px 0 2px;
  font-size: 36px;
  line-height: 1.15;
}

.live-metric-primary {
  color: white;
  background: var(--orange);
}

.live-metric-primary span,
.live-metric-primary small {
  color: rgba(255, 255, 255, 0.75);
}

.live-foot-card {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(34, 106, 78, 0.15);
  border-radius: var(--radius-md);
  background: var(--mint-2);
}

.live-foot-card strong,
.live-foot-card p {
  display: block;
  margin: 0;
}

.live-foot-card p {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
}

.live-refresh-area {
  display: flex;
  flex: 0 0 auto;
  gap: 13px;
  align-items: center;
}

.live-refresh-area > span {
  color: var(--ink-soft);
  font-size: 11px;
}

.live-refresh-area .button {
  min-height: 42px;
  padding: 0 18px;
  font-size: 13px;
}

.live-error {
  margin: 16px 0 0;
}

.live-refresh-note {
  margin: 14px 0 0;
  text-align: center;
  color: #7c8b85;
  font-size: 11px;
}

.live-source-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(23, 79, 58, 0.12);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.88);
}

.live-source-card h2 { margin: 0.2rem 0 0; font-size: 1.15rem; }

.live-source-breakdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.live-source-breakdown > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0;
  background: #edf7f1;
  color: #174f3a;
  font-size: 0.84rem;
}

.live-source-breakdown strong { font-size: 0.92rem; }

@media (max-width: 640px) {
  .live-source-card { align-items: flex-start; flex-direction: column; }
  .live-source-breakdown { justify-content: flex-start; }
}

.hub-preview {
  margin: 1rem 0;
  overflow-x: auto;
  border: 1px solid rgba(23, 79, 58, 0.14);
  border-radius: 0;
  background: #fbfdfb;
}

.hub-preview > strong,
.hub-preview > div { display: block; padding: 0.75rem 0.9rem 0; }
.hub-preview > div { color: #9a4e2a; font-size: 0.82rem; }
.hub-preview table { width: 100%; border-collapse: collapse; min-width: 620px; margin-top: 0.7rem; }
.hub-preview th,
.hub-preview td { padding: 0.65rem 0.75rem; border-top: 1px solid #e3ebe6; text-align: left; font-size: 0.84rem; }
.hub-preview th { color: #174f3a; background: #edf7f1; }

.live-screen-mode .live-shell {
  width: min(calc(100% - 64px), 1320px);
}

.live-screen-mode .live-overview {
  grid-template-columns: 330px minmax(0, 1fr);
}

.live-screen-mode .live-ring {
  width: 310px;
  height: 310px;
}

.live-screen-mode .live-ring strong {
  font-size: 68px;
}

.live-screen-mode .live-metric-card strong {
  font-size: 46px;
}

/* 运营演示看板 */
.dashboard-page {
  min-height: 100vh;
  background: #f1f4ef;
}

.dashboard-main {
  padding: 42px 0 80px;
}

.dashboard-head {
  display: flex;
  gap: 25px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.dashboard-head h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.04em;
}

.dashboard-head p {
  margin: 7px 0 0;
  color: var(--ink-soft);
}

.demo-warning {
  margin-bottom: 22px;
  padding: 13px 16px;
  border: 1px solid #efd9a9;
  border-radius: 0;
  color: #6d5727;
  background: #fff8e7;
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.metric-card span {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
}

.metric-card strong {
  display: block;
  margin-top: 5px;
  font-size: 34px;
  line-height: 1.15;
}

.metric-card small {
  color: #82908a;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 20px;
}

.dashboard-card {
  min-width: 0;
  padding: 25px;
}

.dashboard-card-head {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dashboard-card h2 {
  margin: 0;
  font-size: 19px;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table th {
  color: var(--ink-soft);
  font-weight: 600;
  background: var(--mint-2);
}

.status-pill {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 0;
  color: #7c6324;
  background: #fff4d4;
}

.status-pill.is-checked {
  color: var(--success);
  background: #e3f5eb;
}

.empty-state {
  padding: 46px 20px;
  text-align: center;
  color: var(--ink-soft);
}

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

.reminder-item {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--mint-2);
}

.reminder-item span,
.reminder-item strong,
.reminder-item small {
  display: block;
}

.reminder-item span {
  color: var(--orange-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.reminder-item strong {
  margin-top: 3px;
  font-size: 13px;
}

.reminder-item small {
  margin-top: 3px;
  color: var(--ink-soft);
}

.report-output {
  min-height: 200px;
  margin-top: 16px;
  padding: 18px;
  white-space: pre-wrap;
  border-radius: 0;
  color: var(--ink-soft);
  background: var(--mint-2);
  font-size: 13px;
}

@media (max-width: 860px) {
  .hero-inner,
  .details-grid,
  .signup-layout,
  .dashboard-grid,
  .live-overview {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 36px;
    padding-top: 120px;
  }

  .hero-facts {
    max-width: 520px;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .signup-copy {
    position: static;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .live-ring {
    margin: 0 auto;
  }

  .live-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 28px), var(--content));
  }

  .nav {
    min-height: 68px;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 85px;
  }

  .hero h1 {
    font-size: 45px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .hero-actions .button {
    flex: 1;
  }

  .hero-facts {
    padding: 23px;
  }

  .fact-main strong {
    font-size: 23px;
  }

  .trust-strip {
    margin-top: -24px;
  }

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

  .trust-item {
    min-height: 74px;
    padding: 15px 20px;
  }

  .trust-item + .trust-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding: 70px 0;
  }

  .section-heading {
    gap: 14px;
    margin-bottom: 30px;
  }

  .section h2 {
    font-size: 34px;
  }

  .timeline,
  .gear-panel,
  .safety-panel,
  .form-card,
  .checkin-card,
  .dashboard-card {
    padding: 22px;
    border-radius: var(--radius-md);
  }

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

  .field-full {
    grid-column: auto;
  }

  .footer-inner,
  .dashboard-head,
  .live-heading,
  .live-foot-card {
    display: grid;
  }

  .sticky-cta {
    display: block;
  }

  .dialog {
    padding: 26px 22px;
    border-radius: var(--radius-md);
  }

  .dialog-actions {
    grid-template-columns: 1fr;
  }

  .code-card strong {
    font-size: 25px;
  }

  .checkin-main {
    padding-top: 38px;
  }

  .qr-display-card {
    padding: 24px;
  }

  .qr-actions {
    display: grid;
  }

  .qr-actions .button {
    width: 100%;
  }

  .onsite-dual-board {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    gap: 10px;
  }

  .metric-card {
    padding: 18px;
  }

  .metric-card strong {
    font-size: 28px;
  }

  .live-main {
    padding-top: 36px;
  }

  .live-shell {
    width: min(calc(100% - 28px), 1040px);
  }

  .live-heading {
    align-items: start;
  }

  .live-heading .button {
    width: 100%;
  }

  .live-overview {
    gap: 27px;
    padding: 27px 22px;
  }

  .live-ring,
  .live-screen-mode .live-ring {
    width: 215px;
    height: 215px;
  }

  .live-ring strong,
  .live-screen-mode .live-ring strong {
    font-size: 46px;
  }

  .live-metrics {
    gap: 10px;
  }

  .live-metric-card {
    padding: 17px;
  }

  .live-metric-card strong,
  .live-screen-mode .live-metric-card strong {
    font-size: 30px;
  }

  .live-refresh-area {
    display: grid;
  }
}

@media print {
  body.qr-display-mode {
    background: white;
  }

  body.qr-display-mode .simple-header,
  body.qr-display-mode .qr-actions,
  body.qr-display-mode #qr-alert {
    display: none !important;
  }

  body.qr-display-mode .checkin-main {
    min-height: auto;
    padding: 0;
  }

  body.qr-display-mode .checkin-wrap {
    width: 100%;
  }

  body.qr-display-mode .qr-display-card {
    border: 0;
    box-shadow: none;
  }

  body.qr-display-mode .qr-code-shell {
    width: 300px;
    box-shadow: none;
  }

  body.qr-display-mode .onsite-dual-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.qr-display-mode .onsite-dual-board.is-single {
    grid-template-columns: minmax(0, 540px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 活动方现场运营台：包含私有名单，不与参与者匿名看板共用组件。 */
.staff-page {
  min-height: 100vh;
  background: #f2f5f1;
}

.staff-main { padding: 42px 0 80px; }
.staff-shell { width: min(calc(100% - 32px), 1380px); margin: 0 auto; }

.staff-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(32px, 7vw, 100px);
  align-items: center;
  min-height: calc(100vh - 190px);
}

.staff-login-copy { max-width: 650px; }
.staff-login-copy h1 { margin: 10px 0 18px; font-size: clamp(48px, 8vw, 94px); line-height: .92; letter-spacing: -.065em; }
.staff-login-copy > p:last-child { max-width: 600px; color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
.staff-login-card { padding: clamp(24px, 5vw, 42px); border: 1px solid var(--line); background: white; box-shadow: var(--shadow-sm); }
.staff-login-card input:not([type="checkbox"]),
.staff-filters input,
.staff-filters select,
.staff-operation-dialog textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: white;
  color: var(--ink);
  font: inherit;
}
.staff-login-card input:not([type="checkbox"]) { min-height: 48px; padding: 0 13px; }
.staff-login-card input:not([type="checkbox"]):focus,
.staff-filters input:focus,
.staff-filters select:focus,
.staff-operation-dialog textarea:focus { outline: 3px solid rgba(243, 111, 61, .15); border-color: var(--orange); }
.staff-demo-hint { padding: 10px 12px; color: #6d5727; background: #fff5d8; font-size: 13px; }
.staff-privacy-confirm { margin-bottom: 18px; }
.staff-login-card .consent-row input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
}

.staff-dashboard-head,
.staff-roster-head,
.staff-head-actions,
.staff-filters,
.staff-row-actions {
  display: flex;
  align-items: center;
}
.staff-dashboard-head { justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.staff-dashboard-head > div:first-child { min-width: 0; }
.staff-dashboard-head h1 { margin: 4px 0 7px; overflow-wrap: anywhere; font-size: clamp(32px, 5vw, 58px); line-height: 1; letter-spacing: -.055em; }
.staff-dashboard-head p { margin: 0; color: var(--ink-soft); }
.staff-head-actions { flex-wrap: wrap; justify-content: flex-end; gap: 9px; }

.staff-boundary-note { display: flex; gap: 14px; margin-bottom: 18px; padding: 13px 16px; border: 1px solid #ead49f; background: #fff8e7; color: #6d5727; font-size: 13px; line-height: 1.6; }
.staff-boundary-note strong { flex: 0 0 auto; }

.staff-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.staff-metrics article { min-width: 0; padding: 19px; border: 1px solid var(--line); background: white; box-shadow: 0 8px 25px rgba(21,49,40,.04); }
.staff-metrics span,
.staff-metrics small { display: block; color: var(--ink-soft); }
.staff-metrics span { font-size: 12px; }
.staff-metrics strong { display: block; margin: 4px 0; color: var(--forest); font-size: clamp(23px, 3.2vw, 38px); font-variant-numeric: tabular-nums; line-height: 1.1; }
.staff-metrics small { font-size: 11px; }
.staff-metric-warn { border-left: 4px solid var(--orange) !important; }

.staff-visuals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.staff-visual-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 8px 25px rgba(21,49,40,.04);
}
.staff-visual-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.staff-visual-card > header span,
.staff-visual-card > header small {
  display: block;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}
.staff-visual-card > header small { letter-spacing: 0; text-align: right; }
.staff-visual-card h2 { margin: 4px 0 0; font-size: 18px; line-height: 1.2; }
.staff-donut { position: relative; display: grid; width: min(100%, 190px); margin: 0 auto; place-items: center; }
.staff-donut svg { display: block; width: 100%; aspect-ratio: 1; transform: rotate(-90deg); }
.staff-donut circle { fill: none; stroke-width: 10; }
.staff-donut-track { stroke: #e8eeeb; }
.staff-donut-value {
  stroke: var(--forest);
  stroke-dasharray: 0 100;
  stroke-linecap: butt;
  transition: stroke-dasharray .5s ease;
}
.staff-donut > div { position: absolute; display: grid; place-items: center; text-align: center; }
.staff-donut strong { color: var(--forest); font-size: clamp(28px, 3.1vw, 42px); font-variant-numeric: tabular-nums; line-height: 1; }
.staff-donut small { margin-top: 5px; color: var(--ink-soft); font-size: 11px; }
.staff-visual-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 14px; color: var(--ink-soft); font-size: 11px; }
.staff-visual-legend span { display: inline-flex; align-items: center; gap: 5px; }
.staff-visual-legend i { width: 9px; height: 9px; background: #dfe6e2; }
.staff-visual-legend .is-green { background: var(--forest); }
.staff-visual-legend .is-gray { background: #dfe6e2; }
.staff-visual-legend .is-orange { background: var(--orange); }
.staff-payment-rate { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 13px; }
.staff-payment-rate strong { color: var(--forest); font-size: clamp(34px, 4vw, 50px); font-variant-numeric: tabular-nums; line-height: 1; }
.staff-payment-rate span { color: var(--ink-soft); font-size: 12px; }
.staff-progress-track { height: 12px; overflow: hidden; background: #e8eeeb; }
.staff-progress-track > span { display: block; width: 0; height: 100%; background: var(--forest); transition: width .5s ease; }
.staff-payment-amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 24px 0 0; background: var(--line); }
.staff-payment-amounts > div { min-width: 0; padding: 13px; background: var(--mint-2); }
.staff-payment-amounts dt { color: var(--ink-soft); font-size: 10px; }
.staff-payment-amounts dd { margin: 4px 0 0; overflow-wrap: anywhere; color: var(--forest); font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; }
.staff-funnel { display: grid; gap: 13px; }
.staff-funnel p { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; color: var(--ink-soft); font-size: 11px; }
.staff-funnel p strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.staff-funnel i { display: block; height: 22px; overflow: hidden; background: #edf1ef; }
.staff-funnel b { display: block; width: 0; min-width: 0; height: 100%; background: var(--forest); transition: width .5s ease; }
.staff-funnel > div:nth-child(2) b { background: #5d897a; }
.staff-funnel > div:nth-child(3) b { background: var(--orange); }
.staff-trend-visual { grid-column: span 2; }
.staff-trend-chart { min-height: 190px; }
.staff-trend-chart svg { display: block; width: 100%; height: 210px; overflow: visible; }
.staff-trend-chart line { stroke: #dfe6e2; stroke-width: 1; vector-effect: non-scaling-stroke; }
.staff-trend-chart polyline { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; transition: points .45s ease; }
.staff-trend-checkin { stroke: var(--forest); }
.staff-trend-payment { stroke: var(--orange); }
.staff-trend-chart text { fill: var(--ink-soft); font-size: 10px; }
.staff-source-bars { display: grid; gap: 14px; }
.staff-source-bars > p { margin: 28px 0; color: var(--ink-soft); font-size: 12px; text-align: center; }
.staff-source-row p { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; font-size: 11px; }
.staff-source-row p span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-source-row p strong { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.staff-source-row i { display: block; height: 9px; background: #edf1ef; }
.staff-source-row b { display: block; min-width: 2px; height: 100%; background: var(--forest); }

.staff-roster-card { border: 1px solid var(--line); background: white; box-shadow: var(--shadow-sm); }
.staff-roster-head { justify-content: space-between; gap: 18px; padding: 20px; border-bottom: 1px solid var(--line); }
.staff-roster-head h2 { margin: 0 0 3px; font-size: 20px; }
.staff-roster-head p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.staff-filters { gap: 8px; }
.staff-filters input { min-width: 260px; height: 42px; padding: 0 12px; }
.staff-filters select { height: 42px; padding: 0 34px 0 12px; }
.staff-table-wrap { overflow-x: auto; }
.staff-table { width: 100%; min-width: 1040px; border-collapse: collapse; }
.staff-table th,
.staff-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 12px; }
.staff-table th { color: var(--ink-soft); background: var(--mint-2); font-size: 11px; letter-spacing: .04em; }
.staff-table td > strong,
.staff-table td > a,
.staff-table td > span,
.staff-table td > small { display: block; }
.staff-table td > strong { margin-bottom: 3px; font-size: 14px; }
.staff-table td > a { color: var(--forest); text-decoration: none; }
.staff-table td > small { margin-top: 5px; max-width: 220px; color: var(--ink-soft); white-space: normal; line-height: 1.5; }
.staff-row-actions { flex-wrap: wrap; gap: 6px; }
.staff-row-action { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 0; background: white; color: var(--forest); cursor: pointer; font: inherit; font-weight: 700; }
.staff-row-action.is-primary { border-color: var(--forest); background: var(--forest); color: white; }
.staff-row-action.is-danger { color: var(--danger); }
.staff-status { display: inline-flex !important; width: fit-content; padding: 5px 8px; background: #edf1ef; color: var(--ink-soft); font-weight: 800; }
.staff-status.is-success { background: #e3f5eb; color: var(--success); }
.staff-status.is-warning { background: #fff1d0; color: #7c6324; }
.staff-alert { margin-top: 14px; }

.staff-operation-dialog { width: min(calc(100% - 28px), 560px); max-height: calc(100dvh - 28px); padding: 0; overflow-y: auto; border: 0; border-radius: 0; color: var(--ink); background: white; box-shadow: var(--shadow-lg); }
.staff-operation-dialog::backdrop { background: rgba(9, 24, 18, .66); }
.staff-operation-dialog form { position: relative; padding: 30px; }
.staff-operation-dialog h2 { margin: 5px 0 7px; font-size: 28px; }
.staff-operation-dialog > form > p:not(.eyebrow) { color: var(--ink-soft); line-height: 1.6; }
.staff-operation-dialog textarea { min-height: 94px; padding: 12px; resize: vertical; }
.staff-operation-dialog .dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }

@media (max-width: 900px) {
  .staff-login { grid-template-columns: 1fr; min-height: 0; }
  .staff-login-copy { padding-top: 24px; }
  .staff-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-dashboard-head,
  .staff-roster-head { align-items: stretch; flex-direction: column; }
  .staff-head-actions { justify-content: flex-start; }
  .staff-filters { align-items: stretch; flex-direction: column; }
  .staff-filters input { min-width: 0; }
  .staff-visuals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-trend-visual { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .staff-roster-head { padding: 16px; }
  .staff-table-wrap { overflow: visible; }
  .staff-table,
  .staff-table tbody,
  .staff-table tr,
  .staff-table td { display: block; width: 100%; }
  .staff-table { min-width: 0; padding: 12px; background: #f2f5f1; }
  .staff-table thead { display: none; }
  .staff-table tbody { display: grid; gap: 12px; }
  .staff-table tr { border: 1px solid var(--line); background: white; box-shadow: 0 6px 18px rgba(21, 49, 40, .05); }
  .staff-table td { padding: 11px 13px; border-bottom: 1px solid var(--line); }
  .staff-table td:last-child { border-bottom: 0; }
  .staff-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
  }
  .staff-table td > small { max-width: none; }
  .staff-row-actions { align-items: stretch; }
  .staff-row-action { flex: 1 1 120px; }
}

@media (max-width: 520px) {
  .staff-main { padding-top: 26px; }
  .staff-shell { width: min(calc(100% - 20px), 1380px); }
  .staff-login-copy h1 { font-size: 50px; }
  .staff-login-card { padding: 20px; }
  .staff-metrics { gap: 8px; }
  .staff-metrics article { padding: 14px 12px; }
  .staff-metrics strong { font-size: clamp(21px, 6vw, 28px); }
  .staff-boundary-note { display: grid; }
  .staff-head-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; }
  .staff-head-actions .live-connection { grid-column: 1 / -1; }
  .staff-head-actions .button { width: 100%; min-width: 0; }
  .staff-operation-dialog form { padding: 25px 20px; }
  .staff-operation-dialog .dialog-actions { grid-template-columns: 1fr; }
  .staff-visuals { grid-template-columns: 1fr; gap: 8px; }
  .staff-visual-card,
  .staff-trend-visual { grid-column: auto; padding: 16px; }
  .staff-donut { width: 165px; }
  .staff-payment-rate { margin-top: 20px; }
  .staff-payment-amounts > div { padding: 11px; }
  .staff-trend-chart { min-height: 160px; }
  .staff-trend-chart svg { height: 170px; }
}
