/* ByteFix Restaurante · componentes comunes (panel, cocina y web pública).
   Mismo lenguaje que TallerByteFix: fondo bg.png con blur, cristal, acento azul, Nunito/BoxedRound, desplegables y calendario propios. */
:root {
  --ff: gotham, 'Nunito', 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --line: hsla(0, 0%, 100%, .09);
  --line-2: hsla(0, 0%, 100%, .14);
  --field: rgba(0, 0, 0, .35);
  --accent-soft: hsla(203, 88%, 47%, .14);
  --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark; accent-color: var(--accent);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: var(--ff); scrollbar-color: var(--jet) transparent; }
body { background: var(--smoky-black); color: var(--light-gray); min-height: 100vh; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; text-align: left; }
::selection { background: var(--accent); color: var(--smoky-black); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { color: var(--white-2); font-weight: 600; line-height: 1.2; }
h1 { font-size: 30px; }
h2 { font-size: 20px; }
.h2 { font-size: 22px; font-weight: 600; color: var(--white-2); }
.h3 { font-size: 18px; font-weight: 600; color: var(--white-2); }
.ico { font-size: 17px; line-height: 1; flex: none; --fa-secondary-opacity: .4; margin-right: 0; }
.accent { color: var(--accent); }
.muted { color: var(--light-gray-70); font-weight: 300; }
.small, .sm { font-size: 13px; } .tiny { font-size: 11.5px; }
.mono { font-family: var(--mono); letter-spacing: .3px; }
.block { display: block; } .right { text-align: right; } .center { text-align: center; justify-content: center; }
.grow { flex: 1 1 0; min-width: 0; }
.strong { font-weight: 700; color: var(--white-2); }
.big { color: var(--white-2); font-size: 32px; font-weight: 700; line-height: 1.1; }
.small-big { font-size: 22px; }
.lead { font-size: 17px; color: var(--light-gray); font-weight: 300; line-height: 1.6; }
.eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--light-gray-70); }
.eyebrow.gap { margin-top: 22px; margin-bottom: 8px; }
.sep { height: 1px; background: var(--jet); margin: 12px 0; }
.sub { color: var(--light-gray); font-weight: 300; line-height: 1.6; }
.link { color: var(--accent); font-weight: 600; font-size: 13px; }
.link:hover { color: var(--white-1); text-decoration: underline; }
.noprint {} .print-only { display: none; }
@media print { .noprint, .side, .mobile-bar, .demo-bar { display: none !important; } .print-only { display: block; } }

/* fondo: bg.png con blur */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--smoky-black); }
.bg::before { content: ''; position: absolute; inset: -40px; background: url('../img/bg.png') center / cover no-repeat; filter: blur(14px) brightness(.55) saturate(1.1); transform: scale(1.05); }
.bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, hsla(203, 88%, 47%, .10), transparent 60%), rgba(0, 0, 0, .35); }
.glass { background: rgba(30, 30, 30, .6); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-lg); box-shadow: 0 10px 40px rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pulse { 50% { opacity: .65; } }
@keyframes tpop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes flash { from { background: hsla(203, 88%, 47%, .35); } to { background: none; } }

/* botones */
.btn, .btn-pub { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; background: rgba(255, 255, 255, .05);
  color: var(--accent); border: 1px solid rgba(255, 255, 255, .15); transition: all .25s; white-space: nowrap; text-align: center; min-height: 0; }
