/* Tharsol Connect: the background uploads' tray (js/chat-uploads.js), bottom-left on every page of the tab while chat
   files are going up: "Uploading 1 file · 42%"; a click opens the conversation. Namespaced .tw-upl-*. */
.tw-upl-tray {
    position: fixed;
    left: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: min(320px, calc(100vw - 32px));
    padding: 8px 14px 9px 12px;
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    color: var(--accent);
    font: 600 13px/1.2 var(--font-sans, system-ui, sans-serif);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
    overflow: hidden;
    cursor: pointer;
}

    .tw-upl-tray:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }

    .tw-upl-tray.bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: color-mix(in srgb, var(--danger) 9%, var(--surface)); }

.tw-upl-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: currentColor; opacity: .7; transition: width .3s; }

.tw-upl-ic { font-size: 14px; }

.tw-upl-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

/* Phones: above the bottom tab bar. */
@media (max-width: 720px) {
    .tw-upl-tray { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); left: 12px; }
}
