All your computers and your phone/iPhone, working as one desk. Screens, apps, files, clipboard, calls, texts, notifications, mouse and keyboard, shared between Mac, Windows, Linux , Android, Web and ios / ipados . Free and open source. No account, no cloud, and no shared network needed.
JavaScript androidapple-ecosystemconnectelectronfile-sharingintel-unison-alternativeiosios-windowskde-connect-alternativekvmlinuxmacbookmacosmouse-sharingphone-link-alternativeproductivityscreen-sharingsidecar-alternativesynergy-alternativewindows
/* TwinDesk — Copyright (C) 2026 inukaasith. GPL-3.0, see LICENSE. */
/* shared/ui-look.js: the section list beside a long page, the accent swatches. Each app's own variables. */
.sections { display: flex; align-items: flex-start; gap: 22px; }
.sec-nav { position: sticky; top: 16px; width: 168px; flex: none; display: flex; flex-direction: column; gap: 2px; padding-top: 22px; }
.sec-body { flex: 1; min-width: 0; }
.sec-link {
height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: none; text-align: left; color: var(--muted);
cursor: default; outline: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none;
}
.sec-link[hidden] { display: none; }
.sec-link:hover { background: var(--nav-hover); color: var(--text); }
.sec-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.sec-link:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 760px) { .sec-nav { display: none; } }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: 400px; }
.swatch {
width: 20px; height: 20px; border-radius: 50%; border: 0; padding: 0; background: var(--sw); cursor: default; outline: none;
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); position: relative;
}
/* System: the system's colour, marked with a ring of its own */
.swatch.sys { background: conic-gradient(var(--sw) 0 50%, color-mix(in srgb, var(--sw) 45%, #fff) 50% 100%); }
.swatch.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--sw); }
.swatch:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent-soft); }
/* UI.renderPcs: paired computers nearby in the sidebar, as the phones above them */
#pcs { display: flex; flex-direction: column; gap: 6px; margin: -6px 0 12px; }
#pcs:empty { display: none; }
.pc-wall { width: 26px; height: 46px; flex: none; display: grid; place-items: center; }
.pc-wall .os-ico { transform: scale(0.9); }
/* A page in sections (General): its title stays while the sections scroll under it, the section
list just below it. The title's background is the page's, so the cards pass under it cleanly. */
.page:has(.sections) .page-head { position: sticky; top: 0; z-index: 4; background: var(--content); }
.page:has(.sections) .sec-nav { top: 84px; }
/* General › Modules: a module switched since TwinDesk started, beside its switch */
.mod-restart { color: var(--bad); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
/* Share <folder>: the pop-up the file manager's Share folder opens (shared/ui-drive.js) */
.sf-dialog { padding: 0; border: 0; background: transparent; max-width: calc(100vw - 32px); overflow: visible; }
.sf-dialog[open] { position: fixed; inset: 0; margin: auto; width: min(460px, calc(100vw - 32px)); height: fit-content; } /* a set width: fit-content left the sheet (100% of it) wider than the box, spilling right */ /* centred in the window, whatever the page's dialog styles */
.sf-dialog::backdrop { background: rgba(0, 0, 0, 0.4); }
.sf-sheet { width: 100%; box-sizing: border-box; max-height: calc(100vh - 32px); overflow: auto; border-radius: 14px; padding: 20px; background: #ffffff; color: #1d1d1f; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); }
@media (prefers-color-scheme: dark) { .sf-sheet { background: #2a2a2c; color: #f5f5f7; } }
.sf-list { display: flex; flex-direction: column; gap: 8px; padding: 8px 12px 12px; }
.sf-empty { color: var(--muted, #888); padding: 10px 4px; }
.sf-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(127, 127, 127, 0.07); border: 1px solid transparent; }
.sf-item.sel { border-color: var(--accent, #0a84ff); }
.sf-tile { width: 44px; height: 36px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; background: #6ac4f5; color: #fff; }
.sf-tile svg { width: 22px; height: 22px; }
.sf-tile svg, .sf-tile svg * { fill: #fff; stroke: none; }
.sf-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sf-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.sf-title b { font-weight: 600; white-space: nowrap; }
.sf-path { color: var(--muted, #888); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sf-chip { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft, rgba(10, 132, 255, 0.15)); color: var(--accent, #0a84ff); }
.sf-chip.muted { background: rgba(127, 127, 127, 0.15); color: var(--muted, #888); }
.sf-chip.invite { background: rgba(255, 159, 10, 0.18); color: #ff9f0a; }
.sf-label { font-size: 12px; color: var(--muted, #888); margin-right: 2px; }
.sf-state { font-size: 12px; color: var(--muted, #888); }
.sf-editor h2 { margin: 0 0 4px; font-size: 17px; }
.sf-where { color: var(--muted, #888); font-size: 12px; margin-bottom: 14px; word-break: break-all; }
.sf-all { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(127, 127, 127, 0.1); cursor: pointer; }
.sf-all span { display: flex; flex-direction: column; }
.sf-all small { color: var(--muted, #888); font-size: 11px; }
.sf-devs { display: flex; flex-direction: column; margin: 6px 0 4px; }
.sf-dev { display: flex; align-items: center; gap: 12px; padding: 9px 12px; cursor: pointer; }
.sf-dev-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-dev-os { color: var(--muted, #888); font-size: 12px; }
.sf-editor input[type=checkbox]:not(.switch) { width: 18px; height: 18px; accent-color: var(--accent, #0a84ff); margin: 0; flex: none; }
.sf-foot { display: flex; gap: 8px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(127, 127, 127, 0.2); }
.sf-grow { flex: 1; }
/* Share screen › the sharing map (shared/ui-sharemap.js) */
.sm { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.sm-body { display: flex; gap: 16px; align-items: stretch; flex-wrap: wrap; }
.sm-side { flex: 1 1 280px; min-width: 220px; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(127, 127, 127, 0.07); }
.sm-side-title { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted, #888); }
.sm-tip { font-size: 12px; color: var(--muted, #888); }
.sm-tile { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 10px; border-radius: 12px; border: 1.5px solid transparent; background: var(--card, rgba(127, 127, 127, 0.1)); color: inherit; font: inherit; cursor: grab; }
.sm-tile:active { cursor: grabbing; }
.sm-tile .sm-screen { display: flex; align-items: center; justify-content: center; height: 64px; border-radius: 8px; background: rgba(127, 127, 127, 0.16); }
.sm-tile.picked .sm-screen { background: var(--accent-soft, rgba(10, 132, 255, 0.18)); color: var(--accent, #0a84ff); }
.sm-tile.picked { border-color: var(--accent, #0a84ff); } /* picked to place with a click */
.sm-tile.virtual { border-style: dashed; border-color: rgba(127, 127, 127, 0.35); }
.sm-tile.on:not(.picked) { border-color: rgba(52, 199, 89, 0.55); border-style: solid; } /* shared somewhere: green, not the pick's blue */
.sm-tile small { font-size: 12px; color: var(--muted, #888); }
.sm-tile.on > small, .sm-half small.on { color: var(--green, #30b94d); }
/* Screens wrap into a row when the panel is wide (stacked above the devices). */
.sm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.sm-mainwrap { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.sm-maincard { padding: 6px; }
.sm-halves { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sm-half { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 76px; padding: 10px 12px; border-radius: 9px; background: rgba(127, 127, 127, 0.12); border: 1.5px solid transparent; cursor: pointer; min-width: 0; }
.sm-half b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-half-k { font-size: 11px !important; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.sm-half.sel { background: var(--accent-soft, rgba(10, 132, 255, 0.18)); border-color: var(--accent, #0a84ff); }
.sm-half.sel .sm-half-k, .sm-half.sel b { color: var(--accent, #0a84ff); }
.sm-half:last-child:not(.sel) { border-style: dashed; border-color: rgba(127, 127, 127, 0.35); }
.sm-half.off { opacity: 0.5; cursor: default; }
.sm-side > .small, .sm-side > div > .small { align-self: flex-start; }
.sm-mainpick { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted, #888); }
.sm-mainpick select, .sm-mainpick .select { flex: 1; min-width: 0; }
.sm-tile-wrap { position: relative; display: flex; flex-direction: column; }
.sm-tile-wrap .sm-tile { flex: 1; }
.sm-tile-x { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(127, 127, 127, 0.3); color: inherit; font: inherit; line-height: 1; cursor: pointer; }
.sm-tile-x:hover { background: var(--danger, #ff453a); color: #fff; }
.sm-tile:disabled { opacity: 0.55; cursor: default; }
.sm-main { flex: 3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.sm-head { display: flex; align-items: baseline; gap: 10px; }
.sm-head h3 { margin: 0; font-size: 17px; }
.sm-count { color: var(--muted, #888); font-size: 13px; }
.sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.sm-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--card, rgba(127, 127, 127, 0.08)); border: 1.5px solid transparent; }
.sm-card.sharing { border-color: var(--accent, #0a84ff); }
.sm-card.over, .sm-card.target { border-color: var(--accent, #0a84ff); border-style: dashed; }
.sm-card.offline { opacity: 0.6; }
.sm-card-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sm-card-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-card-head .sm-os { margin-left: auto; }
.sm-badge { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--accent, #0a84ff); color: #fff; white-space: nowrap; }
.sm-card.current { box-shadow: 0 0 0 1px var(--accent-soft, rgba(10, 132, 255, 0.3)), 0 6px 20px rgba(10, 132, 255, 0.12); }
.sm-os { font-size: 12px; color: var(--muted, #888); white-space: nowrap; }
.sm-os.on { color: var(--good, #30d158); }
.sm-os.on::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: 1px; }
.sm-drop { min-height: 84px; border-radius: 10px; border: 1.5px dashed rgba(127, 127, 127, 0.35); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; text-align: center; font-size: 13px; color: var(--muted, #888); }
.sm-drop.has { border-style: solid; border-color: transparent; background: var(--accent-soft, rgba(10, 132, 255, 0.15)); color: var(--accent, #0a84ff); }
.sm-drop b { font-weight: 600; }
/* A device's monitors, arranged as they are there; each one takes a screen. */
.sm-mons { position: relative; align-self: center; flex: none; max-width: 100%; }
.sm-card.many { grid-column: span 2; } /* 3 or more monitors: room for each */
.sm-mon.small span { display: none; } /* too small for a second line */
.sm-mon { position: absolute; box-sizing: border-box; padding: 8px 10px; }
.sm-mon::before { content: ''; position: absolute; inset: 3px; border-radius: 8px; border: 1.5px dashed rgba(127, 127, 127, 0.4); background: rgba(127, 127, 127, 0.06); transition: border-color .15s, background .15s; }
.sm-mon > * { position: relative; }
.sm-mon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; font-size: 12px; color: var(--muted, #888); cursor: default; overflow: hidden; }
.sm-mon b, .sm-mon span { max-width: 100%; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.sm-mon b { font-weight: 600; font-size: 12px; line-height: 1.25; }
.sm-mon span { font-size: 10.5px; -webkit-line-clamp: 1; }
.sm-streams { display: flex; flex-wrap: wrap; gap: 6px; }
.sm-chip-x { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 0 2px; opacity: .7; }
.sm-chip-x:hover { opacity: 1; }
.sm-mon .sm-mon-n { font-size: 15px; font-weight: 700; opacity: .6; }
.sm-mon.has { color: var(--accent-text, var(--accent, #0a84ff)); }
.sm-mon.has::before { border-style: solid; border-color: var(--accent-rim, transparent); background: var(--sel-bg, var(--accent-soft, rgba(10, 132, 255, 0.15))); }
.sm-card.target .sm-mon, .sm.dragging .sm-mon { cursor: pointer; color: var(--accent-text, var(--accent, #0a84ff)); }
.sm-card.target .sm-mon::before, .sm.dragging .sm-mon::before { border-color: var(--accent, #0a84ff); }
.sm-mon.over::before { background: var(--accent-soft, rgba(10, 132, 255, 0.25)); border-style: solid; }
.sm-card.over .sm-drop, .sm-card.target .sm-drop { border-color: var(--accent, #0a84ff); color: var(--accent, #0a84ff); cursor: pointer; }
.sm-err { font-size: 12px; color: var(--bad, #ff453a); }
.sm-empty { color: var(--muted, #888); padding: 18px 4px; }
.sm-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 12px 16px; border-radius: 14px; background: var(--card, rgba(127, 127, 127, 0.08)); }
.sm-chip { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft, rgba(10, 132, 255, 0.15)); color: var(--accent, #0a84ff); }
.sm-none { color: var(--muted, #888); font-size: 13px; }
.sm-grow { flex: 1; }
/* Send to / Receive from (shared/ui-share-lists.js): the Share-folder list as a card */
.sl-list { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.sl-list .sf-all, .sl-list .sf-dev { margin: 0 16px; }
.sl-list .sf-dev.off { opacity: 0.55; }
.sl-empty { padding: 12px 16px; opacity: 0.6; font-size: 13px; }
.dev-group-head { padding: 12px 16px 4px; font-size: 12px; font-weight: 600; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.04em; }
.page-gear { margin-left: 8px; width: 32px; height: 32px; padding: 6px; border-radius: 8px; border: 0; background: transparent; color: inherit; cursor: pointer; opacity: 0.75; }
.page-gear:hover, .page-gear.on { opacity: 1; background: rgba(127, 127, 127, 0.16); }
.page-gear svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.notif-ico { width: 20px; height: 20px; border-radius: 4px; margin-right: 8px; vertical-align: middle; flex-shrink: 0; }
.tm-summary { cursor: pointer; }
/* Clipboard and Notifications as Drop (shared/ui-feed.js) */
.feed-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 12px 16px; }
.feed-ctl { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; min-width: 0; }
.feed-ctl-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.feed-ctl-text b { font-weight: 500; }
.feed-sub { color: var(--muted, #888); font-size: 12px; }
.feed-back { margin: 0 0 10px; }
.feed-back > .btn { display: inline-flex; align-items: center; gap: 4px; } /* < Back */
.feed-back > .btn::before { content: '\2039'; font-size: 1.35em; line-height: 0.8; margin-top: -2px; }
.feed-room .hub-conv { height: var(--drop-h, calc(100vh - 300px)); min-height: 300px; }
.feed-title { font-weight: 600; }
.hub-from .notif-ico { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
/* A feature's two directions in one card (UI.dirSection / UI.dirOne): main row, then a full-width Options row */
.card.dir-one { padding: 0; }
.dir-one > .dir-sec + .dir-sec { border-top: 1px solid var(--line, rgba(127,127,127,.18)); }
.dir-sec > .row { padding-left: 16px; padding-right: 16px; }
.dir-opts { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px;
padding: 10px 16px; background: none; border: 0; border-top: 1px solid var(--line, rgba(127,127,127,.12));
color: var(--muted, inherit); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.dir-opts:hover { background: rgba(127,127,127,.08); }
.dir-chev { display: inline-block; transition: transform .15s; font-size: 16px; }
.dir-opts.open .dir-chev { transform: rotate(90deg); }
.dir-more { border-top: 1px solid var(--line, rgba(127,127,127,.12)); }
/* The settings gear at the end of a page's top card (UI.gearButton / UI.gearView) */
.gear-btn { flex: none; margin-left: auto; width: 44px; height: 44px; padding: 9px; border-radius: 12px; border: 0; background: rgba(127,127,127,.12); color: inherit; cursor: pointer; }
.gear-btn:hover { background: rgba(127,127,127,.22); }
.gear-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.gear-top { display: flex; align-items: center; gap: 12px; padding-right: 14px; }
.gear-rows { flex: 1; min-width: 0; }
.gear-host { position: relative; }
.phone-hero.gear-host > .gear-btn { position: absolute; top: 12px; right: 12px; }
.msg-pills > .gear-btn { width: 34px; height: 34px; padding: 6px; }
.msg-pills > .gear-btn svg { width: 22px; height: 22px; }
.feed-stack { display: flex; flex-direction: column; }
.sec-group + .sec-group { margin-top: 22px; }
.sec-group-title { font-size: 15px; margin-bottom: 4px; }
/* UI.tabbed: a bar of tabs over one part of a page at a time, room under it */
.tabbed { padding-bottom: 48px; }
.tab-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 4px; border-radius: 12px; background: var(--nav-hover, rgba(127, 127, 127, 0.12)); width: fit-content; max-width: 100%; }
.tab-item { display: inline-flex; align-items: center; border-radius: 9px; }
.tab-item.active { background: var(--sel-bg, var(--accent-soft, rgba(10, 132, 255, 0.22))); box-shadow: var(--sel-shadow, 0 1px 3px rgba(0, 0, 0, 0.2)); } /* the tab shown: the sidebar's selection */
.tab-btn { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 7px 14px; border-radius: 9px; cursor: pointer; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--text); }
.tab-btn:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.tab-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.tab-row .tab-bar { margin: 0; }
.tab-toggle { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); margin-left: auto; } /* the tab shown's switch, at the right edge */
.tab-pane.tab-off > * { opacity: 0.5; }
.pad-empty { padding: 10px 16px 14px; color: var(--muted); }