:root {
  font:
    15px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #202838;
  background: #f5f1e8;
  color-scheme: light;
  --blue: #283ecb;
  --muted: #777c88;
  --line: #e4e1d9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.shell {
  max-width: 1160px;
  margin: auto;
  padding: 0 44px;
}
.masthead {
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.brand > span {
  font-size: 24px;
  font-weight: 650;
}
.brand i {
  font-size: 18px;
  font-weight: 300;
  color: #b4b1aa;
  margin: 0 10px;
}
.brand strong {
  font-size: 14px;
  letter-spacing: 2px;
}
.edition {
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e76b42;
}
main {
  display: grid;
  grid-template-columns: 1fr 1.16fr;
  gap: 76px;
  padding: 58px 0 64px;
}
.intro {
  padding-top: 8px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.9px;
  color: var(--muted);
  margin: 0 0 23px;
}
h1 {
  font-family: Georgia, "Noto Serif CJK SC", "Songti SC", serif;
  font-weight: 500;
  font-size: 59px;
  letter-spacing: 1px;
  line-height: 1.4;
  margin: 0 0 22px;
}
h1 span {
  color: var(--blue);
}
.lead {
  font-size: 14px;
  line-height: 1.9;
  color: #757a80;
}
.art {
  position: relative;
  width: 300px;
  height: 300px;
  display: grid;
  place-items: center;
  margin: 28px 0 22px;
}
.art img {
  position: relative;
  transform: rotate(-8deg);
  filter: drop-shadow(0 18px 24px #283ecb0a);
}
.orbit {
  position: absolute;
  border: 1px solid #d9d6ce;
  width: 280px;
  height: 190px;
  border-radius: 50%;
  transform: rotate(-35deg);
}
.orbit:after {
  content: "";
  position: absolute;
  top: 21px;
  left: 25px;
  width: 9px;
  height: 9px;
  background: #e76b42;
  border: 4px solid #f5f1e8;
  box-sizing: content-box;
  border-radius: 50%;
}
.art-caption {
  position: absolute;
  bottom: 0;
  font-size: 8px;
  letter-spacing: 2px;
  color: #91928e;
}
.journey {
  padding: 0;
  list-style: none;
  display: flex;
  gap: 19px;
  margin: 35px 0 22px;
  font-size: 12px;
  color: #92959d;
}
.journey li {
  border-top: 1px solid #d6d4ce;
  padding-top: 13px;
  flex: 1;
  white-space: nowrap;
}
.journey span {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.journey .active {
  color: var(--blue);
  border-color: var(--blue);
}
.footnote {
  font-size: 11px;
  color: #8d9095;
  line-height: 1.9;
}
.statusbar {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  min-height: 35px;
  margin-bottom: 16px;
  font-size: 11px;
}
.status-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4c5363;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #adafae;
}
.status-dot.live {
  background: #283ecb;
  box-shadow: 0 0 0 4px #283ecb10;
}
.status-dot.success {
  background: #4a8873;
}
.status-dot.error {
  background: #c46b52;
}
#expiry {
  color: #90939a;
  font-size: 10px;
}
.card {
  padding: 26px 28px;
  background: #fffefb;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
}
.section-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}
.number {
  color: var(--blue);
  font-size: 9px;
  letter-spacing: 1px;
  white-space: nowrap;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin: 0;
}
label {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin: 16px 0 8px;
}
input,
textarea {
  font: inherit;
  font-size: 13px;
  width: 100%;
  border: 1px solid #e1e2e6;
  border-radius: 7px;
  padding: 12px 13px;
  background: #fff;
  color: inherit;
  transition: border-color 0.2s;
}
input {
  height: 46px;
}
input::placeholder,
textarea::placeholder {
  color: #a0a3ac;
  font-size: 12px;
}
textarea {
  resize: vertical;
  overflow-wrap: anywhere;
  min-height: 90px;
}
input:focus,
textarea:focus {
  outline: 2px solid #283ecb20;
  border-color: #7583d8;
}
button,
a {
  touch-action: manipulation;
}
button {
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  border-radius: 7px;
  padding: 11px 16px;
  border: 1px solid transparent;
  transition: background 0.2s;
}
button:disabled,
a[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
}
a[aria-disabled="true"] {
  pointer-events: none;
}
.primary {
  background: var(--blue);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}
