:root {
  color-scheme: light;
  --ink: #201b16;
  --muted: #82776a;
  --line: #eadfce;
  --gold: #b98a3f;
  --gold-dark: #77511e;
  --paper: #f5efe6;
  --ok: #0f8a5f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 8% -10%, rgba(185, 138, 63, .22), transparent 280px),
    radial-gradient(circle at 95% 6%, rgba(90, 68, 39, .14), transparent 260px),
    linear-gradient(180deg, #f8f0e4 0, #f5efe6 390px),
    var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.checkinPage {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
}

.checkinPage .shell,
.checkinPage .hero,
.checkinPage .panel,
.checkinPage .form,
.checkinPage .field,
.checkinPage .mealReserve {
  min-width: 0;
  max-width: 100%;
}

.checkinPage img,
.checkinPage input,
.checkinPage select,
.checkinPage button {
  max-width: 100%;
}

.shell {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 10px 0 32px;
}

.hero {
  display: grid;
  gap: 18px;
  margin: 14px 14px 0;
  padding: 18px;
  color: var(--ink);
  background:
    linear-gradient(140deg, rgba(255, 253, 248, .98), rgba(247, 235, 216, .96));
  border: 1px solid rgba(185, 138, 63, .24);
  border-radius: 18px;
  box-shadow: 0 24px 54px rgba(73, 52, 26, .14);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -58px;
  top: -68px;
  border: 28px solid rgba(185, 138, 63, .12);
  border-radius: 50%;
}

.topLine {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #8c7b64;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.heroText {
  display: flex;
  min-height: 164px;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 6px 11px;
  border: 1px solid rgba(185, 138, 63, .32);
  border-radius: 999px;
  margin: 0 0 14px;
  color: var(--gold-dark);
  background: rgba(255, 250, 240, .82);
  font-weight: 600;
  font-size: 13px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(38px, 10vw, 68px);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: 0;
}

.thanks {
  margin-bottom: 6px;
  color: #5d4732;
  font-size: 19px;
  font-weight: 600;
}

.welcome {
  margin-bottom: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.infoStrip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.infoStrip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(185, 138, 63, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .66);
  color: #3c342b;
  font-size: 13px;
  line-height: 1.35;
}

.infoStrip b {
  color: var(--gold-dark);
  font-weight: 700;
}

.infoStrip .place {
  flex: 1 1 100%;
  justify-content: flex-start;
}

.panel {
  margin: 14px;
  padding: 16px;
  background: rgba(255, 253, 249, .92);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(73, 52, 26, .08);
}

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

.panelHead h2 {
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 700;
}

.panelHead p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.badge,
.export {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f4e8d4;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.liveSummary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.liveSummary div {
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(185, 138, 63, .18);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffefd, #f8f0e4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
}

.liveSummary span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.liveSummary strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
}

.mealNotice {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(185, 138, 63, .24);
  border-radius: 12px;
  background: #fff8ea;
  color: #82520f;
  font-weight: 650;
  line-height: 1.55;
}

.adminNote {
  background:
    linear-gradient(180deg, rgba(255, 250, 239, .96), rgba(247, 238, 220, .96));
}

.searchCard {
  padding: 14px;
  border: 1px solid rgba(185, 138, 63, .18);
  border-radius: 14px;
  background: #fffaf3;
}

.searchTitle {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}

.searchTitle strong {
  font-size: 18px;
}

.searchTitle span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.field {
  display: grid;
  gap: 7px;
  margin: 0 0 12px;
  font-weight: 650;
}

input,
select,
button {
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
  font: inherit;
}

input,
select {
  border: 1px solid var(--line);
  padding: 0 14px;
  background: #fffefa;
}

input:focus,
select:focus {
  outline: 2px solid rgba(215, 169, 77, .32);
  border-color: var(--gold);
}

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

.person {
  width: 100%;
  display: grid;
  gap: 3px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdfa;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.person:hover,
.person:focus-visible {
  border-color: #c59a43;
  box-shadow: 0 8px 18px rgba(67, 52, 31, .1);
  transform: translateY(-1px);
}

.person strong {
  font-size: 17px;
}

.person span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.form {
  margin-top: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf3;
}

.selected {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: #f6efe5;
}

.selected strong {
  font-size: 20px;
}

.selected span {
  color: var(--muted);
  line-height: 1.45;
}

.modalField textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fffefa;
  resize: vertical;
}

.modalField textarea:focus {
  outline: 2px solid rgba(215, 169, 77, .32);
  border-color: var(--gold);
}

.mealBox {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid #ecd59d;
  border-radius: 12px;
  background: #fffaf0;
}

.mealBox p {
  margin-bottom: 0;
  font-weight: 700;
}

.mealBox label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
}

.mealBox input {
  width: 22px;
  min-height: 22px;
  accent-color: var(--gold-dark);
}

.mealBox small {
  color: #a15b16;
  line-height: 1.5;
}

.primary {
  border: 0;
  background: linear-gradient(135deg, #c9974e, #7e551f);
  color: #fffdf8;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(140, 100, 36, .22);
}

.primary:disabled {
  cursor: wait;
  opacity: .7;
}

.secondary {
  border: 1px solid #c59a43;
  background: #fff7e9;
  color: #77511e;
  font-weight: 700;
  cursor: pointer;
}

.secondary:hover {
  background: #fcedd1;
}

.message {
  margin: 0 0 14px;
  padding: 16px 16px 16px 46px;
  border: 1px solid rgba(15, 138, 95, .22);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(236, 253, 245, .98), rgba(219, 249, 236, .98));
  color: var(--ok);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.5;
  box-shadow: 0 14px 30px rgba(15, 138, 95, .14);
  position: relative;
}

.message::before {
  content: "✓";
  position: absolute;
  left: 15px;
  top: 15px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--ok);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.message:focus {
  outline: 3px solid rgba(15, 138, 95, .2);
  outline-offset: 3px;
}

.message.error {
  border-color: rgba(159, 39, 27, .2);
  background: #fff1ee;
  color: #9f271b;
  box-shadow: 0 14px 30px rgba(159, 39, 27, .1);
}

.message.error::before {
  content: "!";
  background: #9f271b;
}

.compactHero {
  min-height: 0;
}

.modalMask {
  position: fixed;
  inset: 0;
  background: rgba(35, 25, 14, .42);
  backdrop-filter: blur(3px);
  z-index: 40;
}

.modal {
  position: fixed;
  inset: auto 50% 24px auto;
  transform: translateX(50%);
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  z-index: 41;
  padding: 18px;
  border: 1px solid rgba(185, 138, 63, .24);
  border-radius: 18px;
  background: rgba(255, 253, 249, .98);
  box-shadow: 0 28px 70px rgba(46, 33, 17, .24);
}

.modalHead {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.modalHead h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.modalSub {
  margin: 8px 0 0;
  color: var(--muted);
}

.iconButton {
  width: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff8ef;
  color: var(--gold-dark);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.modalActions {
  display: flex;
  gap: 10px;
  justify-content: end;
}

.modalActions .secondary,
.modalActions .primary {
  width: auto;
  min-height: 44px;
  padding: 0 18px;
}

.mealBadge {
  display: inline-flex;
  align-items: center;
  min-width: 62px;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.mealBadge--yes {
  border: 1px solid rgba(15, 138, 95, .18);
  background: rgba(15, 138, 95, .12);
  color: var(--ok);
}

.mealBadge--no {
  border: 1px solid rgba(150, 132, 108, .22);
  background: rgba(232, 224, 212, .7);
  color: #76695d;
}

.tableAction {
  min-height: 38px;
  padding: 0 12px;
}

.adminActions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.adminActions .secondary {
  width: auto;
  min-height: 42px;
  padding: 0 14px;
}

.tableWrap td {
  white-space: pre-line;
}

.hidden {
  display: none !important;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.stat {
  padding: 12px;
  border-radius: 8px;
  background: #f6efe5;
}

.stat strong {
  display: block;
  font-size: 26px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.tableWrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}

th {
  background: #f6efe5;
}

@media (max-width: 640px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 10px 10px 0;
    padding: 16px;
    border-radius: 10px;
  }

  .heroText {
    min-height: 170px;
  }

  .infoStrip span {
    min-height: 32px;
    font-size: 12px;
  }

  .infoStrip .place {
    border-radius: 12px;
  }

  .panelHead,
  .stats {
    grid-template-columns: 1fr;
    display: grid;
  }

  .modal {
    inset: auto 12px 12px 12px;
    transform: none;
    width: auto;
  }

  .modalActions {
    flex-direction: column-reverse;
  }

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

  .liveSummary strong {
    font-size: 29px;
  }

  .badge,
  .export {
    width: fit-content;
  }

  .panel {
    margin: 10px;
    padding: 14px;
  }

  h1 {
    font-size: clamp(34px, 12vw, 48px);
  }
}

/* Chengdu station · Hermes-inspired refinement */
:root {
  --ink: #062f48;
  --muted: #657c8a;
  --line: #d8e8ed;
  --gold: #078b9a;
  --gold-dark: #055e70;
  --paper: #f3f8fa;
  --ok: #0a8f70;
}

body {
  background:
    radial-gradient(circle at 10% 0, rgba(46, 181, 194, .18), transparent 340px),
    radial-gradient(circle at 98% 10%, rgba(7, 139, 154, .12), transparent 300px),
    linear-gradient(180deg, #eaf5f7 0, #f7fafb 470px),
    var(--paper);
}

.shell {
  width: min(760px, 100%);
  padding-top: 18px;
}

.hero {
  gap: 24px;
  padding: 24px;
  color: white;
  background: linear-gradient(140deg, rgba(6, 59, 90, .99), rgba(5, 95, 112, .96));
  border-color: rgba(255, 255, 255, .12);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(6, 59, 90, .24);
}

.hero::after {
  width: 230px;
  height: 230px;
  right: -80px;
  top: -94px;
  border: 42px solid rgba(87, 206, 214, .11);
}

.topLine {
  align-items: flex-start;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  font-weight: 650;
}

.brandMark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  letter-spacing: .06em;
}

.brandMark i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  color: #fff;
  font-family: Georgia, serif;
  font-style: normal;
  font-weight: 700;
}

.partnerLogos {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
}

.partnerLogo {
  display: block;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(0, 26, 42, .2);
}

.partnerLogo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partnerLogo--tuojing img {
  transform: scale(1.12);
}

.partnerLogo--aimeng img {
  transform: scale(1.04);
}

.stationTag {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.heroText {
  min-height: 180px;
}

.eyebrow {
  border-color: rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .08);
}

h1 {
  font-size: clamp(43px, 11vw, 72px);
  font-weight: 780;
  line-height: .98;
  letter-spacing: -.035em;
}

h1 span {
  color: #70d4da;
}

.welcome {
  color: rgba(255, 255, 255, .74);
  font-size: 16px;
}

.welcomeCard {
  display: grid;
  max-width: 590px;
  gap: 7px;
  margin-top: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-left: 4px solid #ffb52d;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 10px 24px rgba(0, 29, 46, .14);
}

.welcomeCard > strong {
  color: #fff;
  font-size: 18px;
}

.welcomeCard > span {
  color: rgba(255, 255, 255, .84);
  font-size: 14px;
  line-height: 1.7;
}

.welcomeCard > span strong {
  color: #ffe09a;
}

.infoStrip span {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .84);
}

.infoStrip b {
  color: #7ce0e5;
}

.panel {
  padding: 22px;
  background: rgba(255, 255, 255, .96);
  border-radius: 20px;
  box-shadow: 0 16px 42px rgba(6, 59, 90, .09);
}

.panelHead h2 {
  font-size: 24px;
}

.stepLabel {
  margin-bottom: 5px !important;
  color: #078b9a !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.formSectionHead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 12px;
  color: #063b5a;
}

.formSectionHead:first-child {
  margin-top: 0;
}

.formSectionHead span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  background: #e2f3f5;
  color: #055e70;
  font-size: 12px;
  font-weight: 800;
}

.formSectionHead strong {
  font-size: 16px;
}

input,
select,
button {
  border-radius: 10px;
}

input,
select {
  background: #fbfdfe;
}

input:focus,
select:focus {
  outline-color: rgba(7, 139, 154, .18);
  border-color: #078b9a;
}

.mealBox {
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mealOption {
  position: relative;
  display: grid !important;
  grid-template-columns: 24px 1fr 24px;
  gap: 12px !important;
  align-items: center;
  min-height: 74px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfe;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.mealOption:hover {
  border-color: #8bcbd2;
  transform: translateY(-1px);
}

.mealOption:has(input:checked) {
  border-color: #078b9a;
  background: #edf9fa;
}

.mealOption input {
  width: 22px;
  min-height: 22px;
  margin: 0;
  accent-color: #078b9a;
}

.mealOption span {
  display: grid;
  gap: 4px;
}

.mealOption strong {
  color: #063b5a;
  font-size: 15px;
}

.mealOption small {
  color: var(--muted);
  font-weight: 500;
}

.mealOption i::before {
  content: "+";
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #e7f1f4;
  color: #055e70;
  font-style: normal;
  font-weight: 700;
}

.mealOption:has(input:checked) i::before {
  content: "✓";
  background: #078b9a;
  color: #fff;
}

.fieldHint {
  margin-top: -2px;
  color: #657c8a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.verificationStatus {
  margin-top: -2px;
  color: #718691;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.55;
}

.verificationStatus[data-state="loading"] {
  color: #8a6500;
}

.verificationStatus[data-state="success"] {
  color: #08785f;
  font-weight: 700;
}

.verificationStatus[data-state="error"] {
  color: #b23625;
  font-weight: 700;
}

.dateField {
  gap: 9px;
}

.dateField > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #063b5a;
  font-size: 16px;
}

.dateField > span::after {
  content: "必选 · 点击选择";
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff0d4;
  color: #b36108;
  font-size: 11px;
  font-weight: 800;
}

.dateField select {
  min-width: 0;
  min-height: 68px;
  padding: 0 38px;
  border: 2px solid #079aa5;
  border-radius: 14px;
  -webkit-appearance: none;
  appearance: none;
  background-color: #edf9fa;
  background-image:
    linear-gradient(45deg, transparent 50%, #056176 50%),
    linear-gradient(135deg, #056176 50%, transparent 50%);
  background-position:
    calc(100% - 25px) 29px,
    calc(100% - 18px) 29px;
  background-repeat: no-repeat;
  background-size: 7px 7px, 7px 7px;
  color: #063b5a;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  text-align-last: center;
  box-shadow: 0 10px 22px rgba(5, 97, 118, .12);
}

.dateField select:invalid {
  color: #527482;
  font-weight: 700;
}

.dateField select:focus {
  outline: 4px solid rgba(7, 139, 154, .15);
  border-color: #056176;
}

.dateField select:disabled {
  border-color: #bfd2d8;
  background-color: #f0f5f6;
  background-image: none;
  color: #607982;
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
}

.dateCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid #8bcbd2;
  border-radius: 12px;
  background: #edf9fa;
}

.dateCard span {
  display: grid;
  gap: 5px;
}

.dateCard small {
  color: #078b9a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
}

.dateCard strong {
  color: #063b5a;
  font-size: 18px;
}

.dateCard i {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: #078b9a;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.dateCard--closed {
  border-color: #d8e8ed;
  background: #f5f8f9;
}

.dateCard--closed i {
  background: #a9bac2;
}

.dateCard + .fieldHint {
  margin: 8px 0 0;
}

.mealReserve {
  display: grid !important;
  grid-template-columns: 1fr auto;
  gap: 14px !important;
  align-items: center;
  min-height: 104px;
  padding: 16px;
  border: 2px solid #079aa5;
  border-radius: 14px;
  background: linear-gradient(135deg, #effafb, #e0f3f5);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(5, 97, 118, .12);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.mealReserve:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(5, 97, 118, .18);
}

.mealReserve input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

.mealReserveCopy {
  display: grid;
  gap: 4px;
}

.mealReserveCopy small {
  color: #078b9a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.mealReserveCopy strong {
  color: #063b5a;
  font-size: 18px;
}

.mealReserveCopy em {
  color: #657c8a;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.mealReserve > i {
  min-width: 96px;
  padding: 13px 14px;
  border-radius: 10px;
  background: #f79021;
  color: white;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 8px 18px rgba(247, 144, 33, .28);
}

.mealReserve:has(input:checked) {
  border-color: #078b9a;
  background: linear-gradient(135deg, #e4f7f8, #ccecef);
}

.mealReserve:has(input:checked) > i {
  background: #078b9a;
  box-shadow: 0 8px 18px rgba(7, 139, 154, .26);
}

.mealBox--disabled .mealReserve {
  border-color: #d8e8ed;
  background: #f5f8f9;
  box-shadow: none;
  cursor: not-allowed;
  opacity: .72;
}

.mealBox--disabled .mealReserve > i {
  background: #a9bac2;
  box-shadow: none;
}

.mealHint {
  margin: 2px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #f79021;
  border-radius: 5px;
  background: #fff7eb;
  color: #875213;
  font-size: 13px;
  line-height: 1.55;
}

.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 21px;
  background: linear-gradient(135deg, #ffb52d, #e98a12);
  color: white;
  font-size: 18px;
  box-shadow: 0 12px 26px rgba(225, 130, 14, .3);
  transition: transform .15s ease, box-shadow .15s ease;
}

.primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(225, 130, 14, .38);
}

.primary:disabled {
  background: linear-gradient(135deg, #ffd98b, #edb85d);
  color: rgba(255, 255, 255, .9);
  cursor: not-allowed;
  box-shadow: none;
  opacity: .72;
}

.primary b {
  font-size: 20px;
}

.submitNote {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

footer {
  padding: 10px 14px 0;
  color: #7d929e;
  font-size: 12px;
  text-align: center;
  letter-spacing: .05em;
}

.dialogOpen {
  overflow: hidden;
}

.successMask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 35, 53, .62);
  backdrop-filter: blur(6px);
}

.successDialog {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 91;
  width: min(440px, calc(100vw - 32px));
  padding: 30px 26px 24px;
  border: 1px solid rgba(7, 139, 154, .18);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 30, 48, .3);
  text-align: center;
  transform: translate(-50%, -50%);
}

.successIcon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #25b79e, #078b9a);
  color: #fff;
  font-size: 38px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(7, 139, 154, .25);
}

.successEyebrow {
  margin-bottom: 6px;
  color: #078b9a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.successDialog h2 {
  margin-bottom: 12px;
  color: #063b5a;
  font-size: 31px;
}

.successWelcome {
  margin-bottom: 8px;
  color: #173f52;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.65;
}

.successDetail {
  margin-bottom: 22px;
  color: #657c8a;
  font-size: 14px;
  line-height: 1.65;
}

.successClose {
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffb52d, #e98a12);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(225, 130, 14, .28);
}

@media (max-width: 640px) {
  .shell {
    padding-top: 0;
  }

  .hero {
    padding: 20px;
    border-radius: 18px;
  }

  .topLine {
    gap: 8px;
  }

  .brandMark {
    gap: 6px;
    font-size: 11px;
  }

  .brandMark i {
    width: 26px;
    height: 26px;
  }

  .partnerLogos {
    gap: 5px;
  }

  .partnerLogo {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }

  .panel {
    padding: 18px;
  }

  .dateField select {
    min-height: 72px;
    font-size: 18px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

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

  .dateCard {
    align-items: flex-start;
    flex-direction: column;
  }

  .mealReserve > i {
    width: 100%;
    min-height: 48px;
    display: grid;
    place-items: center;
  }
}

/* Check-in page: use symmetric inner gutters to avoid WebView margin overflow. */
.checkinPage .shell {
  width: min(760px, 100%);
  padding: 18px 14px 32px;
}

.checkinPage .hero,
.checkinPage .panel {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}

@media (max-width: 640px) {
  .checkinPage .shell {
    padding: 0 10px 32px;
  }

  .checkinPage .hero {
    margin: 10px 0 0;
  }

  .checkinPage .panel {
    margin: 10px 0;
  }
}

/* Chengdu check-in admin */
.adminPage {
  min-width: 0;
  background: #eef4f6;
  color: #12384a;
}

.adminHero {
  background:
    radial-gradient(circle at 85% -20%, rgba(91, 222, 221, .2), transparent 360px),
    linear-gradient(135deg, #052f49, #07596a);
  color: #fff;
  box-shadow: 0 16px 40px rgba(4, 45, 68, .2);
}

.adminHeroInner {
  display: flex;
  width: min(1440px, calc(100% - 64px));
  min-height: 176px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.adminEyebrow,
.adminCardHead span {
  margin: 0 0 6px;
  color: #75dbe0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.adminHero h1 {
  margin-bottom: 8px;
  font-size: 34px;
  letter-spacing: -.02em;
}

.adminHero p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, .7);
}

.adminTopActions,
.adminModalActions,
.adminModalActions > div,
.rowActions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.adminButton,
.miniButton,
.dateTab,
.adminIconButton {
  width: auto;
  min-height: 40px;
  border: 0;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.adminButton {
  display: inline-flex;
  min-height: 44px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
}

.adminButton:hover:not(:disabled),
.miniButton:hover:not(:disabled) {
  transform: translateY(-1px);
}

.adminButton:disabled,
.miniButton:disabled {
  cursor: wait;
  opacity: .58;
}

.adminButton--ghost {
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.adminButton--light {
  background: #fff;
  color: #07596a;
  box-shadow: 0 8px 20px rgba(0, 25, 40, .16);
}

.adminButton--primary {
  background: linear-gradient(135deg, #079aa5, #056176);
  color: #fff;
}

.adminButton--muted {
  border: 1px solid #d8e7eb;
  background: #f5f9fa;
  color: #4b6b79;
}

.adminButton--danger {
  border: 1px solid #efc4be;
  background: #fff2f0;
  color: #ac3425;
}

.adminShell {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding: 24px 0 50px;
}

.adminDateBar {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px 18px;
  border: 1px solid #d8e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(10, 57, 76, .06);
}

.adminDateBar > div:first-child {
  display: grid;
  gap: 3px;
}

.adminDateBar > div:first-child span,
.adminDateBar > p {
  color: #6c8490;
  font-size: 12px;
}

.adminDateBar > div:first-child strong {
  font-size: 18px;
}

.adminDateBar > p {
  margin: 0;
  white-space: nowrap;
}

.dateTabs {
  display: flex;
  width: fit-content;
  padding: 4px;
  border-radius: 12px;
  background: #edf4f6;
}

.dateTab {
  min-width: 132px;
  padding: 0 18px;
  border-radius: 9px;
  background: transparent;
  color: #5f7884;
  font-size: 14px;
  font-weight: 750;
}

.dateTab.isActive {
  background: #fff;
  color: #056176;
  box-shadow: 0 5px 15px rgba(7, 82, 101, .12);
}

.adminNotice {
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid #a9dfd2;
  border-radius: 12px;
  background: #eaf9f5;
  color: #08745e;
  font-size: 14px;
  font-weight: 700;
}

.adminNotice.isError {
  border-color: #efc4be;
  background: #fff2f0;
  color: #a63325;
}

.adminKpiGrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 13px;
  margin-bottom: 16px;
}

.adminKpi {
  position: relative;
  min-height: 130px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid #d9e8ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7, 58, 77, .07);
}

.adminKpi::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -35px;
  width: 90px;
  height: 90px;
  border: 18px solid var(--tone, #dbeaec);
  border-radius: 50%;
  opacity: .34;
}

.adminKpi--green { --tone: #36b58f; }
.adminKpi--orange { --tone: #f1a23a; }
.adminKpi--blue { --tone: #2f9cad; }
.adminKpi--gray { --tone: #98aeb6; }
.adminKpi--neutral { --tone: #4d7890; }

.adminKpiLabel {
  display: block;
  color: #6b838f;
  font-size: 13px;
  font-weight: 700;
}

.adminKpi > strong {
  display: block;
  margin-top: 9px;
  color: #0b3a50;
  font-size: 38px;
  line-height: 1;
}

.adminKpi > small {
  display: block;
  margin-top: 9px;
  color: #75909b;
  font-size: 12px;
}

.adminChartGrid {
  display: grid;
  grid-template-columns: minmax(440px, .82fr) minmax(560px, 1.18fr);
  gap: 16px;
  margin-bottom: 16px;
}

.adminCard {
  border: 1px solid #d9e8ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7, 58, 77, .06);
}

.adminCardHead {
  display: flex;
  min-height: 76px;
  padding: 18px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e6eff2;
}

.adminCardHead h2 {
  margin: 0;
  color: #12384a;
  font-size: 19px;
}

.adminCardHead small {
  color: #8297a0;
}

.ringCharts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 28px 22px;
}

.ringCard {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}

.ring {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) var(--angle), #e9f0f2 0);
  position: relative;
}

.ring::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #eef3f5;
}

.ring > strong {
  z-index: 1;
  color: #12384a;
  font-size: 25px;
}

.ring--green { --ring-color: #13a982; }
.ring--orange { --ring-color: #f29a2e; }

.ringCopy {
  display: grid;
  gap: 5px;
}

.ringCopy strong { color: #173e50; }
.ringCopy span { color: #78909b; font-size: 13px; }

.cityChart {
  display: grid;
  max-height: 330px;
  overflow-y: auto;
  gap: 14px;
  padding: 20px;
}

.cityRow {
  display: grid;
  gap: 7px;
}

.cityHeading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

.cityHeading strong { color: #244a5b; }
.cityHeading span { color: #6f8792; font-variant-numeric: tabular-nums; }

.cityTrack {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #eaf1f3;
}

.cityBar {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, #079aa5, #42c0ae);
}

.rosterCard,
.detailCard,
.auditCard {
  margin-bottom: 16px;
}

.rosterHead {
  align-items: flex-end;
}

.rosterFilters {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 150px;
  gap: 10px;
  width: min(620px, 55%);
}

.adminSearch input,
.rosterFilters select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d5e4e8;
  border-radius: 9px;
  background: #f9fbfc;
  color: #204556;
  font-size: 13px;
}

.adminSearch input:focus,
.rosterFilters select:focus,
.adminField textarea:focus {
  outline: 3px solid rgba(7, 154, 165, .13);
  border-color: #079aa5;
}

.rosterSummary {
  display: flex;
  padding: 12px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e9f0f2;
  background: #f8fbfc;
  color: #496a78;
  font-size: 13px;
}

.rosterSummary small { color: #80959e; }

.adminTableWrap {
  max-height: 590px;
  overflow: auto;
}

.adminTable {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
}

.adminTable th,
.adminTable td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf2f4;
  color: #294d5d;
  font-size: 13px;
  text-align: left;
  vertical-align: middle;
}

.adminTable th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f2f7f8;
  color: #607b87;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.adminTable tbody tr:hover td { background: #fbfdfd; }

.tableIdentity {
  display: grid;
  max-width: 260px;
  gap: 4px;
}

.tableIdentity strong { color: #153f51; font-size: 14px; }
.tableIdentity span { overflow: hidden; color: #718994; text-overflow: ellipsis; white-space: nowrap; }
.timeCell { color: #6d858f !important; font-variant-numeric: tabular-nums; white-space: nowrap; }

.adminStatus {
  display: inline-flex;
  min-width: 74px;
  min-height: 28px;
  padding: 0 9px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.adminStatus--signed { background: #e5f7f1; color: #08765d; }
.adminStatus--unsigned { background: #fff0df; color: #b35f0b; }
.adminStatus--meal { background: #e4f4f7; color: #087687; }
.adminStatus--noMeal { background: #f0f3f4; color: #6c7f87; }
.adminStatus--muted { min-width: 32px; background: transparent; color: #a2b0b6; }

.miniButton {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.miniButton--add { background: #fff0d8; color: #a85800; }
.miniButton--edit { background: #e6f4f6; color: #056b7a; }
.miniButton--meal { border: 1px solid #d6e5e9; background: #fff; color: #4f6e7b; }

.detailSearch { width: 320px; }
.detailTable { min-width: 1240px; }

.adminEmpty {
  padding: 28px;
  color: #81949c;
  text-align: center;
}

.auditCard {
  overflow: hidden;
}

.auditCard summary {
  padding: 18px 20px;
  color: #315565;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.auditList {
  border-top: 1px solid #e7eff1;
}

.auditRow {
  display: flex;
  padding: 13px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #edf2f4;
  font-size: 13px;
}

.auditRow > div { display: grid; gap: 3px; }
.auditRow span, .auditRow time { color: #78909a; font-size: 12px; }

.adminModalMask {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 36, 54, .58);
  backdrop-filter: blur(5px);
}

.adminModal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 101;
  width: min(580px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 30, 45, .32);
  transform: translate(-50%, -50%);
}

.adminModalHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.adminModalHead p {
  margin-bottom: 5px;
  color: #078b9a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.adminModalHead h2 {
  margin-bottom: 0;
  color: #123b4d;
  font-size: 24px;
}

.adminIconButton {
  width: 38px;
  min-height: 38px;
  border: 1px solid #dbe8eb;
  border-radius: 50%;
  background: #f6fafb;
  color: #52717e;
  font-size: 22px;
}

.editorPerson {
  display: grid;
  gap: 5px;
  margin: 20px 0 12px;
  padding: 15px;
  border-radius: 12px;
  background: #f1f7f8;
}

.editorPerson strong { color: #103c4e; font-size: 19px; }
.editorPerson span { color: #6e8791; font-size: 13px; line-height: 1.5; }

.editorStatusLine {
  display: flex;
  padding: 11px 4px;
  align-items: center;
  justify-content: space-between;
  color: #607a85;
  font-size: 13px;
}

.editorStatusLine strong { color: #075f70; font-size: 15px; }

.adminMealToggle {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  min-height: 82px;
  padding: 14px;
  align-items: center;
  border: 2px solid #e2bd79;
  border-radius: 13px;
  background: #fff9ed;
  cursor: pointer;
}

.adminMealToggle input {
  width: 22px;
  min-height: 22px;
  accent-color: #078b9a;
}

.adminMealToggle > span { display: grid; gap: 4px; }
.adminMealToggle strong { color: #244858; }
.adminMealToggle small { color: #80959e; }
.adminMealToggle i { padding: 7px 9px; border-radius: 999px; background: #eee8dc; color: #796d5a; font-size: 12px; font-style: normal; font-weight: 750; }
.adminMealToggle i.isReserved { background: #dff4ed; color: #08745c; }

.adminField {
  display: grid;
  gap: 7px;
  margin-top: 15px;
  color: #315564;
  font-size: 13px;
  font-weight: 700;
}

.adminField textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d7e5e9;
  border-radius: 10px;
  background: #fbfdfd;
  font: inherit;
  resize: vertical;
}

.adminModalActions {
  justify-content: space-between;
  margin-top: 20px;
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 1260px) {
  .adminHeroInner,
  .adminShell { width: calc(100% - 40px); }
  .adminChartGrid { grid-template-columns: 1fr 1.2fr; }
  .rosterFilters { width: 58%; }
}

@media (max-width: 900px) {
  .adminHeroInner {
    min-height: 210px;
    padding: 28px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .adminHero h1 { font-size: 29px; }

  .adminDateBar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dateTabs,
  .dateTab { width: 100%; }

  .adminKpiGrid { grid-template-columns: repeat(2, 1fr); }
  .adminChartGrid { grid-template-columns: 1fr; }
  .rosterHead { align-items: stretch; flex-direction: column; }
  .rosterFilters { width: 100%; }
  .detailSearch { width: 100%; }
}

@media (max-width: 560px) {
  .adminHeroInner,
  .adminShell { width: calc(100% - 24px); }
  .adminTopActions { width: 100%; }
  .adminTopActions .adminButton { flex: 1; }
  .adminKpiGrid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .adminKpi { min-height: 116px; padding: 14px; }
  .adminKpi > strong { font-size: 31px; }
  .ringCharts { grid-template-columns: 1fr; }
  .rosterFilters { grid-template-columns: 1fr; }
  .rosterSummary { align-items: flex-start; flex-direction: column; }
  .adminModalActions { align-items: stretch; flex-direction: column-reverse; }
  .adminModalActions > div { width: 100%; }
  .adminModalActions .adminButton { flex: 1; }
  .adminButton--danger { width: 100%; }
}
