:root{font:16px/1.55 system-ui,sans-serif;color:#292938;background:#f5f5f8}
*{box-sizing:border-box}
[hidden]{display:none!important}
main{width:min(960px,calc(100% - 28px));margin:25px auto 48px;background:#fff;border:1px solid #e5e2e9;border-radius:16px;padding:clamp(16px,4vw,32px)}
h1{line-height:1.18;font-size:clamp(24px,5vw,36px)}
h2,h3,legend{line-height:1.35}
legend{font-weight:700}
a{color:#6f4d16}
.back{font-size:14px;font-weight:700}
form,fieldset{display:grid;gap:12px}
fieldset{min-width:0;margin:0;padding:14px;border:1px solid #e4e1ea;border-radius:12px}
form{margin-top:14px}
label,.team-product{display:grid;gap:5px;min-width:0}
button,input,select,textarea{font:inherit;color:inherit}
input,select,textarea,button,.primary{border:1px solid #d6d1dd;border-radius:8px;padding:8px 11px;background:#fff;min-height:44px}
textarea{width:100%;resize:vertical}
button,.primary{cursor:pointer;justify-self:start}
.primary{display:inline-flex;align-items:center;background:#efba51;border-color:#ae7927;color:#252535;font-weight:700;text-decoration:none}
:focus-visible{outline:3px solid #a36f21;outline-offset:2px}
.columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px}
.team-product{margin-bottom:12px}
.team-product h3{margin:5px 0}
progress{width:100%;accent-color:#ab792b}
.table-wrap{overflow-x:auto}
table{border-collapse:collapse;width:100%}
td,th{text-align:left;padding:9px;border-bottom:1px solid #e5e2e9}
pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;background:#f5f4f8;padding:10px;border-radius:8px;font:inherit}
.error,.success{padding:10px 14px;border-radius:8px;background:#f9e8e7}
.success{background:#e9f5eb}
.muted{color:#625f70;font-size:14px;margin:0}

:root{background:#f5f5f7;color:#222435}
body{margin:0}
.team-header{background:#fff;color:#292938;border-bottom:1px solid #e6e3eb;box-shadow:0 3px 14px #25253608}
.team-header-strip{background:#252536;color:#fff;font-size:.75rem}
.team-header-strip>div,.team-header-inner{max-width:1360px;margin:auto;padding-inline:clamp(12px,3.5vw,28px)}
.team-header-strip>div{padding-block:6px}
.team-header-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:78px;padding-block:9px}
.team-header .team-brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;font-weight:750;line-height:1.2}
.team-header .team-brand img{width:56px;height:56px;flex:none}
.team-header .team-brand small{display:block;color:#625f70;font-size:.69rem;font-weight:650;letter-spacing:.08em;margin-top:4px}
.team-header nav{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:4px 10px}
.team-header nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:7px 14px;border-radius:10px;text-align:center;text-decoration:none;font-size:.85rem;font-weight:700;color:inherit}
.team-header nav .team-header-home:hover{background:#f5f4f7}
.team-header nav .team-header-language{background:#fffaf0;border:1px solid #d7b363;color:#573d10;white-space:nowrap}
.team-header nav .team-header-language:hover{background:#f7efd9}
.team-header nav .team-header-action{background:#f8ebcb;border:1px solid #e3c481;color:#51370d}
.team-header nav .team-header-action:hover,.team-header-action[aria-current]{background:#f2dfab}
@media(max-width:530px){
 .team-header-inner{min-height:62px;gap:8px}
 .team-header .team-brand img{width:42px;height:42px}
 .team-header .team-brand span{display:none}
 .team-header nav{gap:4px}
 .team-header nav a{padding-inline:9px}
}
.team-brand img{display:block;border-radius:10px;object-fit:contain}
main{border-radius:22px;padding:clamp(16px,4vw,36px);box-shadow:0 12px 38px #2525360a}
main.team-business{width:min(1100px,calc(100% - 28px))}
main.team-personal{width:min(820px,calc(100% - 28px))}
main p{max-width:68ch}
h1{margin:0 0 10px;overflow-wrap:anywhere;font-size:clamp(26px,5vw,40px);letter-spacing:-.035em}
h2{font-size:clamp(18px,3vw,23px);margin:24px 0 4px}
.team-kicker{margin:0 0 6px;font-size:13px;font-weight:750;color:#77551a}
form{gap:20px}
fieldset{padding:clamp(12px,2.5vw,20px);border-radius:14px}
legend{padding-inline:6px}
label{font-size:14px;font-weight:650}
input,select,textarea{max-width:100%;width:100%;font-size:16px;box-shadow:0 1px 2px #25253608}
summary{cursor:pointer}
.team-measurements>summary{min-height:44px;padding-block:11px;color:#674719;font-weight:700}
.team-measurements[open]>.columns{margin:8px 0 10px}
.team-camera input{width:100%;min-width:0}
.team-camera [data-camera-height]{max-width:15rem}
.team-camera .try-on-stage{height:clamp(180px,48dvh,500px)}
.team-camera-steps{display:flex;flex-wrap:wrap;gap:6px 14px;list-style:none;margin:0;padding:0 14px 8px;font-size:.86rem}
.team-camera-steps li{border-radius:8px;padding:4px 8px;color:#5c5e6d}
.team-camera-steps li[aria-current="step"]{color:#523817;background:#fff0cd;font-weight:750}
.team-camera-steps li[data-done]{color:#17603c;font-weight:700}
.team-camera-steps li[data-done]::after{content:" ✓"}
.team-camera-overlay{position:absolute;inset:0;pointer-events:none;display:grid;grid-template-rows:1fr auto auto;justify-items:center;gap:6px;padding:10px;color:#fff}
.team-camera-frame{width:clamp(92px,34%,220px);height:100%;border:3px solid #ffdc85;border-radius:24px;opacity:.94}
.team-camera-overlay[data-angle="side"] .team-camera-frame{width:clamp(64px,23%,150px)}
.team-camera-overlay[data-ready] .team-camera-frame{border-color:#95f2bd}
.team-camera-overlay strong{max-width:100%;text-align:center;background:#171928e8;padding:4px 10px;border-radius:8px;font-size:clamp(.95rem,3vw,1.35rem)}
.team-camera-overlay progress{width:min(100%,240px);height:8px;accent-color:#95f2bd}
.team-camera footer{gap:10px}
.team-camera-photos>summary{cursor:pointer;font-weight:650;padding-block:6px}
.team-camera .team-identity{grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr))}
.team-camera-actions{display:flex;flex-wrap:wrap;gap:8px}
.team-camera-actions button{min-height:44px}
.team-progress{padding:clamp(14px,3vw,26px);border-radius:16px;background:#faf6ea;border:1px solid #eadab6}
.team-identity{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,138px),1fr));gap:10px;margin:16px 0}
.team-identity>div{min-width:0;background:#fff;border:1px solid #e7e1d5;border-radius:12px;padding:12px}
.team-identity dt{font-size:13px;color:#625f70}
.team-identity dd{margin:3px 0 0;font-size:clamp(16px,3vw,22px);font-weight:750;overflow-wrap:anywhere}
.team-progress>p:last-of-type{margin:0}
.team-progress progress{display:block;margin-top:10px;height:16px}
.team-setup-steps{padding-inline-start:24px;margin:10px 0 0;display:grid;gap:8px}
.team-setup-steps li{padding-inline-start:3px}
.team-setup-steps li::marker{color:#75521c;font-weight:750}
.team-filters{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px;margin:14px 0 8px}
.table-wrap{margin-top:10px;border:1px solid #e8e5ed;border-radius:12px}
.table-wrap thead{background:#f7f6f9}
.table-wrap td,.table-wrap th{padding:11px 12px;vertical-align:top;overflow-wrap:anywhere}
.table-wrap td small{display:block;margin-top:5px}
.table-wrap details{margin-top:4px}
.table-wrap details summary{min-height:32px;color:#6f4d16}
.team-badge{display:inline-flex;border-radius:20px;background:#f7edcf;color:#6b4913;padding:4px 9px;font-size:12px;font-weight:700}
[data-team-status="done"] .team-badge{background:#e6f4eb;color:#24593b}
.team-list{list-style:none;margin:14px 0 22px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:12px}
.team-list a{display:grid;justify-items:start;gap:8px;padding:16px;border:1px solid #e3e0e8;border-radius:14px;text-decoration:none;color:inherit;overflow-wrap:anywhere}
.team-list a:hover,button:not(.primary):hover{background:#faf6ea;border-color:#bb8c38}
.team-list small{color:#625f70}
.team-product-size{background:#fcfcfd}
.team-product-size pre{border:1px solid #ebe6da;background:#faf7ef;padding:14px}
.team-form-action{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:14px;border:1px solid #e9e1d2;border-radius:12px;background:#faf7ef}
.team-synced-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px}
.team-synced-card{position:relative;display:grid;gap:3px;padding:12px;border:1px solid #e7e1d5;border-radius:12px;background:#faf7ef;overflow-wrap:anywhere}
.team-synced-card:has(.team-synced-picture){grid-template-columns:clamp(62px,16vw,84px) minmax(0,1fr);align-items:center;gap:12px}
.team-synced-picture{display:grid;place-items:center;aspect-ratio:1;padding:5px;background:#fff;border:1px solid #ebe4d8;border-radius:9px}
.team-synced-picture .garment-visual{position:relative;display:block;width:100%;height:100%;isolation:isolate}
.team-synced-picture .garment-tone{position:absolute;inset:0;background:var(--garment);-webkit-mask:var(--garment-image) center/contain no-repeat;mask:var(--garment-image) center/contain no-repeat}
.team-synced-picture img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.team-synced-picture .garment-fabric{mix-blend-mode:multiply}
.team-synced-info{display:grid;gap:5px;min-width:0;line-height:1.4}
.team-synced-color{display:flex;align-items:center;gap:7px;font-size:13px;color:#625f70}
.team-swatch{flex:none;width:14px;height:14px;border:1px solid #0003;border-radius:50%}
.team-synced-card>span:not(.team-swatch){font-size:13px;color:#625f70}
.team-notice{padding:10px 14px;border:1px solid #eadab6;border-radius:10px;background:#faf6ea}
.team-notice p{margin:0 0 8px}
.team-add-person{border:1px solid #eadab6;border-radius:12px;background:#faf6ea;padding:6px 14px}
.team-add-person>summary{color:#75521c;font-weight:750;padding:8px 0}
.team-add-person form{margin:4px 0 10px}
.team-share{margin:12px 0;padding:14px;border:1px solid #eadab6;border-radius:12px;background:#faf6ea}
.team-share h3{margin:0;font-size:16px}
.team-share p{margin:6px 0 12px;font-size:13px;color:#625f70}
.team-share-actions{display:flex;flex-wrap:wrap;gap:8px}
.team-copy-fallback{flex:1 0 100%;margin:6px 0}
.team-remove-person>summary{color:#942e2d!important}
.team-remove-person form{margin-top:0;gap:8px}
.team-remove-person p{margin:0;font-size:13px}
.team-remove-person button{color:#942e2d;border-color:#e7c2bd}
[data-person-sizes]>span{display:block}
.team-size-totals{margin-top:14px;padding:10px 12px;border:1px solid #e8e0d0;border-radius:12px;background:#faf7ef}
.team-size-totals summary{font-weight:700}
.team-size-totals p{margin:8px 0;font-size:13px}
.team-department-fields{display:grid;grid-template-columns:minmax(0,2fr) minmax(110px,1fr) auto;align-items:end;gap:8px;margin-bottom:9px}
.team-department-grid{display:grid;gap:9px;margin-top:10px}
#team-advanced{padding-bottom:10px}
#team-advanced h3{font-size:15px;margin:16px 0 6px}
#team-department-assignments{display:grid;gap:8px;margin-top:8px}
.team-assignment-choices{display:grid;gap:5px}
.team-product-check{display:flex;align-items:flex-start;gap:8px;overflow-wrap:anywhere}
.team-product-check input{width:18px;min-height:18px;flex:none;margin:3px 0 0}
#team-saved-options,.team-saved-item{display:flex;align-items:end;flex-wrap:wrap;gap:8px;margin-top:8px}
#team-saved-options label{flex:1 1 200px}
.team-saved-item{justify-content:space-between;font-size:13px}
.team-department{border:1px solid #e8ddc4;border-radius:12px;background:#fcf8ee}
.team-department>summary{padding:12px;font-size:14px}
.team-department>summary span{display:block;margin:4px 0 0;color:#625f70;font-size:13px}
.team-department>div{padding:0 12px 12px}
.team-approval-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.team-approval-list li{border:1px solid #e8e1d5;border-radius:8px;background:#fff}
.team-approval-list label{display:flex;align-items:flex-start;gap:10px;padding:9px}
.team-approval-list input{width:18px;min-height:18px;margin:3px 0 0;flex:none}
.team-approval-list small{display:block;color:#625f70;font-weight:400}
.team-popup-actions{display:flex;flex-wrap:wrap;gap:8px}
.team-popup{width:min(640px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:16px;border:1px solid #e5dcc6;border-radius:16px;color:#252536;background:#fff;box-shadow:0 18px 70px #2525364d}
.team-popup[open]{animation:team-popup-in .18s ease-out}
.team-popup::backdrop{background:#25253680}
.team-popup-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.team-popup-heading h2{margin:0}
.team-popup-heading button{min-width:44px}
@keyframes team-popup-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.team-popup[open]{animation:none}}
@media(max-width:520px){.team-department-fields{grid-template-columns:1fr}.team-department-fields>button:not([hidden]){justify-self:start}}
.primary:disabled{opacity:.55;cursor:not-allowed}
.team-embedded{background:#fff}
.team-embedded .team-header,.team-embedded #team-source-edit{display:none}
.team-embedded main{width:100%;margin:0;border:0;border-radius:0;box-shadow:none;padding:clamp(14px,3vw,24px)}
.team-embedded h1{font-size:clamp(22px,4vw,30px)}
.primary:hover{background:#e6aa3b}
@media(max-width:620px){
 .team-filters{grid-template-columns:1fr}
 .table-wrap{border:0;border-radius:0;overflow:visible}
 .table-wrap table,.table-wrap tbody{display:block}
 .table-wrap thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .table-wrap tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px;padding:12px;border:1px solid #e8e5ed;border-radius:12px}
 .table-wrap td{min-width:0;padding:0;border:0}
 .table-wrap td:first-child,.table-wrap td:nth-child(n+4){grid-column:1/-1}
 .table-wrap td:nth-child(2)::before,.table-wrap td:nth-child(3)::before{display:block;font-size:12px;color:#625f70}
 .table-wrap td:nth-child(2)::before{content:"Phom"}
 .table-wrap td:nth-child(3)::before{content:"Mã nhận hàng"}
 html[lang=en] .table-wrap td:nth-child(2)::before{content:"Fit"}
 html[lang=en] .table-wrap td:nth-child(3)::before{content:"Pickup code"}
 .team-form-action button{width:100%;justify-content:center}
}
main.team-invitation{--ink:#262838;--paper:#f8f6f1;--gold:#94651d;--line:#e6dfd3;width:min(1000px,calc(100% - 28px));padding:clamp(12px,3.2vw,32px);border-radius:22px;box-shadow:0 20px 48px #2525360c}
.team-invite-heading{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);align-items:stretch;overflow:hidden;margin:0 0 22px;border:1px solid var(--line);border-radius:15px;background:var(--paper);color:var(--ink)}
.team-invite-copy{align-self:center;padding:clamp(20px,4.6vw,56px)}
.team-invite-copy h1{max-width:12ch;margin:9px 0 14px;font-family:Inter,"Segoe UI",system-ui,sans-serif;font-weight:650;letter-spacing:-.035em;font-size:clamp(32px,5.6vw,64px);line-height:1.06;text-wrap:balance}
.team-invite-copy p{max-width:34ch;margin:0;color:#56515c}
.team-invite-copy .team-kicker{color:#76531a;font-size:.74rem;letter-spacing:.15em}
.team-invite-visual{display:grid;place-items:center;position:relative;isolation:isolate;min-width:0;margin:0;min-height:238px;padding:16px;background:radial-gradient(ellipse at 50% 42%,#758098,#30384c 72%)}
.team-invite-visual img{width:min(100%,262px);height:auto;object-fit:contain;filter:drop-shadow(0 12px 16px #131a2a68)}
.team-invite-visual figcaption{position:absolute;bottom:7px;right:10px;color:#fff;font-size:.68rem;background:#252b3d;padding:2px 8px;border-radius:99px}
.team-invite-actions{display:flex;gap:12px 18px;align-items:center;flex-wrap:wrap}
.team-manager-entry{margin:10px 0}
.team-manager-entry button{font-size:.88rem}
.team-invitation .team-identity{gap:0;border:1px solid var(--line);border-radius:12px;background:#fff}
.team-invitation .team-identity>div{border:0;border-radius:0;background:transparent;padding:12px 16px}
.team-invitation .team-identity>div+div{border-inline-start:1px solid var(--line)}
.team-invitation .team-identity dd{font-size:clamp(14px,2.7vw,19px)}
.team-sizing-wizard{display:grid;gap:22px;margin-top:8px}
.team-size-steps{--progress:0%;position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;margin:0;padding:0 0 10px;gap:6px;counter-reset:size-step;border-bottom:2px solid #eee9df}
.team-size-steps::after{content:"";position:absolute;inset:auto auto -2px 0;width:var(--progress);height:2px;background:var(--gold);transition:width .35s cubic-bezier(.22,.61,.36,1)}
.team-size-steps:has(li:nth-child(1)[aria-current]){--progress:33.33%}
.team-size-steps:has(li:nth-child(2)[aria-current]){--progress:66.67%}
.team-size-steps:has(li:nth-child(3)[aria-current]){--progress:100%}
.team-size-steps li{counter-increment:size-step;padding:9px 8px;display:flex;align-items:center;gap:8px;color:#5b5661;font-size:.86rem;line-height:1.3;font-weight:650}
.team-size-steps li::before{content:counter(size-step);display:grid;place-items:center;flex:0 0 1.65rem;height:1.65rem;border-radius:50%;background:#f2eee7;color:#343341}
.team-size-steps li[aria-current]{color:#51370d}
.team-size-steps li[aria-current]::before{background:#75501a;color:white}
.team-size-stage{padding:clamp(12px,3vw,24px);border:1px solid var(--line,#e4e1ea);border-radius:14px;min-width:0;background:#fff}
.team-size-stage>legend{padding:0 7px;font-size:1.08rem}
.team-size-stage>h2{margin:0;font-family:Inter,"Segoe UI",system-ui,sans-serif;font-weight:650;font-size:clamp(25px,4vw,35px)}
.team-size-stage>.muted{margin:0 0 8px}
.team-fit-options,.team-measure-grid{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
.team-fit-card{display:flex;align-items:center;gap:10px;min-height:66px;padding:12px 14px;border:1px solid #d6d1dd;border-radius:10px;background:#faf9f6;cursor:pointer;transition:background-color .2s,border-color .2s,box-shadow .2s}
.team-fit-card:has(input:checked){border-color:#ae7927;background:#fff5dd;box-shadow:inset 0 0 0 1px #ae7927}
.team-fit-card:has(input:focus-visible){outline:3px solid #a36f21;outline-offset:2px}
.team-fit-card input{width:18px;height:18px;min-height:0;margin:0;accent-color:#81591e}
.team-measure-grid input{width:100%;min-width:0}
.team-measure-guide,.team-size-chart{padding:9px 12px;border:1px solid var(--line,#e6dfd3);border-radius:8px;background:#faf8f3}
.team-measure-guide summary,.team-size-chart summary{min-height:30px;cursor:pointer;font-weight:650;font-size:.9rem}
.team-chart-label{margin:6px 0;font-size:.9rem;font-weight:700}
.team-measure-guide dl{margin:8px 0 3px;display:grid;gap:7px}
.team-measure-guide dt{font-weight:700}
.team-measure-guide dd{margin:0;color:#56515c}
#team-size-step{display:grid;gap:12px}
.team-sizing-wizard .team-size-recommendation{font-weight:700;color:#50380f;background:#fbefd3;padding:12px;border-radius:8px;margin:0}
.team-sizing-wizard .team-form-action .primary{min-height:48px;padding-inline:18px}
@media(hover:hover){
 .team-fit-card:hover{border-color:#ae7927}
}
@media(prefers-reduced-motion:no-preference){
 .team-invite-copy,.team-invite-visual img{animation:team-size-reveal .44s cubic-bezier(.22,.61,.36,1) both}
 .team-invite-visual img{animation-delay:.07s}
 #team-measurement-step:not([hidden]),#team-size-step:not([hidden]){animation:team-size-reveal .28s cubic-bezier(.22,.61,.36,1) both}
 @keyframes team-size-reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
}
@media(prefers-reduced-motion:reduce){
 .team-size-steps::after,.team-fit-card{transition:none}
}
@media(max-width:580px){
 main.team-invitation{width:calc(100% - 20px);margin-top:12px}
 .team-invite-heading{grid-template-columns:minmax(0,1fr) minmax(0,32%);margin-bottom:14px}
 .team-invite-visual{min-height:0;padding:8px}
 .team-invite-copy{padding:17px 12px}
 .team-invite-copy h1{font-size:clamp(26px,7vw,42px);margin-bottom:8px}
 .team-invite-copy p{font-size:.86rem}
 .team-invite-visual figcaption{bottom:5px;right:4px;font-size:.58rem;padding-inline:4px}
 .team-invitation .team-identity{grid-template-columns:repeat(3,minmax(0,1fr))}
 .team-invitation .team-identity>div{padding:8px}
}
@media(max-width:370px){
 .team-size-steps li{flex-direction:column;align-items:flex-start}
 .team-measure-grid{grid-template-columns:1fr}
 .team-fit-card{padding:9px}
}
