/* Customer touch layout; business and payment behavior remain in portal.js. */
body.customer-surface{min-width:0;min-height:100dvh}
.customer-initial-loading{width:min(100%,445px);margin:24px auto;padding:24px 18px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--muted);font-size:16px;line-height:1.7;text-align:center}
.customer-surface .password-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}
.customer-surface .auth-panel .password-row input{padding-right:12px}
.customer-surface .auth-panel .password-row button,.customer-surface .password-row button{width:auto;min-width:56px;min-height:48px;margin:0;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--accent);font-size:14px;line-height:1.4;z-index:auto}
.customer-surface .auth-panel .password-row button::before{content:none}
.customer-surface .auth-panel .password-row button:hover:enabled{background:var(--soft);border-color:var(--accent)}
.customer-surface .browser-card header>div,.customer-surface .page-heading>div{min-width:0}
.customer-surface .browser-card h2,.customer-surface #welcome,.customer-surface #account-email{overflow-wrap:anywhere}
.browser-primary-actions>a{min-height:48px;justify-content:center;font-weight:650;gap:8px}
.browser-access-help{margin:0;font-size:13px;line-height:1.7}
.browser-more{border-top:1px solid var(--line);padding-top:5px}
.browser-more>summary{min-height:48px;padding:12px 2px;cursor:pointer;font-size:14px;font-weight:600;color:var(--accent)}
.browser-more>summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.browser-secondary-actions{padding:6px 0 0;gap:10px}
.browser-secondary-actions>a{background:var(--panel);border:1px solid var(--line);color:var(--accent)}
.browser-secondary-actions [data-risk-action]{color:var(--danger)}
.browser-list>.empty{display:grid;justify-items:center;gap:18px;line-height:1.7}
.customer-network-status{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px 14px;margin-bottom:16px;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:7px;background:var(--panel)}
.customer-network-status p{font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.customer-network-status button{flex-shrink:0;min-height:48px}
.customer-network-status[data-offline=true]{border-left-color:var(--danger)}
.customer-surface .lcb-terms-copy{min-width:0;line-height:1.7;overflow-wrap:anywhere}
.customer-surface .auth-panel [data-auth-field=terms]{display:grid;grid-template-columns:20px minmax(0,1fr);gap:9px;align-items:start}
.customer-surface .auth-panel [data-auth-field=terms] input{width:20px;min-height:20px;height:20px;margin-top:10px}
.customer-surface .lcb-terms-copy a{display:inline-block;min-height:44px;line-height:44px;vertical-align:baseline}
.customer-surface .auth-legal button{min-height:44px;padding:5px 4px}
.customer-surface .auth-tabs button,.customer-surface .auth-method-switch button{min-height:44px}
.customer-surface .auth-panel input,.customer-surface .auth-panel select{font-size:16px;min-height:48px}
.customer-surface .auth-panel .primary{min-height:48px;font-size:16px;font-weight:600}
.customer-surface .auth-panel input[type=checkbox]{min-height:20px}
.customer-surface .email-code-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}
.customer-surface .email-code-row button{min-height:48px;min-width:110px;padding:8px 10px;font-size:13px;color:var(--accent)}
body.customer-surface.auth-active main{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-height:100dvh;padding:0 max(12px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
body.customer-surface.auth-active #auth{padding:32px 12px 24px;margin-top:env(safe-area-inset-top)}
body.customer-surface.auth-active #message{position:static;transform:none;left:auto;top:auto;max-width:445px;width:100%;margin:12px 0 0;border-radius:7px;font-size:13px}
body.customer-surface.auth-active .customer-network-status{max-width:445px;margin-top:12px;margin-bottom:0}
.customer-surface dialog.lcb-mobile-dialog form.lcb-mobile-dialog-frame{gap:14px}
.customer-surface .lcb-mobile-dialog-body{display:grid;gap:14px;min-width:0}

@media(max-width:768px){
  .customer-surface .masthead{padding:12px max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left));gap:10px}
  .customer-surface .brand{font-size:13px;gap:8px;min-width:0}.customer-surface .brand .mark{width:36px;height:36px;flex-shrink:0;font-size:13px}.customer-surface .brand small{font-size:11px}
  .customer-surface .header-actions{gap:6px;flex-wrap:nowrap}.customer-surface .header-actions button{min-height:48px;font-size:12px;padding:8px}
  .customer-surface main{width:100%;padding:20px max(12px,env(safe-area-inset-right)) 24px max(12px,env(safe-area-inset-left));min-height:calc(100dvh - 150px)}
  .customer-surface .page-heading{align-items:flex-start;gap:10px;margin-bottom:16px}.customer-surface .page-heading h1{font-size:clamp(22px,5.8vw,28px);line-height:1.35}.customer-surface .page-heading p{font-size:12px}.customer-surface #refresh{min-height:48px;min-width:76px;flex-shrink:0;padding:8px;font-size:12px}
  .customer-surface .portal-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:16px 0 20px;padding-bottom:14px;overflow:visible}
  .customer-surface .portal-tabs button{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:48px;padding:6px;font-size:13px;line-height:1.35;white-space:normal;word-break:keep-all;border:1px solid var(--line);border-radius:7px;background:var(--panel)}
  .customer-surface .portal-tabs button.active{color:var(--accent);border-color:var(--accent);background:var(--soft);font-weight:650}.customer-surface .portal-tabs .lcb-message-badge{margin-left:0;min-width:18px;height:18px;padding:0 3px;font-size:10px}
  .customer-surface .split,.customer-surface .two{grid-template-columns:1fr}.customer-surface .panel,.customer-surface .browser-card{min-width:0;padding:16px}.customer-surface .browser-card{gap:13px}.customer-surface .browser-card h2{font-size:19px;line-height:1.4;margin-bottom:4px}.customer-surface .browser-card header{gap:8px;flex-wrap:wrap}.customer-surface .browser-card dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.customer-surface .browser-card dd{font-size:13px}.customer-surface .status{font-size:11px;padding:4px 8px}
  .customer-surface .browser-primary-actions>a{width:100%;font-size:16px;padding:12px}.customer-surface .browser-secondary-actions{display:grid;grid-template-columns:1fr;gap:8px}.customer-surface .browser-secondary-actions>*{width:100%;min-height:48px;justify-content:center;font-size:14px}
  .customer-surface input,.customer-surface select,.customer-surface textarea{font-size:16px;min-height:48px}.customer-surface input[type=checkbox]{min-height:20px}.customer-surface .primary,.customer-surface .gift-card-buttons a{min-height:48px}.customer-surface .gift-card-buttons a{width:100%;justify-content:center}.customer-surface .price{font-size:23px}.customer-surface .balance-strip{gap:18px}.customer-surface .product-summary{padding:12px;font-size:13px}.customer-surface .product-summary strong{overflow-wrap:anywhere}
  .customer-surface .auth-captcha-field .captcha-row{grid-template-columns:minmax(0,1fr) 144px;gap:8px}.customer-surface .auth-captcha-field .captcha-row button{width:144px;min-height:48px;height:48px}.customer-surface .auth-captcha-field .captcha-row img{width:144px;height:48px;object-fit:contain}
  .customer-surface .auth-panel .auth-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px}.customer-surface .auth-tabs button[data-auth=recover]{margin-left:0}.customer-surface .auth-heading h1{font-size:27px}.customer-surface .auth-note button{min-height:40px;padding:5px 2px}
  .customer-surface .customer-record-table,.customer-surface .customer-record-table tbody{display:block;width:100%}.customer-surface .customer-record-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.customer-surface .customer-record-table tbody{display:grid;gap:10px;padding:10px}.customer-surface .customer-record-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:7px;padding:8px}.customer-surface .customer-record-table td{display:block;min-width:0;padding:7px;border:0;white-space:normal;font-size:13px;overflow-wrap:anywhere}.customer-surface .customer-record-table td::before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:4px}.customer-surface .customer-record-table td:first-child{grid-column:1/-1}.customer-surface .customer-record-table td[data-label=说明]{grid-column:1/-1}.customer-surface .table-wrap{overflow-x:auto;max-width:100%;margin:14px 0 24px}
  .customer-surface .site-footer{padding:20px max(14px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));overflow-wrap:anywhere}
  .customer-surface .customer-network-status{flex-wrap:wrap}.customer-surface .customer-network-status button{margin-left:auto}
}
@media(max-width:900px),(max-height:500px){
  .customer-surface dialog.lcb-mobile-dialog[open]{position:fixed;inset:auto;left:50%;top:calc(var(--lcb-visible-top,0px) + max(12px,env(safe-area-inset-top)));transform:translateX(-50%);margin:0;width:min(560px,calc(var(--lcb-visible-width,100vw) - 24px));max-height:calc(var(--lcb-visible-height,100dvh) - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom)));padding:18px;overflow:hidden;box-sizing:border-box}
  .customer-surface dialog.lcb-mobile-dialog[open].lcb-mobile-dialog-frame,.customer-surface dialog.lcb-mobile-dialog form.lcb-mobile-dialog-frame{display:flex;flex-direction:column;gap:14px;min-height:0;max-height:calc(var(--lcb-visible-height,100dvh) - 64px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
  .customer-surface dialog.lcb-mobile-dialog header,.customer-surface dialog.lcb-mobile-dialog footer{flex-shrink:0;gap:10px;margin:0}.customer-surface dialog.lcb-mobile-dialog header h2{font-size:20px;line-height:1.4;overflow-wrap:anywhere}.customer-surface dialog.lcb-mobile-dialog header>button{flex-shrink:0;min-width:48px;min-height:48px}
  .customer-surface dialog.lcb-mobile-dialog .lcb-mobile-dialog-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:3px;scroll-padding-block:16px;-webkit-overflow-scrolling:touch}.customer-surface dialog.lcb-mobile-dialog .lcb-message-text{max-height:none;overflow:visible;margin:0}.customer-surface dialog.lcb-mobile-dialog footer button{min-height:48px;flex:1;white-space:normal;font-size:14px}.customer-surface dialog.lcb-mobile-dialog p{font-size:13px;line-height:1.7}.customer-surface dialog.lcb-mobile-dialog input{font-size:16px;min-height:48px}
}
@media(max-height:500px) and (orientation:landscape){
  .customer-surface .masthead{padding-top:max(8px,env(safe-area-inset-top));padding-bottom:8px}.customer-surface main{padding-top:14px}.customer-surface .page-heading{margin-bottom:12px}.customer-surface .page-heading h1{font-size:22px}.customer-surface .portal-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 16px;padding-bottom:10px}.customer-surface .portal-tabs button{flex:1 1 105px;min-height:48px;font-size:13px;padding:7px}.customer-surface .browser-card dl{grid-template-columns:1fr 1fr}
  body.customer-surface.auth-active #auth{max-width:560px;padding-top:20px}.customer-surface .auth-heading{margin-bottom:10px}.customer-surface .auth-heading h1{font-size:24px}.customer-surface .auth-panel form{gap:12px}
}
@media(max-width:359px){.customer-surface .header-actions button{font-size:11px;padding:7px}.customer-surface .brand{gap:6px}.customer-surface .brand .mark{width:32px;height:32px}.customer-surface .auth-captcha-field .captcha-row{grid-template-columns:minmax(0,1fr) 136px}.customer-surface .auth-captcha-field .captcha-row button,.customer-surface .auth-captcha-field .captcha-row img{width:136px}.customer-surface .email-code-row{grid-template-columns:minmax(0,1fr) 112px;gap:6px}.customer-surface .email-code-row button{font-size:12px;padding-inline:6px}.customer-surface .browser-card dl{grid-template-columns:1fr}.customer-surface .portal-tabs button{font-size:12px}}

/* Keep the inline registration shortcut as easy to tap as the tabs. */
.customer-surface .auth-panel .auth-note button{display:inline-flex;align-items:center;min-height:44px;padding:4px 8px}

@media(max-width:760px){.customer-surface .masthead #lcb-version-badge{display:none}.customer-surface .masthead .brand>span:last-child{white-space:nowrap}.customer-surface .header-actions button{white-space:nowrap}}
