.airpc-legacy-header[hidden]{display:none!important}
#airpc-header{--th-text:#182b47;--th-panel:#fff;--th-line:#e4eaf2;--th-muted:#677890;--th-soft:#edf3ff;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 24px;background:var(--th-panel);color:var(--th-text);border-bottom:1px solid var(--th-line);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;position:relative;z-index:100}
#airpc-header *{box-sizing:border-box}#airpc-header a{color:inherit;text-decoration:none}#airpc-header .th-brand{font-size:25px;font-weight:800;color:#2468ec;letter-spacing:-1px}#airpc-header .th-nav,#airpc-header .th-group{display:flex;align-items:center;gap:14px}#airpc-header .th-group+.th-group{border-left:1px solid var(--th-line);padding-left:14px}#airpc-header .th-link,#airpc-header .th-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 6px;white-space:nowrap;border:0;border-radius:7px;background:transparent;color:var(--th-text);font:inherit;cursor:pointer}#airpc-header .th-link:hover,#airpc-header .th-button:hover{background:var(--th-soft);color:#2468ec}#airpc-header svg{width:22px;height:22px;flex:none}#airpc-header .th-button{min-width:44px;position:relative}#airpc-header :is(a,button):focus-visible{outline:2px solid #2468ec;outline-offset:2px}#airpc-header .th-badge{position:absolute;right:0;top:0;background:#f06a26;color:white;border:2px solid var(--th-panel);border-radius:20px;min-width:20px;padding:0 4px;font-size:11px;font-weight:700}#airpc-header [hidden]{display:none!important}#airpc-header .th-avatar{width:36px;height:36px;display:grid;place-items:center;background:#edf3ff;color:#2468ec;border-radius:50%}#airpc-header .th-account-copy{display:flex;flex-direction:column;text-align:left;max-width:170px}#airpc-header .th-account-copy>span{overflow:hidden;text-overflow:ellipsis}#airpc-header small,#airpc-header .th-role{color:var(--th-muted);font-size:12px}#airpc-header .th-panel{position:fixed;width:340px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 120px);overflow:auto;background:var(--th-panel);border:1px solid var(--th-line);border-radius:12px;box-shadow:0 12px 38px #182b4729;padding:14px;z-index:200;text-align:left;white-space:normal}#airpc-header .th-panel h3{font-size:16px;margin:0 0 8px}#airpc-header .th-panel p{margin:8px 0}#airpc-header .th-panel .th-link,#airpc-header .th-menu-item{display:flex;justify-content:flex-start;white-space:normal;width:100%;text-align:left;min-height:44px}#airpc-header .th-menu-item{font:inherit;color:var(--th-text);border:0;border-radius:6px;background:transparent;padding:10px;cursor:pointer}#airpc-header .th-menu-item:hover,#airpc-header .th-menu-item[aria-pressed=true]{background:var(--th-soft);color:#2468ec}#airpc-header .th-message{flex-wrap:wrap;border-bottom:1px solid var(--th-line);padding:10px 6px}#airpc-header .th-message span{flex:1;min-width:0}#airpc-header .th-message small{width:100%;padding-left:28px}#airpc-header .th-unread{font-weight:650}#airpc-header .th-email{overflow-wrap:anywhere;display:block}
/* One brand row and one eight-item navigation row on phones and tablets. */
#airpc-header .th-identity{display:flex;align-items:center;gap:16px;min-width:0;flex:1}
#airpc-header .th-brand{flex:none;display:block;position:relative;width:240px;height:44px;overflow:hidden}
#airpc-header .th-wordmark{display:block;position:absolute;top:50%;left:0;width:100%;height:auto;transform:translateY(-51%)}
#airpc-header #sf-title{font:600 clamp(12px,1.35vw,18px)/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;letter-spacing:0;margin:0;white-space:nowrap}
#airpc-header .th-home-link{order:3;flex:none;color:#2468ec;min-height:44px;padding:8px 10px}
#airpc-header .th-tool-label{display:none}
#airpc-header .th-nav .th-link[aria-current=page]{background:var(--th-soft);color:#2468ec;font-weight:700}
@media(min-width:1201px) and (max-width:1350px){#airpc-header .th-account-copy{display:none}#airpc-header .th-nav,#airpc-header .th-group{gap:8px}#airpc-header .th-group+.th-group{padding-left:8px}}
@media(max-width:1200px){
 #airpc-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:10px 12px}
 #airpc-header .th-identity{grid-row:1;grid-column:1;gap:10px;min-height:44px}
 #airpc-header.th-home .th-identity{grid-column:1/-1}
 #airpc-header .th-home-link{grid-row:1;grid-column:2}
 #airpc-header .th-nav{grid-row:2;grid-column:1/-1;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:0;width:100%;min-width:0}
 #airpc-header .th-nav .th-group{display:contents}
 #airpc-header .th-nav .th-link,#airpc-header .th-nav .th-button{display:flex;flex-direction:column;justify-content:center;gap:3px;width:100%;min-width:0;min-height:60px;align-self:stretch;padding:4px 1px;font-size:12px;line-height:1.3;white-space:normal;text-align:center}
 #airpc-header .th-nav svg{width:22px;height:26px}
 #airpc-header .th-avatar{width:26px;height:26px}
 #airpc-header .th-tool-label{display:block}
 #airpc-header .th-account-copy{display:none}
 #airpc-header .th-badge{right:calc(50% - 24px);top:0}
 #airpc-header .th-brand{width:230px}
 #airpc-header #sf-title{font-size:clamp(11px,3.1vw,16px)}
 html:lang(zh-CN) #airpc-header #sf-title{font-size:clamp(13px,3.6vw,16px)}
}
@media(max-width:620px){#airpc-header .th-panel{right:12px!important}#airpc-header .th-nav .th-link,#airpc-header .th-nav .th-button{font-size:11px}}
@media(max-width:360px){#airpc-header{padding-right:6px;padding-left:6px}#airpc-header .th-brand{width:210px}#airpc-header .th-identity{gap:8px}#airpc-header #sf-title{font-size:10px}}
@media(prefers-color-scheme:dark){#airpc-header{--th-text:#e5edf8;--th-panel:#1b2330;--th-line:#334054;--th-muted:#a2b1c6;--th-soft:#213450}#airpc-header .th-avatar{background:#213450;color:#88b2ff}}

#airpc-header .th-message-detail{margin:16px 0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:10px 12px}
#airpc-header .th-message-detail dt{color:var(--th-muted)}
#airpc-header .th-message-detail dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
#airpc-header .th-detail-time{font-size:12px;color:var(--th-muted)}
#airpc-header .th-toast{position:fixed;right:16px;bottom:20px;width:360px;max-width:calc(100vw - 24px);display:flex;align-items:flex-start;gap:8px;background:var(--th-panel);color:var(--th-text);border:1px solid var(--th-line);border-left:4px solid #2468ec;border-radius:12px;padding:12px;box-shadow:0 12px 38px #182b4729;z-index:250;text-align:left}
#airpc-header .th-toast-open{border:0;background:transparent;color:inherit;font:inherit;text-align:left;padding:0;min-width:0;flex:1;cursor:pointer;display:flex;flex-direction:column;gap:6px}
#airpc-header .th-toast-open strong{font-size:16px;overflow-wrap:anywhere}
#airpc-header .th-toast-summary{color:var(--th-muted);font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
#airpc-header .th-toast-close{border:0;border-radius:6px;background:transparent;color:var(--th-muted);font-family:inherit;font-size:22px;line-height:1;min-width:44px;min-height:44px;cursor:pointer}

/* Account details and popover items retain the same alignment at every viewport. */
#airpc-header .th-account-panel {width:420px;}
#airpc-header .th-identity-value {display:flex;align-items:center;gap:8px;min-width:0;}
#airpc-header .th-identity-text {min-width:0;flex:1;overflow-wrap:anywhere;user-select:text;}
#airpc-header .th-email-row {font-weight:700;}
#airpc-header .th-uid-row {color:var(--th-muted);font-size:13px;}
#airpc-header .th-copy {flex:none;min-width:60px;min-height:44px;padding:6px 8px;border:1px solid var(--th-line);border-radius:7px;background:var(--th-panel);color:#2468ec;font-family:inherit;font-size:12px;font-weight:500;line-height:1.3;cursor:pointer;}
#airpc-header .th-copy:hover {background:var(--th-soft);}
#airpc-header .th-partner-row {display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;}
#airpc-header .th-partner-row .th-role {flex:none;font-size:13px;}
#airpc-header .th-invitation-group {margin:6px 0;}
#airpc-header .th-invitation-row {font-size:12px;}
#airpc-header .th-invitation-label {color:var(--th-muted);flex:none;}
#airpc-header .th-invitation-row .th-identity-text {font-family:ui-monospace,SFMono-Regular,Consolas,monospace;}
#airpc-header .th-panel .th-link {flex-direction:row;align-items:center;justify-content:flex-start;align-self:auto;gap:8px;min-height:44px;padding:8px 6px;text-align:left;font-size:14px;line-height:1.5;}
#airpc-header .th-panel .th-link span {min-width:0;}
#airpc-header .th-panel .th-menu-item {text-align:left;min-height:44px;}
#airpc-header .th-copy-result {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}

@media(prefers-color-scheme:dark){#airpc-header .th-brand{background:#fff;border-radius:6px}}

.th-chat-link{position:relative;text-decoration:none}.th-chat-badge{position:absolute;right:0;top:1px;background:#2465e9;color:#fff;border-radius:16px;font-size:11px;line-height:17px;min-width:17px;text-align:center;padding:0 4px}.th-chat-badge[hidden]{display:none}

/* A221 shared entry; currency does not alter the shared account. */
#airpc-header .th-site-selector{display:flex;align-items:center;gap:6px;font-size:12px;flex:none}
#airpc-header .th-site-selector select{font:inherit;min-height:44px;max-width:190px;border:1px solid var(--th-line);border-radius:8px;padding:6px;background:var(--th-panel);color:var(--th-text)}
.sales-record-filter{display:flex;align-items:center;gap:8px;margin:12px 0;flex-wrap:wrap}.sales-record-filter select{font:inherit;min-height:44px;max-width:100%;padding:8px;border:1px solid #c7d8ef;border-radius:8px}
.sales-site-pending{margin:16px 0;padding:22px;border:1px solid #c9dafa;border-radius:12px;background:#edf3ff;color:#182b47}.sales-site-pending h2{margin-top:0}.sales-site-pending a{color:#2468ec}
@media(max-width:980px){#airpc-header .th-site-selector{grid-row:3;grid-column:1/-1;justify-content:flex-end}}

/* A222: site switch occupies the logo row, with no home tagline. */
#airpc-header .th-site-selector{order:4;margin-left:auto}
@media(min-width:1201px){#airpc-header .th-identity{flex:0 0 auto}#airpc-header .th-nav{flex:1;justify-content:center}}
@media(max-width:1200px){#airpc-header{grid-template-columns:minmax(0,1fr) auto;column-gap:8px}#airpc-header.th-home .th-identity{grid-column:1}#airpc-header .th-site-selector{grid-row:1;grid-column:2;justify-self:end;margin:0;order:0}#airpc-header .th-site-selector>span{display:none}#airpc-header .th-site-selector select{width:148px;max-width:100%;font-size:12px}#airpc-header .th-brand{width:clamp(136px,46vw,230px);max-width:100%}#airpc-header .th-home-link{display:none!important}}

/* Customer domestic rollout is hidden; show currency without a switch affordance. */
#airpc-header .th-site-selector>.sales-site-current{display:flex;align-items:center;box-sizing:border-box;min-height:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--th-text);font-size:12px;white-space:nowrap;cursor:default}
