/* Small extras on top of Tailwind */
.arb-card {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.02) inset;
}

/* Canonical thin scrollbar used by every in-page scroll container
   (tables, modals, dropdowns). Keep this the single source of truth —
   do not redefine per-page. */
.scroll-slim {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.06) transparent;
}
.scroll-slim::-webkit-scrollbar { width: 6px; height: 6px; }
.scroll-slim::-webkit-scrollbar-track { background: transparent; }
.scroll-slim::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}
.scroll-slim:hover { scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
.scroll-slim:hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); }

.no-page-scroll {
    overflow: hidden !important;
}

.toast-host {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 11000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(420px, calc(100vw - 24px));
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    border-radius: 14px;
    border: 1px solid rgb(63 63 70);
    background: rgba(9, 9, 11, 0.95);
    color: rgb(228 228 231);
    padding: 11px 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
    transform: translateY(8px);
    opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
}

.toast-show {
    transform: translateY(0);
    opacity: 1;
}

.toast-leave {
    transform: translateY(8px);
    opacity: 0;
}

.toast-success {
    border-color: rgba(16, 185, 129, 0.45);
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.55);
}

.toast-text {
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}

.toast-close {
    border: 0;
    background: transparent;
    color: rgb(161 161 170);
    cursor: pointer;
    line-height: 1;
    font-size: 18px;
    padding: 0;
}

.toggle-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

.toggle-ui {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgb(63 63 70);
    background: rgb(39 39 42);
    display: inline-block;
    position: relative;
    vertical-align: middle;
    transition: all .2s ease;
    cursor: pointer;
}

.toggle-ui::after {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgb(228 228 231);
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform .2s ease;
}

.toggle-input:checked + .toggle-ui {
    background: rgba(5, 150, 105, 0.9);
    border-color: rgba(52, 211, 153, 0.8);
}

.toggle-input:checked + .toggle-ui::after {
    transform: translateX(20px);
}
