:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #17314a;
  background: #f1f7fe;
  --blue: #0069c9;
  --blue-hover: #0055a3;
  --muted: #4a6177;
  --line: #cedeee;
  --wash: #e5f1fe;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 16px; line-height: 1.55; }
h1, h2, p { margin: 0; }
button, input { font: inherit; }
input { caret-color: var(--blue); }
::selection { background: #b5daff; color: #12324e; }
:focus-visible { outline: 3px solid #0065bd; outline-offset: 3px; }

.page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 730; }
.brand img { display: block; border-radius: 10px; }
.intro { margin: 56px 0 28px; }
.intro h1 { font-size: clamp(33px, 6vw, 52px); font-weight: 750; line-height: 1.15; letter-spacing: -.025em; }
.intro p { color: var(--muted); margin-top: 10px; }

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.order, .delivery { padding: clamp(20px, 4.8vw, 34px); }
.delivery { border-left: 1px solid var(--line); background: #f7fbff; }
.delivery:focus { outline-offset: -5px; }
.delivery h2 { font-size: 21px; line-height: 1.3; }
.delivery-status { margin-top: 10px; color: var(--muted); overflow-wrap: anywhere; }
.delivery[data-status="ready"] .delivery-status { color: #176145; }
.delivery[data-status="error"] .delivery-status { color: #a32935; }

.mode-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  margin: 0 0 23px;
  border: 0;
  border-radius: 11px;
  background: var(--wash);
}

.mode-picker label { position: relative; cursor: pointer; }
.mode-picker label span {
  display: grid;
  place-content: center;
  min-height: 43px;
  padding: 5px 8px;
  border-radius: 8px;
  color: #345671;
  font-weight: 650;
  text-align: center;
}

.mode-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mode-picker input:checked + span { color: #004989; background: #fff; }
.mode-picker input:focus + span { outline: 3px solid #0065bd; outline-offset: 1px; }
.mode-picker input:focus:not(:focus-visible) + span { outline: none; }
.mode-picker:disabled label { cursor: progress; opacity: .75; }

.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 7px; font-weight: 650; }
.field input {
  width: 100%;
  min-height: 47px;
  padding: 9px 12px;
  border: 1px solid #9fb6cd;
  border-radius: 8px;
  background: #fff;
  color: inherit;
}

.field input[aria-invalid="true"] { border-color: #bf4650; }
.hint { margin-top: 7px; font-size: 14px; color: var(--muted); }
.notice, .error { margin: 0 0 16px; font-size: 15px; }
.notice { padding: 10px 12px; border-radius: 8px; background: #eaf5ff; color: #214d75; }
.error { color: #a32935; }

.action, .secondary {
  display: flex;
  width: 100%;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 670;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.action { background: var(--blue); color: #fff; }
.action:hover { background: var(--blue-hover); }
.action:disabled { background: #d6e5f4; color: #40566b; cursor: default; }
.secondary { margin-top: 16px; background: #fff; border-color: #9fb6cd; color: var(--blue); }
.secondary:hover { background: var(--wash); }
.secondary:disabled { cursor: progress; opacity: .7; }
.install { margin-top: 18px; }
#issued-access { margin: 22px 0 0; }

@media (max-width: 650px) {
  .page { width: calc(100% - 28px); padding-top: 20px; padding-bottom: 36px; }
  .intro { margin: 35px 0 20px; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .delivery { border-left: 0; border-top: 1px solid var(--line); }
}
