.taif-currency-management-modal:not(.is-positioned){
  visibility:hidden;
}

.taif-currency-management-modal-backdrop.is-closing .taif-currency-management-modal{
  opacity:0;
  transform:translateY(8px) scale(.985);
}

.taif-currency-management-modal--size-sm{
  width:min(468px, 92vw);
}

.taif-currency-management-modal--size-md{
  width:min(684px, 92vw);
}

.taif-currency-management-modal--size-lg{
  width:min(1062px, 88vw);
}

.taif-currency-management-modal--wide{
  max-width:100%;
}

.taif-currency-management-modal--grand{
  border-color:rgba(47,103,243,.62);
  border:1px solid rgba(47,103,243,.94);
  background:#2f67f3;
  box-shadow:0 34px 88px rgba(15,23,42,.28),
    0 0 0 1px rgba(96,165,250,.18);
}

.taif-currency-management-modal--grand::before{
  content:none;
  display:none;
}

.taif-currency-management-modal--grand.taif-currency-management-modal--size-lg{
  height:min(64vh, 558px);
}
.taif-currency-management-modal__heading{
  min-width:0;
  display:grid;
  gap:4px;
}

.taif-currency-management-modal__heading--centered{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.taif-currency-management-modal__eyebrow{
  font:700 11px/1 var(--taif-font-family);
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#2563eb;
}

.taif-currency-management-modal__title{
  margin:0;
  font-size:16px;
  line-height:1.25;
  font-weight:700;
  color:#0b1220;
}

.taif-currency-management-modal__subtitle{
  margin:0;
  font-size:12px;
  line-height:1.65;
  font-weight:700;
  color:#64748b;
}

.taif-currency-management-modal__window-actions{
  display:flex;
  align-items:center;
  gap:4px;
  padding-top:0;
  flex:0 0 auto;
}

.taif-currency-management-modal__body{
  min-height:0;
  flex:1;
  overflow:auto;
  overflow-x:hidden;
  padding:16px 18px 18px;
  scrollbar-gutter:auto;
  scrollbar-width:thin;
  scrollbar-color:rgba(15,23,42,.16) transparent;
}

.taif-currency-management-modal__body::-webkit-scrollbar{
  width:10px;
  height:10px;
}

.taif-currency-management-modal__body::-webkit-scrollbar-track{
  background:transparent;
}

.taif-currency-management-modal__body::-webkit-scrollbar-thumb{
  background:rgba(15,23,42,.16);
  border-radius:10px;
  border:2px solid transparent;
  background-clip:content-box;
}

.taif-currency-management-modal--grand .taif-currency-management-modal__head{
  min-height:30px;
  padding:0 9px;
  justify-content:center;
  position:relative;
  z-index:2;
  border-radius:10px 10px 0 0;
  border-bottom:1px solid rgba(255,255,255,.14);
  background:var(--window-head-chrome);
  box-shadow:none;
}

.taif-currency-management-modal--grand .taif-currency-management-modal__heading--centered{
  position:relative;
  z-index:1;
  width:100%;
  max-width:calc(100% - 90px);
  margin:0 auto;
}

.taif-currency-management-modal--grand .taif-currency-management-modal__title{
  margin:0;
  font-size:15px;
  line-height:1.1;
  font-weight:700;
  color:#fff;
}

.taif-currency-management-modal--grand .taif-currency-management-modal__subtitle{
  color:rgba(255,255,255,.88);
}

.taif-currency-management-modal--grand .taif-currency-management-modal__eyebrow{
  color:rgba(255,255,255,.88);
}

.taif-currency-management-modal--grand .taif-currency-management-modal__body{
  position:relative;
  z-index:1;
  background:linear-gradient(180deg, rgba(244,248,255,.99), rgba(248,251,255,.98));
}

.taif-currency-management-modal--grand::after{
  content:none;
  display:none;
}

.taif-currency-management-modal--bulk-editor.taif-currency-management-modal--size-lg{
  width:min(918px, 78vw);
  max-width:100%;
  height:min(62vh, 549px);
  max-height:min(62vh, 549px);
}

.taif-currency-management-modal--bulk-editor .taif-currency-management-modal__body{
  display:flex;
  flex-direction:column;
  min-height:0;
  overflow:hidden;
  padding:0;
  border-radius:0 0 10px 10px;
}

.taif-currency-management-modal--bulk-editor.taif-currency-management-modal--grand .taif-currency-management-modal__head{
  min-height:32px;
  padding:0 10px;
}

.taif-currency-management-modal--bulk-editor.taif-currency-management-modal--grand .taif-currency-management-modal__heading--centered{
  max-width:calc(100% - 96px);
}

.taif-currency-management-modal--bulk-editor.taif-currency-management-modal--grand .taif-currency-management-modal__title{
  font-size:14.6px;
  letter-spacing:.01em;
  text-shadow:0 1px 2px rgba(2,6,23,.22);
}

.currency-management-modal-actions--grand .currency-management-btn{
  min-width:112px;
  min-height:35px;
  border-radius:8px;
}

.currency-management-bulk-panel{
  position:relative;
  min-height:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:0;
}

.currency-management-bulk-scrollarea{
  min-height:0;
  flex:1 1 auto;
  overflow:auto;
  padding:0 1px 8px 0;
  scrollbar-gutter:auto;
  scrollbar-width:thin;
  scrollbar-color:rgba(15,23,42,.22) transparent;
}

.currency-management-bulk-scrollarea::-webkit-scrollbar{
  width:10px;
  height:10px;
}

.currency-management-bulk-scrollarea::-webkit-scrollbar-track{
  background:transparent;
}

.currency-management-bulk-scrollarea::-webkit-scrollbar-thumb{
  background:rgba(15,23,42,.22);
  border-radius:10px;
  border:2px solid transparent;
  background-clip:content-box;
}

.currency-management-bulk-sticky-stack{
  position:sticky;
  top:0;
  z-index:8;
  display:grid;
  gap:7px;
  margin:0 0 9px;
  isolation:isolate;
}

.currency-management-bulk-sticky-stack::before{
  content:"";
  position:absolute;
  inset:0 -2px -16px;
  border-radius:9px;
  background:linear-gradient(180deg, rgba(244,248,255,.995) 0%, rgba(244,248,255,.995) 84%, rgba(244,248,255,0) 100%);
  pointer-events:none;
  z-index:-2;
}

.currency-management-bulk-sticky-stack::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-12px;
  height:18px;
  background:linear-gradient(180deg, rgba(244,248,255,.96) 0%, rgba(244,248,255,0) 100%);
  pointer-events:none;
  z-index:-1;
}

