:root {
    --bg-start: #0a0e1a;
    --bg-end: #1a1040;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --text-primary: #e8eaf0;
    --text-secondary: rgba(255, 255, 255, 0.55);
    --accent: #6c63ff;
    --accent-glow: rgba(108, 99, 255, 0.35);
    --danger: #ff4f6d;
    --success: #34d399;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    overflow: hidden;
    font-family: var(--font);
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
}

[hidden] { display: none !important; }

/* ── Login Screen ─────────────────────────────────────── */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 380px;
    padding: 36px 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), inset 0 1px 0 var(--glass-highlight);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-icon-wrap {
    display: inline-block;
    position: relative;
    cursor: default;
    margin-bottom: 0;
}
.login-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

/* Easter egg: triple-click the icon to reveal the GitHub link. */
.easter-tip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 14, 26, 0.92);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 5px 12px;
    white-space: nowrap;
    font-size: 0.70rem;
    color: var(--text-secondary);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    z-index: 10;
}
.easter-tip a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    pointer-events: all;
}
.easter-tip.visible {
    opacity: 1;
}
.easter-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(10, 14, 26, 0.92);
}

.login-header h1 {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.login-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ── Settings Gear ───────────────────────────────────── */
.btn-settings {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: 1px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-settings:hover {
    color: var(--text-primary);
    border-color: var(--glass-border);
    background: var(--glass-bg);
}
.btn-settings.active {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(108, 99, 255, 0.1);
}
.login-header {
    position: relative;
}

.settings-panel {
    margin-bottom: 20px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    animation: fadeSlideIn 0.2s ease;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.settings-row label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.settings-row select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--glass-bg);
    /* on-theme chevron (accent-tinted), drawn via SVG data URI */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a9a6ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 7px 34px 7px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    min-width: 116px;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.settings-row select:hover {
    border-color: var(--glass-highlight);
    background-color: rgba(255, 255, 255, 0.09);
}
.settings-row select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
/* The native option popup can't inherit the glass/transparent background, so
   set a solid on-theme dark fill — otherwise it renders light-on-light and the
   options are barely readable. */
.settings-row select option {
    background: #141023;
    color: var(--text-primary);
}
.settings-row + .settings-row {
    margin-top: 10px;
}
.settings-note {
    margin: 8px 0 0;
    font-size: 0.72rem;
    line-height: 1.3;
    color: var(--text-secondary);
    opacity: 0.7;
}
.settings-row input[type="checkbox"]:disabled + * ,
.settings-row input[type="checkbox"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.settings-advanced {
    margin-top: 12px;
    border-top: 1px solid var(--glass-border);
    padding-top: 10px;
}
.settings-advanced summary {
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.settings-advanced summary:hover { color: var(--text-primary); }
.settings-advanced .settings-row { margin-top: 10px; }
.settings-row select option:disabled {
    color: rgba(255, 255, 255, 0.3);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder {
    color: rgba(255,255,255,0.2);
}

/* RemoteApp picker — match the text inputs' geometry, with the accent chevron
   and dark option list from .settings-row select (native chrome removed). */
.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 10px 36px 10px 14px;
    background-color: rgba(255,255,255,0.05);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a9a6ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group select option {
    background: #141023;
    color: var(--text-primary);
}

/* free-text path field reveals below the picker on "Custom path…" */
#rail-app-custom {
    margin-top: 8px;
}

.form-row {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent);
    width: 15px;
    height: 15px;
}

.btn-connect {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    position: relative;
}

.btn-connect:hover {
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-connect:active {
    transform: scale(0.98);
}

.btn-connect:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.login-error {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255,79,109,0.12);
    border: 1px solid rgba(255,79,109,0.25);
    color: var(--danger);
    font-size: 0.82rem;
}

/* ── Canvas ────────────────────────────────────────────── */
.canvas-container {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.canvas-container canvas {
    cursor: none;
    image-rendering: auto;
}

/* ── RemoteApp (RAIL) window host ──────────────────────── */
/* Sized to the negotiated desktop; windows are absolutely positioned within it
   at server coordinates (via transform on .rail-window). */
.rail-desktop {
    position: relative;
    overflow: hidden;
}

.rail-window {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
}

.rail-window canvas {
    display: block;
}

/* ── RemoteApp taskbar (auto-hide, bottom) ─────────────── */
.rail-taskbar-zone {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    z-index: 3999; /* above RAIL windows (1000+n), below top chrome (5000) */
}
.rail-taskbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 8px;
    background: rgba(18, 16, 34, 0.92);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    transform: translateY(100%);
    transition: transform 0.2s ease;
    z-index: 4000;
}
.rail-taskbar.visible {
    transform: translateY(0);
}
.rail-launcher {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}
.rail-launcher:hover {
    filter: brightness(1.1);
}
.rail-taskbar-items {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    flex: 1 1 auto;
}
.rail-task-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 200px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}
.rail-task-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}
.rail-task-btn.active {
    border-color: var(--accent);
    background: rgba(124, 109, 255, 0.18);
}
.rail-task-btn.minimized {
    opacity: 0.55;
}
.rail-task-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    object-fit: contain;
}
.rail-task-label {
    overflow: hidden;
    text-overflow: ellipsis;
}
.rail-launcher-menu {
    position: fixed;
    left: 8px;
    bottom: 52px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 180px;
    padding: 6px;
    background: rgba(18, 16, 34, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    z-index: 4001;
}
.rail-launcher-item {
    text-align: left;
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.82rem;
    cursor: pointer;
}
.rail-launcher-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ── Transient toast ───────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    max-width: 90vw;
    padding: 12px 18px;
    background: rgba(20, 20, 22, 0.95);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    font-size: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* ── Toolbar ───────────────────────────────────────────── */
.toolbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    z-index: 5000; /* above RAIL windows (1000+n) */
    transition: transform 0.25s ease;
    padding-top: 4px;
}

