/* Shared bottom sheets — compact Binance-style
   Tokens: bg #0B0E11 · card #1E2329 · line #2B3139
           muted #848E9C · soft #B7BDC6 · gold #F0B90B
           green #0ECB81 · red #F6465D
*/
.sheet-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}
.sheet-root.open {
  pointer-events: auto;
  visibility: visible;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  transition: opacity .2s ease;
}
.sheet-root.open .sheet-backdrop { opacity: 1; }
.sheet-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 110%);
  width: 100%;
  max-width: var(--phone-w, 473px);
  max-height: min(88vh, 780px);
  overflow: auto;
  background: #1E2329;
  border-radius: 18px 18px 0 0;
  padding: 6px 14px max(12px, env(safe-area-inset-bottom));
  transition: transform .24s ease;
  box-shadow: 0 -8px 40px rgba(0,0,0,.45);
}
.sheet-root.open .sheet-panel { transform: translate(-50%, 0); }
.sheet-handle {
  width: 38px;
  height: 4px;
  border-radius: 4px;
  background: #3A414B;
  margin: 2px auto 10px;
}
.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.sheet-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.sheet-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #B7BDC6;
  flex-shrink: 0;
}
.sheet-close svg { width: 16px; height: 16px; }
.sheet-desc {
  margin: 0 0 10px;
  font-size: 12px;
  color: #848E9C;
  line-height: 1.4;
}
.sheet-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px;
  margin-bottom: 6px;
  border-radius: 10px;
  border: 1px solid #2B3139;
  background: #181B21;
  color: inherit;
}
.sheet-option.selected {
  border-color: #F0B90B;
}
.sheet-option-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #0B0E11;
  color: #EAECEF;
  flex-shrink: 0;
}
.sheet-option.selected .sheet-option-ico { color: #F0B90B; }
.sheet-option-ico svg { width: 16px; height: 16px; }
.sheet-option-body { flex: 1; min-width: 0; }
.sheet-option-body strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.sheet-option-body span {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  color: #848E9C;
  line-height: 1.3;
}
.sheet-option-ico.is-gold,
.sheet-option.selected .sheet-option-ico.is-gold {
  color: #F0B90B;
}
.sheet-rec {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 6px;
  border: 1px solid #F0B90B;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.02em;
  color: #F0B90B;
  line-height: 1;
  white-space: nowrap;
}
.sheet-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #5E6673;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.sheet-option.selected .sheet-radio {
  border-color: #F0B90B;
  background: #F0B90B;
  color: #0B0E11;
}
.sheet-option.selected .sheet-radio svg { width: 11px; height: 11px; display: block; }
.sheet-option:not(.selected) .sheet-radio svg { display: none; }

.sheet-field-lab {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 10px 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #EAECEF;
}
.sheet-field-lab svg { width: 12px; height: 12px; color: #848E9C; }

.sheet-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sheet-stepper input {
  flex: 1;
  min-width: 0;
  background: #0B0E11;
  border: 1px solid #2B3139;
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 10px;
  outline: none;
}
.sheet-step-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #2B3139;
  color: #B7BDC6;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
  background: #0B0E11;
}
.sheet-step-btn.plus {
  border-color: #F0B90B;
  color: #F0B90B;
}
.sheet-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: #848E9C;
}
.sheet-tip {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #0B0E11;
  border: 1px solid #2B3139;
}
.sheet-tip.gold { border-color: rgba(240,185,11,.45); }
.sheet-tip-ico {
  color: #F0B90B;
  flex-shrink: 0;
  margin-top: 1px;
}
.sheet-tip-ico svg { width: 16px; height: 16px; }
.sheet-tip strong {
  display: block;
  font-size: 12px;
  color: #fff;
  margin-bottom: 2px;
}
.sheet-tip p {
  margin: 0;
  font-size: 11px;
  color: #848E9C;
  line-height: 1.35;
}
.sheet-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #F0B90B;
  color: #0B0E11;
  font-size: 14px;
  font-weight: 800;
}
.sheet-slider-wrap { margin-top: 12px; }
.sheet-slider-wrap input[type="range"] {
  width: 100%;
  accent-color: #F0B90B;
  height: 4px;
}
.sheet-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 10px;
  color: #848E9C;
}
.sheet-levs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 10px;
}
.sheet-lev {
  flex: 1 1 calc(33.33% - 6px);
  min-width: 58px;
  padding: 9px 6px;
  border-radius: 8px;
  border: 1px solid #2B3139;
  background: #0B0E11;
  color: #EAECEF;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.sheet-lev.selected {
  border-color: #F0B90B;
  color: #F0B90B;
}
.sheet-datetime {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0B0E11;
  border: 1px solid #2B3139;
  border-radius: 8px;
  padding: 0 10px;
  min-height: 36px;
}
.sheet-datetime input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 0;
}
.sheet-datetime svg { width: 14px; height: 14px; color: #848E9C; }
