/* LOT-S03 draft 20261104s03d — BẢN NHÁP. Siết khoảng trống 6–8px, không cuộn 390×844/700, 375. */
.s3{display:flex;flex-direction:column;gap:6px}
.s3 .twm-head{margin:0}.s3 .twm-steps{margin:0}
.s3-sum{background:#fff;border-radius:20px;padding:10px 14px;box-shadow:0 4px 14px rgba(30,20,80,.08);color:#071B49}
.s3-tot{display:flex;justify-content:space-between;align-items:baseline;font-size:14px}
.s3-tot b{font-size:24px;font-weight:900;background:linear-gradient(90deg,#087BFF,#743DFF,#F414A0,#FF8740);-webkit-background-clip:text;background-clip:text;color:transparent}
.s3-sum dl{margin:4px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:2px 10px}
.s3-sum dl div{display:flex;justify-content:space-between;gap:6px;font-size:13px;min-width:0}
.s3-sum dl div.w{grid-column:1/-1}
.s3-sum dt{color:#5b6488;white-space:nowrap}.s3-sum dd{margin:0;font-weight:800;text-align:right;min-width:0}
.s3-sum dd small{display:block;font-weight:600;font-size:12px;color:#5b6488}
.s3-st{background:#fff;border-radius:20px;padding:10px 12px;box-shadow:0 4px 14px rgba(30,20,80,.08)}
.s3-st h2{font-size:15px;margin:0 0 6px;color:#071B49}
.s3-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.s3-tile{position:relative;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:2px solid #e3e6f3;border-radius:16px;background:#fff;font:700 12px Nunito,sans-serif;color:#071B49;cursor:pointer;padding:4px}
.s3-tile img{height:26px;width:auto;max-width:88px;object-fit:contain}
.s3-tile.on{border-color:transparent;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(90deg,#087BFF,#743DFF,#F414A0,#FF8740) border-box}
.s3-tile .tk{position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:50%;background:#743DFF;color:#fff;display:grid;place-items:center}
.s3-tile .tk svg{width:12px;height:12px}
.s3-tile:disabled{opacity:.55;cursor:not-allowed}
.s3-note{display:flex;gap:6px;align-items:flex-start;margin:6px 0 0;font-size:12px;color:#5b6488}
.s3-err{margin:0}
body:has(.s3) .twm-cta{padding:6px 16px}
body:has(.s3) .twm-cta-in{display:flex;flex-direction:column;gap:2px}
body:has(.s3) #twm-next{min-height:48px}
.s3-new{min-height:44px;background:none;border:0;font:700 14px Nunito,sans-serif;color:#743DFF;cursor:pointer}
.s3-new:disabled{opacity:.5}
body:has(.s3) .twm-main{padding-bottom:calc(64px + 110px + env(safe-area-inset-bottom))}
@media(min-width:900px){body:has(.s3) .twm-main{padding-bottom:16px}body:has(.s3) .twm-cta-in{flex-direction:row}}
/* r2: Tạo lệnh mới nằm trong dòng ghi chú; padding đáy = CTA 60 + nav 64 */
.s3-note{align-items:center}.s3-note span{flex:1}
.s3-new{flex:none;min-height:44px;padding:0 4px;font-size:13px}
body:has(.s3) .twm-main{padding-bottom:calc(64px + 62px + env(safe-area-inset-bottom))}
@media(max-width:899px){body:has(.s3) .twm-col-side{display:none}}
@media(min-width:900px){body:has(.s3) .twm-main{padding-bottom:16px}}
/* r3: màn thấp */
.s3-sum dd .twm-sample{margin-left:4px}
.s3-err{padding:8px 12px;font-size:13px}
@media(max-width:899px) and (max-height:760px){
 body:has(.s3) .twm-head{min-height:0}body:has(.s3) .twm-h1{font-size:22px}body:has(.s3) .twm-back{width:40px;height:40px}
 body:has(.s3) .twm-steps li{font-size:11px}body:has(.s3) .twm-steps .dot{width:26px;height:26px}
 .s3-sum{padding:8px 12px}.s3-tot b{font-size:21px}.s3-st{padding:8px 10px}.s3-st h2{font-size:14px;margin-bottom:4px}
 .s3-note{margin-top:4px}.s3-new{min-height:44px}
}
