/* Selector de pares (web/pares.js) */
.pr-brand { cursor: pointer; padding: 4px 8px 4px 6px; margin: 0 -4px; border-radius: 9px; transition: background .15s; }
.pr-brand:hover { background: rgba(var(--acc-rgb), .08); }
.pr-caret { font-style: normal; font-size: 10px; color: var(--faint); margin-left: -2px; transition: transform .2s; }
.pr-brand:hover .pr-caret { color: var(--acc); }

#prPop { position: fixed; z-index: 80; width: 460px; max-width: calc(100vw - 16px); max-height: min(560px, calc(100vh - 80px));
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
  background: rgb(var(--float-rgb)); border: 1px solid var(--line-2); box-shadow: 0 24px 70px rgba(var(--shadow-rgb), .6), 0 0 0 1px rgba(var(--acc-rgb), .06);
  opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top left; pointer-events: none;
  transition: opacity .15s ease, transform .25s cubic-bezier(.2, 1.3, .4, 1); }
#prPop.on { opacity: 1; transform: none; pointer-events: auto; }
.pr-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--faint); }
.pr-head input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: color-mix(in srgb, var(--hi) 50%, var(--soft)); font: 500 15px var(--sans); }
.pr-head input::placeholder { color: var(--faint); }
.pr-head kbd { font: 600 10px var(--mono); color: var(--faint); border: 1px solid var(--line-2); border-radius: 5px; padding: 2px 5px; }
.pr-tabs { display: flex; align-items: center; gap: 4px; padding: 8px 10px 4px; }
.pr-tabs button { border: 0; background: none; color: var(--text); font: 600 12px var(--sans); padding: 5px 10px; border-radius: 8px; cursor: pointer; }
.pr-tabs button:hover { background: rgba(var(--hi-rgb), .05); }
.pr-tabs button.on { background: rgba(var(--acc-rgb), .14); color: var(--acc); }
.pr-n { margin-left: auto; color: var(--faint); font-size: 11px; padding-right: 4px; }
.pr-cols, .pr-row { display: grid; grid-template-columns: 22px 1fr 96px 70px 72px; align-items: center; gap: 6px; padding: 0 12px; }
.pr-cols { grid-template-columns: 1fr 96px 70px 72px; padding: 6px 12px 6px 40px; color: var(--faint); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.pr-cols span:not(:first-child) { text-align: right; }
.pr-list { overflow-y: auto; flex: 1; padding: 2px 0 6px; overscroll-behavior: contain; }
.pr-row { height: 36px; cursor: pointer; position: relative; animation: prIn .28s cubic-bezier(.2, 1.2, .4, 1) both; animation-delay: calc(var(--i) * 12ms); }
@keyframes prIn { from { opacity: 0; transform: translateY(4px); } }
.pr-row.sel { background: rgba(var(--acc-rgb), .08); }
.pr-row.sel::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.pr-row.cur .pr-sym b { color: var(--acc); }
.pr-star { border: 0; background: none; padding: 0; font-size: 13px; color: color-mix(in srgb, var(--neutral) 35%, transparent); cursor: pointer; transition: transform .15s, color .15s; }
.pr-star:hover { transform: scale(1.25); color: var(--warn); }
.pr-star.on { color: var(--warn); text-shadow: 0 0 8px color-mix(in srgb, var(--warn) 50%, transparent); }
.pr-sym { display: flex; align-items: baseline; gap: 2px; min-width: 0; }
.pr-sym b { color: color-mix(in srgb, var(--hi) 50%, var(--soft)); font: 700 13px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-sym em { color: var(--faint); font: 500 10.5px var(--sans); font-style: normal; }
.pr-live { width: 6px; height: 6px; border-radius: 50%; background: var(--bull); box-shadow: 0 0 6px var(--bull); margin-left: 6px; align-self: center; animation: prPulse 1.6s ease-in-out infinite; }
@keyframes prPulse { 50% { opacity: .35; } }
.pr-px, .pr-chg, .pr-vol { text-align: right; font: 500 12px var(--mono); }
.pr-px { color: color-mix(in srgb, var(--hi) 50%, var(--soft)); }
.pr-chg.up { color: var(--up); }
.pr-chg.dn { color: var(--down); }
.pr-vol { color: var(--faint); }
.pr-empty { padding: 28px 16px; text-align: center; color: var(--faint); }
.pr-foot { padding: 8px 14px; border-top: 1px solid var(--line); color: var(--faint); font-size: 11px; }
html.pr-leaving body { opacity: 0; transition: opacity .18s ease; }
@media (max-width: 520px) { .pr-cols, .pr-row { grid-template-columns: 22px 1fr 86px 62px; } .pr-cols { grid-template-columns: 1fr 86px 62px; } .pr-vol, .pr-cols span:last-child { display: none; } }
@media (prefers-reduced-motion: reduce) { .pr-row, .pr-live { animation: none; } }

/* aviso: armando el order flow de hoy (par recién prendido) */
#bfPill { position: fixed; left: 50%; top: 62px; z-index: 70; transform: translate(-50%, -14px); opacity: 0; pointer-events: none;
  display: grid; grid-template-columns: auto auto auto auto; align-items: center; gap: 4px 10px; padding: 9px 16px 11px; border-radius: 14px;
  background: rgb(var(--float-rgb)); border: 1px solid rgba(var(--acc-rgb), .45); box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 24px rgba(var(--acc-rgb), .15);
  font-size: 12.5px; color: var(--text); transition: transform .35s cubic-bezier(.2, 1.4, .4, 1), opacity .2s; }
#bfPill.on { opacity: 1; transform: translate(-50%, 0); }
#bfPill.done { border-color: rgba(43, 212, 154, .6); color: var(--up); grid-template-columns: auto; }
#bfPill b { color: var(--acc); }
#bfPill .bf-p { font: 700 13px var(--mono); }
#bfPill em { font-style: normal; color: var(--faint); font-size: 11.5px; }
#bfPill .bf-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(var(--acc-rgb), .3); border-top-color: var(--acc); animation: bfSpin .8s linear infinite; }
@keyframes bfSpin { to { transform: rotate(360deg); } }
#bfPill .bf-bar { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
#bfPill .bf-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), #e879f9); box-shadow: 0 0 10px var(--acc); transition: width .6s; }
