.nsg-intro { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 16px; margin:0 0 22px; font-size:13px; }
.nsg-intro > span { color:var(--ns-muted,#626762); }
.nsg-intro a { font-weight:600; text-underline-offset:4px; }
.nsg-dialog { width:920px; max-width:calc(100% - 32px); padding:32px; }
.nsg-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:14px; }
.nsg-heading h2 { margin:0; font-size:clamp(24px,4vw,32px); line-height:1.2; letter-spacing:-.04em; }
.nsg-model { margin:0 0 6px; color:var(--ns-muted,#626762); font-size:13px; }
.nsg-close { display:grid; place-items:center; flex:none; width:44px; height:44px; padding:0; border:1px solid var(--ns-border,#d6dad5); border-radius:var(--ns-radius,4px); background:var(--ns-bg,#fdfdfc); color:var(--ns-text,#191b1a); font:400 28px/1 sans-serif; cursor:pointer; }
.nsg-widget { color:var(--ns-text,#191b1a); }
.nsg-lead { margin:0 0 24px; max-width:65ch; color:var(--ns-muted,#626762); font-size:14px; }
.nsg-explainer { display:grid; grid-template-columns:240px 1fr; align-items:center; gap:32px; margin-bottom:24px; }
.nsg-figure { margin:0; padding:10px 16px 16px; background:var(--ns-surface,#f1f2f0); border-radius:var(--ns-radius,4px); }
.nsg-garment { display:block; width:100%; height:auto; }
.nsg-cloth { fill:var(--ns-bg,#fdfdfc); stroke:var(--ns-muted,#626762); stroke-width:1.2; stroke-linejoin:round; }
.nsg-seam { fill:none; stroke:var(--ns-border,#d6dad5); stroke-width:1.2; }
.nsg-measure-line { fill:none; stroke:var(--ns-accent,#256348); stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; display:none; }
[data-measure="circumference"] .nsg-line-circumference,
[data-measure="width"] .nsg-line-width,
[data-measure="sleeve"] .nsg-line-sleeve,
[data-measure="length"] .nsg-line-length { display:block; }
.nsg-figure figcaption { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:11px; }
.nsg-figure figcaption strong { font-size:15px; white-space:nowrap; }
.nsg-instructions .nsg-size { margin:0 0 8px; font-size:13px; color:var(--ns-muted,#626762); }
.nsg-size strong { color:var(--ns-text,#191b1a); }
.nsg-instructions h3 { margin:0 0 8px; font-size:21px; letter-spacing:-.03em; }
.nsg-instructions p { margin:0; font-size:14px; }
.nsg-instructions .nsg-value { margin-top:12px; font-size:30px; font-weight:600; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.nsg-table-help { margin:0 0 10px; font-size:12px; color:var(--ns-muted,#626762); }
.nsg-mobile-help { display:none; }
.nsg-table-scroll { max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; border:1px solid var(--ns-border,#d6dad5); border-radius:var(--ns-radius,4px); }
.nsg-widget .nsg-table { display:table; overflow:visible; width:100%; min-width:650px; border-collapse:collapse; margin:0; font-size:14px; table-layout:fixed; }
.nsg-table th,.nsg-table td { border:0; padding:0; text-align:center; vertical-align:middle; white-space:normal; }
.nsg-table th:first-child { width:205px; text-align:left; }
.nsg-table thead th:first-child { padding:12px 16px; color:var(--ns-muted,#626762); font-size:12px; font-weight:400; }
.nsg-table thead th { border-bottom:1px solid var(--ns-border,#d6dad5); padding:8px 0; }
.nsg-table tbody tr + tr { border-top:1px solid var(--ns-border,#d6dad5); }
.nsg-table button { display:block; width:100%; min-height:48px; padding:12px 8px; border:0; border-radius:0; background:transparent; color:inherit; font:inherit; cursor:pointer; text-align:inherit; font-variant-numeric:tabular-nums; }
.nsg-table thead button { width:48px; margin:auto; padding:8px 0; border-radius:var(--ns-radius,4px); font-weight:600; }
.nsg-table tbody th button { min-height:78px; padding:14px 16px; font-size:13px; font-weight:600; }
.nsg-table small { display:block; margin-top:4px; color:var(--ns-muted,#626762); font-size:11px; font-weight:400; }
.nsg-table .is-size { background:var(--ns-surface,#f1f2f0); }
.nsg-table thead [aria-pressed="true"],.nsg-table .is-current { background:var(--ns-button,#191b1a); color:var(--ns-button-text,#fdfdfc); }
.nsg-table .is-measure th > button > span { text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:2px; }
.nsg-table button:hover { text-decoration:underline; text-underline-offset:4px; }
.nsg-widget button:focus-visible,.nsg-close:focus-visible,.nsg-intro a:focus-visible,.nsg-table-scroll:focus-visible { outline:2px solid var(--ns-accent,#256348); outline-offset:-3px; }
.nsg-note { margin:14px 0 0; color:var(--ns-muted,#626762); font-size:11px; line-height:1.6; }
.nsg-fit-tip { margin:-12px 0 24px; font-size:14px; font-weight:600; }
.nsg-inline { display:block; margin-bottom:6px; font-size:12px; font-weight:500; text-underline-offset:3px; }
.nsg-noscript { margin:32px 0; }
.nsg-page-guide { margin:40px 0 48px; scroll-margin-top:100px; }
.nsg-page-guide > h2 { margin:0 0 12px; font-size:28px; letter-spacing:-.04em; }
.nsg-page-guide > p { margin:0 0 24px; }
.nsg-page-guide .nsg-lead { margin:0 0 24px; }
.nsg-page-guide .nsg-instructions p { margin-bottom:0; }
.nsg-page-guide .nsg-instructions h3 { margin-top:0; }
.nsg-page-guide .nsg-table-help { margin:0 0 10px; }
.nsg-page-guide .nsg-note { margin:14px 0 0; }
@media(max-width:639px) {
  .nsg-mobile-help { display:inline; }
  .nsg-dialog { max-width:calc(100% - 16px); max-height:calc(100dvh - 16px); padding:20px 16px; }
  .nsg-lead { font-size:12px; margin-bottom:18px; }
  .nsg-explainer { grid-template-columns:130px 1fr; gap:16px; align-items:start; margin-bottom:18px; }
  .nsg-figure { padding:4px 4px 10px; }
  .nsg-figure figcaption { flex-direction:column; gap:0; font-size:10px; }
  .nsg-instructions h3 { font-size:17px; }
  .nsg-instructions p { font-size:12px; }
  .nsg-instructions .nsg-value { font-size:24px; margin-top:6px; }
  .nsg-table th:first-child { position:sticky; left:0; z-index:1; background:var(--ns-bg,#fdfdfc); width:156px; }
  .nsg-widget .nsg-table { min-width:570px; }
  .nsg-table tbody th button { padding:12px; font-size:12px; }
  .nsg-table small { font-size:10px; }
}
@media(max-width:359px) { .nsg-explainer { grid-template-columns:110px 1fr; gap:12px; } }
