/* Local TikTok Shop layout only; existing presentation and Shopee rules untouched. */
.tt-stage{width:100%;height:auto!important;max-height:none;overflow:visible;min-height:0}.tt-stage *{box-sizing:border-box}.tt-stage .tt-start,.tt-stage .tt-selector{padding:22px;background:#edf4fc;border-radius:16px;margin:22px 0}.tt-stage h1{font-size:clamp(26px,3vw,44px)}.tt-stage h2{font-size:clamp(18px,1.7vw,25px);line-height:1.6;margin:8px 0 18px}.tt-stage .tt-tabs,.tt-stage .tt-tools{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin:14px 0}.tt-stage .tt-tabs button{flex:1 1 160px;white-space:normal}.tt-stage button{font-size:14px;line-height:1.6;white-space:normal;padding:10px 15px;transition:transform .22s,box-shadow .22s}.tt-stage button[aria-pressed=true]{background:var(--blue);color:white}.tt-stage button:active{transform:scale(.98)}.tt-stage .tt-workspace{display:grid;grid-template-columns:minmax(0,52fr) minmax(0,48fr);gap:28px;align-items:start;height:auto;max-height:none;overflow:visible}.tt-stage .tt-inputs,.tt-stage #tt-results{min-width:0;height:auto;max-height:none;overflow:visible}.tt-stage #tt-results{position:static;align-self:start}.tt-stage .tt-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:15px 0}.tt-stage .tt-field,.tt-stage .tt-preview label{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:14px;line-height:1.7}.tt-stage input:not([type=checkbox]),.tt-stage select{width:100%;min-width:0;padding:11px;border:1px solid var(--line);border-radius:10px;background:white;font:inherit;font-size:16px;color:inherit;line-height:1.5}.tt-stage input:focus,.tt-stage select:focus{outline:2px solid #1677ed66;outline-offset:2px}.tt-stage .tt-note,.tt-stage details p{font-size:13px;line-height:1.8;color:var(--muted);margin:10px 0}.tt-stage details{margin:15px 0;padding:14px;background:#f4f7fb;border-radius:12px;min-width:0}.tt-stage summary{font-size:15px;line-height:1.7;cursor:pointer;font-weight:600}.tt-stage .tt-input-section{margin:28px 0;border-top:1px solid var(--line);padding-top:22px}.tt-stage .tt-input-section h2{margin-bottom:12px}.tt-stage fieldset{border:1px solid var(--line);border-radius:12px;min-width:0;padding:10px;margin:0}.tt-stage legend{font-size:13px;padding:0 6px}.tt-stage .tt-help{display:inline-block;border-radius:100%;background:#dbeaff;padding:0 6px;color:var(--blue);font-size:12px;cursor:help}.tt-stage .tt-summary>h2{overflow-wrap:anywhere}.tt-stage .roi-break-even h2{font-size:22px}.tt-stage .roi-break-even-stats strong{font-size:clamp(22px,2.6vw,40px)}.tt-stage .roi-total-hero{background:#125dba}.tt-stage .roi-total-hero strong{font-size:clamp(26px,2.8vw,46px)}.tt-stage .roi-result{min-width:0}.tt-stage .roi-result>strong{font-size:clamp(23px,2.6vw,40px)}.tt-stage .roi-total-columns small{font-size:11px;line-height:1.7;letter-spacing:.02em;display:block}.tt-stage .roi-total-columns p{font-size:12px;line-height:1.8}.tt-stage .tt-summary details p,.tt-stage .tt-import-summary p{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}.tt-stage details p b{color:var(--blue);overflow-wrap:anywhere}.tt-stage .tt-warning{padding:13px;border-radius:12px;background:#fff4e2;font-size:13px;line-height:1.8}.tt-stage .tt-mobile{display:none}.tt-stage .tt-table-wrap{overflow-x:auto;max-width:100%;margin:18px 0}.tt-stage table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.7}.tt-stage th,.tt-stage td{text-align:left;padding:12px 9px;border-bottom:1px solid var(--line);vertical-align:top}.tt-stage th{font-weight:600}.tt-stage #tt-comparison{margin:32px 0;padding-top:24px;border-top:1px solid var(--line)}.tt-stage .tt-bars>div{display:grid;grid-template-columns:150px 1fr 140px;gap:12px;align-items:center;font-size:13px;margin:16px 0}.tt-stage .tt-bar-track{height:24px;background:#edf4fc;position:relative}.tt-stage .tt-bar-track:before{content:'';position:absolute;left:50%;height:100%;border-left:1px solid #8c9bad}.tt-stage .tt-bar-track i{position:absolute;top:4px;height:16px;background:var(--blue);border-radius:3px}.tt-stage .tt-bar-track i.negative{background:#7b91aa}.tt-stage .tt-preview{margin-top:15px;padding:20px;background:white;border-radius:12px}.tt-stage .roi-nav{display:flex;justify-content:space-between;gap:12px;margin:32px 0;flex-wrap:wrap}
@media(hover:hover) and (pointer:fine){.tt-stage button:hover{transform:scale(1.02);box-shadow:0 5px 16px #142d5114}}
@media(max-width:1100px){.tt-stage #tt-results{position:static}.tt-stage .tt-workspace{gap:18px}.tt-stage .roi-total-columns{grid-template-columns:1fr}.tt-stage .roi-total-contribution{border-left:0;border-top:1px solid #ffffff59;padding:14px 0 0}}
@media(max-width:900px){.tt-stage .tt-workspace{grid-template-columns:1fr}.tt-stage .tt-mobile{display:inline-flex}.tt-stage .tt-fields{grid-template-columns:1fr}.tt-stage .tt-start,.tt-stage .tt-selector{padding:16px}.tt-stage .roi-break-even-stats strong{font-size:26px}.tt-stage .tt-bars>div{grid-template-columns:105px 1fr;gap:8px}.tt-stage .tt-bars b{grid-column:2}.tt-stage .roi-unified-results{grid-template-columns:repeat(2,minmax(0,1fr))}.tt-stage .roi-result>strong{font-size:25px}.tt-stage .roi-total-hero{grid-column:1/-1}.tt-stage .tt-tools{align-items:stretch}.tt-stage .tt-tools button{flex:1 1 120px}}
@media(prefers-reduced-motion:reduce){.tt-stage button{transition:none}.tt-stage button:hover{transform:none}}
