:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #202c42;
  background: #f5f6fa;
  font-synthesis: none;
  --accent: #405bd8;
  --muted: #788295;
  --line: #e5e9f1;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 8% 45%, #e9edf9 0, transparent 52%); }
button, input, select { font: inherit; }
.site-header, main, footer { width: min(1060px, calc(100% - 80px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding-block: 32px; }
.brand { color: #26334b; text-decoration: none; display: inline-flex; gap: 12px; align-items: center; font-size: 20px; font-weight: 700; letter-spacing: .4px; }
.brand-tag { font-size: 11px; font-weight: 500; background: #e9edf9; color: #596aab; padding: 5px 8px; border-radius: 6px; letter-spacing: 0; }
main { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 80px; align-items: center; min-height: calc(100svh - 190px); padding-block: 35px 60px; }
h1 { font-size: clamp(38px, 4.7vw, 58px); line-height: 1.35; letter-spacing: -1.5px; font-weight: 650; margin: 23px 0; }
h1 span { color: var(--accent); }
p { line-height: 1.8; }
.intro-description { color: #748097; font-size: 15px; line-height: 1.9; }
.panel { background: #fff; border: 1px solid #e8ebf3; border-radius: 22px; padding: 32px; box-shadow: 0 16px 48px #273e7010, 0 2px 8px #273e7004; }
.panel-head { margin-bottom: 26px; }
.step { font-size: 11px; color: var(--accent); letter-spacing: 1px; font-weight: 600; }
h2 { font-size: 25px; margin: 9px 0 5px; letter-spacing: -.5px; }
.subtle { color: var(--muted); font-size: 13px; margin: 0; }
label { display: block; font-size: 12px; font-weight: 500; margin: 18px 0 9px; color: #59657a; }
input, select { width: 100%; color: #39465c; background: #fbfcff; border: 1px solid #dfe5ef; border-radius: 10px; padding: 12px; min-height: 44px; font-size: 14px; }
button { border: 1px solid #dfe5ef; background: white; color: #52617f; border-radius: 10px; min-height: 42px; padding: 11px 16px; font-size: 13px; cursor: pointer; transition: background .15s, border-color .15s; }
button:hover { background: #f2f5fc; border-color: #c7d1ed; }
button:disabled { opacity: .55; cursor: wait; }
.primary { background: var(--accent); border-color: var(--accent); color: white; font-weight: 600; }
.primary:hover { background: #334bc0; border-color: #334bc0; }
.wide { width: 100%; margin-top: 18px; }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; gap: 4px; border-radius: 10px; background: #f2f4f8; margin-top: 23px; }
.tabs button { color: #8a93a4; background: transparent; border: 0; padding: 9px 12px; min-height: 36px; border-radius: 7px; }
.tabs [aria-selected="true"] { color: var(--accent); background: white; font-weight: 600; box-shadow: 0 1px 5px #263c6a0d; }
.qr-area { display: flex; justify-content: center; margin: 25px 0 14px; }
.qr-box { width: 206px; height: 206px; padding: 10px; background: white; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.qr-box img { display: block; max-width: 100%; max-height: 100%; }
.qr-box span { max-width: 150px; font-size: 12px; color: #8792a7; line-height: 1.8; text-align: center; }
.qr-instruction { text-align: center; font-size: 13px; font-weight: 550; margin: 0 0 5px; }
#status { margin: 17px 0 0; padding: 11px 12px; border-radius: 9px; background: #f1f5fd; color: #586f9c; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
#status:empty { display: none; }
#status.error { color: #a15b42; background: #fdf3ed; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
h3 { font-size: 15px; }
.small-button { min-height: 34px; font-size: 12px; padding: 7px 10px; }
.course { border: 1px solid var(--line); border-radius: 13px; padding: 18px; margin: 12px 0; background: #fcfdff; }
.course h3 { margin: 0 0 8px; }
.course p { font-size: 12px; color: var(--muted); margin: 0; }
.course button { background: #edf1fe; border-color: #edf1fe; color: var(--accent); font-weight: 550; }
.course button:hover { background: #e1e8fd; }
.empty { padding-block: 34px; font-size: 13px; color: var(--muted); text-align: center; }
.quiet { border-color: transparent; color: #8c97a8; font-size: 12px; }
footer { border-top: 1px solid #e1e6f0; display: flex; justify-content: space-between; padding-block: 23px; color: #929caf; font-size: 11px; }
dialog { border: 1px solid var(--line); border-radius: 20px; padding: 28px; max-width: 440px; color: inherit; box-shadow: 0 25px 80px #17284b26; }
dialog::backdrop { background: #15233d66; }
dialog p { color: #77849a; font-size: 13px; }
#confirmName { background: #f3f5fb; border-radius: 8px; padding: 10px 12px; color: #45567b; }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a9baf1; outline-offset: 3px; }
@media (max-width: 950px) {
  .site-header, main, footer { width: calc(100% - 48px); }
  main { grid-template-columns: minmax(0, 1fr) 400px; gap: 35px; }
  .panel { padding: 27px; }
}
@media (max-width: 720px) {
  .site-header { padding-block: 23px; }
  .brand { font-size: 18px; gap: 9px; }
  .brand-tag { font-size: 10px; }
  main { display: block; max-width: 460px; padding-block: 5px 34px; min-height: auto; }
  .intro { padding: 10px 2px 25px; }
  h1 { font-size: clamp(29px, 7.5vw, 38px); margin: 12px 0; letter-spacing: -1px; }
  h1 br { display: none; }
  .intro-description { font-size: 13px; margin: 0; }
  .intro-description br { display: none; }
  .panel { padding: 24px; border-radius: 17px; }
  .panel-head { margin-bottom: 20px; }
  h2 { font-size: 23px; }
  footer { max-width: 460px; gap: 12px; font-size: 10px; }
  dialog { width: calc(100% - 32px); padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { button { transition: none; } }

.sms-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.sms-code-row input { min-width: 0; }
.sms-code-row button { padding-inline: 12px; white-space: nowrap; color: var(--accent); font-size: 12px; }
#smsPane { padding-top: 3px; }
@media (max-width: 380px) { .tabs button { padding-inline: 5px; font-size: 12px; } }
