:root {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #153b68;
  background: #153b68;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #eea848;
  outline-offset: 4px;
}
button {
  transition:
    background 0.15s,
    color 0.15s;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
.page {
  width: min(1120px, calc(100% - 80px));
  margin: 0 auto;
  padding: 54px 0 24px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.identity {
  display: flex;
  gap: 22px;
  align-items: center;
}
.plane {
  width: 49px;
  height: 49px;
  transform: rotate(9deg);
}
h1 {
  font-size: 34px;
  letter-spacing: 2px;
  margin: 0 0 9px;
  font-weight: 800;
}
.identity p {
  margin: 0;
  color: #c5d6e9;
  font-size: 14px;
  letter-spacing: 3px;
}
.demo {
  border: 1px solid #7997b9;
  padding: 5px 10px;
  font-size: 11px;
  border-radius: 3px;
  color: #e1ebf5;
}
.scenes {
  margin: 42px 0 23px;
  display: flex;
  align-items: center;
  gap: 26px;
  color: #ccdaea;
  font-size: 13px;
}
.scene-buttons {
  display: flex;
  gap: 8px;
}
.scenes button {
  background: transparent;
  border: 1px solid #58779c;
  color: #e9f0f7;
  padding: 9px 31px;
  font-size: 15px;
  border-radius: 3px;
}
.scenes button[aria-pressed="true"] {
  background: #fff;
  border-color: #fff;
  color: #153b68;
  font-weight: bold;
}
.scenes button:hover {
  background: #d6e5f2;
  color: #153b68;
}
.ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 20px 40px #05244c40;
  position: relative;
  min-height: 505px;
}
.main-ticket {
  padding: 29px 39px 23px;
}
.ticket-meta {
  display: flex;
  justify-content: space-between;
  font:
    11px Consolas,
    monospace;
  letter-spacing: 1.5px;
  color: #667e99;
}
.route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 27px;
}
.small-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: #6f8095;
}
.route h2 {
  font-size: 27px;
  margin: 7px 0 0;
  letter-spacing: 1px;
}
.route svg {
  width: 57px;
  height: 57px;
  margin: 0 8px 0 20px;
  flex-shrink: 0;
}
.list-heading {
  border-top: 1px dashed #b7c7d9;
  border-bottom: 1px solid #dfe6ee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  color: #6b819b;
  font-size: 11px;
  letter-spacing: 0.7px;
}
.text-button {
  background: none;
  border: 0;
  color: #365d87;
  padding: 4px 0;
  font-size: 12px;
}
.text-button:hover {
  text-decoration: underline;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 10px 0 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
}
.check-item {
  display: flex;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid #edf0f4;
  min-width: 0;
  gap: 7px;
}
.check-item label {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  padding: 10px 0;
}
.check-item input[type="checkbox"] {
  appearance: none;
  width: 21px;
  height: 21px;
  border: 1.5px solid #7d96b0;
  border-radius: 2px;
  margin: 0;
  display: grid;
  place-content: center;
  flex-shrink: 0;
}
.check-item input:checked {
  background: #153b68;
  border-color: #153b68;
}
.check-item input:checked:after {
  content: "✓";
  color: white;
  font-size: 15px;
}
.item-text {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.check-item:has(input:checked) .item-text {
  color: #8897a8;
  text-decoration: line-through;
}
.important-dot {
  width: 5px;
  height: 5px;
  display: inline-block;
  background: #cf8e34;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}
.row-action {
  background: none;
  border: 0;
  font-size: 11px;
  color: #47688d;
  padding: 8px 3px;
  flex-shrink: 0;
}
.row-action.delete {
  color: #a54938;
}
.checklist.editing {
  grid-template-columns: 1fr;
}
.add-form {
  display: flex;
  gap: 8px;
  margin-top: 21px;
}
.add-form input {
  min-width: 0;
  width: 100%;
  background: #f8fafc;
  border: 1px solid #d5dfea;
  border-radius: 3px;
  padding: 11px 12px;
  font-size: 13px;
  color: #153b68;
}
.add-form button {
  white-space: nowrap;
  background: #eaf0f7;
  border: 1px solid #cdd9e7;
  border-radius: 3px;
  padding: 10px 13px;
  color: #153b68;
  font-size: 12px;
}
.pocket-note {
  font-size: 12px;
  color: #7b8998;
  margin: 23px 0 0;
}
.pocket-note span {
  font-size: 10px;
  border: 1px solid #b3beca;
  padding: 2px 4px;
  margin-right: 6px;
  color: #526e8d;
}
.stub {
  position: relative;
  border-left: 2px dashed #b6c5d7;
  padding: 29px 27px 23px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.stub:before,
.stub:after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background: #153b68;
  border-radius: 50%;
  left: -13px;
}
.stub:before {
  top: -12px;
}
.stub:after {
  bottom: -12px;
}
.stub-top {
  font:
    12px Consolas,
    monospace;
  letter-spacing: 1.8px;
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #dfe6ee;
}
.stub-top span {
  font-size: 19px;
  line-height: 12px;
}
.stub-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0 18px;
  font:
    700 23px Consolas,
    monospace;
}
.stub-route small {
  display: block;
  font:
    11px "Microsoft YaHei",
    sans-serif;
  text-align: center;
  margin-top: 5px;
  color: #7388a0;
}
.stub-route > span {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 14px;
}
.progress-number {
  font-family: Consolas, monospace;
  line-height: 1;
  text-align: center;
  margin-top: 6px;
}
.progress-number strong {
  font-size: 66px;
  font-weight: 400;
}
.progress-number > span {
  font-size: 25px;
  color: #8a9aaf;
  margin-left: 6px;
}
.progress-caption {
  text-align: center;
  color: #7388a0;
  font-size: 11px;
  margin: 9px 0 17px;
  letter-spacing: 2px;
}
.progress-track {
  height: 4px;
  background: #e9eef4;
}
.progress-track span {
  display: block;
  height: 100%;
  background: #24598b;
  transition: width 0.2s;
}
.departure-status {
  min-height: 95px;
  padding: 18px 0 10px;
}
.departure-status h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px;
}
.departure-status p {
  font-size: 12px;
  line-height: 1.8;
  color: #7b8ca1;
  margin: 0;
  overflow-wrap: anywhere;
}
.ready-stamp {
  border: 3px double #25725b;
  color: #25725b;
  text-align: center;
  padding: 13px 4px;
  margin: 18px 0 15px;
  transform: rotate(-5deg);
}
.ready-stamp strong {
  display: block;
  font-size: 26px;
  letter-spacing: 4px;
}
.ready-stamp span {
  font-size: 9px;
  letter-spacing: 1px;
}
.next-check {
  border: 1px solid #173c68;
  color: #fff;
  background: #173c68;
  border-radius: 3px;
  padding: 11px 8px;
  width: 100%;
  font-size: 13px;
  margin-top: auto;
}
.next-check:hover {
  background: #2b5888;
}
.next-hint {
  text-align: center;
  font-size: 10px;
  color: #8192a8;
  margin: 9px 0 21px;
}
.barcode {
  height: 31px;
  background: repeating-linear-gradient(
    90deg,
    #153b68 0 2px,
    transparent 2px 4px,
    #153b68 4px 5px,
    transparent 5px 8px,
    #153b68 8px 12px,
    transparent 12px 14px,
    #153b68 14px 15px,
    transparent 15px 18px
  );
  width: 100%;
  opacity: 0.85;
}
.barcode-caption {
  text-align: center;
  font:
    9px Consolas,
    monospace;
  letter-spacing: 4px;
  padding-top: 7px;
  color: #6b809a;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #99b1ca;
  font-size: 11px;
  gap: 20px;
  margin: 24px 0 0;
}
footer a {
  color: #d5e0ed;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
footer p {
  margin: 0;
}
footer .reset {
  color: #c1d1e2;
  background: none;
  border: 0;
  padding: 8px 0;
  font-size: 11px;
}
.message {
  color: #edf3fa;
  font-size: 12px;
  min-height: 18px;
  margin: 16px 0 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
dialog {
  border: 0;
  border-radius: 6px;
  padding: 28px;
  width: min(380px, calc(100% - 32px));
  color: #153b68;
  box-shadow: 0 20px 80px #001c4580;
}
dialog::backdrop {
  background: #08254588;
}
dialog h2 {
  margin: 0 0 22px;
  font-size: 23px;
}
dialog label {
  font-size: 13px;
  display: block;
  margin-bottom: 9px;
}
dialog input {
  width: 100%;
  padding: 12px;
  border: 1px solid #afc2d7;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.dialog-actions button {
  padding: 10px 15px;
  border: 1px solid #b9c9db;
  color: #153b68;
  background: white;
}
.dialog-actions button[type="submit"] {
  background: #153b68;
  color: white;
}
@media (max-width: 900px) {
  .page {
    width: calc(100% - 48px);
    padding-top: 35px;
  }
  .ticket {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .main-ticket {
    padding: 25px;
  }
  .checklist {
    grid-template-columns: 1fr;
  }
  .route h2 {
    font-size: 23px;
  }
  .route svg {
    width: 40px;
    height: 40px;
  }
  .ticket-meta {
    letter-spacing: 0.5px;
    font-size: 10px;
  }
}
@media (max-width: 640px) {
  .page {
    width: calc(100% - 28px);
    padding-top: 24px;
  }
  .identity {
    gap: 12px;
  }
  .plane {
    width: 30px;
    height: 30px;
  }
  h1 {
    font-size: 23px;
    letter-spacing: 0;
  }
  .identity p {
    font-size: 11px;
    letter-spacing: 1px;
  }
  .demo {
    font-size: 9px;
    padding: 4px 6px;
    margin-left: 8px;
    white-space: nowrap;
  }
  .scenes {
    margin: 28px 0 18px;
    display: block;
  }
  .scene-buttons {
    margin-top: 13px;
    gap: 9px;
  }
  .scenes button {
    flex: 1;
    padding: 10px 20px;
  }
  .ticket {
    display: block;
  }
  .main-ticket {
    padding: 24px 20px;
  }
  .route {
    margin: 24px 0;
  }
  .route h2 {
    font-size: 23px;
  }
  .ticket-meta {
    font-size: 9px;
  }
  .checklist {
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
  }
  .item-text {
    font-size: 14px;
  }
  .check-item label {
    gap: 8px;
  }
  .add-form button {
    padding: 10px;
  }
  .pocket-note {
    font-size: 11px;
    line-height: 1.8;
  }
  .stub {
    border-left: 0;
    border-top: 2px dashed #b6c5d7;
    padding: 24px 28px;
  }
  .stub:before,
  .stub:after {
    top: -13px;
    bottom: auto;
    left: -12px;
  }
  .stub:after {
    left: auto;
    right: -12px;
  }
  .stub-top {
    font-size: 10px;
  }
  .stub-route {
    margin: 18px 0 10px;
  }
  .progress-number strong {
    font-size: 55px;
  }
  .departure-status {
    min-height: 74px;
  }
  .next-check {
    margin-top: 6px;
  }
  .barcode {
    max-width: 235px;
    margin: 0 auto;
    height: 25px;
  }
  .next-hint {
    margin-bottom: 15px;
  }
  footer {
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 20px;
  }
  footer p {
    order: 3;
    width: 100%;
    font-size: 10px;
  }
  footer .reset {
    margin-left: auto;
  }
  .message {
    font-size: 11px;
  }
  .ready-stamp {
    width: 225px;
    align-self: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