.currency-management-bulk-toolbar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:7px;
  padding:6px 9px;
  margin:0;
  border:1px solid rgba(148,163,184,.18);
  border-radius:8px;
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,251,255,.90));
  box-shadow:0 14px 28px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.88);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.currency-management-bulk-grid-head{
  display:grid;
  direction:rtl;
  grid-template-columns:40px 72px minmax(140px, 1fr) minmax(76px, .64fr) repeat(4, minmax(90px, .96fr));
  gap:7px;
  align-items:center;
  padding:5px 10px 4px;
  border:1px solid rgba(59,130,246,.14);
  border-radius:8px;
  background:linear-gradient(180deg, rgba(240,246,255,.98), rgba(229,238,255,.94));
  box-shadow:0 12px 24px rgba(37,99,235,.08), inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.currency-management-bulk-grid-head__cell{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:19px;
  padding:0 4px;
  color:#475569;
  font:700 11px/1.2 var(--taif-font-family);
  text-align:center;
  white-space:nowrap;
}

.currency-management-bulk-grid-head__spacer{
  display:block;
  width:100%;
  min-height:1px;
}

.currency-management-bulk-grid-head__cell--flag,
.currency-management-bulk-grid-head__cell--code,
.currency-management-bulk-grid-head__cell--pair{
  white-space:nowrap;
  padding-inline:0;
}

.currency-management-bulk-grid-head__cell--flag{
  font-size:9.05px;
}

.currency-management-bulk-grid-head__cell--name{
  justify-content:flex-start;
  padding-inline-start:7px;
  text-align:right;
  color:#475569;
}

.currency-management-bulk-grid-head__cell--pair{
  justify-content:flex-start;
  padding-inline:0;
}

.currency-management-bulk-grid-head__cell--buy,
.currency-management-bulk-grid-head__cell--ratio-buy,
.currency-management-bulk-grid-head__cell--sell,
.currency-management-bulk-grid-head__cell--ratio-sell{
  color:#475569;
}

.currency-management-bulk-toolbar__search{
  flex:0 0 252px;
  width:min(100%, 252px);
  max-width:252px;
  margin-inline:0;
}

.currency-management-bulk-toolbar__summary{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
}

.currency-management-bulk-toolbar__pill{
  min-height:25px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 8px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.18);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(243,247,255,.94));
  color:#395071;
  font:700 11.2px/1 var(--taif-font-family);
  box-shadow:0 10px 24px rgba(37,99,235,.06);
}