.btn:hover:not(:disabled), .btn-pub:hover:not(:disabled) { background: var(--accent); color: var(--smoky-black); transform: translateY(-1px); }
.btn:disabled, .btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn.on { background: var(--accent-soft); border-color: hsla(203, 88%, 47%, .5); color: var(--white-1); }
.btn.primary, .btn-pub { background: linear-gradient(135deg, hsl(203, 88%, 52%), hsl(203, 88%, 40%)); color: #fff; border-color: transparent; box-shadow: 0 8px 22px hsla(203, 88%, 47%, .3); }
.btn.primary:hover:not(:disabled), .btn-pub:hover:not(:disabled) { background: linear-gradient(135deg, hsl(203, 88%, 58%), hsl(203, 88%, 44%)); color: #fff; }
.btn.danger { color: var(--danger); border-color: hsla(0, 43%, 51%, .4); background: rgba(255, 255, 255, .05); }
.btn.danger:hover:not(:disabled) { background: var(--danger); color: var(--white-1); }
.btn.ghost, .btn-pub.ghost { background: rgba(255, 255, 255, .05); color: var(--accent); border: 1px solid rgba(255, 255, 255, .15); box-shadow: none; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn.wide, .wide-btn { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--light-gray); transition: all .2s; text-align: center; }
.icon-btn:hover { background: rgba(255, 255, 255, .08); color: var(--accent); }
.icon-btn.boxed { border: 1px solid var(--line-2); }

/* formularios */
.form { display: grid; gap: 14px; }
.field { display: block; margin-bottom: 0; }
.field-label { display: block; font-size: 13px; color: var(--light-gray-70); margin-bottom: 5px; font-weight: 400; }
.field-i, .hint { display: block; color: var(--light-gray-70); font-size: 12px; margin-top: 4px; line-height: 1.5; }
.input, select.input, textarea.input,
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=search], textarea {
  width: 100%; font: inherit; color: var(--white-2); background: var(--field); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; min-height: 0; transition: border-color .2s, box-shadow .2s; }
.input:hover:not(:disabled), input:hover:not(:disabled):not([type=checkbox]):not([type=radio]), textarea:hover:not(:disabled) { border-color: hsl(0, 0%, 32%); }
.input:focus, input:focus:not([type=checkbox]):not([type=radio]), textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px hsla(203, 88%, 47%, .18); }
.input:disabled, input:disabled { opacity: .55; cursor: not-allowed; }
::placeholder { color: var(--light-gray-70); opacity: .75; }
textarea, textarea.input { resize: vertical; min-height: 80px; line-height: 1.5; }
.input.narrow-n { max-width: 120px; } .input.tall { min-height: 160px; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=file] { width: 100%; color: var(--light-gray); font: inherit; background: var(--field); border: 1px dashed var(--line-2); border-radius: 10px; padding: 8px; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; margin-right: 12px; padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .05); color: var(--accent); cursor: pointer; transition: all .2s; }
input[type=file]::file-selector-button:hover { background: var(--accent); color: var(--smoky-black); }
input[type=color] { -webkit-appearance: none; appearance: none; width: 56px; height: 40px; padding: 3px; background: var(--field); border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; } input[type=color]::-webkit-color-swatch { border: 0; border-radius: 7px; }
.err { color: hsl(0, 70%, 70%); min-height: 20px; margin: 4px 0 10px; font-size: 14px; }
.check { display: inline-flex; align-items: center; gap: 9px; color: var(--light-gray); font-size: 14px; cursor: pointer; }
input[type=checkbox], input[type=radio] { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; flex: none; cursor: pointer; display: inline-grid; place-content: center; background: rgba(0, 0, 0, .3);
  border: 1.5px solid hsl(0, 0%, 36%); border-radius: 5px; transition: background .15s, border-color .15s; padding: 0; min-height: 0; }
