/* Méretválasztó (jaszmotor téma változóival) */
.sg { margin: 4px 0 14px; }
.sg-open {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 10px;
    border: 1px dashed var(--jm-accent); background: rgba(var(--jm-accent-rgb), .06); color: var(--jm-text); font-weight: 700; cursor: pointer;
}
.sg-open svg { width: 22px; height: 22px; fill: none; stroke: var(--jm-accent-fg); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sg-open__hint { color: var(--jm-muted); font-weight: 500; font-size: 13px; }
@media (max-width: 420px) { .sg-open__hint { display: none; } }
.sg-open:hover { background: rgba(var(--jm-accent-rgb), .12); }

html.sg-lock { overflow: hidden; }
.sg-modal { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 16px; }
.sg-modal[hidden] { display: none; }
.sg-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .8); }
.sg-modal__dialog { position: relative; width: min(820px, 100%); max-height: 100%; overflow: auto; padding: 22px; border-radius: 18px; background: var(--jm-surface); border: 1px solid var(--jm-line); }
.sg-modal__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--jm-surface-2); color: var(--jm-text); cursor: pointer; }
.sg-modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sg-title { margin: 0 44px 16px 0; font-family: var(--jm-font-display); font-weight: 400; font-size: 30px; }
.sg-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .sg-grid { grid-template-columns: 240px minmax(0, 1fr); } }
.sg-figure { margin: 0 0 10px; padding: 14px; border-radius: 14px; background: var(--jm-surface-2); color: var(--jm-text); }
.sg-figure svg { width: 100%; height: auto; max-height: 180px; }
.sg-howto { margin: 0; color: var(--jm-muted); font-size: 14px; line-height: 1.5; }
.sg-howto b { color: var(--jm-text); }
.sg-label { display: block; font-weight: 700; margin-bottom: 6px; }
.sg-input { display: flex; align-items: center; gap: 8px; }
.sg-input input { width: 140px; height: 48px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--jm-line); background: var(--jm-bg); color: var(--jm-text); font-size: 20px; font-weight: 700; }
.sg-input input:focus { outline: 2px solid var(--jm-accent); outline-offset: 1px; }
.sg-input span { color: var(--jm-muted); }
.sg-result { min-height: 28px; margin: 10px 0; font-size: 18px; }
.sg-result b { color: var(--jm-accent-fg); font-size: 22px; }
.sg-result span { color: var(--jm-muted); font-size: 14px; }
.sg-table { width: 100%; border-collapse: collapse; }
.sg-table th, .sg-table td { padding: 8px 10px; border-bottom: 1px solid var(--jm-line); text-align: left; }
.sg-table thead th { color: var(--jm-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.sg-table tr.is-match th, .sg-table tr.is-match td { background: rgba(var(--jm-accent-rgb), .14); color: var(--jm-accent-fg); font-weight: 800; }
.sg-table tr.is-near th, .sg-table tr.is-near td { background: rgba(var(--jm-accent-rgb), .06); }
.sg-note { margin: 10px 0 0; color: var(--jm-muted); font-size: 13px; }