.currency-management-bulk-toolbar__pill--soft{
  color:#475569;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.95));
}

.currency-management-bulk-toolbar__pill--accent{
  color:#1d4ed8;
  border-color:rgba(59,130,246,.18);
  background:linear-gradient(180deg, rgba(239,246,255,.98), rgba(219,234,254,.92));
}

.currency-management-bulk-toolbar__pill--usd{
  color:#065f46;
  border-color:rgba(22,163,74,.18);
  background:linear-gradient(180deg, rgba(236,253,245,.98), rgba(220,252,231,.92));
}

.currency-management-bulk-toolbar__pill--base{
  color:#1e3a8a;
  border-color:rgba(59,130,246,.18);
  background:linear-gradient(180deg, rgba(239,246,255,.98), rgba(219,234,254,.92));
}

.currency-management-bulk-toolbar__pill--book{
  color:#475569;
  border-color:rgba(148,163,184,.18);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.95));
}

.currency-management-search-wrap--grand{
  width:100%;
  filter:none;
}

.currency-management-search-wrap--grand .currency-management-search-icon{
  right:12px;
  width:14px;
  height:14px;
  color:#5f7089;
}

.currency-management-search-input--grand{
  height:34px;
  padding-inline-start:36px;
  padding-inline-end:34px;
  border-radius:8px;
  border:1px solid rgba(59,130,246,.16);
  background:linear-gradient(180deg, rgba(255,255,255,.99), rgba(245,249,255,.97));
  color:#122033;
  font-size:12.1px;
  font-weight:700;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92), 0 8px 20px rgba(37,99,235,.04);
}

.currency-management-search-input--grand::placeholder{
  color:#6b7f98;
  font-weight:700;
}

.currency-management-search-input--grand:focus{
  border-color:rgba(37,99,235,.28);
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95), 0 0 0 1px rgba(37,99,235,.08);
}

.currency-management-search-clear--grand{
  left:6px;
  width:23px;
  height:23px;
  border-radius:6px;
  border:1px solid rgba(220,38,38,.34);
  background:linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color:#fff;
  font-size:0;
  box-shadow:0 12px 22px rgba(185,28,28,.22);
}

.currency-management-search-clear--grand:hover{
  border-color:rgba(239,68,68,.42);
  background:linear-gradient(135deg, #ef4444 0%, #c81e1e 100%);
  color:#fff;
  box-shadow:0 14px 26px rgba(185,28,28,.28);
}

.currency-management-bulk-list{
  display:grid;
  gap:7px;
  padding:0;
}

.currency-management-bulk-card{
  display:block;
  padding:8px 10px;
  border-radius:8px;
  border:1px solid rgba(148,163,184,.16);
  background:linear-gradient(180deg, rgba(255,255,255,.99), rgba(247,250,255,.96));
  box-shadow:0 16px 30px rgba(15,23,42,.05), inset 0 1px 0 rgba(255,255,255,.90);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.currency-management-bulk-card:hover{
  transform:translateY(-1px);
  border-color:rgba(37,99,235,.22);
  box-shadow:0 18px 34px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.94);
}

.currency-management-bulk-card--usd{
  border-color:rgba(59,130,246,.24);
  background:linear-gradient(180deg, rgba(255,255,255,.99), rgba(239,246,255,.94)),
    linear-gradient(90deg, rgba(59,130,246,.10), rgba(255,255,255,0));
}

.currency-management-bulk-card__row{
  display:grid;
  direction:rtl;
  grid-template-columns:40px 72px minmax(140px, 1fr) minmax(76px, .64fr) repeat(4, minmax(90px, .96fr));
  gap:7px;
  align-items:center;
}

.currency-management-bulk-card__cell{
  min-width:0;
  display:flex;
  align-items:center;
}

.currency-management-bulk-card__cell--input{
  position:relative;
  flex-direction:column;
  align-items:stretch;
  gap:0;
  justify-content:center;
}

.currency-management-bulk-card__cell--flag{
  justify-content:center;
  min-height:36px;
  padding-inline:0;
}

.currency-management-bulk-card__cell--code{
  justify-content:center;
  min-height:36px;
  padding-inline:0;
}

.currency-management-bulk-card__cell--name{
  min-height:36px;
  justify-content:flex-start;
  padding-inline-start:7px;
  padding-inline-end:2px;
}

.currency-management-bulk-card__cell--pair{
  min-height:36px;
  justify-content:flex-start;
  padding-inline:0;
}

.currency-management-bulk-card__flag{
  width:34px;
  height:34px;
  flex:0 0 34px;
}

.currency-management-bulk-card__code{
  width:100%;
  min-height:33px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 8px;
  border-radius:7px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(15,23,42,.04);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.68);
  color:#0b1220;
  font:700 11px/1 var(--taif-font-family);
  letter-spacing:.05em;
  direction:ltr;
}