.toolbar.visible {
    transform: translateX(-50%) translateY(0);
}

/* Dragged away from the top centre: position comes from inline left/top, so the
   centring transform must go. Sliding up to hide makes no sense once the bar is
   somewhere else, so it fades instead. */
.toolbar.moved {
    left: 0;
    transform: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.toolbar.moved.visible {
    opacity: 1;
    pointer-events: auto;
}

.toolbar.dragging,
.toolbar.dragging .toolbar-inner {
    transition: none;
}

.toolbar-grip {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    opacity: 0.45;
    cursor: grab;
    touch-action: none;       /* we handle the drag; stop the browser panning */
    margin-right: -4px;
}

.toolbar-grip:hover {
    opacity: 0.9;
}

.toolbar.dragging .toolbar-grip {
    cursor: grabbing;
}

.toolbar-btn[aria-pressed="true"] {
    background: var(--accent-glow);
    color: #c4bfff;
    border-color: rgba(124, 108, 255, 0.4);
}

.toolbar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-group + .toolbar-group {
    border-left: 1px solid var(--glass-border);
    padding-left: 12px;
}

.badge {
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    color: var(--text-secondary);
    white-space: nowrap;
    user-select: none;
}

.badge-accent {
    background: var(--accent-glow);
    color: #c4bfff;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.toolbar-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    border-color: var(--glass-border);
}

.toolbar-btn svg {
    flex-shrink: 0;
}

.toolbar-btn-danger:hover {
    background: rgba(255,79,109,0.15);
    color: var(--danger);
    border-color: rgba(255,79,109,0.3);
}

/* ── One-time toolbar hint ──────────────────────────────── */
.toolbar-hint {
    position: fixed;
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5001; /* just above the toolbar it points at */
    max-width: min(420px, 92vw);
    padding: 14px 16px 12px;
    background: rgba(10, 14, 26, 0.94);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.55);
    color: var(--text-primary);
    font-size: 0.8rem;
    line-height: 1.5;
}

.toolbar-hint[hidden] { display: none; }

.toolbar-hint-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.toolbar-hint-list {
    margin: 0 0 12px;
    padding-left: 18px;
    color: var(--text-secondary);
}

.toolbar-hint-list li + li {
    margin-top: 4px;
}

.toolbar-hint kbd {
    display: inline-block;
    padding: 1px 5px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    font-family: var(--font);
    font-size: 0.7rem;
    color: var(--text-primary);
}

.toolbar-hint-dismiss {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.toolbar-hint-dismiss:hover {
    filter: brightness(1.1);
}

/* Fullscreen-shortcuts hint reuses .toolbar-hint's look but sits bottom-centre
   instead of top-centre — pre-connect fullscreen can land both hints on
   screen in the same instant, and they must not overlap. */
.fullscreen-hint {
    top: auto;
    bottom: 24px;
}

/* ── Toolbar hover zone ─────────────────────────────────── */
.toolbar-hover-zone {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    z-index: 4999; /* above RAIL windows, just under the toolbar itself */
}

/* ── Reconnection Overlay ──────────────────────────────── */
.reconnect-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 5000; /* must cover stale RAIL windows during reconnect backoff */
}

.reconnect-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 48px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    text-align: center;
}

.reconnect-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.reconnect-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.reconnect-status {
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-cancel-reconnect {
    margin-top: 4px;
    padding: 8px 24px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel-reconnect:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: rgba(255, 79, 109, 0.1);
}

/* ── Performance HUD ──────────────────────────────────── */
/* Session chrome sits above RAIL windows (z-index 1000+n). */
.perf-hud {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5000;
    min-width: 200px;
    padding: 14px 18px;
    background: rgba(10, 14, 26, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', monospace;
    animation: hudFadeIn 0.25s ease-out;
}

@keyframes hudFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.perf-hud-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.perf-hud-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.perf-hud-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 1;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.perf-hud-close:hover {
    color: var(--danger);
    background: rgba(255, 79, 109, 0.15);
}

.perf-hud-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    align-items: baseline;
}

.perf-hud-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.perf-hud-value {
    font-size: 0.72rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    text-align: right;
}

.badge-clickable {
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.badge-clickable:hover {
    background: var(--accent-glow);
    color: #c4bfff;
}

/* ── Remote file download notification ──────────────────── */
.rdp-file-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(10, 14, 26, 0.92);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    color: var(--text-primary);
    font-size: 13px;
    z-index: 200;
}

.rdp-file-toast[hidden] { display: none; }

.rdp-file-toast-dl {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-family: var(--font);
    cursor: pointer;
    transition: background 0.15s;
}

.rdp-file-toast-dl:hover { background: #5550d6; }

.rdp-file-toast-dismiss {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 2px 4px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
}

.rdp-file-toast-dismiss:hover { color: var(--text-primary); }

/* ── App version watermark (login page, bottom-right) ───── */
.app-version {
    position: fixed;
    bottom: 12px;
    right: 16px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.22);
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.03em;
}
