    .tsg-cta { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; padding: 10px 12px; text-align: right;
        border: 1.5px solid #ead9fb; border-radius: 16px; background: linear-gradient(110deg, #faf5ff 0%, #fdf2f8 100%); color: #3b0764;
        cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; -webkit-tap-highlight-color: transparent; }
    .tsg-cta:hover { border-color: #c084fc; box-shadow: 0 6px 18px rgba(168, 85, 247, .16); }
    .tsg-cta:active { transform: scale(.99); }
    .tsg-cta:focus-visible, .tsg-inline:focus-visible { outline: 2px solid #A855F7; outline-offset: 2px; }
    .tsg-cta-ic { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
        color: #fff; background: linear-gradient(135deg, #A855F7, #EC4899); box-shadow: 0 4px 12px rgba(236, 72, 153, .3); }
    .tsg-cta-ic svg { width: 24px; height: 24px; }
    .tsg-cta-txt { flex: 1; min-width: 0; line-height: 1.5; }
    .tsg-cta-txt b { display: block; font-size: 15px; font-weight: 800; }
    .tsg-cta-txt small { display: block; font-size: 12px; color: #7e6a8f; }
    .tsg-cta-go { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #9333ea;
        background: #fff; padding: 6px 10px; border-radius: 999px; box-shadow: 0 1px 3px rgba(88, 28, 135, .1); }
    .tsg-cta-go svg { width: 14px; height: 14px; }
    .dark .tsg-cta { background: linear-gradient(110deg, rgba(168, 85, 247, .14), rgba(236, 72, 153, .1)); border-color: rgba(192, 132, 252, .3); color: #f3e8ff; }
    .dark .tsg-cta-txt small { color: #c4b5d4; }
    .dark .tsg-cta-go { background: rgba(255, 255, 255, .08); color: #e9d5ff; }
    .tsg-inline { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #9333ea; background: #faf5ff;
        border: 1px solid #ead9fb; border-radius: 999px; padding: 3px 10px; cursor: pointer; }
    .tsg-inline svg { width: 14px; height: 14px; }
    .dark .tsg-inline { color: #e9d5ff; background: rgba(168, 85, 247, .16); border-color: rgba(192, 132, 252, .3); }

    .tsg { --tsg-p: #A855F7; --tsg-pd: #7e22ce; --tsg-pink: #EC4899; --tsg-amber: #F59E0B; --tsg-bg: #fff; --tsg-soft: #faf7fd; --tsg-tint: #f5edfe;
        --tsg-line: #eee8f3; --tsg-text: #1f1a24; --tsg-muted: #756c80; --tsg-form: #f3eef7; --tsg-form-line: #cfc3da; --tsg-fab-a: #fbcfe8; --tsg-fab-b: #e9d5ff;
        --tsg-hit: #fdf4ff; --tsg-ok: #16a34a;
        position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-end; justify-content: center; direction: rtl; }
    .tsg[hidden] { display: none; }
    .dark .tsg { --tsg-bg: #19161d; --tsg-soft: #221e27; --tsg-tint: rgba(168, 85, 247, .16); --tsg-line: #302a37; --tsg-text: #f4f1f7; --tsg-muted: #a9a0b3;
        --tsg-form: #2b2532; --tsg-form-line: #4c4256; --tsg-fab-a: #9d3f77; --tsg-fab-b: #6b3f99; --tsg-hit: rgba(168, 85, 247, .14); --tsg-ok: #4ade80; }
    html.tsg-lock, html.tsg-lock body { overflow: hidden !important; }
    .tsg-backdrop { position: absolute; inset: 0; background: rgba(24, 10, 34, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease; }
    .tsg-dialog { position: relative; display: flex; flex-direction: column; width: 100%; max-height: 92vh; max-height: 92dvh; background: var(--tsg-bg); color: var(--tsg-text);
        border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(40, 10, 60, .25); transform: translateY(100%); transition: transform .38s cubic-bezier(.32, .72, 0, 1); outline: none; }
    .tsg.tsg-on .tsg-backdrop { opacity: 1; }
    .tsg.tsg-on .tsg-dialog { transform: none; }
    .tsg.tsg-dragging .tsg-dialog { transition: none; }
    @media (min-width: 768px) {
        .tsg { align-items: center; padding: 24px; }
        .tsg-dialog { max-width: 880px; max-height: min(88vh, 900px); border-radius: 24px; transform: translateY(16px) scale(.97); opacity: 0;
            transition: transform .3s cubic-bezier(.32, .72, 0, 1), opacity .22s ease; }
        .tsg.tsg-on .tsg-dialog { opacity: 1; }
        .tsg-grab { display: none !important; }
    }
    @media (prefers-reduced-motion: reduce) { .tsg-dialog, .tsg-backdrop { transition: none !important; } }

    .tsg-grab { display: flex; justify-content: center; padding: 10px 0 2px; touch-action: none; }
    .tsg-grab span { width: 42px; height: 5px; border-radius: 99px; background: var(--tsg-line); }
    .tsg-head { display: flex; align-items: center; gap: 12px; padding: 10px 18px 14px; border-bottom: 1px solid var(--tsg-line); touch-action: none; }
    @media (min-width: 768px) { .tsg-head { padding: 20px 24px 16px; } }
    .tsg-head-ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff;
        background: linear-gradient(135deg, var(--tsg-p), var(--tsg-pink)); }
    .tsg-head-ic svg { width: 24px; height: 24px; }
    .tsg-head h2 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.5; }
    .tsg-head p { margin: 0; font-size: 12px; color: var(--tsg-muted); }
    .tsg-x { margin-inline-start: auto; flex-shrink: 0; width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
        background: var(--tsg-soft); color: var(--tsg-text); cursor: pointer; transition: background .15s; }
    .tsg-x:hover { background: var(--tsg-tint); }
    .tsg-x svg { width: 20px; height: 20px; }
    .tsg :focus-visible { outline: 2px solid var(--tsg-p); outline-offset: 2px; }

    .tsg-tabs { display: flex; gap: 6px; margin: 12px 18px 0; padding: 4px; border-radius: 14px; background: var(--tsg-soft); }
    @media (min-width: 768px) { .tsg-tabs { margin: 14px 24px 0; } }
    .tsg-tab { flex: 1; padding: 9px 12px; border-radius: 11px; font-size: 14px; font-weight: 700; color: var(--tsg-muted); cursor: pointer; transition: background .2s, color .2s; }
    .tsg-tab[aria-selected="true"] { background: var(--tsg-bg); color: var(--tsg-pd); box-shadow: 0 1px 4px rgba(60, 20, 90, .12); }
    .dark .tsg-tab[aria-selected="true"] { color: #e9d5ff; }

    .tsg-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px 18px 20px; }
    @media (min-width: 768px) { .tsg-body { padding: 20px 24px 24px; } }
    .tsg-sec[hidden] { display: none; }
    .tsg-intro { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--tsg-tint); font-size: 14px; line-height: 1.9; }
    .tsg-h3 { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; font-size: 15px; font-weight: 800; }
    .tsg-h3::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: linear-gradient(var(--tsg-p), var(--tsg-pink)); }
    .tsg-note { margin: -4px 0 10px; font-size: 12.5px; line-height: 1.8; color: var(--tsg-muted); }

    .tsg-figs { display: grid; gap: 12px; }
    @media (min-width: 640px) { .tsg-figs.tsg-two { grid-template-columns: 1fr 1fr; } }
    .tsg-fig { border: 1px solid var(--tsg-line); border-radius: 18px; padding: 12px; background: var(--tsg-soft); }
    .tsg-fig-t { font-size: 13px; font-weight: 800; margin: 0 2px 6px; color: var(--tsg-pd); }
    .dark .tsg-fig-t { color: #d8b4fe; }
    .tsg-fig-art { display: flex; justify-content: center; border-radius: 14px; background: var(--tsg-bg); padding: 8px 4px; }
    .tsg-svg { width: 100%; max-width: 250px; height: auto; display: block; font-family: inherit; }
    @media (max-width: 639px) {
        .tsg-svg { width: auto; max-width: 100%; height: 235px; }
        .tsg-steps li { font-size: 12.5px; line-height: 1.75; }
    }
    .tsg-steps { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
    .tsg-steps li { display: flex; gap: 10px; font-size: 13px; line-height: 1.8; }
    .tsg-steps b { display: block; font-size: 13.5px; }
    .tsg-num { flex-shrink: 0; width: 24px; height: 24px; margin-top: 2px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
        color: #fff; font-size: 12px; font-weight: 800; }
    .tsg-num.tsg-m1 { background: var(--tsg-p); } .tsg-num.tsg-m2 { background: var(--tsg-pink); } .tsg-num.tsg-m3 { background: var(--tsg-amber); }

    /* SVG parts */
    .tsg-form { fill: var(--tsg-form); stroke: var(--tsg-form-line); stroke-width: 1.5; }
    .tsg-form-cap, .tsg-stand { fill: var(--tsg-form-line); }
    .tsg-floor, .tsg-guide { stroke: var(--tsg-form-line); stroke-width: 1.2; stroke-dasharray: 3 3; }
    .tsg-garment { stroke: #d48ac0; stroke-width: 1.5; stroke-linejoin: round; }
    .tsg-garment-flat { stroke-width: 2; }
    .dark .tsg-garment { stroke: #c06aa8; }
    .tsg-fab-a { stop-color: var(--tsg-fab-a); } .tsg-fab-b { stop-color: var(--tsg-fab-b); }
    .tsg-strap { fill: none; stroke: #d48ac0; stroke-width: 3; stroke-linecap: round; }
    .tsg-seam { fill: none; stroke: #fff; stroke-width: 1.4; stroke-dasharray: 4 3; opacity: .9; }
    .tsg-seam-soft { opacity: .5; }
    .dark .tsg-seam { stroke: rgba(255, 255, 255, .55); }
    .tsg-band, .tsg-band-back, .tsg-arrow { fill: none; stroke-width: 2.6; stroke-linecap: round; }
    .tsg-band-back { stroke-width: 1.6; stroke-dasharray: 4 4; opacity: .55; }
    .tsg-arrow { stroke-width: 2.2; }
    .tsg-band.tsg-m1, .tsg-band-back.tsg-m1, .tsg-arrow.tsg-m1 { stroke: var(--tsg-p); }
    .tsg-band.tsg-m2, .tsg-band-back.tsg-m2, .tsg-arrow.tsg-m2 { stroke: var(--tsg-pink); }
    .tsg-band.tsg-m3, .tsg-band-back.tsg-m3, .tsg-arrow.tsg-m3 { stroke: var(--tsg-amber); }
    .tsg-head-tsg-m1 { fill: var(--tsg-p); } .tsg-head-tsg-m2 { fill: var(--tsg-pink); } .tsg-head-tsg-m3 { fill: var(--tsg-amber); }
    .tsg-badge circle { stroke: var(--tsg-bg); stroke-width: 2.5; }
    .tsg-badge.tsg-m1 circle { fill: var(--tsg-p); } .tsg-badge.tsg-m2 circle { fill: var(--tsg-pink); } .tsg-badge.tsg-m3 circle { fill: var(--tsg-amber); }
    .tsg-badge text { fill: #fff; font-size: 13px; font-weight: 800; text-anchor: middle; }

    /* Bra size reading card */
    .tsg-read { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
    .tsg-read-big { display: flex; justify-content: center; align-items: stretch; gap: 10px; direction: ltr; }
    .tsg-read-big > div { text-align: center; border-radius: 16px; padding: 12px 18px; background: var(--tsg-bg); border: 1.5px solid var(--tsg-line); }
    .tsg-read-big strong { display: block; font-size: 34px; line-height: 1.2; font-weight: 900; }
    .tsg-read-big .tsg-rb1 strong { color: var(--tsg-p); } .tsg-read-big .tsg-rb2 strong { color: var(--tsg-pink); }
    .tsg-read-big span { display: block; font-size: 12px; color: var(--tsg-muted); direction: rtl; }
    .tsg-read p { margin: 0; font-size: 13px; line-height: 1.9; text-align: center; color: var(--tsg-muted); }

    /* Tables */
    .tsg-table-wrap { overflow-x: auto; border: 1px solid var(--tsg-line); border-radius: 16px; background: var(--tsg-bg); }
    .tsg-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; text-align: center; white-space: nowrap; }
    .tsg-table th { position: sticky; top: 0; padding: 11px 10px; font-size: 12.5px; font-weight: 800; color: var(--tsg-pd); background: var(--tsg-tint); }
    .dark .tsg-table th { color: #e9d5ff; }
    .tsg-table th small { display: block; font-size: 10.5px; font-weight: 500; color: var(--tsg-muted); }
    .tsg-table td { padding: 11px 10px; border-top: 1px solid var(--tsg-line); }
    .tsg-table td:first-child { font-weight: 800; font-size: 14.5px; }
    .tsg-table.tsg-compact { font-size: 12.5px; }
    .tsg-table.tsg-compact td, .tsg-table.tsg-compact th { padding: 9px 7px; }
    .tsg-table tbody tr { transition: background .25s; }
    .tsg-table tbody tr:nth-child(even) td { background: var(--tsg-soft); }
    .tsg-table tr.tsg-avail td:first-child { color: var(--tsg-pd); }
    .dark .tsg-table tr.tsg-avail td:first-child { color: #e9d5ff; }
    .tsg-pill { display: inline-block; margin-inline-start: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; vertical-align: middle;
        color: var(--tsg-ok); background: color-mix(in srgb, var(--tsg-ok) 12%, transparent); }
    .tsg-table tr.tsg-hit td { background: var(--tsg-hit) !important; box-shadow: inset 0 1px 0 var(--tsg-p), inset 0 -1px 0 var(--tsg-p); }
    .tsg-table td.tsg-hit-cell { background: linear-gradient(135deg, var(--tsg-p), var(--tsg-pink)) !important; color: #fff; font-weight: 800; border-radius: 8px; }
    .tsg-to { color: var(--tsg-muted); font-size: 11.5px; }
    .tsg-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 11.5px; color: var(--tsg-muted); }
    .tsg-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: var(--tsg-ok); margin-inline-end: 4px; }

    /* This model's own table (admin HTML, inline styles stripped on the server) */
    .tsg-custom { border: 1.5px solid #ead9fb; border-radius: 18px; padding: 14px; background: linear-gradient(160deg, var(--tsg-tint), transparent 70%); }
    .dark .tsg-custom { border-color: rgba(192, 132, 252, .3); }
    .tsg-custom-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: #fff; padding: 3px 10px; border-radius: 999px;
        background: linear-gradient(135deg, var(--tsg-p), var(--tsg-pink)); }
    .tsg-custom-body { margin-top: 10px; font-size: 13.5px; line-height: 1.9; overflow-x: auto; }
    .tsg-custom-body h1, .tsg-custom-body h2, .tsg-custom-body h3, .tsg-custom-body h4 { font-size: 14px; font-weight: 800; margin: 10px 0 6px; }
    .tsg-custom-body p { margin: 0 0 6px; }
    .tsg-custom-body ul { margin: 0 0 6px; padding-inline-start: 18px; list-style: disc; }
    .tsg-custom-body hr { border: 0; border-top: 1px solid var(--tsg-line); margin: 10px 0; }
    .tsg-custom-body table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: center; background: var(--tsg-bg);
        border: 1px solid var(--tsg-line); border-radius: 14px; overflow: hidden; margin: 6px 0; }
    .tsg-custom-body th, .tsg-custom-body thead td { padding: 10px 8px; font-size: 12.5px; font-weight: 800; color: var(--tsg-pd); background: var(--tsg-tint); }
    .dark .tsg-custom-body th, .dark .tsg-custom-body thead td { color: #e9d5ff; }
    .tsg-custom-body td { padding: 10px 8px; border-top: 1px solid var(--tsg-line); }
    .tsg-custom-body tbody th { background: var(--tsg-soft); border-top: 1px solid var(--tsg-line); white-space: nowrap; }
    .tsg-custom-body tbody tr:nth-child(even) td { background: var(--tsg-soft); }

    /* Calculator */
    .tsg-calc { border-radius: 18px; padding: 14px; background: var(--tsg-soft); border: 1px solid var(--tsg-line); }
    .tsg-calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .tsg-calc label { display: block; font-size: 12px; font-weight: 700; color: var(--tsg-muted); margin-bottom: 4px; }
    .tsg-calc .tsg-in { position: relative; }
    .tsg-calc input { width: 100%; height: 46px; padding: 0 12px 0 40px; border-radius: 12px; border: 1.5px solid var(--tsg-line); background: var(--tsg-bg);
        color: var(--tsg-text); font-size: 16px; font-weight: 700; text-align: right; outline: none; transition: border-color .2s; }
    .tsg-calc input:focus { border-color: var(--tsg-p); }
    .tsg-calc .tsg-in span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--tsg-muted); pointer-events: none; }
    .tsg-calc-btn { width: 100%; height: 46px; margin-top: 10px; border-radius: 12px; color: #fff; font-size: 15px; font-weight: 800; cursor: pointer;
        background: linear-gradient(110deg, #9333ea, #c026d3 55%, #ec4899); box-shadow: 0 6px 16px rgba(168, 85, 247, .3); transition: transform .15s, box-shadow .2s; }
    .tsg-calc-btn:active { transform: scale(.98); }
    .tsg-result { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--tsg-bg); border: 1.5px dashed var(--tsg-p); font-size: 13.5px; line-height: 1.9; }
    .tsg-result[hidden] { display: none; }
    .tsg-result strong { font-size: 22px; font-weight: 900; color: var(--tsg-pd); margin: 0 4px; }
    .dark .tsg-result strong { color: #e9d5ff; }
    .tsg-result small { display: block; color: var(--tsg-muted); font-size: 12px; }
    .tsg-result.tsg-warn { border-color: var(--tsg-amber); }

    .tsg-tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
    .tsg-tips li { position: relative; padding: 10px 38px 10px 12px; border-radius: 14px; background: var(--tsg-soft); font-size: 13px; line-height: 1.8; }
    .tsg-tips li::before { content: "✓"; position: absolute; right: 12px; top: 10px; width: 18px; height: 18px; border-radius: 99px; font-size: 11px; font-weight: 900;
        display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--tsg-p); }
    .tsg-foot { display: flex; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--tsg-line); background: var(--tsg-bg); border-radius: 0 0 24px 24px; }
    @media (min-width: 768px) { .tsg-foot { padding: 14px 24px; } }
    .tsg-foot button { flex: 1; height: 46px; border-radius: 14px; font-size: 14.5px; font-weight: 800; cursor: pointer; }
    .tsg-foot .tsg-go { color: #fff; background: linear-gradient(110deg, #9333ea, #c026d3 55%, #ec4899); }
    .tsg-foot .tsg-close2 { flex: 0 0 auto; padding: 0 18px; background: var(--tsg-soft); color: var(--tsg-text); }

    /* "Your size" note under the size options, and the dot on the suggested option */
    .tsg-mine { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 10px; padding: 8px 12px; border-radius: 12px; text-align: right; font-size: 13px; line-height: 1.7;
        color: #3b0764; background: #faf5ff; border: 1px dashed #d8b4fe; cursor: pointer; }
    .tsg-mine[hidden] { display: none; }
    .tsg-mine b { font-weight: 900; color: #7e22ce; }
    .tsg-mine .tsg-mine-ic { flex-shrink: 0; width: 22px; height: 22px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px;
        background: linear-gradient(135deg, #A855F7, #EC4899); }
    .tsg-mine .tsg-mine-edit { margin-inline-start: auto; flex-shrink: 0; font-size: 12px; font-weight: 700; color: #9333ea; }
    .dark .tsg-mine { color: #f3e8ff; background: rgba(168, 85, 247, .12); border-color: rgba(192, 132, 252, .4); }
    .dark .tsg-mine b, .dark .tsg-mine .tsg-mine-edit { color: #e9d5ff; }
    .variation-option.tsg-suggest { position: relative; }
    .variation-option.tsg-suggest::after { content: ""; position: absolute; top: -3px; left: -3px; width: 12px; height: 12px; border-radius: 99px; border: 2px solid #fff;
        background: linear-gradient(135deg, #A855F7, #EC4899); }
    .dark .variation-option.tsg-suggest::after { border-color: #1f2937; }

    .tsg-notape { margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.9; color: var(--tsg-muted); background: var(--tsg-soft); border: 1px dashed var(--tsg-line); }
    .tsg-notape b { color: var(--tsg-text); }

    .tsg-fitbox { margin: 0 0 16px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--tsg-line); background: var(--tsg-bg); font-size: 13px; line-height: 1.9; }
    .tsg-fitbox.tsg-fit-small { border-color: #fcd34d; background: color-mix(in srgb, #F59E0B 8%, var(--tsg-bg)); }
    .tsg-fitbox.tsg-fit-large { border-color: #93c5fd; background: color-mix(in srgb, #3b82f6 7%, var(--tsg-bg)); }
    .tsg-fitbox.tsg-fit-true { border-color: #86efac; background: color-mix(in srgb, #22c55e 7%, var(--tsg-bg)); }
    .tsg-fitbox-t { font-weight: 800; margin-bottom: 6px; }
    .tsg-fitbox p { margin: 6px 0 0; }
    .tsg-fitbar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--tsg-line); direction: rtl; }
    .tsg-fitbar span { display: block; height: 100%; }
    .tsg-fb-s { background: #F59E0B; } .tsg-fb-t { background: #22c55e; } .tsg-fb-l { background: #3b82f6; }
    .tsg-fitlegend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 11.5px; color: var(--tsg-muted); }
    .tsg-fitlegend i { display: inline-block; width: 8px; height: 8px; border-radius: 99px; margin-inline-end: 4px; }
    .tsg-fitn { margin-inline-start: auto; }

    .tsg-chart-note { margin: 8px 0 10px; }
    .tsg-custom .tsg-table th { white-space: normal; line-height: 1.6; }
    .tsg-num-s { width: 18px; height: 18px; font-size: 10.5px; margin: 0 0 0 4px; vertical-align: middle; }
    .tsg-custom .tsg-table td, .tsg-custom .tsg-table th { padding-inline: 6px; }
    .tsg-forme { font-weight: 800; font-size: 12px; }
    .tsg-ok { color: #16a34a; } .tsg-tight { color: #d97706; } .tsg-small { color: #dc2626; } .tsg-loose { color: #2563eb; }
    .dark .tsg-ok { color: #4ade80; } .dark .tsg-tight { color: #fbbf24; } .dark .tsg-small { color: #f87171; } .dark .tsg-loose { color: #93c5fd; }
    .tsg-more { margin-top: 10px; font-size: 13px; }
    .tsg-more summary { cursor: pointer; font-weight: 700; color: var(--tsg-pd); }
    .dark .tsg-more summary { color: #e9d5ff; }

    .tsg-remember { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 10px; font-size: 12.5px; color: var(--tsg-text); cursor: pointer; }
    .tsg-remember input { width: 18px; height: 18px; accent-color: #A855F7; }
    .tsg-remember small { color: var(--tsg-muted); flex-basis: 100%; padding-inline-start: 26px; }
    .tsg-forget { display: block; margin: 8px auto 0; font-size: 12px; color: var(--tsg-muted); text-decoration: underline; cursor: pointer; }
    .tsg-forget[hidden] { display: none; }
    .tsg-result .tsg-alt { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--tsg-line); font-size: 13px; color: var(--tsg-text); }