.currency-management-bulk-card__name{
  display:block;
  width:100%;
  color:#091427;
  text-align:right;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font:700 13.3px/1.08 var(--taif-font-family);
  text-shadow:0 1px 0 rgba(255,255,255,.75);
}

.currency-management-bulk-card__name-wrap{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
}

.currency-management-bulk-card__pair-badge{
  max-width:72px;
  font:700 11px/1 var(--taif-font-family);
}

.currency-management-bulk-input{
  width:100%;
  min-height:33px;
  height:33px;
  padding:0 8px;
  border-radius:7px;
  border:1px solid rgba(148,163,184,.24);
  background:linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92);
  color:#0f172a;
  font:700 11.8px/1 var(--taif-font-family);
  text-align:center;
  direction:ltr;
}

.currency-management-bulk-input:hover{
  border-color:rgba(59,130,246,.18);
}

.currency-management-bulk-input--readonly{
  cursor:default;
  background:linear-gradient(180deg, rgba(248,250,252,.98), rgba(241,245,249,.95));
  color:#334155;
}

.currency-management-bulk-input--locked{
  opacity:1;
  cursor:not-allowed !important;
  user-select:none;
  -webkit-user-select:none;
  caret-color:transparent;
  -webkit-text-fill-color:currentColor;
  background:var(--currency-management-neutral-rate-surface);
  border-color:var(--currency-management-neutral-rate-border);
  box-shadow:var(--currency-management-neutral-rate-shadow);
}

.currency-management-bulk-input--locked:hover,
.currency-management-bulk-input--locked:focus,
.currency-management-bulk-input--locked:focus-visible{
  outline:none !important;
  cursor:not-allowed !important;
  background:var(--currency-management-neutral-rate-surface) !important;
  border-color:var(--currency-management-neutral-rate-border) !important;
  box-shadow:var(--currency-management-neutral-rate-shadow) !important;
}

.currency-management-bulk-input:focus{
  outline:none;
  border-color:rgba(37,99,235,.30);
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96), 0 0 0 1px rgba(37,99,235,.08) !important;
}

.currency-management-bulk-input:focus-visible{
  outline:none;
  border-color:rgba(37,99,235,.30);
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96), 0 0 0 1px rgba(37,99,235,.08) !important;
}

.currency-management-bulk-input.is-invalid,
.currency-management-bulk-input[aria-invalid="true"]{
  border-color:rgba(220,38,38,.94) !important;
  background:#fff !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96), 0 0 0 1px rgba(220,38,38,.94) !important;
}

.currency-management-bulk-card__cell--buy .currency-management-bulk-input,
.currency-management-bulk-card__cell--sell .currency-management-bulk-input,
.currency-management-bulk-card__cell--ratio .currency-management-bulk-input{
  border-color:var(--currency-management-neutral-rate-border);
  background:var(--currency-management-neutral-rate-surface);
  box-shadow:var(--currency-management-neutral-rate-shadow);
  color:#0f172a;
}

.currency-management-bulk-card__cell--ratio .currency-management-bulk-input[data-bulk-field="ratioBuy"]{
  color:#15803d;
}

.currency-management-bulk-card__cell--ratio .currency-management-bulk-input[data-bulk-field="ratioSell"]{
  color:#dc2626;
}

.currency-management-bulk-card__cell--ratio .currency-management-bulk-input--locked[data-bulk-field="ratioBuy"]{
  color:#15803d;
  -webkit-text-fill-color:#15803d;
}

