.taif-currency-management-modal-backdrop.is-dragging .taif-currency-management-modal{
  transition:none !important;
}

.taif-currency-management-modal__head{
  position:relative;
  top:auto;
  z-index:2;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 16px;
  border-bottom:1px solid rgba(15,23,42,.08);
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.90));
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  cursor:auto;
  user-select:none;
  touch-action:none;
}

.taif-currency-management-modal__head.is-grabbing,
.taif-currency-management-modal-backdrop.is-dragging .taif-currency-management-modal__head{
  cursor:auto;
}

.taif-currency-management-modal__window-actions,
.taif-currency-management-modal__chrome-btn,
.taif-currency-management-modal__close{
  cursor:auto;
}

.taif-currency-management-modal__title,
.taif-currency-management-modal__subtitle,
.taif-currency-management-modal__eyebrow{
  user-select:none;
}

body.taif-currency-management--dragging-window,
body.taif-currency-management--dragging-window *{
  user-select:none !important;
  cursor:auto !important;
}

/* ===== Stable search-clear glyph sizing and centering ===== */
.currency-management-search-clear svg{
  display:block !important;
  width:11.75px;
  height:11.75px;
  overflow:visible;
  pointer-events:none;
  flex:none;
  transform:translateZ(0);
}

.currency-management-search-clear svg path{
  stroke-width:2.35;
  vector-effect:non-scaling-stroke;
}

.currency-management-search-clear--grand svg{
  width:10.25px;
  height:10.25px;
}

.currency-management-bulk-card__cell--buy .currency-management-bulk-input:hover,
.currency-management-bulk-card__cell--sell .currency-management-bulk-input:hover,
.currency-management-bulk-card__cell--ratio .currency-management-bulk-input:hover,
.currency-management-bulk-card__cell--buy .currency-management-bulk-input:focus,
.currency-management-bulk-card__cell--sell .currency-management-bulk-input:focus,
.currency-management-bulk-card__cell--ratio .currency-management-bulk-input:focus,
.currency-management-bulk-card__cell--buy .currency-management-bulk-input:focus-visible,
.currency-management-bulk-card__cell--sell .currency-management-bulk-input:focus-visible,
.currency-management-bulk-card__cell--ratio .currency-management-bulk-input:focus-visible{
  border-color:var(--currency-management-neutral-rate-border);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96), 0 0 0 1px rgba(15,23,42,.025) !important;
}

/* Modal field focus accent: professional black editing border */
.taif-currency-management-modal :is(
  .currency-management-input,
  .currency-management-search-input,
  .currency-management-search-input--grand,
  .currency-management-bulk-input
):focus,
.taif-currency-management-modal :is(
  .currency-management-input,
  .currency-management-search-input,
  .currency-management-search-input--grand,
  .currency-management-bulk-input
):focus-visible,
.taif-currency-management-modal .currency-management-field:focus-within :is(
  .currency-management-input,
  .currency-management-search-input,
  .currency-management-search-input--grand,
  .currency-management-bulk-input
){
  border-color:rgba(15,23,42,.78) !important;
  box-shadow:
    0 0 0 1px rgba(15,23,42,.20),
    0 12px 26px rgba(15,23,42,.09),
    inset 0 1px 0 rgba(255,255,255,.92) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.995), rgba(249,250,251,.985)) !important;
}

.taif-currency-management-modal .currency-management-field:focus-within :is(
  .currency-management-input,
  .currency-management-search-input,
  .currency-management-search-input--grand,
  .currency-management-bulk-input
):hover{
  border-color:rgba(15,23,42,.82) !important;
}

/* Modal footer action buttons: keep the original button look without an extra focus ring */
.taif-currency-management-modal .currency-management-modal-actions .currency-management-btn:is(:focus, :focus-visible, :active){
  outline:none !important;
  box-shadow:none !important;
}

.taif-currency-management-modal .currency-management-modal-actions .currency-management-btn:hover:is(:focus, :focus-visible, :active){
  box-shadow:none !important;
}

