/* The desktop window's remote screen (RemoteScreen.tsx): one bar, then the picture, which takes all the rest. In full screen the picture is alone, edge to edge, and the bar slides in over it when the pointer comes to the top edge. */ @layer components { .remote-screen-page { flex: 1; min-height: 0; gap: 0; padding: 0; } .remote-screen { position: relative; display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; background: var(--plain); } .remote-screen-bar { position: relative; z-index: 3; display: flex; flex: none; align-items: center; gap: 12px; height: var(--toolbar, 46px); padding: 0 8px 0 max(10px, var(--titlebar-inset, 0px)); border-bottom: var(--hairline, 1px) solid var(--separator); background: var(--plain); } .remote-screen-title { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; color: var(--secondaryLabel); } .remote-screen-title > svg { flex: none; margin-left: 4px; } .remote-screen-title strong { min-width: 0; overflow: hidden; color: var(--label); font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; } .remote-screen-path { flex: none; color: var(--tertiaryLabel); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; } .remote-screen-path[data-path="relay"], .remote-screen-path[data-path="socket"] { color: var(--warning); } .remote-screen-actions { display: flex; flex: none; align-items: center; gap: 2px; } .remote-screen-actions > [data-button][aria-pressed="true"] { color: var(--label); } /* The picture: black around it, never resampled off the device-pixel grid (RemoteScreen snaps the box). */ .remote-screen-stage { position: relative; flex: 1; min-width: 0; min-height: 0; overflow: hidden; background: #000; outline: none; user-select: none; -webkit-user-select: none; } .remote-screen-picture { position: absolute; display: none; object-fit: fill; pointer-events: none; } .remote-screen-picture[data-on] { display: block; } .remote-screen[data-control] .remote-screen-stage { touch-action: none; } /* The computer's pointer, drawn where it is while this window isn't the one moving it. */ .remote-screen-cursor { position: absolute; top: 0; left: 0; z-index: 1; display: none; width: 14.5px; height: 20px; background: no-repeat 0 0 / 100% 100%; pointer-events: none; will-change: transform; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14.5 20'%3E%3Cpath d='M1.5 1.5v15l4-3.4 2.6 5.4 2.5-1.2-2.6-5.3 5-.6Z' fill='%23000' stroke='%23fff' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E"); } .remote-screen-cursor[data-on] { display: block; } /* Where the keys go while the stage has them: an input method composes here, invisibly. */ .remote-screen-keys { position: absolute; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; resize: none; pointer-events: none; caret-color: transparent; } .remote-screen-overlay { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; background: var(--plain); } .remote-screen-overlay > .screen-start { position: static; inset: auto; max-width: 440px; } .remote-screen-overlay .screen-start > svg { color: var(--tertiaryLabel); } .remote-screen-toast, .remote-screen-hint { position: absolute; left: 50%; z-index: 2; display: flex; align-items: center; gap: 8px; max-width: min(560px, calc(100% - 32px)); padding: 7px 12px; border-radius: var(--radius-card); transform: translateX(-50%); color: #fff; font-size: 13px; line-height: 18px; background: rgb(28 28 30 / .86); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 0 0 .5px rgb(255 255 255 / .12), 0 8px 24px -6px rgb(0 0 0 / .5); pointer-events: auto; } .remote-screen-toast { top: 14px; } .remote-screen-toast[data-tone="warning"] { align-items: flex-start; } .remote-screen-toast [data-button] { flex: none; border-color: rgb(255 255 255 / .25) !important; background: transparent !important; color: #fff !important; } .remote-screen-hint { bottom: 18px; color: rgb(255 255 255 / .9); pointer-events: none; animation: remote-screen-hint 3.2s ease-out forwards; } @keyframes remote-screen-hint { 0%, 70% { opacity: 1; } 100% { opacity: 0; } } /* The settings popover. */ .remote-screen-settings { gap: 14px; padding: 12px; } .remote-screen-settings h4 { margin: 0 0 6px; color: var(--secondaryLabel); font-size: 12px; font-weight: 500; } .remote-screen-settings p { margin: 6px 0 0; color: var(--tertiaryLabel); font-size: 12px; line-height: 16px; } .remote-screen-settings [role="radiogroup"]:not(.remote-screen-segments) { display: flex; flex-direction: column; gap: 1px; } .remote-screen-settings [role="radiogroup"]:not(.remote-screen-segments) > button { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 32px; padding: 0 8px; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--label); text-align: left; cursor: default; } .remote-screen-settings [role="radiogroup"]:not(.remote-screen-segments) > button:hover { background: var(--fill); } .remote-screen-settings [role="radiogroup"] > button > span { display: flex; align-items: baseline; gap: 8px; min-width: 0; } .remote-screen-settings [role="radiogroup"] > button b { font-size: 13px; font-weight: 500; } .remote-screen-settings [role="radiogroup"] > button small { overflow: hidden; color: var(--tertiaryLabel); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; } /* The app's segmented control: a recessed track, the chosen segment raised and lighter. */ .remote-screen-segments { display: flex; gap: 2px; padding: 2px; border-radius: var(--radius-card); background: var(--fill); } .remote-screen-segments > button { flex: 1; height: 24px; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--secondaryLabel); font-size: 13px; cursor: default; } .remote-screen-segments > button:hover:not([aria-checked="true"]) { color: var(--label); } .remote-screen-segments > button[aria-checked="true"] { background: var(--card); color: var(--label); font-weight: 500; box-shadow: 0 0 0 .5px var(--separatorStrong); } html[data-theme="dark"] .remote-screen-segments > button[aria-checked="true"] { background: color-mix(in oklab, var(--label) 14%, var(--plain)); } .remote-screen-stats { display: grid; gap: 4px; margin: 0; padding-top: 12px; border-top: var(--hairline, 1px) solid var(--separator); font-size: 12px; } .remote-screen-stats > div { display: flex; justify-content: space-between; gap: 12px; } .remote-screen-stats dt { color: var(--tertiaryLabel); } .remote-screen-stats dd { margin: 0; color: var(--secondaryLabel); font-variant-numeric: tabular-nums; text-align: right; } .remote-screen-shortcuts kbd { color: var(--tertiaryLabel); font-size: 11px; } /* A backtick is a speck at menu size: the key's own sign, drawn larger. */ .remote-screen-shortcuts kbd .remote-screen-grave { display: inline-block; font-size: 16px; font-weight: 600; line-height: 1; transform: translateY(1px); } /* Full screen: the picture alone, the bar over it on demand. */ .remote-screen-fullscreen { position: fixed; inset: 0; z-index: 60; background: #000; } /* Subtle center pull cue in the top bezel/notch zone; pointer-events stay off so status icons below remain clickable. */ .remote-screen-pull { position: absolute; top: 3px; left: 50%; z-index: 3; width: 38px; height: 4px; border-radius: 999px; transform: translateX(-50%); background: rgb(255 255 255 / .34); box-shadow: 0 1px 3px rgb(0 0 0 / .55); pointer-events: none; transition: opacity 160ms var(--ease-out, ease-out); } /* Over the picture, which is often black too: a lighter glass and a drawn edge keep it apart. */ .remote-screen-fullscreen > .remote-screen-bar { position: absolute; top: 8px; left: 50%; width: auto; max-width: calc(100% - 24px); height: 40px; padding: 0 6px 0 4px; border: 0; border-radius: var(--radius-card); transform: translateX(-50%); color: #fff; background: rgb(44 44 48 / .84); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16), 0 12px 32px -8px rgb(0 0 0 / .7); transition: transform 220ms var(--ease-out, ease-out), opacity 180ms var(--ease-out, ease-out); } /* The icon sits as far in from the left edge as the last button's pill does from the right. */ .remote-screen-fullscreen .remote-screen-title { padding-left: 2px; } .remote-screen-fullscreen .remote-screen-title > svg { margin-left: 6px; } .remote-screen-fullscreen > .remote-screen-bar[data-hidden]:not(:focus-within) { opacity: 0; transform: translate(-50%, -64px); pointer-events: none; } .remote-screen-fullscreen .remote-screen-title { flex: none; color: rgb(255 255 255 / .7); } .remote-screen-fullscreen .remote-screen-title strong { max-width: 240px; color: #fff; font-size: 13px; } .remote-screen-fullscreen .remote-screen-path { color: rgb(255 255 255 / .55); } .remote-screen-fullscreen > .remote-screen-stage { flex: 1; } .remote-screen-fullscreen .remote-screen-overlay { background: #000; color: rgb(255 255 255 / .8); } .remote-screen-fullscreen .remote-screen-toast { top: 58px; } @media (prefers-reduced-motion: reduce) { .remote-screen-fullscreen > .remote-screen-bar { transition: none; } .remote-screen-hint { animation: none; } } /* The full-screen bar is dark in either theme; !important beats Button's own `@layer utilities` (`text-secondary-foreground`, `bg-secondary`, `hover:text-foreground`) inside `@layer components`. */ .remote-screen-fullscreen .remote-screen-actions [data-button] { flex: none; color: rgb(255 255 255 / .82) !important; white-space: nowrap; } .remote-screen-fullscreen .remote-screen-actions [data-button]:is(:hover, [aria-expanded="true"]) { background: rgb(255 255 255 / .12) !important; color: #fff !important; } .remote-screen-fullscreen .remote-screen-actions [data-button][data-variant="secondary"] { background: rgb(255 255 255 / .16) !important; color: #fff !important; } .remote-screen-fullscreen .remote-screen-actions [data-button][data-variant="secondary"]:hover { background: rgb(255 255 255 / .22) !important; } }