:root {
    --bg: #1a1520;
    --panel: #221c2c;
    --panel-border: #3a3048;
    --text: #d5d0dc;
    --muted: #8a8292;
    --link: #c49dd4;
    --accent: #e86050;
    --header-bg: #0e0a14;
    --header-text: #e8e0f0;
    --drop-border: #7a58a0;
    --drop-active: #c49dd4;
    --code-bg: #2a2040;
    --code-text: #c8a8e8;
    --font: "Verdana", "Geneva", sans-serif;
    --font-heading: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: "Monaco", "Menlo", "Consolas", monospace;
    --content-width: 720px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.main-header {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 2rem 1.5rem;
    border-bottom: 3px solid var(--drop-border);
    margin-bottom: 2.5rem;
}

.header-content {
    max-width: var(--content-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
}

.main-header h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 1.4rem;
}
.main-header h1 .header-icon {
    height: 3.2em;
    width: auto;
    display: block;
}
.main-header h1 .home-link,
.main-header h1 .title-link {
    color: var(--header-text);
    text-decoration: none;
}
.main-header h1 .home-link:hover,
.main-header h1 .title-link:hover {
    color: var(--link);
    text-decoration: underline;
}
.main-header h1 .home-sep {
    color: var(--muted);
    font-weight: 400;
    margin: 0 0.25rem;
}

.main-header .sub {
    color: var(--muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

main {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

/* Three-panel portal layout */
main.portal {
    max-width: 1280px;
    padding: 0 1.5rem 4rem;
}
.upload-area {
    max-width: 720px;
    margin: 0 auto 2rem;
}
.three-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 1.2rem;
    align-items: start;
}
@media (max-width: 980px) {
    .three-panel { grid-template-columns: 1fr 1fr; }
    .panel-folders { grid-column: span 2; order: -1; }
}
@media (max-width: 640px) {
    .three-panel { grid-template-columns: 1fr; }
    .panel-folders { grid-column: span 1; }
}

.panel {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0.85rem 0.9rem 1rem;
    min-width: 0;
}
.panel h3 {
    margin: 0 0 0.7rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--panel-border);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--header-text);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.panel h3 .panel-link {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: normal;
    text-align: right;
}
.panel h3 a.panel-link:hover { color: var(--link); }

/* Image grid inside side panels */
.panel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}
.panel-grid a {
    display: block;
    aspect-ratio: 1;
    background: #0e0a14;
    border: 1px solid var(--panel-border);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.panel-grid a:hover { border-color: var(--drop-active); }
.panel-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* File list inside side panels */
.panel-files {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.panel-files li {
    background: var(--bg);
    border: 1px solid var(--panel-border);
    border-radius: 4px;
}
.panel-files li:hover { border-color: var(--drop-active); }
.panel-files a {
    display: block;
    padding: 0.4rem 0.55rem;
    color: var(--text);
}
.panel-files a:hover { text-decoration: none; }
.panel-files .file-name {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--link);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.panel-files .file-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: 0.1rem;
}

/* Folder tree */
.folder-tree {
    min-height: 80px;
}
.tree-help {
    margin: -0.4rem 0 0.7rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-family: var(--font-mono);
}
.tree-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.tree-node { grid-column: span 1; min-width: 0; }
.tree-node.expanded { grid-column: 1 / -1; }

.tree-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    padding: 0.55rem 0.4rem 0.45rem;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
    user-select: none;
    text-align: center;
    min-width: 0;
}
.tree-card:hover {
    border-color: var(--drop-active);
    background: var(--panel);
}
.tree-node.expanded > .tree-card {
    border-color: var(--drop-active);
    background: var(--panel);
}
.tree-card-icon {
    font-size: 1.7rem;
    line-height: 1;
    margin-bottom: 0.25rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/10;
    background: transparent;
    border-radius: 4px;
    overflow: hidden;
}
.tree-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0e0a14;
}
.tree-card-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}
.tree-card-meta {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--muted);
    margin-top: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.tree-file-card .tree-card-name { color: var(--link); }
.tree-folder-card .tree-card-name { color: var(--header-text); }

.tree-expanded {
    grid-column: 1 / -1;
    margin: 0.4rem 0 0.6rem;
    padding: 0.55rem;
    background: rgba(14, 10, 20, 0.55);
    border: 1px dashed var(--panel-border);
    border-radius: 6px;
}
.tree-expanded .tree-grid:last-child { margin-bottom: 0; }

.sidebar h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--header-text);
    margin: 0 0 0.7rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.sidebar h3 .sidebar-link {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: normal;
}
.sidebar h3 .sidebar-link:hover { color: var(--link); }

