[hidden] { display: none !important; }
.toasts { position: fixed; z-index: 120; right: 20px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; width: min(400px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 8px 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--text); box-shadow: 0 12px 32px rgba(16, 20, 30, .14), 0 2px 6px rgba(16, 20, 30, .06); font-size: 14px; font-weight: 500; line-height: 20px; pointer-events: auto; animation: toast-in .22s cubic-bezier(.2, .8, .2, 1); }
.toast.out { animation: toast-out .2s ease forwards; }
.toast-ico { display: grid; flex: none; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.toast .toast-ico svg, .toast .toast-x svg { width: 18px; height: 18px; padding: 0; border-radius: 0; background: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.toast.ok .toast-ico { background: var(--green-soft); color: var(--green); }
.toast.err .toast-ico { background: var(--red-soft); color: var(--red); }
.toast.warn .toast-ico { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.toast-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast-x { display: grid; flex: none; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: background-color .15s, color .15s; }
.toast-x:hover { background: var(--bg-soft-2); color: var(--text); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }

.modal-back { animation: fade-in .18s ease; }
.modal-card { animation: modal-in .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.wl-pop, .tu-menu { animation: drop-in .16s ease; transform-origin: top; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

html.no-search .hnav { margin-left: auto; }

.avatar-img { opacity: 0; transition: opacity .2s ease; }
.avatar-img.loaded { opacity: 1; }
:has(> .avatar-img.loaded) > .avatar-ph { visibility: hidden; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }
button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
input::-webkit-search-decoration, input::-webkit-search-cancel-button, input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
select { color-scheme: light; }
html[data-theme="dark"] select, html[data-theme="dark"] input { color-scheme: dark; }
select:not([multiple]) { -webkit-appearance: none; appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238593ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; cursor: pointer; }

.notice { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; border-radius: 16px; background: var(--field); }
.notice b { font-size: 16px; }
.notice p { margin: 0; color: var(--muted); font-size: 14px; line-height: 20px; }
.notice-warn { background: color-mix(in srgb, var(--blue) 10%, transparent); }
.notice-info { background: var(--blue-soft); }
.notice-err { margin-bottom: 16px; background: var(--red-soft); }
.notice-err b { color: var(--red); }
.notice .form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.key-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 16px; padding: 14px 16px; border-radius: 14px; background: var(--field); }
.key-box code { font: 700 17px/1.3 ui-monospace, Consolas, monospace; letter-spacing: 1px; overflow-wrap: anywhere; }

html { scrollbar-width: thin; scrollbar-color: rgba(100, 108, 126, .45) transparent; }
html[data-theme="dark"] { scrollbar-color: rgba(255, 255, 255, .2) transparent; }
* { scrollbar-width: thin; }

.dc { height: calc(100dvh - 220px); min-height: 420px; }
.dc .chat-body { min-height: 0; }

.wl-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.wl-split div { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 8px; background: var(--wl-bg); }
.wl-split span { color: var(--muted); font-size: 13px; line-height: 18px; }
.wl-split b { font-size: 16px; line-height: 22px; }
.wl-select { display: flex; flex-direction: column; justify-content: center; height: 76px; padding: 0 20px; border-radius: 8px; background: var(--wl-bg); box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s; }
.wl-select:focus-within { box-shadow: inset 0 0 0 2px var(--blue); }
.wl-select span { color: var(--muted); font-size: 14px; line-height: 18px; }
.wl-select select { width: 100%; height: 30px; padding: 0 32px 0 0; border: 0; outline: 0; background-color: transparent; background-position: right 0 center; color: var(--text); font: 700 18px/28px var(--font); }
.wl-flat { margin: 0; }
.wd-chip:disabled { opacity: .5; cursor: default; }
.wd-item div { align-items: center; }
.wd-confirm b[data-left] { font-variant-numeric: tabular-nums; }

.pf-admin { display: flex; align-items: center; gap: 14px; width: min(100%, 507px); padding: 14px 20px; border-radius: 16px; background: var(--blue-soft); color: var(--text); text-decoration: none; transition: filter .18s; }
.pf-admin:hover { filter: brightness(1.04); }
.pf-admin > svg:first-child { flex: none; color: var(--blue); }
.pf-admin span { display: flex; flex: 1; flex-direction: column; }
.pf-admin b { font-size: 17px; }
.pf-admin small { color: var(--muted); font-size: 13px; }
.pf-admin > svg:last-child { flex: none; width: 24px; height: 24px; }
.pf-wait { background: none; color: var(--text); }
.pf-btn.pf-btn-s { display: inline-flex; align-items: center; width: auto; height: 40px; padding: 0 16px; font-size: 15px; text-decoration: none; }
.adm-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.adm-row-wrap { display: flex; align-items: center; gap: 8px; }
.adm-row-wrap .adm-row { flex: 1; }

@media (max-width: 960px) {
  .toasts { right: 16px; left: 16px; bottom: calc(var(--px-nav-pad, 76px) + 16px + env(safe-area-inset-bottom)); width: auto; align-items: stretch; }
  .dc { height: calc(100dvh - 210px - env(safe-area-inset-bottom)); }
}
@media (max-width: 767px) {
  .wl-select { height: 60px; padding: 0 16px; }
  .wl-select select { font-size: 16px; }
  .wl-split { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.pf-sec .pf-btn.pf-btn-s { background: var(--blue); color: #fff; }
.pay-m img, .pay-head img, .wd-chip img { box-sizing: border-box; padding: 4px; border-radius: 10px; background: #fff; object-fit: contain; }
.wd-chip img { padding: 2px; border-radius: 6px; }

.deal-share { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--bg-soft); font-size: 13px; color: var(--muted); }
.deal-share b { color: var(--text); letter-spacing: 1px; }
.deal-share .btn { align-self: flex-start; }
.ch-av-user { display: block; width: 100%; height: 100%; }
.ch-av-user img, .ch-av-user svg { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.chat-top-link { margin-left: auto; flex: none; }
.chat-back { display: none; place-items: center; flex: none; width: 36px; height: 36px; margin-left: -6px; border-radius: 50%; color: var(--text); }
.chat-back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 960px) {
  .chat-main.dc { position: fixed; z-index: 60; inset: 0; height: var(--vvh, 100dvh); min-height: 0; border: 0; border-radius: 0; }
  .chat-main.dc .chat-back { display: grid; }
  .chat-main.dc .chat-input { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .chat-main.dc .chat-input textarea { min-height: 44px; border-radius: 22px; font-size: 16px; }
}
button.tu-promo { padding: 0; border: 0; background: none; font-family: inherit; font-weight: 400; cursor: pointer; }
.wl-promo { align-self: center; padding: 8px 12px; border: 0; border-radius: 10px; background: none; color: var(--blue); font: 600 16px/24px var(--font); cursor: pointer; transition: background .2s; }
.wl-promo:hover { background: color-mix(in srgb, var(--blue) 8%, transparent); }
.promo-input { text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.promo-input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
