/* Evolvingbloggers — UI kit: dialog, toast, styled dropdown. Brand palette only. */
.ebui-overlay, .ebui-overlay *, .ebs, .ebs *, .ebs-pop, .ebs-pop *, .ebui-toast, .ebui-toast * { box-sizing: border-box; }

/* ── Dialog ─────────────────────────────────────────────────────────────── */
.ebui-overlay { position: fixed; inset: 0; z-index: 1000000; display: flex; align-items: flex-end; justify-content: center; padding: 0; background: rgba(11,42,91,0); transition: background-color .18s ease; font-family: "EBX Inter", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.ebui-overlay.is-on { background: rgba(11,42,91,.5); }
@media (min-width: 600px) { .ebui-overlay { align-items: center; padding: 24px; } }
html.ebui-locked, html.ebui-locked body { overflow: hidden; }
.ebui-dialog { width: 100%; max-width: 440px; padding: 28px 24px 22px; background: #FFFFFF; border-radius: 20px 20px 0 0; box-shadow: 0 30px 80px -20px rgba(11,42,91,.45); transform: translateY(24px); opacity: 0; transition: transform .2s cubic-bezier(.16,1,.3,1), opacity .18s ease; text-align: left; color: #111111; }
@media (min-width: 600px) { .ebui-dialog { border-radius: 20px; padding: 30px 28px 24px; } }
.ebui-overlay.is-on .ebui-dialog { transform: none; opacity: 1; }
.ebui-dialog-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; font-size: 18px; background: #F0F4FF; color: #1B5AFF; }
.ebui-tone-danger { background: #FEF3F2; color: #B42318; }
.ebui-tone-warn { background: #FFF4EC; color: #B4530F; }
.ebui-tone-ok { background: #ECFDF3; color: #067647; }
.ebui-dialog .ebui-dialog-t { margin: 0; padding: 0; border: 0; font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; color: #111111; display: block; }
.ebui-dialog .ebui-dialog-m { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: #6B7280; }
.ebui-dialog-btns { display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.ebui-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 11px; border: 1px solid transparent; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s; }
@media (max-width: 599px) { .ebui-btn { flex: 1 1 auto; } }
.ebui-btn:active { transform: translateY(1px); }
.ebui-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(27,90,255,.28); }
.ebui-btn--main { background: #1B5AFF; color: #FFFFFF; box-shadow: 0 8px 18px -10px rgba(27,90,255,.7); }
.ebui-btn--main:hover { background: #1A4FD0; }
.ebui-btn--danger { background: #D92D20; color: #FFFFFF; }
.ebui-btn--danger:hover { background: #B42318; }
.ebui-btn--ghost { background: #FFFFFF; color: #111111; border-color: #E5E7EB; }
.ebui-btn--ghost:hover { background: #F9F9FB; }

/* ── Toast ──────────────────────────────────────────────────────────────── */
.ebui-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1000001; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 13px 18px; border-radius: 12px; background: #0B2A5B; color: #FFFFFF; font: 600 14px/1.45 "EBX Inter", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; box-shadow: 0 14px 34px -12px rgba(11,42,91,.55); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: transform .22s cubic-bezier(.16,1,.3,1), opacity .2s ease; }
.ebui-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.ebui-toast .fa-solid { color: #8FB0FF; }
.ebui-toast--bad { background: #B42318; }
.ebui-toast--bad .fa-solid { color: #FECDCA; }
.ebui-toast--ok .fa-solid { color: #6CE9A6; }

/* ── Styled dropdown ────────────────────────────────────────────────────── */
.ebs { position: relative; display: block; width: 100%; min-width: 0; }
.ebs .ebs-native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0 !important; pointer-events: none !important; margin: 0 !important; }
.ebs .ebs-btn {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; max-width: 100%;
  min-height: 44px; padding: 10px 14px; margin: 0; text-align: left; cursor: pointer; line-height: 1.35;
  background: #FFFFFF; background-image: none; color: #111111; border: 1px solid #E5E7EB; border-radius: 10px; font: inherit; font-size: 14px; box-shadow: none;
  -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s;
}
.ebs .ebs-btn:hover { border-color: #C9D2E3; }
.ebs .ebs-btn:focus-visible, .ebs .ebs-btn.is-open { outline: none; border-color: #1B5AFF; box-shadow: 0 0 0 3px rgba(27,90,255,.14); }
.ebs .ebs-btn[disabled] { background: #F9F9FB; color: #6B7280; cursor: default; }
.ebs .ebs-btn.is-empty .ebs-val { color: #9CA3AF; }
.ebs-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ebs-caret { flex: none; width: 12px; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236B7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 12px 8px; transition: transform .18s ease; }
.ebs-btn.is-open .ebs-caret { transform: rotate(180deg); }

.ebs-pop { --ebs-accent: #1B5AFF; position: fixed; z-index: 1000002; padding: 6px; background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 14px; box-shadow: 0 2px 4px rgba(17,17,17,.04), 0 22px 48px -16px rgba(11,42,91,.32); animation: ebs-in .14s ease both; color: #111111; font-size: 14px; }
.ebs-pop.is-up { animation-name: ebs-in-up; }
@keyframes ebs-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes ebs-in-up { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ebs-search-w { position: relative; margin: 2px 2px 6px; }
.ebs-search-w .fa-solid { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: #6B7280; }
.ebs-pop .ebs-search { width: 100%; min-height: 40px; margin: 0; padding: 8px 12px 8px 34px; border: 1px solid #E5E7EB; border-radius: 10px; background: #F9F9FB; font: inherit; font-size: 14px; color: #111111; box-shadow: none; outline: none; }
.ebs-pop .ebs-search:focus { border-color: var(--ebs-accent); background: #FFFFFF; box-shadow: 0 0 0 3px rgba(27,90,255,.12); }
.ebs-list { overflow-y: auto; overscroll-behavior: contain; outline: none; scrollbar-width: thin; }
.ebs-opt { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 9px 12px; border-radius: 9px; cursor: pointer; line-height: 1.4; color: #111111; -webkit-tap-highlight-color: transparent; }
.ebs-opt-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ebs-opt .fa-solid { flex: none; font-size: 12px; color: var(--ebs-accent); }
.ebs-opt.is-active { background: #F0F4FF; }
.ebs-opt[aria-selected="true"] { color: var(--ebs-accent); font-weight: 600; }
.ebs-opt.is-placeholder { color: #9CA3AF; }
.ebs-opt.is-disabled { color: #C5CBD3; cursor: default; }
.ebs-none { padding: 14px 12px; font-size: 13.5px; color: #6B7280; }
.ebs-pop--form { font-size: 15px; }
.ebs-pop--form .ebs-opt { min-height: 44px; padding: 11px 14px; }
@media (pointer: coarse) { .ebs-opt { min-height: 46px; } }
.ebs-opt.is-placeholder, .ebs-opt.is-placeholder[aria-selected="true"] { font-weight: 400; color: #9CA3AF; }

/* 3.36: pager — every list of records shows 5 at a time */
[data-ebpg-off] { display: none !important; }
.ebui-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 16px 0 4px; }
.ebui-pager .ebui-pg { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid #E5E7EB; background: #FFFFFF; color: #111111; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: border-color .15s, background-color .15s; }
.ebui-pager .ebui-pg:hover:not(:disabled):not(.is-on) { border-color: #1B5AFF; color: #1B5AFF; }
.ebui-pager .ebui-pg.is-on { background: #1B5AFF; border-color: #1B5AFF; color: #FFFFFF; cursor: default; }
.ebui-pager .ebui-pg:disabled { opacity: .4; cursor: default; }
.ebui-pg:focus-visible { outline: 2px solid #1B5AFF; outline-offset: 2px; }
.ebui-pg .fa-solid { font-size: 12px; }
.ebui-pg-gap { color: #6B7280; padding: 0 2px; }
.ebui-pg-count { margin-left: auto; font-size: 13px; color: #6B7280; }
@media (max-width: 599px) { .ebui-pager { gap: 4px; } .ebui-pager .ebui-pg { min-width: 36px; height: 36px; padding: 0 8px; } .ebui-pg-count { flex-basis: 100%; margin-left: 0; } }