.cross-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}
.cross-grid a {
    display: block;
    aspect-ratio: 1;
    background: #0e0a14;
    border: 1px solid var(--panel-border);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.cross-grid a:hover { border-color: var(--drop-active); }
.cross-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cross-files {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.cross-files li {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 4px;
}
.cross-files li:hover { border-color: var(--drop-active); }
.cross-files a {
    display: block;
    padding: 0.4rem 0.55rem;
    color: var(--text);
}
.cross-files a:hover { text-decoration: none; }
.cross-files .file-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--link);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cross-files .file-meta {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--muted);
    margin-top: 0.1rem;
}

.empty.small { font-size: 0.85rem; }

/* Folder input row */
.folder-row {
    margin-top: 0.9rem;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0.8rem 1rem;
}
.folder-row .folder-label {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    font-family: var(--font-mono);
}
.folder-row .folder-hint {
    color: var(--muted);
    font-size: 0.75rem;
    margin-left: 0.3rem;
}
.folder-row .folder-hint code {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 0.05rem 0.3rem;
    border-radius: 3px;
    font-size: 0.85em;
}
.folder-row input[type=text] {
    width: 100%;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--panel-border);
    border-radius: 5px;
    padding: 0.5rem 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}
.folder-row input[type=text]:focus {
    outline: none;
    border-color: var(--drop-active);
}

/* Public folder listing page */
.crumbs {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0 0 1.2rem;
    overflow-wrap: anywhere;
}
.crumbs a {
    color: var(--link);
}
.crumbs .crumb-sep {
    color: var(--muted);
    margin: 0 0.3rem;
}
.crumbs .crumb-root {
    color: var(--muted);
}
.folder-section {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--header-text);
    margin: 1.5rem 0 0.6rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--panel-border);
}
.folder-section:first-child { margin-top: 0; }
.folder-card .folder-icon {
    font-size: 2.6rem;
    color: var(--muted);
}
.folder-card.subfolder .folder-card-name { color: var(--header-text); }

/* PDF / image preview in a folder card */
.folder-card.has-preview .folder-card-media {
    background: #fff;
    padding: 0;
}
.folder-card.has-preview .folder-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* Text snippet preview */
.folder-card.text-preview .folder-card-media {
    background: var(--code-bg);
    align-items: stretch;
    justify-content: stretch;
}
.folder-card.text-preview .text-snippet {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0.5rem 0.55rem;
    overflow: hidden;
    color: var(--code-text);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    line-height: 1.25;
    white-space: pre-wrap;
    word-break: break-word;
    text-align: left;
}

/* Owner-mode controls on /g/<folder>/ */
.owner-badge {
    color: var(--good, #7ad79c);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    padding: 0.1rem 0.35rem;
    border: 1px solid currentColor;
    border-radius: 3px;
    font-family: var(--font-mono);
}

.folder-card-wrap { position: relative; }
.folder-card-wrap.selected .folder-card {
    border-color: var(--drop-active);
    box-shadow: 0 0 0 2px var(--drop-active) inset;
}
.select-box {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    background: rgba(14, 10, 20, 0.7);
    border: 1px solid var(--panel-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.12s;
    z-index: 2;
}
body.owner-mode .folder-card-wrap:hover .select-box,
body.owner-mode .folder-card-wrap.selected .select-box {
    opacity: 1;
}
.select-box input[type=checkbox] {
    accent-color: var(--drop-active);
    cursor: pointer;
    margin: 0;
}

.action-bar {
    position: fixed;
    left: 50%;
    bottom: 1.6rem;
    transform: translateX(-50%);
    background: var(--header-bg);
    border: 1px solid var(--drop-border);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    z-index: 50;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.action-bar .action-count {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    margin-right: 0.4rem;
}
.action-bar button {
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--panel-border);
    border-radius: 5px;
    padding: 0.35rem 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
}
.action-bar button:not(:disabled):hover {
    border-color: var(--drop-active);
    background: var(--bg);
}
.action-bar button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.action-bar #btnDelete:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.drop-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 10, 20, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s;
}
.drop-overlay.show { opacity: 1; }
.drop-overlay-msg {
    border: 3px dashed var(--drop-active);
    border-radius: 12px;
    padding: 2rem 3rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--header-text);
    background: var(--bg);
}
.drop-overlay-msg code {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.toast.err {
    border-color: var(--accent);
    color: var(--accent);
}

.folder-toolbar {
    margin: 0 0 1.2rem;
    display: flex;
    gap: 0.5rem;
}
.folder-toolbar button {
    background: var(--panel);
    color: var(--link);
    border: 1px solid var(--drop-border);
    border-radius: 5px;
    padding: 0.4rem 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
}
.folder-toolbar button:hover {
    background: var(--bg);
    border-color: var(--drop-active);
    color: var(--header-text);
}

/* SVG icons used in place of emoji glyphs */
img.icon-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    display: block;
}
/* In the tree-card icon slot, scale down so the SVG sits comfortably in the
   16:10 aspect-ratio box instead of touching the edges. */
