.phone-tabs, .phone-links, .phone-code-row { display: flex; gap: .5rem; align-items: center; }
.phone-tabs { margin: 1.15rem 0; }
.phone-tabs .button { flex: 1; }
.phone-tabs [aria-pressed="true"] { color: #153c96; background: #edf2ff; border-color: #7891d8; }
.phone-links { margin-top: 1rem; justify-content: space-between; flex-wrap: wrap; }
.phone-links .button { font-size: .82rem; text-decoration: none; }
.phone-form { display: grid; gap: .45rem; margin: .75rem 0; }
.phone-form label { margin: .25rem 0 0; color: #253650; font-size: .88rem; font-weight: 650; }
.phone-form input { width: 100%; min-width: 0; padding: .68rem .78rem; border: 1px solid #bac5da; border-radius: 9px; font: inherit; color: #172644; background: white; }
.phone-form input:focus-visible { outline: 2px solid #557bd9; outline-offset: 1px; }
.phone-form .phone-code-row input { flex: 1; width: 0; }
.phone-code-row .button { flex: none; }
.phone-message { color: #394e70; font-size: .86rem; line-height: 1.5; overflow-wrap: anywhere; }
.phone-message:empty { display: none; }
.phone-form .phone-message { margin: .25rem 0; }
.phone-dialog { box-sizing: border-box; width: min(420px, calc(100% - 28px)); max-height: 88dvh; overflow: auto; border: 1px solid #cfd7e5; border-radius: 16px; padding: 24px; color: #172644; background: white; }
.phone-dialog::backdrop { background: #17283d70; }
.phone-dialog > .phone-message { margin: .65rem 0; }
.signin .phone-tabs button, .signin .phone-links button, .signin .phone-form button { width: auto; margin: 0; }
.phone-form [type="submit"] { margin-top: .45rem; }
#login-form[hidden], .phone-form[hidden] { display: none; }
@media (max-width: 410px) {
  .phone-tabs .button, .phone-links .button, .phone-code-row .button { padding-inline: .65rem; font-size: .82rem; }
  .user-area, .identity { flex-wrap: wrap; }
}

.customer-entry { width: min(450px, calc(100% - 28px)); border-top-color: var(--accent); }
.customer-entry.with-wechat { width: min(842px, calc(100% - 32px)); }
.customer-entry .signin-panel { padding: 0; }
.customer-entry .signin-heading { margin: 0; padding: 17px 24px; border-bottom: 1px solid #e8ecf4; }
.customer-entry .signin-heading h2 { font-size: 1.14rem; }
.customer-entry .signin-logo { width: 36px; height: 36px; }
.customer-entry .notice-demo { margin: 12px 24px 0; }
.customer-entry-layout { display: grid; align-items: stretch; }
.with-wechat .customer-entry-layout { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.customer-entry h3, .wx-security h3 { margin: 0; color: var(--ink); font-size: 1.18rem; line-height: 1.4; }
.phone-column, .wx-column { min-width: 0; padding: clamp(20px, 3vw, 32px); }
.phone-column { align-self: center; }
.wx-column { text-align: center; background: #f7f9ff; border-right: 1px solid #e2e8f3; }
.customer-entry-hint { margin: 7px 0 14px; font-size: .88rem; line-height: 1.6; color: var(--muted); }
.wx-column > .customer-entry-hint { margin: 14px auto 0; max-width: 29ch; }
.wx-reader { text-align: center; }
.wx-qr-display:not(:empty) { width: min(100%, 302px); margin: 12px auto; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid #e1e6ee; }
.wx-qr-display iframe { display: block; width: 100%; height: 400px; border: 0; }
.wx-reader .phone-message { margin: 10px 0; }
.wx-retry { font-size: .82rem; min-height: 34px; padding: 5px 12px; }
.customer-entry .signin-information { padding: 0 18px 16px; margin: 0; }
.customer-entry .phone-form { margin: 14px 0 0; }
.customer-entry .phone-form label.entry-consent { display: flex; align-items: flex-start; gap: 7px; font-weight: 400; font-size: .78rem; line-height: 1.6; margin: 8px 0 0; }
.entry-consent input[type="checkbox"] { flex: none; width: 16px; height: 16px; margin: .12em 0 0; padding: 0; accent-color: var(--accent); }
.entry-consent a { color: var(--accent-strong); }
.entry-login-method { display: flex; justify-content: center; margin-top: 13px; }
.entry-login-method .button { font-size: .86rem; min-height: 35px; padding: 5px 16px; }
.entry-login-method:not(:has(.button:not([hidden]))) { display: none; }
.entry-alternatives { gap: .5rem; }
.entry-alternatives .button { min-height: 34px; padding: 5px 9px; }
.entry-alternatives > a:last-child { margin-left: auto; }
.entry-switcher { display: flex; gap: 7px; margin: 16px 18px 0; }
.entry-switcher .button { flex: 1; padding: 7px; min-height: 39px; }
.entry-switcher [aria-pressed="true"] { color: var(--accent-strong); background: var(--accent-soft); border-color: #91a7e1; }
.wx-security { margin: 18px 0; padding: 18px 0 0; border-top: 1px solid #dfe5ef; }
.wx-security h3 { font-size: 1rem; }
.wx-security > .phone-message { margin: 8px 0; }
@media (max-width: 680px) {
  .customer-entry.with-wechat { width: min(450px, calc(100% - 20px)); }
  .with-wechat .customer-entry-layout { grid-template-columns: minmax(0, 1fr); }
  .customer-entry .signin-heading { position: sticky; top: 0; z-index: 1; padding: 14px 18px; background: #fff; }
  .phone-column, .wx-column { padding: 20px 18px 22px; }
  .wx-column { border-right: 0; background: #fff; }
}
