.sg-doc { display: grid; gap: 14px; }
.sg-wrap { display: grid; gap: 10px; min-width: 0; }
.sg-wrap[hidden] { display: none; }
.sg-bar { position: sticky; top: calc(var(--cfx-top-h, 44px) + var(--cc-sticky, 66px) + 8px); z-index: 30; display: flex; align-items: center; gap: 4px; min-width: 0; padding: 6px; border: 1px solid var(--cc-line); border-radius: 14px; background: var(--cc-card); transition: top .45s cubic-bezier(.22, 1, .36, 1); }
body:has(.cfx-header.cfx-hide-top) .sg-bar { top: calc(var(--cc-sticky, 66px) + 8px); }
.sg-fbtn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; height: 38px; padding: 0 13px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--cc-ink-2); font: 600 .78rem 'Poppins', sans-serif; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s; -webkit-tap-highlight-color: transparent; }
.sg-fbtn i { font-size: 13px; color: var(--cc-teal); }
html:not(.cf-light) .sg-fbtn i { color: var(--cc-bright); }
.sg-fbtn:hover { background: var(--cc-teal-soft); color: var(--cc-teal); }
.sg-fbtn.is-main { background: var(--cc-teal); color: #fff; }
.sg-fbtn.is-main i { color: #fff; }
.sg-fbtn.is-main:hover { background: var(--cc-teal-h); color: #fff; }
.sg-sm { display: none; }

.sg-stage-bar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sg-tag { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; padding: 6px 12px; border-radius: 999px; background: var(--cc-teal-soft); color: var(--cc-teal); font-size: .7rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-tag:empty { display: none; }
.sg-tag.is-off { background: var(--cc-card); color: var(--cc-ink-3); box-shadow: inset 0 0 0 1px var(--cc-line); }
html:not(.cf-light) .sg-tag { color: var(--cc-bright); }
html:not(.cf-light) .sg-tag.is-off { color: var(--cc-ink-3); }
.sg-view { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; height: 36px; margin-left: auto; padding: 0 12px; border: 1px solid var(--cc-line); border-radius: 999px; background: var(--cc-card); color: var(--cc-ink-2); font: 600 .74rem 'Poppins', sans-serif; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.sg-view i { font-size: 12px; }
.sg-view:hover { border-color: rgba(6, 147, 139, .45); color: var(--cc-teal); }
.sg-view.is-on { border-color: var(--cc-teal); background: var(--cc-teal); color: #fff; }
.sg-app.is-grid .sg-pnav { display: none; }
.sg-pnav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; padding: 3px; border: 1px solid var(--cc-line); border-radius: 999px; background: var(--cc-card); }
.sg-pnav button { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--cc-teal-soft); color: var(--cc-teal); font-size: 11px; cursor: pointer; transition: background .2s, color .2s; }
html:not(.cf-light) .sg-pnav button { color: var(--cc-bright); }
.sg-pnav button:hover { background: var(--cc-teal); color: #fff; }
.sg-pnav button:disabled { opacity: .35; pointer-events: none; }
.sg-pnav span { min-width: 54px; text-align: center; font-size: .74rem; font-weight: 700; color: var(--cc-ink); }

.sg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 14px; max-height: 760px; padding: 16px; overflow-y: auto; border: 1px solid var(--cc-line); border-radius: 16px; background: var(--cc-soft); scrollbar-width: thin; }
.sg-grid[hidden] { display: none; }
.sg-gcard { display: grid; justify-items: center; gap: 8px; min-width: 0; }
.sg-gsheet { position: relative; width: 100%; line-height: 0; background: #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, .12); cursor: pointer; transition: box-shadow .2s; }
.sg-gsheet:hover { box-shadow: 0 0 0 2px var(--cc-teal), 0 4px 14px rgba(15, 23, 42, .12); }
.sg-gsheet::before { content: ''; display: block; padding-top: var(--ar, 141.4%); }
.sg-gsheet canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sg-gsheet .pm-spin { position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-width: 2px; }
.sg-glayer { position: absolute; inset: 0; pointer-events: none; }
.sg-glayer img { position: absolute; display: block; }
.sg-gnum { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--cc-ink-2); font: 600 .72rem 'Poppins', sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.sg-gnum:hover { background: var(--cc-teal-soft); color: var(--cc-teal); }
.sg-gcard.has-f .sg-gnum { color: var(--cc-teal); }
html:not(.cf-light) .sg-gcard.has-f .sg-gnum { color: var(--cc-bright); }

.sg-pages[hidden] { display: none; }
.sg-pages { display: grid; justify-items: center; gap: 18px; padding: 20px; border: 1px solid var(--cc-line); border-radius: 16px; background: var(--cc-soft); }
.sg-pg { display: grid; justify-items: center; gap: 8px; width: 100%; max-width: 860px; scroll-margin-top: calc(var(--cfx-top-h, 44px) + var(--cc-sticky, 66px) + 70px); }
.sg-sheet { position: relative; width: 100%; line-height: 0; background: #fff; box-shadow: 0 6px 22px rgba(15, 23, 42, .12); }
.sg-sheet canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sg-sheet .pm-spin { position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-width: 2px; }
.sg-layer { position: absolute; inset: 0; }
.sg-pnum { font-size: .7rem; font-weight: 600; color: var(--cc-ink-3); }
.sg-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: .72rem; line-height: 1.45; color: var(--cc-ink-3); text-align: center; }
.sg-hint i { color: var(--cc-teal); }
html:not(.cf-light) .sg-hint i { color: var(--cc-bright); }

.sg-it { position: absolute; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.sg-it img { display: block; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.sg-it::before { content: ''; position: absolute; inset: -4px; border: 1px dashed transparent; border-radius: 4px; transition: border-color .15s; }
.sg-it:hover::before { border-color: rgba(6, 147, 139, .5); }
.sg-it.is-sel::before { border: 1.5px dashed var(--cc-teal); background: rgba(6, 147, 139, .05); }
.sg-it.is-drag { cursor: grabbing; }
.sg-rs { position: absolute; right: -11px; bottom: -11px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; border-radius: 50%; background: var(--cc-teal); color: #fff; font-size: 9px; line-height: 1; cursor: nwse-resize; touch-action: none; z-index: 2; }
.sg-tools { position: absolute; left: 50%; bottom: calc(100% + 10px); display: flex; gap: 2px; padding: 3px; transform: translateX(-50%); border: 1px solid var(--cc-line); border-radius: 11px; background: var(--cc-card); box-shadow: 0 8px 22px rgba(15, 23, 42, .16); line-height: 1; z-index: 3; white-space: nowrap; }
.sg-it.is-low .sg-tools { bottom: auto; top: calc(100% + 12px); }
.sg-tools button { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--cc-ink-2); font-size: 13px; cursor: pointer; transition: background .2s, color .2s; }
.sg-tools button:hover { background: var(--cc-teal-soft); color: var(--cc-teal); }
.sg-tools button.is-del:hover { background: rgba(239, 68, 68, .1); color: #EF4444; }

.sg-saved { display: grid; gap: 8px; min-width: 0; }
.sg-saved-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sg-saved-h b { font-size: .76rem; font-weight: 600; color: var(--cc-ink-2); }
.sg-add { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--cc-line); border-radius: 999px; background: var(--cc-card); color: var(--cc-ink-2); font: 600 .7rem 'Poppins', sans-serif; cursor: pointer; transition: border-color .2s, color .2s; }
.sg-add i { font-size: 10px; }
.sg-add:hover { border-color: rgba(6, 147, 139, .45); color: var(--cc-teal); }
.sg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sg-card { position: relative; height: 64px; display: flex; align-items: center; justify-content: center; padding: 8px 12px; border: 1px solid var(--cc-line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.sg-card:hover { border-color: rgba(6, 147, 139, .5); box-shadow: 0 0 0 3px rgba(6, 147, 139, .1); }
.sg-card img { max-width: 100%; max-height: 100%; display: block; pointer-events: none; }
.sg-card-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: rgba(15, 23, 42, .06); color: #64748B; font-size: 10px; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s, color .2s; }
.sg-card:hover .sg-card-x, .sg-card:focus-within .sg-card-x { opacity: 1; }
.sg-card-x:hover { background: rgba(239, 68, 68, .12); color: #EF4444; }
.sg-empty { grid-column: 1 / -1; height: 64px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed var(--cc-line); border-radius: 12px; background: transparent; color: var(--cc-ink-3); font: 600 .74rem 'Poppins', sans-serif; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.sg-empty:hover { border-color: var(--cc-teal); background: var(--cc-teal-soft); color: var(--cc-teal); }
.sg-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--cc-line); border-radius: 14px; background: var(--cc-card); }
.sg-sum div { display: grid; gap: 3px; min-width: 0; padding: 10px 12px; }
.sg-sum div + div { border-left: 1px solid var(--cc-line); }
.sg-sum span { overflow: hidden; text-overflow: ellipsis; font-size: .68rem; font-weight: 600; color: var(--cc-ink-3); white-space: nowrap; }
.sg-sum b { font-size: .95rem; font-weight: 700; color: var(--cc-ink); white-space: nowrap; }
.sg-inks { flex-wrap: wrap; }
.sg-hex { position: relative; display: inline-flex; align-items: center; width: 116px; height: 34px; padding: 0 10px 0 8px; border: 1px solid var(--cc-line); border-radius: 999px; background: var(--cc-soft); transition: border-color .2s, box-shadow .2s, background .2s; }
.sg-hex:focus-within { border-color: var(--cc-teal); background: var(--cc-card); box-shadow: 0 0 0 3px rgba(6, 147, 139, .15); }
.sg-hex.is-on { border-color: var(--cc-teal); background: var(--cc-card); }
.sg-hex.is-bad { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }
.sg-hex-dot { flex-shrink: 0; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; background: var(--sw, transparent); box-shadow: inset 0 0 0 1px var(--cc-line); }
.sg-hex b { font-size: .78rem; font-weight: 700; color: var(--cc-ink-3); }
.sg-hex input { width: 100%; min-width: 0; height: 100%; padding: 0 0 0 2px; border: 0; outline: 0; background: transparent; color: var(--cc-ink); font: 600 .78rem 'Poppins', sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.sg-hex input::placeholder { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--cc-ink-3); opacity: .85; }
.sg-st-prev { height: 130px; display: flex; align-items: center; justify-content: center; padding: 12px; border: 1px solid var(--cc-line); border-radius: 14px; background: #fff; }
.sg-st-prev img { max-width: 100%; max-height: 100%; display: block; }
.sg-st-prev span { font-size: .8rem; color: #94A3B8; }
.sg-fe-save { font-size: .76rem; }
.sg-fe-save[hidden] { display: none; }
.sg-page .pm-dl-row { display: flex; }
.sg-page #sgPreview { flex: 1.7 1 0; }
.sg-page #sgRedo { flex: 1 1 0; }
.sg-page #sgShareFile { flex: 0 0 44px; padding: 0; }
.sg-page #sgShareFile span { display: none; }

.sg-modal { position: fixed; inset: 0; z-index: 1260; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 10, 14, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sg-modal[hidden] { display: none; }
.sg-dlg { display: grid; gap: 14px; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); padding: 18px; overflow-y: auto; border-radius: 20px; background: var(--cc-card); box-shadow: 0 24px 60px rgba(15, 23, 42, .3); }
.sg-dlg-sm { max-width: 440px; }
.sg-dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sg-dlg-h b { font-size: 1rem; font-weight: 700; color: var(--cc-ink); }
.sg-x { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--cc-line); border-radius: 10px; background: var(--cc-card); color: var(--cc-ink-2); font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.sg-x:hover { background: rgba(239, 68, 68, .08); color: #EF4444; }
.sg-tab { display: grid; gap: 12px; min-width: 0; }
.sg-tab[hidden] { display: none; }
.sg-pad { position: relative; height: 210px; border: 1.5px dashed rgba(6, 147, 139, .4); border-radius: 14px; background: #fff; overflow: hidden; }
.sg-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
.sg-pad-ph { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font: 400 1.9rem 'Caveat', cursive; color: #CBD5E1; pointer-events: none; }
.sg-pad-ph[hidden] { display: none; }
.sg-pad-line { position: absolute; left: 24px; right: 24px; bottom: 46px; height: 1px; background: #E2E8F0; pointer-events: none; }
.sg-pad-a { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.sg-ib { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid #E2E8F0; border-radius: 9px; background: #fff; color: #475569; font-size: 12px; cursor: pointer; transition: background .2s, color .2s; }
.sg-ib:hover { background: #E6F4F3; color: #06938B; }
.sg-ib:disabled { opacity: .4; pointer-events: none; }
.sg-tin { position: relative; display: flex; align-items: center; }
.sg-tin i { position: absolute; left: 14px; font-size: 12px; color: var(--cc-ink-3); pointer-events: none; }
.sg-tin input { width: 100%; height: 46px; padding: 0 14px 0 38px; border: 1px solid var(--cc-line); border-radius: 12px; outline: 0; background: var(--cc-soft); color: var(--cc-ink); font: 600 .9rem 'Poppins', sans-serif; transition: border-color .2s, box-shadow .2s, background .2s; }
.sg-tin input:focus { border-color: var(--cc-teal); background: var(--cc-card); box-shadow: 0 0 0 3px rgba(6, 147, 139, .15); }
.sg-tin input::placeholder { font-weight: 400; font-size: .82rem; color: var(--cc-ink-3); opacity: .85; }
.sg-fonts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sg-font { height: 64px; display: flex; align-items: center; justify-content: center; padding: 0 10px; overflow: hidden; border: 1px solid var(--cc-line); border-radius: 12px; background: #fff; color: #111827; font-size: 1.7rem; line-height: 1; white-space: nowrap; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.sg-font span { overflow: hidden; text-overflow: ellipsis; padding: 4px 2px; }
.sg-font:hover { border-color: rgba(6, 147, 139, .45); }
.sg-font.is-on { border-color: var(--cc-teal); box-shadow: 0 0 0 3px rgba(6, 147, 139, .15); }
.sg-up { display: block; cursor: pointer; }
.sg-up-prev { height: 190px; display: flex; align-items: center; justify-content: center; padding: 14px; overflow: hidden; border: 1.5px dashed rgba(6, 147, 139, .4); border-radius: 14px; background: #fff repeating-conic-gradient(#F1F5F9 0 25%, transparent 0 50%) 0 0 / 16px 16px; transition: border-color .2s; }
.sg-up:hover .sg-up-prev, .sg-up.is-over .sg-up-prev { border-color: var(--cc-teal); }
.sg-up-prev img { max-width: 100%; max-height: 100%; display: block; }
.sg-up-empty { display: grid; justify-items: center; gap: 4px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .9); text-align: center; }
.sg-up-empty i { margin-bottom: 4px; font-size: 22px; color: #06938B; }
.sg-up-empty b { font-size: .82rem; color: #0F172A; }
.sg-up-empty small { font-size: .7rem; color: #64748B; }
.sg-inks { display: flex; align-items: center; gap: 10px; }
.sg-inks-k { margin-right: 4px; font-size: .76rem; font-weight: 600; color: var(--cc-ink-2); }
.sg-dlg-f { display: flex; align-items: center; gap: 8px; padding-top: 4px; }
.sg-dlg-f .qg-btn { height: 44px; }
.sg-dlg-f .qg-btn-main { width: auto; min-width: 150px; }
.sg-dlg-f .qg-btn-main:disabled { opacity: .5; pointer-events: none; }
.sg-dlg-f .qg-btn-ghost { padding: 0 16px; }
.sg-keep { margin-right: auto; font-size: .76rem; }
#sgFe .sg-dlg-f .qg-btn-ghost { margin-left: auto; }
.sg-fe-prev { height: 90px; display: flex; align-items: center; justify-content: center; padding: 12px; border: 1px solid var(--cc-line); border-radius: 14px; background: #fff; }
.sg-fe-prev img { max-width: 100%; max-height: 100%; display: block; }
.sg-fe-row { display: grid; gap: 7px; min-width: 0; }
.sg-fe-row[hidden] { display: none; }
.sg-fe-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sg-fe-2 > div { display: grid; gap: 7px; min-width: 0; }
.sg-fe-k { font-size: .76rem; font-weight: 600; color: var(--cc-ink-2); }
.sg-fe-in { width: 100%; min-width: 0; height: 46px; padding: 0 12px; border: 1px solid var(--cc-line); border-radius: 12px; outline: 0; background: var(--cc-soft); color: var(--cc-ink); font: 600 .84rem 'Poppins', sans-serif; transition: border-color .2s, box-shadow .2s; }
.sg-fe-in:focus { border-color: var(--cc-teal); box-shadow: 0 0 0 3px rgba(6, 147, 139, .15); }
select.sg-fe-in { padding-right: 30px; -webkit-appearance: none; appearance: none; background: var(--cc-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2364748B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; }
html.sg-modal-open { overflow: hidden; }

.sg-page .qg-toast-text.pm-tt { display: flex; min-width: 0; overflow: hidden; }
.sg-page .pm-tt-pre, .sg-page .pm-tt-ext { flex-shrink: 0; white-space: pre; }
.sg-page .pm-tt-stem { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 761px) {
    .sg-page .qg-note { gap: 6px; font-size: .68rem; white-space: nowrap; letter-spacing: -.01em; }
}
@media (max-width: 760px) {
    .sg-page .pm-tt-pre { display: none; }
    .sg-bar { top: calc(var(--cfx-top-h, 44px) + var(--cc-sticky, 66px) + 6px); gap: 2px; padding: 4px; border-radius: 12px; }
    .sg-fbtn { flex: 1 1 0; gap: 5px; height: 34px; padding: 0 4px; border-radius: 9px; font-size: .68rem; }
    .sg-fbtn i { font-size: 11px; }
    .sg-lg { display: none; }
    .sg-sm { display: inline; }
    .sg-stage-bar { flex-wrap: wrap; row-gap: 10px; }
    .sg-tag { order: 1; flex: 1 1 100%; justify-content: center; }
    .sg-view { order: 2; margin-left: 0; }
    .sg-pnav { order: 3; margin-left: auto; }
    .sg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 70vh; padding: 12px; gap: 12px 10px; }
    .sg-pages { gap: 14px; padding: 10px; border-radius: 14px; }
    .sg-rs { width: 28px; height: 28px; right: -14px; bottom: -14px; }
    .sg-tools button { width: 36px; height: 36px; }
    .sg-card-x { opacity: 1; }
    .sg-modal { align-items: flex-end; padding: 0; }
    .sg-dlg { max-width: none; max-height: 92vh; max-height: 92dvh; padding: 16px 14px calc(14px + env(safe-area-inset-bottom, 0px)); border-radius: 20px 20px 0 0; }
    .sg-pad { height: 190px; }
    .sg-tin input, .sg-fe-in, .sg-hex input { font-size: 16px; }
    .sg-tin input, .sg-fe-in { height: 44px; }
    .sg-hex { width: 128px; }
    .sg-hex input { letter-spacing: 0; }
    .sg-font { height: 56px; font-size: 1.45rem; }
    .sg-dlg-f { flex-wrap: wrap; }
    .sg-keep { flex: 1 1 100%; }
    .sg-dlg-f .qg-btn { flex: 1 1 0; }
    #sgFe .sg-dlg-f .qg-btn-ghost { margin-left: 0; }
}
.sg-st-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sg-st-vars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: -6px; }
.sg-st-var { display: grid; justify-items: center; gap: 4px; min-width: 0; padding: 6px 4px 6px; border: 1px solid var(--cc-line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.sg-st-var:hover { border-color: rgba(6, 147, 139, .45); }
.sg-st-var.is-on { border-color: var(--cc-teal); box-shadow: 0 0 0 3px rgba(6, 147, 139, .15); }
.sg-st-th { width: 100%; height: 58px; display: flex; align-items: center; justify-content: center; }
.sg-st-th img { max-width: 100%; max-height: 100%; display: block; }
.sg-st-var small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 .64rem 'Poppins', sans-serif; color: #475569; }
.sg-st-var.is-on small { color: #06938B; }
@media (max-width: 760px) {
    .sg-st-2 { grid-template-columns: minmax(0, 1fr); }
    .sg-st-vars { display: flex; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -9px -3px -3px; }
    .sg-st-vars::-webkit-scrollbar { display: none; }
    .sg-st-var { flex: 0 0 96px; }
    .sg-st-prev { height: 110px; }
}
#sgMk .sg-dlg { gap: 12px; }
#sgMk .sg-tab { gap: 10px; }
.sg-st-prev { height: 104px; padding: 8px; }
.sg-st-vars { gap: 6px; margin-top: -4px; }
.sg-st-var { gap: 3px; padding: 5px 3px; border-radius: 10px; }
.sg-st-var:focus { outline: 0; }
.sg-st-var:focus-visible { box-shadow: 0 0 0 3px rgba(6, 147, 139, .25); }
.sg-st-th { height: 40px; }
.sg-st-var small { font-size: .6rem; }
@media (max-width: 760px) {
    #sgMk .sg-dlg { gap: 10px; padding-top: 14px; }
    #sgMk .sg-tab { gap: 8px; }
    .sg-st-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .sg-st-2 .sg-tin input { padding-left: 34px; padding-right: 8px; }
    .sg-st-2 .sg-tin i { left: 12px; }
    .sg-st-prev { height: 84px; }
    .sg-st-vars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; overflow: visible; padding: 0; margin: -4px 0 0; }
    .sg-st-var { flex: none; padding: 4px 2px; }
    .sg-st-th { height: 32px; }
    .sg-st-var small { font-size: .52rem; line-height: 1.15; white-space: normal; text-align: center; }
    #sgMk .sg-tin input { height: 42px; }
}
.sg-tin input { height: 40px; border-radius: 11px; font-size: .86rem; }
#sgMk .sg-tin input { height: 40px; }
.sg-st-vars { display: flex; gap: 6px; padding: 3px; margin: -7px -3px -3px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.sg-st-vars::-webkit-scrollbar { display: none; }
.sg-st-var { flex: 0 0 calc((100% - 24px) / 5); scroll-snap-align: start; }
@media (max-width: 760px) {
    .sg-tin input, #sgMk .sg-tin input { height: 40px; font-size: 16px; }
    .sg-st-vars { display: flex; gap: 6px; padding: 3px; margin: -7px -3px -3px; overflow-x: auto; }
    .sg-st-var { flex: 0 0 calc((100% - 24px) / 5); padding: 4px 2px; }
    .sg-st-var small { display: none; }
    .sg-st-th { height: 46px; }
}
.sg-dlg { transform: translateZ(0); overscroll-behavior: contain; }
@media (max-width: 760px) {
    .sg-modal { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(8, 10, 14, .62); }
}
.sg-sum { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); }
.sg-sum div { padding: 10px 11px; }
.sg-sum span { overflow: visible; text-overflow: clip; }