.tree-card-icon img.icon-svg {
    width: 70%;
    height: 70%;
    margin: 0 auto;
}
/* In the folder-card media slot (square), match emoji visual weight. */
.folder-card-media .file-icon img.icon-svg,
.folder-card-media .folder-icon img.icon-svg {
    width: 60%;
    height: 60%;
}
/* In the all-list 64x64 slot, fill with padding. */
.all-list .file-icon img.icon-svg {
    width: 70%;
    height: 70%;
    margin: auto;
}
.all-list .file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.9rem;
}
.folder-card {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s;
    color: var(--text);
}
.folder-card:hover { border-color: var(--drop-active); text-decoration: none; }
.folder-card-media {
    aspect-ratio: 1;
    background: #0e0a14;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.folder-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.folder-card .file-icon {
    font-size: 2.6rem;
    color: var(--muted);
}
.folder-card-meta {
    padding: 0.45rem 0.6rem 0.55rem;
}
.folder-card-name {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--link);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.folder-card-sub {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: 0.1rem;
}

.dropzone {
    display: block;
    border: 2px dashed var(--drop-border);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: var(--panel);
    transition: border-color 0.15s, background 0.15s;
    cursor: pointer;
}
.dropzone.active {
    border-color: var(--drop-active);
    background: #2a2040;
}
.dropzone p { margin: 0.4rem 0; }
.dropzone .big {
    font-size: 1.1rem;
    color: var(--header-text);
}
.dropzone .small {
    color: var(--muted);
    font-size: 0.85rem;
}
.dropzone kbd {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85em;
}
.dropzone input[type=file] { display: none; }
.dropzone .browse-btn {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 0.45rem 1rem;
    background: var(--drop-border);
    color: var(--header-text);
    border-radius: 6px;
    border: none;
    font-family: inherit;
    cursor: pointer;
    font-size: 0.95rem;
}
.dropzone .browse-btn:hover { background: var(--drop-active); color: var(--header-bg); }

.status {
    margin: 1rem 0;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    background: var(--panel);
    border-left: 3px solid var(--drop-border);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--muted);
    display: none;
}
.status.show { display: block; }
.status.err { border-left-color: var(--accent); color: var(--accent); }

.results {
    margin-top: 1.5rem;
    display: none;
}
.results.show { display: block; }
.results h3 {
    margin: 0 0 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--header-text);
}
.results ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.results li {
    padding: 0.4rem 0.6rem;
    background: var(--panel);
    border-radius: 4px;
    margin-bottom: 0.3rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    word-break: break-all;
}
.results li a { color: var(--link); }
.results textarea {
    width: 100%;
    min-height: 100px;
    background: var(--code-bg);
    color: var(--code-text);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    padding: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    resize: vertical;
}
.copy-btn {
    margin-top: 0.4rem;
    padding: 0.35rem 0.8rem;
    background: var(--drop-border);
    color: var(--header-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
}
.copy-btn:hover { background: var(--drop-active); color: var(--header-bg); }

.history {
    margin-top: 3rem;
}
.history h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--header-text);
    margin: 0 0 1rem;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 0.5rem;
}
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
}
.history-grid a {
    display: block;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    padding: 0.4rem;
    overflow: hidden;
    transition: border-color 0.15s;
}
.history-grid a:hover { border-color: var(--drop-active); text-decoration: none; }
.history-grid img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    background: #0e0a14;
}
.history-grid .meta {
    margin-top: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty {
    color: var(--muted);
    font-style: italic;
    padding: 1rem 0;
}

.view-all {
    text-align: center;
    margin-top: 1.5rem;
}
.view-all a {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--drop-border);
    border-radius: 6px;
    color: var(--link);
}
.view-all a:hover { background: var(--panel); text-decoration: none; }

.all-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.all-list li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.6rem 0.7rem;
    border-bottom: 1px solid var(--panel-border);
}
.all-list img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    background: #0e0a14;
    border-radius: 4px;
}
.all-list .info {
    flex: 1;
    min-width: 0;
}
.all-list .name {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.all-list .small {
    color: var(--muted);
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

.back {
    margin-bottom: 1.5rem;
    display: inline-block;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.file-list li {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    transition: border-color 0.15s, background 0.15s;
}
.file-list li:hover { border-color: var(--drop-active); }
.file-list a {
    display: block;
    padding: 0.6rem 0.8rem;
    color: var(--text);
}
.file-list a:hover { text-decoration: none; }
.file-list .file-name {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
    color: var(--link);
}
.file-list .file-meta {
    margin-top: 0.15rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
}

.all-list .file-icon {
    width: 64px;
    height: 64px;
    background: #0e0a14;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--muted);
}
.all-list .name a.file-copy { cursor: pointer; }

.toast {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%) translateY(20px);
    background: var(--header-bg);
    color: var(--header-text);
    border: 1px solid var(--drop-border);
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    max-width: 80vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 100;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
