.tkj-sel { position: relative; width: 100%; }
.tkj-sel select.tkj-native { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; font-size: 16px; }

.tkj-sel-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 44px; padding: 10px 14px;
  font: inherit; font-size: var(--tkj-field-fs, 15px); font-weight: 600; text-align: left; cursor: pointer;
  background: var(--tk-card-bg); color: var(--tk-ink);
  border: 1px solid var(--tk-border-strong); border-radius: 11px;
}
.tkj-sel-btn[aria-expanded="true"] { border-color: var(--tk-meta-light); background: var(--tk-white); }
@media (hover: hover) { .tkj-sel-btn:hover { border-color: var(--tk-meta-light); } }
.tkj-sel-btn:focus-visible { outline: 2px solid var(--tk-blue-dark); outline-offset: 2px; }
.tkj-sel-btn .tkj-sel-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tkj-sel-btn.is-placeholder .tkj-sel-val { color: var(--tk-placeholder); }
.tkj-sel-btn .tkj-sel-caret {
  flex: 0 0 auto; width: 18px; height: 18px; color: var(--tk-meta);
  transition: transform .22s ease;
}
.tkj-sel-btn[aria-expanded="true"] .tkj-sel-caret { transform: rotate(180deg); }

.tkj-sel-panel {
  position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--tk-white); border: 1px solid var(--tk-border); border-radius: 12px;
  box-shadow: var(--tk-shadow-dropdown);
  padding: 6px; max-height: 320px; overflow-y: auto;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  scrollbar-width: thin; scrollbar-color: var(--tk-border-strong) transparent;
}
.tkj-sel-panel::-webkit-scrollbar { width: 6px; }
.tkj-sel-panel::-webkit-scrollbar-track { background: transparent; }
.tkj-sel-panel::-webkit-scrollbar-thumb { background: var(--tk-border-strong); border-radius: 999px; }
.tkj-sel.is-open .tkj-sel-panel { opacity: 1; transform: none; pointer-events: auto; }

.tkj-sel-opt {
  display: flex; align-items: center; gap: 9px;
  min-height: 42px; padding: 10px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--tk-ink); cursor: pointer;
}
.tkj-sel-opt:hover { background: var(--tk-dropdown-hover); }
.tkj-sel-opt.is-active { background: var(--tk-blue-tint); outline: 2px solid var(--tk-blue-dark); outline-offset: -2px; }
.tkj-sel-opt[aria-selected="true"] { font-weight: 700; color: var(--tk-blue-dark); background: var(--tk-blue-tint); }
.tkj-sel-opt .tkj-sel-check { display: none; flex: none; width: 16px; height: 16px; color: var(--tk-blue-dark); }
.tkj-sel-opt[aria-selected="true"] .tkj-sel-check { display: block; }

.tkj-sheet-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(6,12,20,.5);
  opacity: 0; pointer-events: none; transition: opacity .28s ease;
}
.tkj-sheet-backdrop.is-on { opacity: 1; pointer-events: auto; }

.tkj-sheet {
  position: fixed; z-index: 91; left: 0; right: 0; bottom: 0;
  background: #fff; border-radius: 20px 20px 0 0;
  padding: 8px 0 max(16px, env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .32s cubic-bezier(.32,.72,0,1);
  max-height: 82vh; display: flex; flex-direction: column;
  box-shadow: 0 -4px 20px rgba(6,12,20,.18);
}
.tkj-sheet.is-on { transform: none; }
.tkj-sheet.is-drag { transition: none; }

.tkj-sheet-grip {
  flex: 0 0 auto; display: flex; justify-content: center; align-items: center;
  padding: 12px 0 6px; cursor: grab; touch-action: none;
}
.tkj-sheet-grip span {
  display: block; width: 44px; height: 5px; border-radius: 999px; background: var(--tkj-line);
}
.tkj-sheet-head {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: 8px 20px 12px; border-bottom: 1px solid var(--tkj-line);
}
.tkj-sheet-title { margin: 0; font-size: 17px; font-weight: 700; color: var(--tkj-ink-2); }
.tkj-sheet-close {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; background: none; cursor: pointer;
  color: var(--tkj-muted); border-radius: 10px;
}
.tkj-sheet-close svg { width: 20px; height: 20px; }
.tkj-sheet-close:focus-visible { outline: 2px solid var(--tkj-brand-ink); }
@media (hover: hover) { .tkj-sheet-close:hover { background: var(--tkj-paper); } }
.tkj-sheet-list { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 8px 12px 4px; -webkit-overflow-scrolling: touch; }
.tkj-sheet-list .tkj-sel-opt { min-height: 52px; font-size: 16px; }

body.tkj-sheet-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .tkj-sel-panel, .tkj-sheet, .tkj-sheet-backdrop, .tkj-sel-caret { transition: none; }
}