.primary:hover {
  background: #1c2c9f;
}
.primary span {
  font-size: 18px;
  line-height: 1;
}
.secondary {
  background: transparent;
  color: #6a7181;
  border-color: #e1e2e6;
}
.secondary:hover {
  background: #f5f4f0;
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.actions .secondary {
  min-width: 70px;
}
#notice {
  min-height: 20px;
  line-height: 20px;
  font-size: 11px;
  color: #b36045;
  margin: 10px 0 -5px;
}
.description {
  font-size: 12px;
  line-height: 1.85;
  color: #858995;
  margin: 0 0 16px;
}
.login-link {
  border: 1px solid #ced3ee;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  font-size: 12px;
  padding: 12px 14px;
  border-radius: 7px;
  margin-bottom: 20px;
}
.login-link span {
  font-size: 17px;
}
.helper-command {
  font-size: 10px;
  color: #9599a1;
}
.text-link {
  font-size: 12px;
  color: var(--blue);
}
.result-card textarea {
  background: #f7f8fb;
  border-color: transparent;
  font:
    11px/1.8 ui-monospace,
    SFMono-Regular,
    monospace;
  min-height: 100px;
  padding: 14px;
}
.result-card textarea::placeholder {
  font-family: inherit;
  font-size: 11px;
}
.result-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 10px;
  color: #999da6;
}
.text-button {
  background: none;
  color: #838995;
  padding: 4px 0;
  font-size: 10px;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #969992;
}
.footer > span:first-child {
  color: #626b71;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
button:focus-visible,
a:focus-visible,
dialog:focus-visible {
  outline: 2px solid #7583d8;
  outline-offset: 4px;
}
@media (min-width: 900px) {
  .intro {
    position: sticky;
    top: 35px;
    align-self: start;
  }
}
@media (max-width: 900px) {
  .shell {
    padding: 0 28px;
  }
  main {
    gap: 35px;
  }
  h1 {
    font-size: 46px;
  }
  .art {
    width: 250px;
  }
  .journey {
    gap: 10px;
  }
  .section-heading {
    gap: 12px;
  }
  .card {
    padding: 24px;
  }
  .footer > span:nth-child(2) {
    display: none;
  }
}
@media (max-width: 660px) {
  .shell {
    padding: 0 22px;
  }
  .masthead {
    height: 80px;
  }
  .brand > span {
    font-size: 21px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .brand strong {
    font-size: 11px;
  }
  .edition {
    font-size: 9px;
    letter-spacing: 0.5px;
    gap: 6px;
  }
  main {
    display: block;
    padding: 32px 0 25px;
  }
  .intro {
    position: relative;
    padding: 0;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
  }
  h1 {
    font-size: 39px;
    line-height: 1.45;
    margin-bottom: 15px;
  }
  .lead {
    font-size: 11px;
    line-height: 1.9;
    max-width: 230px;
  }
  .art {
    position: absolute;
    right: -5px;
    top: 30px;
    width: 130px;
    height: 150px;
    margin: 0;
  }
  .art img {
    width: 112px;
    height: 112px;
  }
  .orbit {
    width: 138px;
    height: 89px;
  }
  .orbit:after {
    top: 7px;
    left: 13px;
    width: 5px;
    height: 5px;
    border-width: 3px;
  }
  .art-caption {
    display: none;
  }
  .journey {
    gap: 22px;
    margin: 27px 0 24px;
    font-size: 11px;
  }
  .journey li {
    padding-top: 9px;
  }
  .journey span {
    display: inline;
    margin-right: 7px;
    font-size: 9px;
  }
  .footnote {
    display: none;
  }
  .statusbar {
    margin: 0 1px 12px;
    min-height: 26px;
  }
  .card {
    padding: 22px;
    border-radius: 12px;
    margin-bottom: 12px;
  }
  h2 {
    font-size: 16px;
  }
  .section-heading {
    gap: 15px;
    margin-bottom: 19px;
  }
  input {
    font-size: 16px;
  }
  .number {
    font-size: 8px;
  }
  #expiry {
    font-size: 9px;
  }
  .footer {
    font-size: 9px;
    padding: 20px 0 24px;
    align-items: start;
  }
  .footer > span:last-child {
    max-width: 150px;
    text-align: right;
  }
}
@media (max-width: 360px) {
  .shell {
    padding: 0 16px;
  }
  .edition {
    display: none;
  }
  .art {
    right: 0;
    width: 100px;
    opacity: 0.8;
  }
  .art img {
    width: 90px;
    height: 90px;
  }
  .orbit {
    width: 90px;
    height: 65px;
  }
  h1 {
    font-size: 35px;
  }
  .lead {
    max-width: 200px;
  }
  .card {
    padding: 19px;
  }
  .section-heading {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.connection-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.connection-actions .text-button {
  font-size: 11px;
  color: var(--blue);
  min-height: 32px;
}
dialog {
  width: min(470px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  color: inherit;
  background: #fffefb;
  box-shadow: 0 24px 100px #20283826;
}
dialog::backdrop {
  background: #18213855;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 20px;
}
.close-dialog {
  font-size: 24px;
  line-height: 1;
  background: transparent;
  color: #777c88;
  padding: 5px 9px;
}
#callback-notice {
  min-height: 20px;
  font-size: 11px;
  color: #b36045;
  margin: 6px 0;
}
body:has(dialog[open]) {
  overflow: hidden;
}
@media (min-width: 901px) and (min-height: 620px) {
  .shell {
    height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .masthead {
    height: 64px;
    flex: none;
  }
  main {
    flex: 1;
    min-height: 0;
    padding: 14px 0;
    gap: 60px;
    align-items: center;
  }
  .intro {
    position: static;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 670px;
    padding: 8px 0;
  }
  .eyebrow {
    margin: 0 0 10px;
  }
  h1 {
    font-size: clamp(36px, 6vh, 58px);
    margin: 0 0 8px;
  }
  .lead {
    margin: 4px 0;
  }
  .art {
    flex: 1;
    min-height: 110px;
    max-height: 240px;
    width: 250px;
    margin: 4px 0;
  }
  .art img {
    width: clamp(100px, 20vh, 180px);
    height: auto;
  }
  .orbit {
    width: 220px;
    height: 125px;
  }
  .art-caption {
    font-size: 7px;
  }
  .journey {
    margin: 14px 0 8px;
  }
  .footnote {
    margin: 8px 0 0;
  }
  .workspace {
    display: grid;
    grid-template-rows: 24px auto auto minmax(120px, 1fr);
    gap: 8px;
    height: 100%;
    max-height: 670px;
    min-width: 0;
  }
  .statusbar {
    min-height: 0;
    margin: 0;
  }
  .card {
    padding: 12px 18px;
    margin: 0;
    min-height: 0;
  }
  .section-heading {
    margin-bottom: 6px;
  }
  h2 {
    font-size: 15px;
  }
  .description {
    margin-bottom: 8px;
    line-height: 1.65;
  }
  .actions {
    margin-top: 8px;
  }
  button {
    padding: 8px 14px;
  }
  #notice {
    min-height: 18px;
    line-height: 18px;
    margin: 5px 0 -3px;
  }
  .login-link {
    margin-bottom: 4px;
    padding: 9px 13px;
  }
  .result-card {
    display: flex;
    flex-direction: column;
  }
  .result-card textarea {
    flex: 1;
    min-height: 50px;
    resize: none;
    padding: 10px 12px;
  }
  .result-footer {
    margin-top: 4px;
  }
  .footer {
    flex: none;
    padding: 12px 0;
  }
}
@media (min-width: 901px) and (max-height: 760px) {
  .footnote {
    display: none;
  }
  .lead {
    font-size: 12px;
  }
  .art-caption {
    display: none;
  }
}