input[type=radio] { border-radius: 50%; }
input[type=checkbox]::after { content: ''; width: 10px; height: 10px; background: var(--smoky-black); transform: scale(0); transition: transform .12s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
input[type=radio]::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--smoky-black); transform: scale(0); transition: transform .12s; }
input[type=checkbox]:hover, input[type=radio]:hover { border-color: var(--accent); }
input[type=checkbox]:checked, input[type=radio]:checked { background: var(--accent); border-color: var(--accent); }
input[type=checkbox]:checked::after, input[type=radio]:checked::after { transform: scale(1); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.grid2 > .field, .grid3 > .field { min-width: 0; }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.row-form, .filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.inline, .inline-form { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* desplegable temático (themed.js) y selectores de fecha/hora (datepicker.js) */
.tsel { position: relative; display: block; width: 100%; }
td .tsel, .filters .tsel, .row-form .tsel, .toolbar .tsel, .inline .tsel, .inline-form .tsel, .tsel.compact { display: inline-block; width: auto; min-width: 170px; }
.tsel-native { position: absolute; inset: 0; opacity: 0; pointer-events: none; width: 100%; height: 100%; }
.tsel-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; font: inherit; color: var(--white-2); background: var(--field); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.tsel-btn:hover, .tsel-btn[aria-expanded='true'] { border-color: var(--accent); }
.tsel-btn[aria-expanded='true'], .tsel-btn:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px hsla(203, 88%, 47%, .18); }
.tsel-btn:disabled { opacity: .55; cursor: not-allowed; }
.tsel-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsel-btn i { font-size: 12px; transition: transform .2s; --fa-secondary-opacity: .45; }
.tsel-btn[aria-expanded='true'] i { transform: rotate(180deg); color: var(--accent); }
.tsel-list { position: fixed; z-index: 1000; min-width: 160px; overflow-y: auto; margin: 0; list-style: none; padding: 5px; background: hsl(240, 2%, 14%); border: 1px solid var(--jet); border-radius: 12px; box-shadow: 0 16px 30px hsla(0, 0%, 0%, .45); animation: tpop .12s ease; }
.tsel-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--light-gray); font-size: 14px; }
.tsel-list li.active { background: hsla(203, 88%, 47%, .16); color: var(--white-1); }
.tsel-list li[aria-selected='true'] { color: var(--accent); }
.tsel-list li.dis { opacity: .4; cursor: not-allowed; }
.tsel-list li i { color: var(--accent); font-size: 12px; }
.dsel .tsel-btn .tsel-label.empty { display: block; padding: 0; justify-items: normal; text-align: left; color: var(--light-gray-70); }
.dsel .tsel-btn i { font-size: 14px; color: var(--accent); }
.dpop { position: fixed; z-index: 1000; display: flex; flex-wrap: wrap; gap: 12px; width: max-content; max-width: calc(100vw - 16px); padding: 12px; background: hsl(240, 2%, 14%); border: 1px solid var(--jet); border-radius: 14px; box-shadow: 0 16px 30px hsla(0, 0%, 0%, .45); animation: tpop .12s ease; color: var(--light-gray); user-select: none; }
.dp-cal { width: 252px; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-head b { font-weight: 700; color: var(--white-1); text-transform: capitalize; }
.dp-nav { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--light-gray); }
.dp-nav:hover { background: hsla(203, 88%, 47%, .16); color: var(--accent); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp-grid .dow { font-size: 11px; color: var(--light-gray-70); padding: 4px 0; text-transform: uppercase; }
.dp-day { height: 32px; border-radius: 8px; font-size: 13.5px; color: var(--light-gray); text-align: center; }
.dp-day:hover { background: hsla(203, 88%, 47%, .16); color: var(--white-1); }
.dp-day.other { color: var(--light-gray-70); opacity: .5; }
.dp-day.today { box-shadow: inset 0 0 0 1px var(--accent); }
.dp-day.on { background: var(--accent); color: #fff; font-weight: 700; opacity: 1; }
.dp-time { display: flex; gap: 6px; }
.dp-col { display: flex; flex-direction: column; gap: 2px; width: 54px; max-height: 268px; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; }
.dp-col .dp-t { height: 30px; flex: none; border-radius: 8px; font-size: 13.5px; color: var(--light-gray); font-family: var(--mono); text-align: center; }
.dp-col .dp-t:hover { background: hsla(203, 88%, 47%, .16); color: var(--white-1); }
.dp-col .dp-t.on { background: var(--accent); color: #fff; font-weight: 700; }
.dp-foot { flex-basis: 100%; display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.dp-foot button { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--accent); }
.dp-foot button:hover { background: hsla(203, 88%, 47%, .16); }
.dpop.only-time { gap: 6px; flex-direction: column; flex-wrap: nowrap; width: 156px; }
.dp-lab { display: grid; grid-template-columns: 1fr 1fr; text-align: center; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--light-gray-70); }
.dp-time { justify-content: center; }
.dp-col { width: 64px; max-height: 210px; }
.dp-col .dp-t { height: 32px; }
.dpop { background: rgba(28, 28, 30, .97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.dp-cal { width: 272px; } .dp-day { height: 34px; transition: background .15s; }
.dp-day.on { box-shadow: 0 4px 14px hsla(203, 88%, 47%, .45); }
.dp-foot { border-top: 1px solid var(--line); }
.dsel .tsel-btn i { --fa-secondary-opacity: .7; }

/* modales, avisos y piezas comunes */
.overlay, .backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .65); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; animation: fade .2s both; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: rgba(28, 28, 30, .97); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-5); animation: up .3s var(--ease) both; display: flex; flex-direction: column; color: var(--light-gray); }
.modal.wide { width: min(700px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px 10px; }
.modal-head h2 { font-size: 20px; }
.modal-body { padding: 8px 24px 20px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 24px 20px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: rgba(28, 28, 30, .97); }
#toasts { position: fixed; right: 24px; bottom: 24px; z-index: 1100; display: grid; gap: 10px; justify-items: end; pointer-events: none; max-width: min(92vw, 420px); }
.toast { padding: 12px 18px; border-radius: 12px; background: rgba(30, 30, 30, .96); border: 1px solid var(--line-2); border-left: 3px solid var(--ok); color: var(--white-2); animation: up .3s both; max-width: 420px; box-shadow: var(--shadow-2); pointer-events: auto; transition: opacity .3s; }
.toast.error { border-left-color: var(--danger); }
.toast.out { opacity: 0; }
.pill, .tag-mod { display: inline-block; padding: 2px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; letter-spacing: .05em; background: var(--onyx); color: var(--light-gray); white-space: nowrap; border: 0; }
.pill.placed, .pill.new, .pill.pendiente, .pill.unpaid, .tag-mod { color: var(--warn); background: hsla(38, 90%, 55%, .14); }
.pill.accepted, .pill.preparing, .pill.partial, .pill.po { color: var(--accent); background: var(--accent-soft); }
.pill.ready, .pill.served, .pill.paid, .pill.atendida, .pill.pay, .pill.on { color: var(--ok); background: hsla(152, 62%, 44%, .14); }
.pill.cancelled, .pill.refunded, .pill.off { color: hsl(0, 70%, 72%); background: hsla(0, 43%, 51%, .16); }
.chip { color: var(--white-1); background: var(--onyx); font-size: 12px; font-weight: 400; padding: 2px 10px; border-radius: 8px; display: inline-block; }
.empty { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 30px 10px; color: var(--light-gray-70); }
.empty strong { color: var(--light-gray); font-weight: 600; }
.alert { padding: 14px 16px; border-radius: 14px; margin: 10px 0; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); color: var(--light-gray); font-size: 14px; line-height: 1.5; }
.alert.info { background: var(--accent-soft); border-color: hsla(203, 88%, 47%, .4); }
.alert.warn, .alert.warning { background: hsla(38, 90%, 55%, .1); border-color: hsla(38, 90%, 55%, .4); color: var(--warn); }
.alert.danger, .alert.error, .alert.bad { background: hsla(0, 43%, 51%, .13); border-color: hsla(0, 43%, 51%, .4); color: hsl(0, 70%, 78%); }
.alert.ok { background: hsla(152, 62%, 44%, .1); border-color: hsla(152, 62%, 44%, .4); }
code { font-family: var(--mono); background: rgba(0, 0, 0, .35); border: 1px solid var(--line); padding: 1px 7px; border-radius: 7px; font-size: .92em; color: var(--white-2); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); display: inline-block; margin-left: auto; transition: background .3s; }
.live-dot.on { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.flash { animation: flash 1.2s; }
@media (prefers-reduced-motion: reduce) { .btn.rec, .page, .modal, .main > * { animation: none !important; } *, *::before, *::after { transition: none !important; } }

/* ===== v2: calendario sin hueco, animaciones de desplegables, accesibilidad ===== */
@keyframes tpop-out { to { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes tpop-in { from { opacity: 0; transform: translateY(-8px) scale(.96); } to { opacity: 1; transform: none; } }
.tsel-list, .dpop { transform-origin: top center; animation: tpop-in .18s var(--ease) both; }
.tsel-list.out, .dpop.out { animation: tpop-out .14s ease both; }
.tsel-list li { transition: background .12s, color .12s, padding-left .15s; }
.tsel-list li.active { padding-left: 14px; }
.tsel-btn { min-height: 40px; }
.tsel-btn:active { transform: scale(.995); }
.dpop { display: grid; grid-template-columns: max-content; width: fit-content; gap: 12px 14px; max-width: calc(100vw - 16px); }
.dpop:has(.dp-time):not(.only-time) { grid-template-columns: max-content max-content; }
.dpop .dp-foot { grid-column: 1 / -1; flex-basis: auto; }
.dpop.only-time { display: flex; width: fit-content; }
.dp-cal { width: 272px; max-width: calc(100vw - 42px); }
.dp-day { transition: background .15s, transform .12s; } .dp-day:active { transform: scale(.92); }
.dp-col .dp-t { transition: background .12s; }
@media (max-width: 420px) { .dpop:has(.dp-time):not(.only-time) { grid-template-columns: max-content; }
 .dpop { max-height: calc(100vh - 16px); overflow-y: auto; } .dp-col { max-height: 150px; } .dp-time { justify-content: flex-start; } }
@media (prefers-reduced-motion: reduce) { .tsel-list, .dpop, .tsel-list.out, .dpop.out { animation: none; } * { scroll-behavior: auto !important; } }

/* v3: iconos blancos sobre fondos azules (antes azul sobre azul = invisible) */
.btn.primary .fa-duotone, .btn-pub .fa-duotone, .logo .fa-duotone, .login-btn .fa-duotone,
.btn.primary i, .btn-pub i, .logo i, .login-btn i { --fa-primary-color: #fff; --fa-secondary-color: #fff; --fa-secondary-opacity: .7; color: #fff; }
.btn.ghost .fa-duotone, .btn.sm:not(.primary) .fa-duotone { --fa-primary-color: var(--accent); --fa-secondary-color: var(--accent); }
.btn:not(.primary):not(.btn-pub):not(.wa):hover:not(:disabled) .fa-duotone { --fa-primary-color: var(--smoky-black); --fa-secondary-color: var(--smoky-black); }

/* aviso de validación temático (validity.js) */
@keyframes bf-tip-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes bf-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.bf-tip { position: fixed; z-index: 2000; display: flex; align-items: center; gap: 10px; max-width: min(320px, calc(100vw - 16px)); padding: 9px 14px 9px 10px; border-radius: 12px; background: rgba(28, 28, 30, .97); border: 1px solid hsla(0, 43%, 51%, .6); color: #fff; font: 600 13px/1.35 inherit; font-family: inherit; box-shadow: 0 14px 30px rgba(0, 0, 0, .5); pointer-events: none; animation: bf-tip-in .2s cubic-bezier(.2, .7, .2, 1) both; }
.bf-tip.out { opacity: 0; transition: opacity .14s; }
.bf-tip::before { content: '!'; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: hsl(0, 43%, 51%); color: #fff; font-weight: 800; font-size: 13px; }
.bf-tip::after { content: ''; position: absolute; left: var(--ax, 24px); top: -6px; width: 10px; height: 10px; margin-left: -5px; transform: rotate(45deg); background: rgba(28, 28, 30, .97); border-left: 1px solid hsla(0, 43%, 51%, .6); border-top: 1px solid hsla(0, 43%, 51%, .6); }
.bf-tip.up::after { top: auto; bottom: -6px; transform: rotate(225deg); }
.bf-invalid { border-color: hsl(0, 43%, 51%) !important; box-shadow: 0 0 0 3px hsla(0, 43%, 51%, .22) !important; animation: bf-shake .3s; }
@media (prefers-reduced-motion: reduce) { .bf-tip, .bf-invalid { animation: none; } }
