/* V19: per-digit user-selectable colors; works in light and dark themes. */
#sgpPaitoStudio .sgps-digits .sgps-digit-choice{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0}
#sgpPaitoStudio .sgps-digits .sgps-digit-choice button{width:100%;min-height:38px;font-weight:800}
#sgpPaitoStudio .sgps-digits .sgps-digit-choice button.on{background:var(--sgps-digit-color)!important;color:#76869e!important;border:2px solid #88a0c4!important}
#sgpPaitoStudio .sgps-digits .sgps-digit-choice input[type=color]{display:block;width:100%;min-width:0;height:27px;padding:2px;border:1px solid #5892e9;border-radius:7px;background:transparent;cursor:pointer;color-scheme:normal}
#sgpPaitoStudio .sgps-digits .sgps-digit-choice input[type=color]::-webkit-color-swatch-wrapper{padding:0}
#sgpPaitoStudio .sgps-digits .sgps-digit-choice input[type=color]::-webkit-color-swatch{border:0;border-radius:4px}
#sgpPaitoStudio .sgps-cell.sgps-auto-digit{color:#76869e!important}
/* V3 Taiwan paito: retain custom swatches, use independent readable digit labels. */
body.light #sgpPaitoStudio,body:not(.light) #sgpPaitoStudio{--sgps-surface:var(--tw-surface);--sgps-surface-alt:var(--tw-alt);--sgps-ink:var(--tw-ink);--sgps-muted:var(--tw-muted);--sgps-line:var(--tw-line);--sgps-field:var(--tw-surface);--sgps-field-ink:var(--tw-ink);--sgps-head:#174b91}
body #sgpPaitoStudio .sgps-hero{background:#174b91!important;border-color:#7894b8}body #sgpPaitoStudio .sgps-hero p{color:#fff!important}
body #sgpPaitoStudio .sgps-channel,body #sgpPaitoStudio .sgps-channel.toto{background:var(--tw-alt)!important;color:var(--tw-ink)!important}
body #sgpPaitoStudio .sgps-actions button.on,body #sgpPaitoStudio .taiwan-hour-buttons button[aria-pressed=true]{background:#174b91!important;color:#fff!important;border-color:#7894b8!important}
body #sgpPaitoStudio .sgps-cell[style*="background"],body #sgpPaitoStudio .sgps-cell.sgps-auto-digit,body #sgpPaitoStudio .sgps-digits .sgps-digit-choice button.on{color:var(--digit-ink,#000)!important;text-shadow:none;opacity:1!important}
body #sgpPaitoStudio .sgps-cell.dim{opacity:1!important;border-style:dashed}
body #sgpPaitoStudio .sgps-table td{font-size:14px}body #sgpPaitoStudio .sgps-heat td{color:#10233c!important}body #sgpPaitoStudio .sgps-heat th{background:#174b91;color:#fff!important}