.currency-management-bulk-card__cell--ratio .currency-management-bulk-input--locked[data-bulk-field="ratioSell"]{
  color:#dc2626;
  -webkit-text-fill-color:#dc2626;
}

.currency-management-bulk-card__cell--buy .currency-management-bulk-input{
  color:#15803d;
}

.currency-management-bulk-card__cell--sell .currency-management-bulk-input{
  color:#dc2626;
}

.currency-management-empty--bulk{
  min-height:198px;
  display:grid;
  place-items:center;
  border-radius:9px;
  border:1px dashed rgba(148,163,184,.24);
  background:linear-gradient(180deg, rgba(255,255,255,.90), rgba(248,250,252,.95));
  color:#475569;
  font-weight:700;
}

.currency-management-modal-actions--dock{
  flex:0 0 auto;
  margin:0;
  min-height:43px;
  display:flex;
  align-items:center;
  gap:7px;
  padding:5px 10px 6px 12px;
  border-top:1px solid rgba(148,163,184,.16);
  border-radius:0 0 10px 10px;
  background:linear-gradient(180deg, rgba(248,251,255,.96), rgba(241,246,255,.98));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.90);
}

.currency-management-modal-actions--dock .currency-management-btn{
  min-width:114px;
  min-height:36px;
  padding:0 12px;
  border-radius:8px;
  font-size:12px;
  gap:5px;
}

.currency-management-modal-actions--dock .currency-management-btn svg{
  width:13px;
  height:13px;
}

