/* Styles that only remote.html (the browser client of remote-v1) needs. */

body.remote-client {
    margin: 0;
}

.remote-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 6px 16px;
    padding-top: max(6px, env(safe-area-inset-top));
    border-bottom: 1px solid var(--et-border-strong);
    color: var(--et-text-primary);
    background: color-mix(in srgb, var(--et-base) 96%, transparent);
    backdrop-filter: blur(8px);
    font-size: 13px;
}

.remote-bar img {
    border-radius: 6px;
}

.remote-dot {
    width: 10px;
    height: 10px;
    flex: none;
    border-radius: 50%;
    background: var(--et-text-muted);
}

.remote-dot[data-state="open"] {
    background: var(--et-accent);
}

.remote-dot[data-state="connecting"] {
    background: var(--et-text-muted);
    animation: remote-pulse 1.2s ease-in-out infinite;
}

.remote-status {
    font-weight: 600;
}

.remote-host {
    min-width: 0;
    overflow: hidden;
    color: var(--et-text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes remote-pulse {
    50% { opacity: 0.35; }
}

.remote-message,
.remote-notice {
    position: fixed;
    z-index: 60;
    left: 50%;
    bottom: 24px;
    max-width: calc(100vw - 32px);
    margin: 0;
    padding: 10px 16px;
    border-radius: 8px;
    transform: translateX(-50%);
    color: var(--et-text-primary);
    background: var(--et-surface-17);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    font-size: 14px;
}

.remote-notice {
    top: 40%;
    bottom: auto;
    font-size: 16px;
    text-align: center;
}

.remote-overlay {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--et-text-primary);
    background: color-mix(in srgb, var(--et-base) 72%, transparent);
    backdrop-filter: blur(3px);
    font-size: 18px;
    text-align: center;
}

.remote-overlay[hidden],
.remote-message[hidden],
.remote-notice[hidden] {
    display: none;
}

/* Stored pipeline presets are the host's; the effect list's own preset tabs
   belong to the app's local storage and are not offered here. */
body.remote-client #systemPresetsTab,
body.remote-client #userPresetsTab {
    display: none;
}
