:root {
  color-scheme: light;
  color: #18221d;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 240px; }
button, textarea { font: inherit; }
[hidden] { display: none !important; }

.entry {
  width: min(100%, 440px);
  min-height: 100svh;
  margin-inline: auto;
  padding: calc(64px + env(safe-area-inset-top, 0px)) 28px calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand { display: block; width: 168px; height: 47px; object-fit: contain; }
.handoff { width: 100%; margin-block: auto; padding-block: 56px 72px; text-align: center; }
.destination { margin: 0 0 12px; color: #727a75; font-size: 14px; }
h1 { margin: 0; font-size: 28px; line-height: 1.4; font-weight: 650; overflow-wrap: anywhere; }
.status { min-height: 82px; margin-top: 24px; }
#status-title { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.6; }
#status-detail { margin: 8px 0 0; color: #727a75; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.actions { display: grid; gap: 12px; margin-top: 30px; }

button {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.primary { color: #ffffff; background: #167647; }
.secondary { color: #283d31; background: #f1f4f2; border-color: #e5eae7; }
button:disabled { color: #929a95; background: #f1f3f2; border-color: #e8ece9; cursor: default; }
button:active:not(:disabled) { opacity: 0.78; }
button:focus-visible, textarea:focus-visible { outline: 3px solid #c18a34; outline-offset: 4px; }
.copy-status { min-height: 24px; margin: 14px 0 0; color: #167647; font-size: 14px; line-height: 24px; }
.manual-copy { margin-top: 16px; text-align: left; }
.manual-copy label { display: block; margin-bottom: 8px; font-size: 14px; color: #727a75; }
textarea { width: 100%; min-height: 82px; padding: 12px; border: 1px solid #d3dad6; border-radius: 6px; background: #ffffff; color: inherit; font-size: 16px; resize: none; overflow-wrap: anywhere; }
noscript { max-width: 100%; overflow-wrap: anywhere; line-height: 1.7; }

@media (hover: hover) and (pointer: fine) {
  .primary:hover:not(:disabled) { background: #11623b; }
  .secondary:hover:not(:disabled) { background: #e7eee9; }
}

@media (max-height: 600px) {
  .entry { padding-top: calc(28px + env(safe-area-inset-top, 0px)); }
  .handoff { padding-block: 32px 8px; }
}