.currency-management-modal-actions--dock [data-currency-management-action="save-bulk"]{
  background:linear-gradient(135deg, #16a34a, #15803d);
  border-color:rgba(22,163,74,.34);
  color:#fff;
  box-shadow:0 14px 24px rgba(22,163,74,.18);
}

.currency-management-modal-actions--dock [data-currency-management-action="cancel"]{
  color:#fff;
  border-color:rgba(220,38,38,.34);
  background:linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow:0 14px 24px rgba(185,28,28,.20);
}

.currency-management-modal-actions--dock [data-currency-management-action="cancel"]:hover{
  border-color:rgba(239,68,68,.42);
  background:linear-gradient(135deg, #ef4444 0%, #c81e1e 100%);
  box-shadow:0 16px 28px rgba(185,28,28,.26);
}

.taif-currency-management-modal--currency-picker.taif-currency-management-modal--grand.taif-currency-management-modal--size-md{
  width:min(684px, 72vw);
  max-width:100%;
  height:min(52vh, 450px);
  max-height:min(52vh, 450px);
}

.taif-currency-management-modal__body--picker{
  padding:0;
  overflow:hidden;
  border-radius:0 0 10px 10px;
}

.taif-currency-management-modal--currency-picker.taif-currency-management-modal--grand .taif-currency-management-modal__head,
.taif-currency-management-modal--single-editor.taif-currency-management-modal--grand .taif-currency-management-modal__head,
.taif-currency-management-modal--delete-confirm.taif-currency-management-modal--grand .taif-currency-management-modal__head{
  min-height:32px;
  padding:0 10px;
}

.taif-currency-management-modal--currency-picker.taif-currency-management-modal--grand .taif-currency-management-modal__heading--centered,
.taif-currency-management-modal--single-editor.taif-currency-management-modal--grand .taif-currency-management-modal__heading--centered,
.taif-currency-management-modal--delete-confirm.taif-currency-management-modal--grand .taif-currency-management-modal__heading--centered{
  max-width:calc(100% - 88px);
}

.taif-currency-management-modal--currency-picker.taif-currency-management-modal--grand .taif-currency-management-modal__title,
.taif-currency-management-modal--single-editor.taif-currency-management-modal--grand .taif-currency-management-modal__title,
.taif-currency-management-modal--delete-confirm.taif-currency-management-modal--grand .taif-currency-management-modal__title{
  font-size:14.6px;
  letter-spacing:.01em;
  text-shadow:0 1px 2px rgba(2,6,23,.22);
}

.taif-currency-management-modal--single-editor.taif-currency-management-modal--grand.taif-currency-management-modal--size-md{
  width:min(684px, 72vw);
  max-width:100%;
  height:min(52vh, 450px);
  max-height:min(52vh, 450px);
}

.taif-currency-management-modal__body--single-editor{
  padding:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:0;
}

.taif-currency-management-modal--single-editor .currency-management-single-editor-panel{
  min-height:0;
  height:100%;
  display:flex;
  flex-direction:column;
  position:relative;
}

.taif-currency-management-modal--single-editor .currency-management-single-editor-scroll{
  min-height:0;
  flex:1;
  overflow:auto;
  padding:10px 12px 6px;
  position:relative;
}

.taif-currency-management-modal--single-editor .currency-management-form-grid--single-editor-shell{
  display:grid;
  gap:9px;
  align-content:start;
}

.taif-currency-management-modal--single-editor .currency-management-form-grid--single-editor-shell .currency-management-form-grid{
  gap:9px;
}

.taif-currency-management-modal--single-editor .currency-management-form-grid--legacy-link > .currency-management-field{
  grid-column:1 / -1;
}

.taif-currency-management-modal--single-editor .currency-management-form-grid--method-legacy-compact{
  display:grid;
  gap:9px;
  grid-template-columns:minmax(0, 1fr);
  align-items:end;
}

.taif-currency-management-modal--single-editor .currency-management-form-grid--method-legacy-compact.is-legacy-mode{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.taif-currency-management-modal--single-editor .currency-management-form-grid--method-legacy-compact > .currency-management-field{
  min-width:0;
}

.taif-currency-management-modal--single-editor .currency-management-field{
  gap:5px;
}

.taif-currency-management-modal--single-editor .currency-management-field label,
.taif-currency-management-modal--single-editor .currency-management-field__caption{
  font-size:11.8px;
  font-weight:700;
}

.taif-currency-management-modal--single-editor .currency-management-field--pair-note{
  gap:7px;
}

.taif-currency-management-modal--single-editor .currency-management-field__note{
  min-height:42px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid rgba(59,130,246,.14);
  background:linear-gradient(180deg, rgba(255,255,255,.99), rgba(243,247,255,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92);
}

.taif-currency-management-modal--single-editor .currency-management-field__pair-badge{
  min-height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 10px;
  border-radius:10px;
  border:1px solid rgba(59,130,246,.16);
  background:linear-gradient(180deg, rgba(239,246,255,.98), rgba(219,234,254,.92));
  color:#1d4ed8;
  font:700 11px/1 var(--taif-font-family);
  direction:ltr;
  white-space:nowrap;
}

.taif-currency-management-modal--single-editor .currency-management-field__note-text{
  min-width:0;
  color:#475569;
  font:700 11.2px/1.45 var(--taif-font-family);
}

.taif-currency-management-modal--single-editor .currency-management-input{
  min-height:39px;
  padding:0 12px;
  border-radius:8px;
  font-size:12.4px;
}

.taif-currency-management-modal--single-editor .currency-management-field--single-editor-terminal-rate{
  gap:6px;
}

.taif-currency-management-modal--single-editor .currency-management-field--single-editor-identity > label,
.taif-currency-management-modal--single-editor .currency-management-field--single-editor-identity > .currency-management-field__caption{
  text-align:center;
  justify-self:center;
}

.taif-currency-management-modal--single-editor .currency-management-field--single-editor-identity .currency-management-input{
  text-align:center;
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete{
  position:relative;
  width:100%;
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__popover{
  position:absolute;
  top:calc(100% + 6px);
  inset-inline:0;
  z-index:74;
  display:flex;
  flex-direction:column;
  gap:4px;
  max-height:240px;
  padding:4px;
  overflow:auto;
  border-radius:12px;
  border:1px solid rgba(59,130,246,.28);
  background:linear-gradient(180deg, rgba(255,255,255,.99), rgba(241,245,255,.98));
  box-shadow:0 18px 38px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.94);
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__popover[hidden]{
  display:none !important;
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__option{
  width:100%;
  min-height:48px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  text-align:right;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.18);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  cursor:pointer;
  transition:border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__option:hover,
.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__option.is-active{
  border-color:rgba(59,130,246,.38);
  background:linear-gradient(180deg, rgba(239,246,255,.98), rgba(219,234,254,.94));
  box-shadow:0 8px 18px rgba(59,130,246,.12);
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__option-flag{
  width:28px;
  height:28px;
  flex:0 0 auto;
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__option-flag-image{
  width:100%;
  height:100%;
  display:block;
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__option-text{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__option-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__option-name{
  min-width:0;
  color:#0f172a;
  font-size:12.2px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__option-code{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:48px;
  min-height:22px;
  padding:0 8px;
  border-radius:10px;
  background:rgba(219,234,254,.92);
  color:#1d4ed8;
  font:800 10.4px/1 var(--taif-font-family);
  letter-spacing:.08em;
  direction:ltr;
}

.taif-currency-management-modal--single-editor .currency-management-name-autocomplete__option-meta{
  color:#64748b;
  font:700 10.5px/1.2 var(--taif-font-family);
  direction:ltr;
  text-align:left;
}

.taif-currency-management-modal--single-editor .currency-management-field--single-editor-terminal-rate > label,
.taif-currency-management-modal--single-editor .currency-management-field--single-editor-terminal-rate > .currency-management-field__caption{
  text-align:center;
  justify-self:center;
}

.taif-currency-management-modal--single-editor .currency-management-field--single-editor-terminal-rate .currency-management-input{
  text-align:center;
}

.taif-currency-management-modal--single-editor :is(
  .currency-management-field--single-editor-flag,
  .currency-management-field--single-editor-price-mode,
  .currency-management-field--single-editor-method,
  .currency-management-field--single-editor-legacy-source,
  .currency-management-field--single-editor-decimals
) > :is(label, .currency-management-field__caption){
  text-align:center;
  justify-self:center;
}

.taif-currency-management-modal--single-editor :is(
  .currency-management-field--single-editor-method,
  .currency-management-field--single-editor-price-mode,
  .currency-management-field--single-editor-decimals,
  .currency-management-field--single-editor-flag
){
  gap:6px;
  width:100%;
  max-width:none;
  margin-inline-start:0;
  position:relative;
}

.taif-currency-management-modal--single-editor :is(
  .currency-management-flag-picker,
  .currency-management-method-picker
){
  position:relative;
  width:100%;
  overflow:visible;
}

.taif-currency-management-modal--single-editor .currency-management-flag-picker__trigger{
  width:100%;
  min-height:39px;
  padding:0 10px 0 12px;
  border-radius:8px;
  font-size:12.4px;
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  text-align:right;
}

.taif-currency-management-modal--single-editor .currency-management-flag-picker__preview{
  width:24px;
  height:24px;
  flex:0 0 auto;
}

.taif-currency-management-modal--single-editor .currency-management-flag-picker__text{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.taif-currency-management-modal--single-editor .currency-management-flag-picker__code{
  min-height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 8px;
  border-radius:10px;
  background:rgba(219,234,254,.88);
  color:#0f172a;
  font-size:10.8px;
  font-weight:700;
  letter-spacing:.08em;
  direction:ltr;
}

.taif-currency-management-modal--single-editor .currency-management-flag-picker__code.is-placeholder{
  padding-inline:10px;
  font-size:11px;
  letter-spacing:0;
  direction:rtl;
}

.taif-currency-management-modal--single-editor .currency-management-flag-picker__label{
  min-width:0;
  color:#0f172a;
  font-size:12.2px;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.taif-currency-management-modal--single-editor .currency-management-flag-picker__icon{
  width:var(--currency-management-icon-size);
  height:var(--currency-management-icon-size);
  flex:0 0 auto;
  display:grid;
  place-items:center;
  color:#2563eb;
  transition:transform .18s ease, color .18s ease;
}

.taif-currency-management-modal--single-editor .currency-management-flag-picker__icon svg{
  width:100%;
  height:100%;
}

.taif-currency-management-modal--single-editor .currency-management-flag-picker.is-open .currency-management-flag-picker__trigger{
  opacity:0;
  pointer-events:none;
}
.taif-currency-management-modal--single-editor .currency-management-flag-picker__trigger.is-empty .currency-management-flag-picker__label{
  color:#64748b;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover{
  position:absolute;
  z-index:64;
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:4px;
  overflow:hidden;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover[hidden],
.taif-currency-management-modal--single-editor .currency-management-method-popover[hidden]{
  display:none !important;
  pointer-events:none;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover.is-open{
  animation:currency-management-method-popover-in .18s ease;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover__search-shell{
  flex:0 0 auto;
  display:block;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover__search-wrap{
  width:100%;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover__search-input{
  height:39px;
  padding:0 14px 0 34px;
  border-radius:8px;
  font-size:12.45px;
  font-weight:700;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover__search-input::placeholder{
  color:#7c8aa5;
  opacity:1;
}

.taif-currency-management-modal--single-editor .currency-management-flag-popover__search-clear{
  left:7px;
  width:24px;
  height:24px;
  border-radius:7px;
}
