/* "Tìm size theo số đo" (v35 board M-SizeGuide). Classes are sg-* so theme.css rules (.big, .res, .chips…) stay out. */
.sg-top{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:4px;height:60px;padding:0 6px;background:#FFFFFF;border-bottom:1px solid var(--line)}
.sg-top h1{flex:1;margin:0;font:700 24px/1.2 var(--fd)}
.sg-wrap{padding:0 16px 32px}
.sg-intro{margin:14px 0 0;font-size:15px;color:var(--muted)}

.sg-seg{display:grid;grid-template-columns:1fr 1fr;margin-top:12px;padding:4px;border-radius:8px;background:var(--surf)}
.sg-seg button{height:40px;border:0;border-radius:6px;background:none;font:600 15px/1 var(--fb);color:var(--muted);cursor:pointer}
.sg-seg button.on{background:#FFFFFF;color:var(--pri);box-shadow:0 1px 4px rgba(43,35,64,.12)}

.sg-meas{display:flex;align-items:center;justify-content:space-between;margin-top:14px;padding:6px 6px 6px 14px;border:1.5px solid var(--line2);border-radius:10px;background:#FFFFFF}
.sg-meas label{font-size:15px;font-weight:600}
.sg-meas small{display:block;font-size:13px;font-weight:500;color:var(--muted)}
.sg-step{display:flex;align-items:center}
.sg-step button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1.5px solid var(--line2);border-radius:6px;background:#FFFFFF;color:var(--pri);cursor:pointer}
.sg-step button[disabled]{color:var(--line2);cursor:not-allowed}
.sg-step .ic{width:20px;height:20px}
.sg-step output{width:84px;text-align:center;font-size:20px;font-weight:700}
/* The board prints the number like its unit (its "output span" rule reaches the number too). */
.sg-step output b,.sg-step output span{font-size:14px;font-weight:500;color:var(--muted)}

.sg-gl{margin:16px 0 8px;font-size:15px;font-weight:700}
.sg-chips{display:flex;gap:8px}
.sg-chip{flex:1;display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 10px;border-radius:999px;border:1.5px solid var(--line2);background:#FFFFFF;font:600 14px/1 var(--fb);color:var(--ink);cursor:pointer}
.sg-chip.on{background:var(--pri);border-color:var(--pri);color:#FFFFFF}

.sg-res{margin-top:18px;padding:18px 16px 16px;border-radius:10px;background:var(--soft);text-align:center}
.sg-k{font:600 13px/1.3 var(--fb);letter-spacing:.1em;text-transform:uppercase;color:var(--pri)}
.sg-big{display:inline-grid;place-items:center;min-width:88px;height:88px;margin:8px 0 6px;padding:0 14px;border-radius:999px 999px 10px 10px;background:#FFFFFF;border:2px solid var(--pri);font:700 44px/1 var(--fd);color:var(--pri)}
.sg-res p{margin:0;font-size:15px;line-height:1.5}
.sg-res small{display:block;margin-top:4px;font-size:13px;color:var(--muted)}
.sg-res .btn{margin-top:14px;min-height:52px;white-space:normal}

.sg-h2{margin:26px 0 0;font:700 26px/1.2 var(--fd)}
.sg-chart{overflow-x:auto}
.sg-st{width:100%;margin-top:12px;border-collapse:collapse;font-size:14px;text-align:center}
.sg-st th{height:40px;background:var(--soft);font-weight:700;color:var(--pri)}
.sg-st th:first-child{border-radius:6px 0 0 6px}
.sg-st th:last-child{border-radius:0 6px 6px 0}
.sg-st td{height:42px;border-bottom:1px solid var(--line)}
.sg-st td:first-child{font-weight:700}
.sg-st tr.on td{background:var(--roseSoft);font-weight:700}
.sg-snote{margin:10px 0 0;font-size:14px;color:var(--muted)}

.sg-how{list-style:none;margin:10px 0 0;padding:0}
.sg-how li{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:15px;line-height:1.45}
.sg-how i{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--soft);color:var(--pri);font:700 14px/1 var(--fb);font-style:normal}
.sg-how b{display:block}
.sg-how small{font-size:14px;color:var(--muted)}

.sg-help{margin-top:22px;padding:16px;border-radius:10px;background:var(--roseSoft)}
.sg-help b{display:block;font-size:16px}
.sg-help p{margin:4px 0 12px;font-size:14px;color:var(--ink)}
.sg-help .btn.ghost{min-height:48px;font-size:15px}

/* No desktop board: the phone column, centred. */
@media (min-width:640px){
  .sg-top{padding:0 calc(50% - 286px)}
  .sg-wrap{max-width:592px;margin:0 auto}
}
@media (prefers-reduced-motion:reduce){
  .sg *{transition:none!important}
}
