
/* ---------- Uçan bildirim (toast) ---------- */
.ch-toasts { position: fixed; right: 18px; top: calc(var(--ch-top-h, 64px) + 12px); z-index: 5200; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.ch-toast { position: relative; overflow: hidden; display: grid; grid-template-columns: 38px minmax(0, 1fr) 30px; align-items: center; gap: 10px; padding: 12px 12px 14px; background: #fff; border: 2px solid var(--ch-hard-ink, #0f172a); border-radius: 14px; box-shadow: 5px 5px 0 0 var(--ch-hard-ink, #0f172a); pointer-events: auto; opacity: 0; transform: translateX(18px); transition: opacity .2s ease, transform .2s ease; }
.ch-toast.is-in { opacity: 1; transform: none; }
.ch-toast.is-out { opacity: 0; transform: translateX(18px); }
.ch-toast__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--ch-blue-soft, #eaf2ff); color: var(--ch-blue, #004d9f); font-size: 1rem; }
.ch-toast.is-ok .ch-toast__icon { background: #ecfdf3; color: #15803d; }
.ch-toast.is-bad .ch-toast__icon { background: #fff1f0; color: #be123c; }
.ch-toast.is-warn .ch-toast__icon { background: #fff7e6; color: #b45309; }
.ch-toast__text { min-width: 0; font-weight: 700; font-size: .9rem; line-height: 1.35; color: var(--ch-hard-ink, #0f172a); overflow-wrap: anywhere; }
.ch-toast__close { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--ch-muted, #64748b); }
.ch-toast__close:hover { background: var(--ch-bg, #f4f7fb); color: var(--ch-hard-ink, #0f172a); }
.ch-toast__bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; transform-origin: left; background: var(--ch-citron, #d9f24a); animation: chToastBar linear forwards; }
.ch-toast.is-ok .ch-toast__bar { background: #22c55e; }
.ch-toast.is-bad .ch-toast__bar { background: #f43f5e; }
.ch-toast.is-warn .ch-toast__bar { background: var(--ch-orange, #ff6b35); }
.ch-toast.is-held .ch-toast__bar { animation-play-state: paused; }
@keyframes chToastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 620px) {
    .ch-toasts { right: 10px; left: 10px; width: auto; top: calc(var(--ch-top-h, 58px) + 8px); }
    .ch-toast { box-shadow: 3px 3px 0 0 var(--ch-hard-ink, #0f172a); }
}
@media (prefers-reduced-motion: reduce) {
    .ch-toast { transition: none; }
    .ch-toast__bar { animation: none; }
}
.ch-js [data-ch-toast], .ch-js .acc-alert { display: none !important; }

/* ---------- "Ana ekrana ekle" şeridi ---------- */
.ch-install { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 5150; display: flex; align-items: center; gap: 12px; max-width: 460px; margin: 0 auto; padding: 12px; background: #fff; border: 2px solid var(--ch-hard-ink, #0d0f12); border-radius: 16px; box-shadow: 5px 5px 0 var(--ch-hard-ink, #0d0f12); opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.ch-install.is-in { opacity: 1; transform: none; }
.ch-install__icon img { display: block; width: 34px; height: 34px; border-radius: 9px; }
.ch-install__text { flex: 1; min-width: 0; }
.ch-install__text strong { display: block; font-size: .9rem; font-weight: 800; color: var(--ch-hard-ink, #0d0f12); }
.ch-install__text small { display: block; font-size: .78rem; color: var(--ch-muted, #64748b); }
.ch-install__add { flex: 0 0 auto; min-height: 38px; padding: 0 16px; border: 2px solid var(--ch-hard-ink, #0d0f12); border-radius: 11px; background: var(--ch-orange, #ff6b35); color: #fff; font-weight: 800; box-shadow: 2px 2px 0 var(--ch-hard-ink, #0d0f12); }
.ch-install__close { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--ch-muted, #64748b); }
.ch-install__close:hover { background: var(--ch-bg, #f4f7fb); color: var(--ch-hard-ink, #0d0f12); }
@media (max-width: 620px) { .ch-install { bottom: 78px; } }
/* hidden özniteliği display kuralları tarafından ezilmesin. */
[hidden] { display: none !important; }

/* ---------- Çevrimdışı şeridi ve bekleyen işaretleme ---------- */
.ch-offline-bar { position: fixed; left: 50%; top: calc(var(--ch-top-h, 64px) + 8px); translate: -50% 0; z-index: 5250; display: flex; align-items: center; gap: 10px; max-width: min(92vw, 560px); padding: 9px 16px; background: var(--ch-hard-ink, #0d0f12); color: #fff; border-radius: 999px; font-size: .84rem; font-weight: 700; box-shadow: 0 8px 24px rgba(13, 15, 18, .25); }
.ch-offline-bar i { color: var(--ch-citron, #ccff00); }
.ch-queued { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: #fff7e6; color: #b45309; font-size: .72rem; font-weight: 800; }
form.is-queued { opacity: .75; }
