.sb-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 20px; background: currentColor; mask: var(--sb-icon) center/contain no-repeat; -webkit-mask: var(--sb-icon) center/contain no-repeat; }
.sb-launch { display: inline-flex; align-items: center; gap: 7px; }
.sb-layer { position: fixed; z-index: 1100; overflow: hidden; pointer-events: none; font: 14px/1.4 'Nunito', sans-serif; color: #25354d; }
.sb-layer [hidden], .sb-catalog[hidden] { display: none !important; }
.sb-layer button, .sb-catalog button { font: inherit; cursor: pointer; color: inherit; }
.sb-layer button:focus-visible, .sb-catalog button:focus-visible { outline: 3px solid #1c80b8; outline-offset: 2px; }
.sb-catalog { position: fixed; z-index: 1300; right: 18px; top: 90px; width: 354px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 115px); overflow: auto; padding: 16px; background: #fff; color: #25354d; border: 1px solid #cbd5e1; border-radius: 8px; box-shadow: 0 8px 32px #142d3929; }
.sb-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.sb-heading h3 { margin: 0; font-size: 17px; }
.sb-tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sb-tool-grid > button { display: flex; align-items: center; gap: 8px; text-align: left; min-height: 48px; padding: 8px; border: 1px solid #dce4e9; border-radius: 6px; background: #f7fafb; font-size: 13px; }
.sb-tool-grid > button:hover { background: #e9f3f8; }
.sb-tool-grid .sb-icon { color: #226278; }
.sb-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #dce4e9; font-size: 12px; }
.sb-shortcuts a { color: #226278; }
.sb-icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; padding: 0; border-radius: 6px; border: 1px solid #cbd5e1; background: #fff; }
.sb-widget { position: absolute; top: 12px; right: 12px; width: 294px; max-width: calc(100% - 24px); max-height: calc(100% - 90px); overflow: auto; pointer-events: auto; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; box-shadow: 0 4px 14px #193c4b26; }
.sb-widget-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid #e2e8ec; background: #f6f9fb; }
.sb-widget-header strong { flex: 1; font-size: 13px; }
.sb-drag { cursor: grab !important; touch-action: none; }
.sb-widget-body { padding: 12px; display: grid; gap: 10px; }
.sb-widget-body label { display: grid; gap: 4px; font-size: 12px; }
.sb-widget-body textarea, .sb-widget-body input, .sb-widget-body select { box-sizing: border-box; width: 100%; min-width: 0; padding: 8px; color: #25354d; background: #fff; border: 1px solid #cbd5e1; border-radius: 5px; font: inherit; font-size: 16px; }
.sb-widget-body textarea { min-height: 90px; resize: vertical; }
.sb-widget-body input[type=range] { padding: 0; accent-color: #19778c; }
.sb-widget-body input[type=checkbox] { width: 18px; height: 18px; }
.sb-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sb-command { min-height: 40px; padding: 6px 12px; border: 1px solid #276b7d; border-radius: 6px; background: #e7f3f5; }
.sb-check { display: flex !important; align-items: center; gap: 8px !important; }
.sb-readout { font: 700 40px/1.2 Arial, sans-serif; text-align: center; padding: 8px 0; font-variant-numeric: tabular-nums; }
.sb-timer-track { height: 6px; background: #e3ebef; border-radius: 3px; overflow: hidden; }
.sb-timer-track span { display: block; height: 100%; width: 100%; background: #187e86; }
.sb-widget.is-finished .sb-readout { color: #ba4133; }
.sb-result { display: block; padding: 8px 0; font-size: 23px; line-height: 1.3; font-weight: 800; overflow-wrap: anywhere; }
.sb-group-list { display: grid; gap: 8px; max-height: 190px; overflow: auto; font-size: 13px; }
.sb-group-list section { border-top: 1px solid #dce4e9; padding-top: 6px; }
.sb-score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sb-score-grid > div { display: grid; justify-items: center; gap: 7px; }
.sb-score-grid input { text-align: center; font-size: 13px; }
.sb-score { font: 700 40px/1.2 Arial, sans-serif; }
.sb-signal { display: flex; gap: 14px; justify-content: center; padding: 8px; }
.sb-signal button { width: 48px; height: 48px; border-radius: 50%; border: 4px solid #e1e7eb; background: var(--signal); opacity: .35; }
.sb-signal button[aria-pressed=true] { opacity: 1; outline: 2px solid #25354d; outline-offset: 3px; }
.sb-note { min-height: 145px !important; background: #fffddc !important; line-height: 1.5; }
.sb-noise-meter { height: 16px; border-radius: 4px; overflow: hidden; background: #e5ecef; }
.sb-noise-meter span { display: block; height: 100%; width: 0; background: #368650; }
.sb-noise-label { font-size: 14px; min-height: 22px; }
.sb-focus { position: absolute; inset: 0; z-index: 3; pointer-events: auto; touch-action: none; cursor: move; }
.sb-spot-hole { position: absolute; width: var(--spot-size, 200px); height: var(--spot-size, 200px); border: 2px solid #f5f8fb; border-radius: 50%; box-sizing: border-box; box-shadow: 0 0 0 4000px #102331d9; }
.sb-shade { position: absolute; inset: 0; background: #e4edf2; clip-path: inset(0 0 var(--reveal, 0%) 0); }
.sb-shade-grip { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); color: #496675; }
.sb-laser-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); background: #f63732; border: 2px solid white; box-shadow: 0 0 12px #ed5e4f; pointer-events: none; }
.sb-focus-controls { position: absolute; right: 10px; top: 10px; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 20px); padding: 6px; background: #fff; color: #25354d; border: 1px solid #b6c9d4; border-radius: 6px; pointer-events: auto; }
.sb-focus-controls input { width: 130px; max-width: 32vw; accent-color: #19778c; }
.sb-status { margin: 0; min-height: 20px; font-size: 12px; color: #714a35; }
.sand-material-controls { display: grid; gap: 8px; }
#sandSubPanel { touch-action: pan-y; }
#sandSubPanel > * { flex-shrink: 0; }
#sandSubPanel .float-panel-head { position: sticky; top: -12px; z-index: 2; background: #fff; padding: 8px 0; }
.sand-material-controls label { display: grid; gap: 4px; font-size: 12px; }
.sand-material-controls input[type=range] { width: 100%; accent-color: #a57139; }
.sand-material-controls .sand-check { display: flex; align-items: center; gap: 8px; }
.sand-material-controls output { float: right; font-variant-numeric: tabular-nums; color: #526477; }
.sand-material-controls select { width: 100%; min-height: 40px; border: 1px solid #cad5df; border-radius: 6px; padding: 6px; font: inherit; background: #fff; color: #243b53; }
.sand-colors { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.sand-color, .sand-custom-color { width: 36px; height: 36px; border: 2px solid #c8d3df; border-radius: 50%; cursor: pointer; }
.sand-color { background: var(--sand-swatch); }
.sand-color[aria-pressed="true"] { outline: 2px solid #6c3ded; outline-offset: 2px; }
.sand-custom-color { overflow: hidden; padding: 3px; background: #fff; }
.sand-colors button:focus-visible, .sand-custom-color:focus-visible { outline: 3px solid #157eaf; outline-offset: 2px; }
.sand-case-switch { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.sand-case-switch button { padding: 6px 4px; min-width: 0; }
.sand-mini-actions { min-width: 0; max-width: 100%; }
.sand-tools-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sand-chip { font-family: 'TTKB Dik Temel Abece', sans-serif; font-weight: 700; }
@media (max-width: 760px) {
  .sb-catalog { right: 8px; top: 12px; max-height: calc(100dvh - 90px); }
  .sb-widget { max-height: calc(100% - 96px); }
  .sb-widget-body { padding: 9px; gap: 8px; }
  .sb-icon-button { width: 40px; height: 40px; flex-basis: 40px; }
  .sb-focus-controls { top: 6px; right: 6px; gap: 4px; }
}
