.workspace-focused {
  max-width: 1040px;
  margin: 0 auto;
}

.workspace-focused .metric {
  min-height: 92px;
}

.workspace-focused .side {
  top: 70px;
}

.workspace-checkin-body {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
  gap: 12px;
  align-items: stretch;
}

.compact-checkin {
  min-height: 132px;
}

.compact-checkin b {
  color: var(--bronze);
}

.auth-shell {
  min-height: calc(100vh - 76px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  padding: 120px 0 80px;
}

.auth-page .top-action {
  width: auto;
  justify-self: end;
}

.auth-title {
  text-align: center;
}

.auth-title h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 820;
  letter-spacing: 0;
}

.auth-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.auth-card {
  box-sizing: border-box;
  width: min(560px, 100%);
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 250, 247, .84);
  box-shadow: var(--shadow);
  padding: 36px 42px;
}

.auth-tabs {
  margin-bottom: 18px;
}

.auth-tabs a {
  min-height: 34px;
}

.auth-form {
  display: none;
  gap: 10px;
}

.auth-form.active {
  display: grid;
}

.auth-form .field {
  margin: 0;
}

.auth-form label {
  color: var(--soft);
  font-size: 11px;
  font-weight: 760;
}

.auth-form input {
  min-height: 48px;
  font-size: 13px;
  min-width: 0;
}

.auth-form button {
  cursor: pointer;
}

.auth-combo,
.auth-code-row {
  display: grid;
  gap: 8px;
  align-items: stretch;
}

.auth-combo {
  grid-template-columns: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.64);
}

.auth-combo input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.auth-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  border-right: 1px solid var(--line);
  color: var(--soft);
  font-size: 13px;
  font-weight: 760;
}

.auth-code-row {
  grid-template-columns: minmax(0, 1fr) 128px;
}

.auth-code-send {
  min-height: 48px;
  margin: 0;
  padding-inline: 10px;
  white-space: nowrap;
}

.auth-wide {
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
}

.auth-phone-note {
  margin: 1px 0 0;
  color: #6a635a;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
  text-align: left;
}

.forgot-link {
  justify-self: end;
  margin: 2px 0 8px;
  color: var(--soft);
  font-size: 12px;
  text-decoration: underline;
}

.auth-foot {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.auth-foot a {
  text-decoration: underline;
}

.email-login-fields,
.auth-register-fields {
  display: grid;
  gap: 10px;
}

.auth-mode-toggle {
  justify-content: center;
  margin-top: 4px;
}

.auth-status,
.field-error {
  min-height: 16px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.field-error {
  color: #8a2028;
}

#phoneCodeError:empty,
#phoneFormStatus:empty {
  min-height: 0;
}

#phoneFormStatus {
  margin: -4px 0 0;
}

.auth-status.error {
  color: #8a2028;
}

.auth-form .field.has-error input,
.auth-form .field.has-error .auth-combo {
  border-color: rgba(199,47,59,.55);
}

.auth-register-fields[hidden],
.email-login-fields[hidden],
.auth-status[hidden],
.auth-form .field[hidden],
.auth-form button[hidden],
.auth-form a[hidden] {
  display: none;
}

.billing-shell {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.billing-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 6px;
  padding: 34px 0 4px;
}

.billing-title h1 {
  margin: 6px 0 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: .95;
  font-weight: 800;
  letter-spacing: 0;
}

.billing-title p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.billing-title-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 250, .68);
  padding: 6px 18px;
  color: var(--soft);
  font-size: 13px;
}

.balance-pill b {
  color: var(--charcoal);
  font-size: 15px;
}

.billing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.billing-stack {
  display: grid;
  gap: 14px;
}

.recharge-section {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 250, 247, .74);
  box-shadow: var(--shadow);
  padding: 14px;
}

.recharge-section h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 760;
}

.main-package-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(132px, 1fr));
  gap: 10px;
}

.topup-card {
  position: relative;
  min-height: 128px;
  display: grid;
  align-content: space-between;
  justify-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, .64);
  color: var(--ink);
  padding: 14px 14px 12px;
  box-shadow: 0 10px 28px rgba(39, 34, 28, .05);
  text-align: left;
}

.topup-card.selected {
  border-color: var(--charcoal);
  background: rgba(255, 254, 250, .86);
  box-shadow: 0 12px 28px rgba(39, 34, 28, .08);
}

.topup-card.selected::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--charcoal);
}

.topup-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.topup-card strong {
  color: var(--charcoal);
  font-size: 26px;
  line-height: 1;
  font-weight: 720;
}

.topup-card span {
  color: var(--soft);
  font-size: 16px;
  font-weight: 720;
}

.pay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pay-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, .68);
  padding: 14px 16px;
  text-align: left;
}

.pay-card.selected {
  border-color: #1677ff;
  background: rgba(22, 119, 255, .06);
}

.pay-icon {
  grid-row: 1 / 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--ivory);
  font-size: 22px;
  font-weight: 860;
}

.pay-icon.alipay {
  background: #1677ff;
}

.pay-icon.wechat {
  background: #07c160;
  color: #fff;
}

.pay-card b {
  font-size: 16px;
  font-weight: 740;
}

.pay-card small {
  color: var(--muted);
  font-size: 14px;
}

.pay-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.confirm-pay,
.return-pay {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 740;
}

