/* The Devices dialog: the machines on the left, the one picked (or the add form) on the right. A fixed height on a wide window, so the dialog never moves under the pointer when a step changes what the right side holds. */ .modal.devices-dialog { width: min(var(--dialog-m), calc(100vw - 24px)); color: var(--text); } .devices-layout { display: grid; grid-template-columns: minmax(150px, 30%) minmax(0, 1fr); height: min(460px, calc(100vh - 140px)); min-height: 0; } .devices-list, .devices-content { min-width: 0; min-height: 0; overflow: auto; padding: 12px; } .devices-list { display: flex; flex-direction: column; gap: 8px; border-inline-end: 1px solid var(--line-soft); } .devices-list ul, .devices-sessions { list-style: none; padding: 0; margin: 0; } .devices-list ul { display: grid; gap: 2px; } .ui-button.devices-device { display: grid; grid-template-columns: 10px minmax(0, 1fr); justify-content: stretch; align-items: center; column-gap: 8px; row-gap: 1px; inline-size: 100%; min-height: 40px; padding: 6px 10px; text-align: start; white-space: normal; } .devices-device .devices-device-name { grid-column: 2; color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .devices-device .devices-device-state { grid-column: 2; color: var(--muted); font-size: calc(12px + var(--ui-text-increase, 0px)); } .devices-device .devices-dot { grid-column: 1; grid-row: 1 / span 2; } /* Selected is a fill, an accent bar at the start and a heavier name: hover is the fill alone, and the focus ring (one for the whole app) sits over both. */ .ui-button.devices-device[aria-current] { background: var(--accent-16); box-shadow: inset 3px 0 0 var(--accent); color: var(--text); } .devices-device[aria-current] .devices-device-name { font-weight: 700; } .ui-button.devices-add[aria-current] { background: var(--ctl-fill); } .ui-button.devices-device, .ui-button.devices-add { transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); } .ui-button.devices-add { justify-content: flex-start; gap: 6px; } .devices-content { display: flex; flex-direction: column; gap: 12px; padding: 16px; } /* What the right side shows, arriving: a short fade and a 4px rise on the deck's own curve, so a change of device reads as a change and nothing jumps. Transform and opacity only; none under reduced motion. */ .devices-pane { display: flex; flex: 1; flex-direction: column; gap: 12px; min-height: 0; animation: devices-in var(--dur-base) var(--ease) both; } @keyframes devices-in { from { opacity: 0; transform: translateY(4px); } } .devices-content h3 { margin: 0; font-size: calc(16px + var(--ui-text-increase, 0px)); } .devices-content p { margin: 0; overflow-wrap: anywhere; } .devices-heading { display: flex; align-items: flex-start; gap: 12px; } .devices-id { flex: 1; min-width: 0; } .devices-id h3 { min-width: 0; overflow-wrap: anywhere; } .devices-id .devices-destination { margin: 2px 0 0; color: var(--muted); font-family: var(--font-mono); font-size: calc(12px + var(--ui-text-increase, 0px)); } .devices-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; } .devices-note { color: var(--muted); font-size: calc(13px + var(--ui-text-increase, 0px)); line-height: 1.45; } .devices-note.warn { color: var(--warn); } /* The two ways to a device, one under the other: through ccdeck there, or a plain terminal over SSH. Each is a titled group with its own one button, so what each needs and does is read before anything is pressed. */ .devices-way { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line-soft); border-radius: var(--r-ctl); } .devices-way-head { display: grid; gap: 2px; } .devices-way-head h4 { margin: 0; color: var(--text); font-size: calc(13px + var(--ui-text-increase, 0px)); font-weight: 600; } .devices-way-head p { color: var(--muted); font-size: calc(12px + var(--ui-text-increase, 0px)); line-height: 1.45; } .devices-hint { color: var(--muted); font-size: calc(12px + var(--ui-text-increase, 0px)); line-height: 1.45; } /* One state, one mark and one word. Colour never carries it alone; a change of state eases from one colour to the next. */ .devices-dot { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 10px; width: 10px; height: 10px; font-size: calc(11px + var(--ui-text-increase, 0px)); font-weight: 700; line-height: 1; color: var(--muted); transition: color var(--dur-base) var(--ease); } .devices-dot::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-pill); background: currentColor; } .devices-dot[data-tone="ok"] { color: var(--ok); } .devices-dot[data-tone="active"] { color: var(--inflight); } .devices-dot[data-tone="active"]::before { box-shadow: 0 0 8px var(--inflight); animation: pulse var(--pulse-live) infinite; } .devices-dot[data-tone="done"] { color: var(--ok); } .devices-dot[data-tone="done"]::before { content: "✓"; width: auto; height: auto; background: none; } .devices-dot[data-tone="warn"] { color: var(--warn); } .devices-dot[data-tone="warn"]::before { content: "!"; width: auto; height: auto; background: none; } .devices-dot[data-tone="err"] { color: var(--err); } .devices-dot[data-tone="err"]::before { content: "×"; width: auto; height: auto; background: none; } .devices-dot[data-tone="idle"]::before { background: none; box-shadow: inset 0 0 0 1.5px currentColor; } .devices-state { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: calc(12px + var(--ui-text-increase, 0px)); line-height: calc(16px + var(--ui-text-increase, 0px)); } .devices-state[data-tone="warn"] { color: var(--warn); } .devices-state[data-tone="err"] { color: var(--err); } /* A session's status keeps to one line; a device's reads in whole words. */ .devices-sessions .devices-state { white-space: nowrap; flex: none; } .devices-sessions { container-type: inline-size; } .devices-sessions li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 2px 0; border-top: 1px solid var(--line-soft); } .ui-button.devices-session-main, div.devices-session-main { display: grid; grid-template-columns: 20px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; justify-content: stretch; column-gap: 10px; row-gap: 1px; min-width: 0; inline-size: 100%; box-sizing: border-box; text-align: start; padding: 8px 10px; min-height: 36px; } div.devices-session-main { color: var(--muted); } .devices-session-main > :is(.provider-avatar, .devices-mark-gap) { grid-row: 1 / span 2; grid-column: 1; align-self: start; margin-top: 1px; } .devices-session-main > .devices-session-title, .devices-session-main > .devices-session-meta { grid-column: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .devices-session-main > .devices-session-title { color: var(--text); font-size: calc(13px + var(--ui-text-increase, 0px)); font-weight: 600; } .devices-session-main > .devices-session-meta { color: var(--muted); font-size: calc(12px + var(--ui-text-increase, 0px)); } /* In a narrow pane the status leaves its column and stands whole under the session, in line with its title. */ @container (max-width: 380px) { .devices-sessions li { grid-template-columns: minmax(0, 1fr); } .devices-sessions .devices-state { padding: 0 10px 8px 40px; } } .devices-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .devices-actions.start { gap: 4px; } .devices-actions .ui-button { gap: 6px; } .devices-form fieldset { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; } .devices-form label, .devices-rename label { display: grid; gap: 4px; } .devices-form small { color: var(--muted); font-size: calc(12px + var(--ui-text-increase, 0px)); } .devices-panel { padding: 12px; border: 1px solid var(--line-soft); border-radius: var(--r-ctl); } .devices-choice { display: grid; gap: 6px; } .devices-choice [role="group"] { display: flex; flex-wrap: wrap; gap: 4px; } .devices-choice button[aria-pressed="true"] { background: var(--ctl-fill); color: var(--text); } .devices-hosts .ui-button { font-family: var(--font-mono); } .devices-needs-box { display: grid; gap: 4px; } .devices-needs-title { color: var(--text); font-size: calc(13px + var(--ui-text-increase, 0px)); } .devices-needs { margin: 0; padding: 0 0 0 18px; color: var(--muted); font-size: calc(13px + var(--ui-text-increase, 0px)); line-height: 1.5; } /* Rename and Remove: kept quiet at the foot, out of the way of the one action the device's state asks for. */ .devices-manage { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); } .devices-rename { display: grid; gap: 8px; } .devices-remove { display: grid; gap: 8px; } .ui-button.devices-remove-btn { color: var(--err); } .devices-trust { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line-soft); border-radius: var(--r-ctl); } .devices-trust ul { margin: 0; padding: 0; list-style: none; } .devices-trust code { overflow-wrap: anywhere; } .devices-content .devices-error { color: var(--text); background: var(--err-12); border-radius: var(--r-ctl); padding: 8px 10px; } @media (prefers-reduced-motion: reduce) { .devices-pane { animation: none; } .devices-dot, .ui-button.devices-device, .ui-button.devices-add { transition: none; } } @media (max-width: 600px) { .devices-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: auto; max-height: calc(100vh - 120px); } .devices-list { border-inline-end: 0; border-bottom: 1px solid var(--line-soft); flex-direction: row; flex-wrap: wrap; overflow: visible; } .devices-list ul { display: flex; flex-wrap: wrap; gap: 4px; } .devices-list li { min-width: 0; max-width: 100%; } .ui-button.devices-device { inline-size: auto; } .devices-dialog .btn, .devices-dialog .ui-button { min-height: 44px; } } .device-workspace-id { min-width: 0; flex: 1; } .device-workspace-id .ts-meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .device-workspace-host { right: 14px; bottom: 12px; } .device-workspace-note { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; } @media (max-width: 640px) { .ts-stage[data-takeover] .device-workspace-id { padding-inline-start: 8px; } }