/* Selection surfaces: keep picker cards local, but let inline dropdowns inherit the shared system. */
.taif-currency-management-modal :is(
  .currency-management-picker-card,
  .currency-management-modal-actions .currency-management-btn
){
  outline:none;
}

.taif-currency-management-modal .currency-management-picker-card:is(:hover, :focus, :focus-visible){
  border-color:rgba(15,23,42,.78) !important;
  box-shadow:
    0 0 0 1px rgba(15,23,42,.18),
    0 14px 28px rgba(15,23,42,.12) !important;
}

.taif-currency-management-modal .currency-management-picker-card:is(:active){
  border-color:rgba(15,23,42,.82) !important;
  box-shadow:
    0 0 0 1px rgba(15,23,42,.22),
    0 18px 32px rgba(15,23,42,.14) !important;
}

.taif-currency-management-modal .currency-management-picker-card{
  position:relative;
}

/* Focus only: the user is currently standing on this picker card. */
.taif-currency-management-modal .currency-management-picker-card:not(.is-active):is(:focus, :focus-visible){
  border-color:rgba(15,23,42,.88) !important;
  box-shadow:
    0 0 0 1px rgba(15,23,42,.90),
    0 0 0 4px rgba(255,255,255,.62),
    0 16px 30px rgba(15,23,42,.14) !important;
  transform:translateY(-1px);
}

.taif-currency-management-modal--single-picker .currency-management-picker-card,
.taif-currency-management-modal--delete-picker .currency-management-picker-card{
  outline:none;
}

.taif-currency-management-modal--single-picker .currency-management-picker-card:not(:disabled):not(.is-locked):is(:hover, :focus, :focus-visible),
.taif-currency-management-modal--delete-picker .currency-management-picker-card:not(:disabled):not(.is-locked):is(:hover, :focus, :focus-visible){
  border-color:rgba(96,165,250,.58) !important;
  box-shadow:0 14px 28px rgba(37,99,235,.10) !important;
}

.taif-currency-management-modal--single-picker .currency-management-picker-card:not(:disabled):not(.is-locked):is(:active),
.taif-currency-management-modal--delete-picker .currency-management-picker-card:not(:disabled):not(.is-locked):is(:active){
  border-color:rgba(96,165,250,.62) !important;
  box-shadow:0 10px 20px rgba(37,99,235,.08) !important;
}

.taif-currency-management-modal :is(
  .currency-management-input,
  .currency-management-bulk-input
).is-invalid,
.taif-currency-management-modal :is(
  .currency-management-input,
  .currency-management-bulk-input
)[aria-invalid="true"],
.taif-currency-management-modal .currency-management-method-picker__trigger.is-invalid,
.taif-currency-management-modal .currency-management-method-picker__trigger[aria-invalid="true"],
.taif-currency-management-modal .currency-management-flag-picker__trigger.is-invalid,
.taif-currency-management-modal .currency-management-flag-picker__trigger[aria-invalid="true"],
.taif-currency-management-modal .currency-management-method-picker.is-open .currency-management-method-picker__trigger.is-invalid,
.taif-currency-management-modal .currency-management-method-picker.is-open .currency-management-method-picker__trigger[aria-invalid="true"],
.taif-currency-management-modal .currency-management-flag-picker.is-open .currency-management-flag-picker__trigger.is-invalid,
.taif-currency-management-modal .currency-management-flag-picker.is-open .currency-management-flag-picker__trigger[aria-invalid="true"],
.taif-currency-management-modal .currency-management-field:focus-within :is(
  .currency-management-input,
  .currency-management-bulk-input
).is-invalid,
.taif-currency-management-modal .currency-management-field:focus-within :is(
  .currency-management-input,
  .currency-management-bulk-input
)[aria-invalid="true"]{
  border-color:rgba(220,38,38,.94) !important;
  box-shadow:0 0 0 1px rgba(220,38,38,.94) !important;
  background:#fff !important;
}