.confirm-pay {
  border: 0;
  background: rgba(25, 24, 23, .18);
  color: rgba(25, 24, 23, .54);
}

.confirm-pay.primary:not(:disabled) {
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: var(--ivory);
}

.confirm-pay:disabled {
  cursor: not-allowed;
}

.return-pay {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .78);
}

.billing-summary {
  position: sticky;
  top: 68px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 250, 247, .84);
  box-shadow: var(--shadow);
  padding: 18px;
}

.summary-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--ivory);
  font-weight: 800;
}

.billing-summary h2 {
  margin: 0;
  font-size: 18px;
}

.billing-summary p {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.55;
}

.summary-list {
  display: grid;
  gap: 7px;
}

.summary-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .42);
  padding: 8px 10px;
}

.summary-list span {
  color: var(--muted);
  font-size: 11px;
}

.summary-list b {
  font-size: 12px;
}

.panel-action {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--charcoal);
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
}

.billing-balance-card .actions {
  margin-top: 2px;
}

.recharge-truth {
  margin-top: -8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.account-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 18px;
}

.account-side {
  position: sticky;
  top: 76px;
  align-self: start;
  min-height: calc(100vh - 96px);
  border-right: 1px solid var(--line);
  padding: 18px 18px 28px 0;
}

.account-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.account-brand b,
.account-brand small {
  display: block;
}

.account-brand b {
  font-size: 20px;
}

.account-brand small {
  color: var(--muted);
  font-size: 12px;
}

.account-side nav {
  display: grid;
  gap: 10px;
}

.account-side nav a {
  min-height: 54px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  color: var(--ink);
  padding: 0 18px;
  font-size: 18px;
  font-weight: 780;
}

.account-side nav a.active {
  background: rgba(255, 254, 250, .76);
  box-shadow: inset 3px 0 0 var(--charcoal);
}

.account-main {
  display: grid;
  gap: 34px;
  padding: 0 0 56px;
}

.user-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  padding: 8px 18px 8px 10px;
  box-shadow: 0 6px 20px rgba(39, 34, 28, .08);
}

.user-pill span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 3px solid var(--charcoal);
  border-radius: 50%;
  color: var(--charcoal);
  font-weight: 860;
}

.user-pill em {
  border-radius: 999px;
  background: rgba(165, 119, 76, .14);
  color: var(--bronze);
  padding: 4px 10px;
  font-style: normal;
  font-weight: 820;
}

.checkin-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 40px;
  align-items: center;
  gap: 20px;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, .72);
  box-shadow: var(--shadow);
  padding: 34px 44px;
}

.section-label {
  color: var(--muted);
  font-size: 14px;
}

.checkin-card h1 {
  margin: 12px 0 22px;
  font-size: 34px;
  line-height: 1.1;
}

.checkin-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.checkin-card p b,
.checkin-plan strong,
.checkin-plan .accent {
  color: var(--bronze);
}

.checkin-action {
  align-self: end;
  justify-self: center;
  font-size: 20px;
  font-weight: 820;
}

.checkmark {
  align-self: start;
  font-size: 34px;
  line-height: 1;
}

.checkin-section {
  display: grid;
  gap: 12px;
}

.checkin-section h2 {
  margin: 0;
  font-size: 26px;
}

.checkin-section > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 17px;
}

.checkin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.checkin-plan {
  min-height: 250px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, .68);
  box-shadow: 0 10px 28px rgba(39, 34, 28, .06);
  padding: 28px;
}

.checkin-plan h3 {
  margin: 0 0 8px;
  font-size: 30px;
}

.checkin-plan strong {
  font-size: 26px;
}

.checkin-plan p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.checkin-plan a {
  align-self: end;
  justify-self: center;
  font-size: 18px;
  font-weight: 820;
}

.recharge-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.recharge-grid .plan {
  min-height: 260px;
}

.billing-note {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .46);
  padding: 10px 12px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.55;
}

.api-reserved {
  margin-top: 12px;
}

.disabled-row {
  opacity: .56;
}

@media (max-width: 720px) {
  .auth-shell {
    min-height: calc(100vh - 104px);
    align-content: start;
    justify-items: stretch;
    padding: 38px 0 54px;
  }

  .auth-title h1 {
    font-size: 28px;
  }

  .auth-card {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    padding: 24px 18px;
  }

  .auth-code-row {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .auth-code-send {
    width: 96px;
    min-width: 0;
    padding-inline: 6px;
    font-size: 11px;
  }

  .workspace-focused {
    margin: 0;
  }

  .billing-title {
    align-items: start;
    flex-direction: column;
    padding-top: 34px;
  }

  .billing-shell,
  .account-shell,
  .account-main {
    width: min(100%, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }

  .main-package-grid,
  .billing-layout,
  .pay-grid,
  .pay-actions,
  .account-shell,
  .checkin-grid {
    grid-template-columns: 1fr;
  }

  .main-package-grid,
  .pay-grid,
  .pay-actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .billing-summary {
    position: static;
  }

  .account-side {
    position: static;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
  }

  .user-pill {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
  }

  .checkin-card {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px;
  }

  .checkin-action {
    justify-self: start;
  }

  .checkmark {
    position: absolute;
    top: 24px;
    right: 24px;
  }
}
