/* Customer account-only additions. */
/* Zero the intrinsic minimum so grid items and native file controls can shrink. */
.account-page,.account-service{width:100%;min-width:0;max-width:100%;overflow-wrap:anywhere}
.account-page *,.account-service *{box-sizing:border-box;min-inline-size:0}
.account-page .stack,.account-service.stack,.account-service .stack{grid-template-columns:minmax(0,1fr)}
.account-page label,.account-service label{min-width:0;max-width:100%;white-space:normal}
.account-page label:has(>input[type=checkbox]){display:block;line-height:1.65}
.account-page input[type=checkbox]{width:auto;max-width:100%;margin:0 6px 0 0;vertical-align:middle}
.account-page input:not([type=checkbox]),.account-page select,.account-page textarea,.account-service input,.account-service textarea{display:block;width:100%;max-width:100%;min-width:0;font:inherit}
.account-page textarea,.account-service textarea{resize:vertical}
.account-page .btn,.account-service .btn{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center}
.account-page [hidden]{display:none!important}
.account-payout-snapshot{padding:14px;border:1px solid #dce7e5;border-radius:12px;background:#f5faf9;overflow-wrap:anywhere}
.account-payout-snapshot p{margin:8px 0 0}
.account-service{max-width:760px;margin:0 auto 32px}
.account-service [hidden]{display:none!important}
.account-service-messages{height:min(52vh,480px);min-height:220px;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:14px;padding:12px;background:#f4f7f9;border-radius:12px;scrollbar-gutter:stable}
.account-service-message{max-width:88%;min-width:120px;border-radius:12px;background:#fff;padding:12px;align-self:flex-start;border:1px solid #e1e8ec;overflow-wrap:anywhere;flex-shrink:0}
.account-service-message.from-customer{align-self:flex-end;background:#e5f4f0;border-color:#c5e3db}
.account-service-message p{white-space:pre-wrap;margin:8px 0}
.account-service-message small{display:block;color:#5a6971;margin-top:6px}
.account-service-message img,.account-service-attachment img{display:block;max-width:100%;max-height:220px;object-fit:contain;border-radius:8px;margin:8px 0}
.account-service-message button{margin-top:8px}
.account-service textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:90px}
.account-service-attachment{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.account-service-attachment img{max-width:160px;max-height:120px}
.account-service input[type=file]{max-width:100%}
.account-service-messages{width:100%;max-width:100%;min-width:0;overflow-x:hidden}
.account-service-message{min-width:0;word-break:normal}
.account-service input[type=file]{overflow:hidden;font-size:14px}
.account-service input[type=file]::file-selector-button{max-width:100%;min-height:40px;margin-right:8px;white-space:normal}
@media(max-width:480px){
  .account-page .panel,.account-service .panel{padding:16px;border-radius:12px}
  .account-page .grid{grid-template-columns:minmax(0,1fr)}
  .account-page .stack,.account-service.stack,.account-service .stack{gap:12px}
  .account-page h1,.account-service h1{font-size:24px;line-height:1.3}
  .account-page h2,.account-service h2{font-size:19px}
  .account-page .btn,.account-service [data-service-start],.account-service [data-service-compose]>button{width:100%;min-height:46px}
  .account-page input:not([type=checkbox]),.account-page select,.account-page textarea,.account-service textarea{font-size:16px}
  .account-page textarea{min-height:120px;padding:10px 12px;border:1px solid #aabac5;border-radius:8px}
  .account-payout-snapshot{padding:12px}
  .account-service-messages{padding:8px;height:44vh;height:clamp(180px,44svh,420px);min-height:180px;gap:10px;scrollbar-gutter:auto}
  .account-service-message{max-width:94%;padding:10px}
  .account-service-message small{font-size:12px}
  .account-service-attachment{gap:8px}
  .account-service-attachment img{max-width:min(100%,140px);height:auto}
}

/* Reference user center: pastel profile, compact wallet and four-column actions. */
body[data-page="center"]{background:#fff;color:#222;font-family:Arial,"Microsoft YaHei",sans-serif}
body[data-page="center"]>.header,body[data-page="center"]>.footer{display:none}
body[data-page="center"] main.wrap{width:100%;max-width:750px;padding:0 0 88px;margin:0 auto;min-height:100vh;background:linear-gradient(90deg,#f6fbff 0,#fff 14%,#fff 86%,#f6fbff 100%)}
.account-center{width:100%;color:#222}
.account-profile{display:flex;align-items:center;gap:14px;height:132px;padding:24px 16px 24px;color:#222;background:linear-gradient(110deg,#def7fd,#f7f8f5 58%,#f2e3f5);text-decoration:none}
.account-profile:hover{text-decoration:none}.account-profile strong{font-size:22px;font-weight:700}.account-avatar{display:block;flex:0 0 70px;width:70px;height:70px;border-radius:50%;background:#ffffffb8;padding:5px}.account-avatar svg{display:block;width:100%;height:100%}.account-profile-arrow{margin-left:auto;font-size:32px;font-weight:300;color:#bfc0c4}
.account-balance{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:68px;margin:14px 16px 16px;padding:14px 20px;background:#fff;border-radius:12px;box-shadow:0 5px 16px #0000000c}
.account-balance a{text-decoration:none}.account-balance-value{display:flex;align-items:center;gap:10px;color:#999;font-size:15px;min-width:0}.account-balance-value svg{width:20px;height:20px;color:#e8d900;flex-shrink:0}.account-balance-value strong{font-size:23px;color:#222;white-space:nowrap}.account-withdraw{display:flex;align-items:center;gap:6px;white-space:nowrap;color:#bfbfbf;font-size:14px}.account-withdraw span{font-size:25px;line-height:1}
.account-menu{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));row-gap:17px;margin:0 16px;padding:20px 16px 18px;background:#fff;border-radius:12px;box-shadow:0 5px 16px #0000000c}
.account-menu-item{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:72px;padding:0;border:0;background:none;color:#222;text-decoration:none;font:inherit;font-size:16px;cursor:pointer;white-space:nowrap}.account-menu-item:hover{text-decoration:none}.account-menu-item svg{display:block;width:30px;height:30px}.account-switch{margin:0;padding:0;border:0;background:none;min-width:0}
.account-legal{display:flex;justify-content:center;gap:22px;margin:32px 12px 0;font-size:14px}.account-legal a{color:#bfbfbf;text-decoration:underline}
.account-demo-details{margin:18px 16px;color:#b5b5b5;font-size:11px;text-align:center}.account-demo-details summary{cursor:pointer;list-style:none}.account-demo-details p{margin:12px 0;color:#777}.account-demo-details div{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.account-demo-details a{font-size:13px}
body[data-page="center"] .reference-tabs{max-width:750px}body[data-page="center"] .reference-tabs .active:not(.estimate-tab) .tab-icon svg{fill:currentColor;stroke-width:0}
@media(max-width:420px){.account-profile{height:112px;padding:18px 14px;gap:12px}.account-avatar{flex-basis:60px;width:60px;height:60px}.account-profile strong{font-size:20px}.account-balance{margin:12px 12px 14px;padding:13px 14px;min-height:62px}.account-balance-value{gap:7px;font-size:13px}.account-balance-value strong{font-size:21px}.account-withdraw{font-size:12px}.account-menu{margin:0 12px;padding:20px 8px 16px;row-gap:16px}.account-menu-item{font-size:14px;gap:10px;min-height:66px}.account-menu-item svg{width:28px;height:28px}.account-legal{font-size:12px;gap:18px;margin-top:30px}}
body[data-page="center"] nav.reference-tabs{height:64px;margin:auto;grid-template-columns:repeat(3,1fr)}
body[data-page="center"] nav.reference-tabs a.estimate-tab{position:absolute;top:-24px;left:50%;transform:translateX(-50%);width:72px;height:72px;padding:10px 0;border:0;border-radius:50%;background:#ffeb00;box-shadow:0 4px 10px #ffdf0050;color:#333;font-size:13px;gap:5px}
body[data-page="center"] nav.reference-tabs a.estimate-tab .tab-icon{position:static;top:auto;width:25px;height:25px;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#fff}
body[data-page="center"] nav.reference-tabs a.estimate-tab .tab-icon svg{width:25px;height:25px}
body[data-page="center"] nav.reference-tabs a.active:not(.estimate-tab) .tab-icon{color:#f2de00}
body[data-page="center"] nav.reference-tabs>a:last-child{grid-column:3}

/* Login has its own H5 shell, independent of desktop navigation. */
body[data-page="login"]{background:#fff;color:#111;font-family:Arial,"Microsoft YaHei",sans-serif}
body[data-page="login"]>.header,body[data-page="login"]>.footer{display:none}
body[data-page="login"] main.wrap{width:100%;max-width:750px;margin:0 auto;padding:0;min-height:100vh}
.account-login-page{background:linear-gradient(135deg,#ffd100,#ffeb00);min-height:100vh}
.login-hero{width:100%;height:auto;aspect-ratio:500/266;overflow:hidden}
.login-hero svg{display:block;width:100%;height:100%}
.login-sheet{position:relative;border-radius:26px 26px 0 0;background:#fff;min-height:calc(100svh - 53.2vw);padding:32px 26px 40px}
.account-page .login-sheet h1{font-size:25px;line-height:36px;margin:0 0 28px;color:#111;font-weight:700}
.account-login-form{display:block;margin:0;padding:0}
.account-login-page input.login-field{height:60px;min-height:0;padding:0 18px;border:0;border-radius:8px;background:#f5f6f7;box-shadow:none;font-size:18px;font-weight:400;color:#222;outline-offset:3px}
.account-login-page input.login-field::placeholder{color:#b7b9bc;opacity:1}
.login-code-row{height:50px;display:flex;align-items:center;justify-content:flex-end}
.login-code-button{border:0;padding:8px 5px;background:transparent;font:inherit;font-size:16px;color:#111;cursor:pointer;max-width:100%}
.login-code-button:disabled{color:#999;cursor:default}
.login-submit{display:block;width:100%;height:60px;margin-top:30px;border:0;border-radius:8px;background:linear-gradient(100deg,#ffd100,#ffe900);color:#111;font:inherit;font-size:20px;font-weight:700;cursor:pointer}
.account-page .login-sheet label.login-agreement{display:flex;align-items:flex-start;justify-content:center;gap:6px;margin-top:20px;font-size:14px;line-height:23px;font-weight:400;color:#657180}
.account-page .login-agreement input[type="checkbox"]{appearance:none;flex:0 0 23px;width:23px;height:23px;margin:0;border:1px solid #bfc1c4;border-radius:4px;background:#fff;cursor:pointer}
.account-page .login-agreement input:checked{background:#ffdf00;border-color:#e5c900}
.account-page .login-agreement input:checked:after{content:'✓';display:block;text-align:center;color:#333;font-size:18px;line-height:21px}
.login-agreement a{color:#17344f;text-decoration:none}
.login-demo-note{margin:18px 0 0;font-size:11px;line-height:1.7;color:#a2a2a2;text-align:center;font-weight:400}
.login-demo-note strong{font-weight:500}
.login-channel{margin:14px 0 0;color:#aaa;font-size:11px;text-align:center}
.login-channel summary{cursor:pointer}.login-channel input{margin-top:12px}
.account-login-page [data-account-error]:not([hidden]){padding:12px;margin:0 0 16px;border:1px solid #f0c3b8;border-radius:8px;background:#fff7f3;color:#a23b21;font-size:14px}
@media(max-width:420px){.login-sheet{padding:26px 20px 32px;border-radius:22px 22px 0 0}.account-page .login-sheet h1{font-size:22px;line-height:32px;margin-bottom:24px}.account-login-page input.login-field{height:50px;font-size:16px;padding:0 15px}.login-code-row{height:43px}.login-code-button{font-size:14px}.login-submit{height:50px;margin-top:25px;font-size:18px}.account-page label.login-agreement{font-size:12px;line-height:20px;margin-top:18px;gap:5px}.account-page .login-agreement input[type="checkbox"]{flex-basis:20px;width:20px;height:20px}.account-page .login-agreement input:checked:after{font-size:16px;line-height:18px}}



