/* ShareDesk website: the live session demo on the start page (web/index.html and its translations), loaded after
   site.css on those pages only. Split from site.css so the other pages don't download it. */

/* ================= The session window =================
   A copy of ShareDesk 0.20.57's session window (RemoteWindow.swift): the unified
   compact title bar with its icon toolbar, the window's tabs and the remote
   screen. Everything is laid out in real points at 1280×786, like the app's
   screenshots (docs/design/app-screens), and scaled to fit, so proportions and
   type sizes match. The window follows light and dark mode. */
.demo { position: relative; margin-top: 56px; }
.demo-frame {
  position: relative; width: 100%; aspect-ratio: 1280 / 786;
  /* Rounded corners and the window shadow live here, outside the scaled
     window, so they stay crisp at any size (--s is the window's scale). */
  border-radius: calc(10px * var(--s, 0.8));
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.28),
    0 2px 4px rgba(30, 15, 5, 0.08),
    0 12px 24px -6px rgba(30, 15, 5, 0.18),
    0 40px 80px -24px rgba(30, 15, 5, 0.38);
}
@media (prefers-color-scheme: dark) {
  .demo-frame {
    box-shadow:
      0 0 0 0.5px rgba(255, 255, 255, 0.18),
      0 12px 24px -6px rgba(0, 0, 0, 0.5),
      0 40px 80px -24px rgba(0, 0, 0, 0.85);
  }
}
.rw-desk {
  --rw-title: #e8e8e8; --rw-tab-off: #d3d3d3; --rw-line: rgba(0, 0, 0, 0.13);
  --rw-text: #1d1d1f; --rw-sub: rgba(0, 0, 0, 0.5); --rw-icon: rgba(0, 0, 0, 0.72); --rw-hover: rgba(0, 0, 0, 0.07);
  --rw-btn: #fff; --rw-btn-ring: rgba(0, 0, 0, 0.14); --rw-pop: rgba(246, 246, 246, 0.98);
  --rw-win: #ececec; --rw-group: rgba(0, 0, 0, 0.045); --rw-accent: #007aff;
  position: absolute; top: 0; left: 0; width: 1280px; height: 786px;
  transform-origin: 0 0; transform: scale(var(--s, 0.8));
  contain: layout;
  font: 13px/1.25 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Instrument Sans", Arial, sans-serif;
  color: var(--rw-text); -webkit-font-smoothing: antialiased; letter-spacing: -0.003em;
  user-select: none; -webkit-user-select: none; cursor: default;
}
@media (prefers-color-scheme: dark) {
  .rw-desk {
    --rw-title: #2b2b2b; --rw-tab-off: #1d1d1d; --rw-line: rgba(0, 0, 0, 0.55);
    --rw-text: #ececec; --rw-sub: rgba(255, 255, 255, 0.55); --rw-icon: rgba(255, 255, 255, 0.8); --rw-hover: rgba(255, 255, 255, 0.09);
    --rw-btn: #5c5c5f; --rw-btn-ring: rgba(255, 255, 255, 0.08); --rw-pop: rgba(44, 44, 46, 0.98);
    --rw-win: #2b2b2b; --rw-group: rgba(255, 255, 255, 0.06); --rw-accent: #0a84ff;
  }
}
.rw-desk svg { display: block; }
.rw, .rw-chat { position: absolute; border-radius: 10px; overflow: hidden; background: #000; }
.rw { inset: 0; }
.rw-lights { position: absolute; left: 13px; top: 13px; display: flex; gap: 8px; }
.rw-lights i, .mac-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.18); }
.rw-lights i:nth-child(2), .mac-lights i:nth-child(2) { background: #febc2e; }
.rw-lights i:nth-child(3), .mac-lights i:nth-child(3) { background: #28c840; }
.mac-lights { display: flex; gap: 8px; }

/* Title bar and toolbar in one row (NSToolbar, unified compact): title, subtitle, icons. */
.rw-titlebar {
  height: 38px; position: relative; display: flex; align-items: center;
  background: var(--rw-title); white-space: nowrap;
}
.rw-title { margin-left: 80px; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.rw-title b { font-size: 14px; font-weight: 700; }
.rw-title span { font-size: 12px; color: var(--rw-sub); }
.rw-tools { margin-left: auto; display: flex; align-items: center; gap: 2px; padding-right: 6px; }
.tb { position: relative; width: 30px; height: 26px; display: grid; place-items: center; border-radius: 6px; color: var(--rw-icon); flex: none; }
.tb[hidden] { display: none; }
.tb:hover, .tb.open { background: var(--rw-hover); }
.tb.off { opacity: 0.35; pointer-events: none; }
.tb-space { width: 20px; flex: none; }
.rw-desk svg:not([fill]) { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rw-desk svg .fill { fill: currentColor; stroke: none; }
.tb svg { width: 19px; height: 19px; }
.tb.red { color: #ff3b30; }
.tb-dot { position: absolute; right: 5px; top: 2px; width: 6px; height: 6px; border-radius: 50%; background: #ff9f0a; }
.tb-badge {
  position: absolute; right: 0; top: 0; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px;
  background: #ff3b30; color: #fff; font: 600 9.5px/14px -apple-system, BlinkMacSystemFont, sans-serif; text-align: center;
}
.tb .ring { width: 16px; height: 16px; }
.tb.draw-ctl { width: 30px; }
.draw-x { color: var(--rw-sub); }
.draw-x .cut { stroke: var(--rw-title); stroke-width: 1.8; }

/* The window's tabs (one session per tab) and "+" for a new connection */
.rw-tabs { height: 28px; display: flex; background: var(--rw-tab-off); border-top: 0.5px solid var(--rw-line); border-bottom: 0.5px solid var(--rw-line); }
.rw-tab { flex: 1; min-width: 0; display: grid; place-items: center; font-size: 12px; color: var(--rw-sub); border-right: 0.5px solid var(--rw-line); white-space: nowrap; }
.rw-tab[hidden] { display: none; }
.rw-tab.on { background: var(--rw-title); color: var(--rw-text); }
.rw-tab:not(.on):hover { background: var(--rw-hover); }
.rw-tab-add { width: 28px; display: grid; place-items: center; color: var(--rw-sub); }
.rw-tab-add:hover { background: var(--rw-hover); }
.rw-tab-add svg { width: 14px; height: 14px; }

/* The remote screen below the bars, 1280×720 on black */
.rw-screen { position: absolute; left: 0; right: 0; top: 66px; height: 720px; background: #000; overflow: hidden; }
.screens { position: absolute; inset: 0; }

/* ---------- the remote Macs: 1920×1080 points, shown at 2/3 (16:9 like the view) ---------- */
.mac {
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px;
  transform-origin: 0 0; transform: scale(0.666667);
  overflow: hidden; color: #1d1d1f; font-size: 13px; white-space: nowrap;
  background:
    radial-gradient(1300px 700px at 72% 112%, rgba(178, 124, 132, 0.6), transparent 65%),
    linear-gradient(172deg, #232f58 0%, #39406f 32%, #5c5079 58%, #8a6b83 82%, #9c7883 100%);
}
.mac[hidden] { display: none; }
.mac.moser { background: radial-gradient(1100px 600px at 20% 110%, rgba(214, 170, 104, 0.55), transparent 65%), linear-gradient(170deg, #1d3936 0%, #2c5650 45%, #6f8466 80%, #a39a6e 100%); }
.mac.studio { background: radial-gradient(1000px 700px at 85% 0%, rgba(255, 150, 90, 0.6), transparent 60%), linear-gradient(160deg, #2a1e4d 0%, #4b2f6e 45%, #9b4a6b 80%, #d9785c 100%); }
.mac-menubar {
  position: absolute; inset: 0 0 auto; height: 24px; padding: 0 14px 0 18px; z-index: 2;
  display: flex; align-items: center; gap: 22px; color: #1d1d1f; font-size: 13px;
  background: rgba(238, 239, 244, 0.86);
}
.mac-menubar svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.mb-items { display: flex; gap: 20px; }
.mb-items b { font-weight: 700; }
.mac-menubar .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.mb-sd { width: 18px; height: 14px; border-radius: 3px; background: #e5484d; }
.mb-sd[hidden] { display: none; }
.mwin {
  position: absolute; border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.3), 0 22px 60px rgba(0, 0, 0, 0.42), 0 6px 16px rgba(0, 0, 0, 0.18);
}
.mbtn {
  height: 26px; padding: 0 16px; border-radius: 6px; display: inline-flex; align-items: center; gap: 5px;
  background: #e4e4e6; color: #1d1d1f; font-size: 12.5px; transition: filter 0.08s;
}
.mbtn.blue { background: #3478f6; color: #fff; }
.mbtn.pressed, .mbtn:active { filter: brightness(0.88); }
.mbtn[hidden] { display: none; }

/* Finder: Documents */
.finder { left: 210px; top: 90px; width: 840px; height: 548px; display: flex; flex-direction: column; }
.fi-bar, .pr-bar, .lg-bar, .tm-bar {
  height: 38px; flex: none; position: relative; display: flex; align-items: center; justify-content: center;
  background: #ececee; border-bottom: 0.5px solid rgba(0, 0, 0, 0.1); font-size: 12.5px;
}
.fi-bar .mac-lights, .pr-bar .mac-lights, .lg-bar .mac-lights, .tm-bar .mac-lights { position: absolute; left: 14px; top: 13px; }
.fi-body { flex: 1; display: flex; min-height: 0; }
.fi-side { width: 166px; flex: none; padding: 14px 8px; background: #f2f2f4; border-right: 0.5px solid rgba(0, 0, 0, 0.08); }
.fi-h { font-size: 10.5px; font-weight: 600; color: rgba(0, 0, 0, 0.45); padding: 8px 8px 4px; }
.fi-h + .fi-i { margin-top: 2px; }
.fi-i { height: 25px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-radius: 5px; font-size: 12px; }
.fi-i i { width: 10px; height: 10px; border-radius: 50%; background: #3b7ae0; }
.fi-i.sel { background: rgba(0, 0, 0, 0.08); }
.fi-main { flex: 1; display: flex; flex-direction: column; }
.fi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 0; padding: 34px 20px 0; }
.fi-f { display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 12px; }
.fi-f i { position: relative; width: 100px; height: 78px; margin-top: 8px; border-radius: 7px; background: #7aa8f0; }
.fi-f i::before { content: ""; position: absolute; left: 0; top: -8px; width: 38px; height: 12px; border-radius: 5px 5px 0 0; background: #7aa8f0; }
.fi-f i::after { content: ""; position: absolute; inset: 11px 0 0; border-radius: 6px; background: #9dc3f8; }
.fi-f i.disk { width: 84px; height: 60px; margin: 18px 0 8px; border-radius: 8px; background: linear-gradient(#e4e4e8, #b9b9c0); }
.fi-f i.disk::before { display: none; }
.fi-f i.disk::after { inset: auto 10px 10px auto; width: 8px; height: 8px; border-radius: 50%; background: #34c759; }
.fi-f span { padding: 1px 5px; border-radius: 4px; }
.fi-f.sel i { filter: brightness(0.88); }
.fi-f.sel span { background: #0064e1; color: #fff; }
.fi-foot { margin-top: auto; padding: 0 0 16px 38px; font-size: 10px; color: rgba(0, 0, 0, 0.45); }

/* The printer's alert: paused with a paper jam, then printing, then done */
.printer { left: 975px; top: 470px; width: 487px; height: 210px; display: flex; flex-direction: column; transition: opacity 0.18s ease; }
.printer.closed { opacity: 0; pointer-events: none; }
.pr-bar b { font-weight: 700; }
.pr-body { flex: 1; display: flex; gap: 18px; padding: 20px 22px 0; }
.pr-icon { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #f5c32c; color: #fff; }
.pr-icon svg { width: 30px; height: 30px; stroke-width: 2.6; }
.printer.printing .pr-icon { background: #3478f6; }
.printer.done .pr-icon { background: #34c759; }
.pr-text b { display: block; font-size: 15px; font-weight: 700; margin: 2px 0 6px; }
.pr-text p { margin: 0; font-size: 12px; line-height: 1.5; color: rgba(0, 0, 0, 0.7); white-space: normal; width: 270px; }
.pr-prog { display: none; height: 6px; width: 300px; margin-top: 10px; border-radius: 3px; background: rgba(0, 0, 0, 0.1); overflow: hidden; }
.pr-prog i { display: block; height: 100%; width: 0; border-radius: 3px; background: #3478f6; }
.printer.printing .pr-prog { display: block; }
.printer.go .pr-prog i { width: 100%; transition: width 2.6s linear; }
.pr-buttons { display: flex; justify-content: flex-end; gap: 14px; padding: 0 16px 18px; }

.dock {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 1;
  display: flex; gap: 12px; padding: 7px 12px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.24); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}
.dock i { width: 46px; height: 46px; border-radius: 11px; background: #4d7ff0; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08); }
.dock i:nth-child(2) { background: #5cb46b; }
.dock i:nth-child(3) { background: #f09a35; }
.dock i:nth-child(4) { background: #e8503f; }
.dock i:nth-child(5) { background: #a259d6; }
.dock i:nth-child(6) { background: #6cc4f2; }
.dock i:nth-child(7) { background: #8e8e93; }
.dock i:nth-child(8) { background: #f6cf45; }
.dock i:nth-child(9) { background: #d9534f; }
.dock i:nth-child(10) { background: #7bd0f7; }

/* Accounting Mac: the bakery's accounting app */
.ledger { left: 300px; top: 130px; width: 1080px; height: 420px; display: flex; flex-direction: column; }
.lg-bar b { font-weight: 700; }
.lg-tabs { display: flex; justify-content: center; gap: 2px; margin: 14px auto 10px; padding: 2px; border-radius: 7px; background: rgba(0, 0, 0, 0.06); font-size: 12px; }
.lg-tabs span { padding: 3px 16px; border-radius: 5px; }
.lg-tabs span.on { background: #fff; box-shadow: 0 0.5px 1.5px rgba(0, 0, 0, 0.25); }
.lg-table { margin: 0 20px; border: 0.5px solid rgba(0, 0, 0, 0.12); border-radius: 6px; overflow: hidden; }
.lg-h, .lg-r { display: grid; grid-template-columns: 130px 1fr 110px 150px; align-items: center; padding: 0 14px; font-size: 12.5px; }
.lg-h { height: 30px; font-weight: 600; color: rgba(0, 0, 0, 0.55); background: #f6f6f8; border-bottom: 0.5px solid rgba(0, 0, 0, 0.1); }
.lg-r { height: 34px; }
.lg-r:nth-child(odd) { background: #f7f7f9; }
.lg-r.sel { background: #0064e1; color: #fff; }
.lg-h .n, .lg-r .n { text-align: right; font-variant-numeric: tabular-nums; }
.lg-foot { margin: auto 20px 18px; display: flex; justify-content: space-between; font-size: 12.5px; color: rgba(0, 0, 0, 0.6); }
.lg-foot b { color: #1d1d1f; }

/* Studio Mac Pro: a quiet desktop */
.st-icons { position: absolute; right: 40px; top: 60px; display: flex; flex-direction: column; gap: 22px; }
.st-icons .fi-f { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }

/* Drawings and the technician's pointer, drawn locally by ShareDesk */
.mac-ink { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; z-index: 28; pointer-events: none; overflow: visible; }
.mac-ink * { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.92; }
.mac-ink .fade { opacity: 0; transition: opacity 1s ease; }
.mac-cursor { position: absolute; left: 0; top: 0; width: 24px; height: 32px; z-index: 30; }

/* ---------- over the picture (technician) ---------- */
/* Connection statistics: a dark see-through panel, top right (StatsPanel) */
.rw-stats {
  position: absolute; top: 16px; right: 16px; z-index: 8; display: none; min-width: 250px; padding: 9px 12px;
  border-radius: 10px; background: rgba(22, 22, 24, 0.66); color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.rw-stats.show { display: block; }
.st-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 11px; }
.st-head svg { width: 14px; height: 14px; opacity: 0.6; }
.st-head svg .cut { stroke: #222; stroke-width: 1.8; }
.rw-stats pre { margin: 0; font: 11px/1.45 ui-monospace, "SF Mono", Menlo, "JetBrains Mono", monospace; }
/* The customer hid their screen */
.rw-hidden { position: absolute; inset: 0; z-index: 7; display: none; place-items: center; background: #000; color: rgba(255, 255, 255, 0.85); text-align: center; }
.rw-hidden.show { display: grid; }
.rw-hidden svg { width: 44px; height: 44px; margin: 0 auto 12px; opacity: 0.7; }
.rw-hidden b { display: block; font-size: 20px; font-weight: 600; }
.rw-hidden p { margin: 8px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.65); }
/* A short notice at the top of the picture (viewer.notice) */
.rw-toast {
  position: absolute; top: 12px; left: 50%; z-index: 13; max-width: 820px; transform: translateX(-50%);
  padding: 7px 14px; border-radius: 16px; background: rgba(28, 28, 30, 0.84); color: #fff; font-size: 12.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.rw-toast.show { opacity: 1; }
/* Terminal and the file browser: small windows of their own */
.rw-term, .rw-browse {
  position: absolute; bottom: 36px; z-index: 9; display: none; border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.4), 0 18px 50px rgba(0, 0, 0, 0.5);
}
.rw-term.show, .rw-browse.show { display: block; }
.rw-term { left: 36px; width: 560px; background: #1e1e1e; }
.rw-term .tm-bar { background: #323232; color: rgba(255, 255, 255, 0.7); border-color: #000; }
.rw-term pre { margin: 0; padding: 10px 14px 14px; color: #e8e8e8; font: 11.5px/1.5 ui-monospace, "SF Mono", Menlo, "JetBrains Mono", monospace; tab-size: 8; }
.rw-term .caret { display: inline-block; width: 7px; height: 13px; vertical-align: -2px; background: #e8e8e8; animation: rw-blink 1s steps(1) infinite; }
@keyframes rw-blink { 50% { opacity: 0; } }
.rw-browse { right: 36px; width: 420px; background: var(--rw-win); }
.rw-browse .tm-bar { background: var(--rw-title); color: var(--rw-text); border-color: var(--rw-line); }
.br-path { padding: 8px 14px; font-size: 11.5px; color: var(--rw-sub); }
.br-list { margin: 0 8px; padding: 4px; border-radius: 8px; background: var(--rw-group); }
.br-r { height: 26px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-radius: 5px; font-size: 12.5px; }
.br-r i { width: 17px; height: 13px; border-radius: 2px; background: #7aa8f0; box-shadow: inset 0 3px 0 #9dc3f8; }
.br-r small { margin-left: auto; color: var(--rw-sub); font-size: 11px; }
.br-r.sel { background: var(--rw-accent); color: #fff; }
.br-r.sel small { color: rgba(255, 255, 255, 0.8); }
.br-foot { padding: 9px 14px 12px; font-size: 11px; color: var(--rw-sub); white-space: normal; }

/* macOS pull-down menu (NSMenu) */
.rw-menu {
  position: absolute; z-index: 32; display: none; min-width: 200px; padding: 5px;
  background: var(--rw-pop); border-radius: 8px; font-size: 13px; color: var(--rw-text);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.24), 0 10px 30px rgba(0, 0, 0, 0.28);
}
.rw-menu.show { display: block; }
.rw-menu .mh { padding: 4px 12px 2px 24px; font-size: 11px; font-weight: 600; color: var(--rw-sub); }
.rw-menu .mi { position: relative; display: block; padding: 3px 14px 3px 24px; border-radius: 4px; white-space: nowrap; }
.rw-menu .mi[hidden] { display: none; }
/* A menu without checkmarks has no checkmark column (macOS 14 and later). */
.rw-menu.plain .mi { padding-left: 12px; }
.rw-menu .mt { padding: 3px 14px 3px 24px; color: var(--rw-sub); white-space: nowrap; font-size: 12px; }
.rw-menu .mt[hidden] { display: none; }
.rw-menu .mi.off { color: var(--rw-sub); opacity: 0.6; pointer-events: none; }
.rw-menu .mi:hover, .rw-menu .mi.hl { background: var(--rw-accent); color: #fff; }
.rw-menu .mi.on::before { content: "✓"; position: absolute; left: 8px; font-size: 12px; font-weight: 600; }
.rw-menu .mi:has(kbd) { display: flex; }
.rw-menu .mi kbd { margin-left: auto; padding-left: 28px; font: inherit; color: var(--rw-sub); }
.rw-menu .mi:hover kbd { color: rgba(255, 255, 255, 0.8); }
.rw-menu .mi.has-sub { padding-right: 26px; }
.rw-menu .mi.has-sub::after {
  content: ""; position: absolute; right: 10px; top: 50%; width: 5px; height: 5px; margin-top: -3px;
  border-right: 1.4px solid currentColor; border-top: 1.4px solid currentColor; transform: rotate(45deg);
}
.rw-menu .mi.ic svg { display: inline-block; width: 15px; height: 15px; margin-right: 6px; vertical-align: -3px; }
.rw-menu hr { border: 0; border-top: 0.5px solid var(--rw-line); margin: 5px 10px; }
#menu-to { z-index: 40; }

/* Popovers (NSPopover): security, transfers, notes, computer info */
.rw-popover {
  position: absolute; z-index: 31; display: none; width: 318px; padding: 14px;
  background: var(--rw-pop); border-radius: 10px; font-size: 13px; white-space: normal;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2), 0 12px 34px rgba(0, 0, 0, 0.32);
}
.rw-popover.show { display: block; }
.rw-popover::before {
  content: ""; position: absolute; top: -7px; left: var(--arrow, 50%); margin-left: -7px; width: 14px; height: 14px;
  background: var(--rw-pop); transform: rotate(45deg); border-radius: 2px;
}
.rw-popover > * { position: relative; }
.rw-popover p { margin: 6px 0 0; font-size: 11px; color: var(--rw-sub); }
.rw-popover p.sub { margin-top: 0; }
.rw-popover hr { border: 0; border-top: 0.5px solid var(--rw-line); margin: 10px 0; }
.pl-title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.pl-title svg { width: 17px; height: 17px; }
.rw-popover .code { font: 600 26px/1.2 ui-monospace, "SF Mono", Menlo, monospace; margin: 2px 0; letter-spacing: 0.02em; }
#pop-transfers { width: 460px; }
.tr-row { display: flex; gap: 10px; align-items: center; }
.tr-row > svg { width: 28px; height: 28px; flex: none; color: var(--rw-sub); }
.tr-row > div { flex: 1; }
.tr-row b { font-weight: 500; }
.tr-bar { height: 5px; border-radius: 3px; background: rgba(127, 127, 127, 0.2); margin: 5px 0 3px; overflow: hidden; }
.tr-bar i { display: block; height: 100%; width: 0; background: var(--rw-accent); }
.tr-row small { font-size: 11px; color: var(--rw-sub); }
#pop-notes { width: 340px; }
.pn-head b { font-size: 13px; font-weight: 700; }
.pn-group { margin: 12px 0 3px; font-size: 11px; font-weight: 600; color: var(--rw-sub); }
.rw-popover .pn-text { margin: 0; font-size: 12px; color: var(--rw-text); line-height: 1.4; }
.pn-task { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 12px; }
.pn-none, #pop-notes.empty > :not(.pn-head, .pn-none) { display: none; }
#pop-notes.empty .pn-none { display: block; margin-top: 8px; color: var(--rw-sub); }
.pn-task.done span { color: var(--rw-sub); text-decoration: line-through; }
/* Custom checkboxes (notes and the connection request) */
.pn-task i, .rq-c i {
  position: relative; width: 14px; height: 14px; flex: none; border-radius: 3.5px;
  background: var(--rw-btn); box-shadow: 0 0 0 0.5px var(--rw-btn-ring), 0 0.5px 1.5px rgba(0, 0, 0, 0.18);
}
.pn-task.done i, .rq-c.on i { background: var(--rw-accent); box-shadow: none; }
.pn-task.done i::after, .rq-c.on i::after {
  content: ""; position: absolute; left: 4.6px; top: 1.6px; width: 3.6px; height: 7.4px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(42deg);
}
/* Computer info (SystemInfoView) */
#pop-info { width: 520px; padding: 0; }
.ri-head { display: flex; align-items: center; gap: 8px; padding: 12px; }
.ri-head b { flex: 1; font-size: 13px; font-weight: 700; }
.ri-seg { display: flex; margin: 0 12px 8px; padding: 2px; border-radius: 6px; background: rgba(127, 127, 127, 0.16); font-size: 11px; }
.ri-seg span { flex: 1; text-align: center; padding: 2px 0; border-radius: 5px; }
.ri-seg span.on { background: var(--rw-btn); box-shadow: 0 0.5px 1.5px rgba(0, 0, 0, 0.25); }
.ri-body { border-top: 0.5px solid var(--rw-line); padding: 14px; }
.ri-ok { display: flex; align-items: center; gap: 6px; color: #28a745; font-weight: 500; margin-bottom: 12px; }
.ri-ok svg { width: 16px; height: 16px; }
#pop-info dl { display: grid; grid-template-columns: 130px 1fr; gap: 3px 12px; margin: 0; }
#pop-info dt { color: var(--rw-sub); }
#pop-info dd { margin: 0; }

/* Push buttons of the app (alerts, sheets, chat) */
.rw-btn {
  height: 22px; padding: 0 12px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--rw-btn); box-shadow: 0 0 0 0.5px var(--rw-btn-ring), 0 0.5px 1.5px rgba(0, 0, 0, 0.18);
  font-size: 13px; color: var(--rw-text); flex: none;
}
.rw-btn.on { background: var(--rw-accent); color: #fff; box-shadow: none; }
.rw-btn.off { opacity: 0.45; pointer-events: none; }
.rw-btn:active { filter: brightness(0.9); }

/* NSAlert over the session window */
.rw-alert { position: absolute; inset: 0; z-index: 34; display: none; place-items: center; background: rgba(0, 0, 0, 0.08); }
.rw-alert.show { display: grid; }
.al-box { width: 260px; padding: 20px 16px 16px; border-radius: 12px; text-align: center; background: var(--rw-win); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25), 0 20px 50px rgba(0, 0, 0, 0.35); }
.al-box img { width: 64px; height: 64px; margin: 0 auto 10px; }
.al-box b { display: block; font-size: 13px; font-weight: 700; }
.al-box p { margin: 6px 0 14px; font-size: 11px; line-height: 1.35; white-space: normal; }
.al-box .rw-btn { display: flex; height: 24px; margin-top: 6px; }

/* New Connection: a sheet over the session (⌘T, "+") */
.rw-sheet { position: absolute; inset: 38px 0 0; z-index: 33; display: none; background: rgba(255, 255, 255, 0.32); }
@media (prefers-color-scheme: dark) { .rw-sheet { background: rgba(0, 0, 0, 0.32); } }
.rw-sheet.show { display: block; }
.sh-box {
  position: absolute; left: 50%; top: 70px; width: 440px; transform: translateX(-50%); padding: 20px;
  background: var(--rw-win); border-radius: 12px; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25), 0 24px 60px rgba(0, 0, 0, 0.35);
}
.sh-title { display: block; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.sh-field { height: 24px; display: flex; align-items: center; padding: 0 10px; border-radius: 6px; background: var(--rw-btn); box-shadow: 0 0 0 0.5px var(--rw-btn-ring), inset 0 0.5px 1px rgba(0, 0, 0, 0.08); }
.sh-field input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0; background: transparent; font: inherit; font-size: 14px; color: var(--rw-text); }
.sh-field input::placeholder, .sh-ph { color: var(--rw-sub); font-size: 14px; opacity: 0.8; }
.sh-list { margin: 10px 0 12px; }
.sh-row { height: 37px; display: flex; align-items: center; gap: 12px; padding: 0 6px; border-radius: 6px; }
.sh-row[hidden] { display: none; }
.sh-row b { display: block; font-size: 14px; font-weight: 400; line-height: 1.2; }
.sh-row small { display: block; font-size: 11.5px; color: var(--rw-sub); }
.sh-row.sel { background: var(--rw-accent); color: #fff; }
.sh-row.sel small { color: rgba(255, 255, 255, 0.8); }
.sh-pic { position: relative; width: 36px; height: 24px; flex: none; display: grid; place-items: center; }
.sh-pic::before { content: ""; width: 18px; height: 13px; border: 1.6px solid var(--rw-sub); border-bottom-width: 3.5px; border-radius: 2.5px; }
.sh-pic.thumb { border-radius: 3px; background: linear-gradient(170deg, #2a3560, #6b5a80 70%, #977582); }
.sh-pic.thumb::before { width: 22px; height: 10px; border: 0; border-radius: 1px; background: rgba(255, 255, 255, 0.85); margin: -4px 0 0 -6px; }
.sh-pic i { position: absolute; right: 0; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; background: #b1b1b5; box-shadow: 0 0 0 1.5px var(--rw-win); }
.sh-row[data-state="on"] .sh-pic i { background: #34c759; }
.sh-row[data-state="busy"] .sh-pic i { background: #ff9f0a; }
.sh-as { display: flex; align-items: center; gap: 10px; margin: 12px 0 14px; font-size: 14px; }
.sh-as > svg { width: 26px; height: 26px; color: #8e8e93; }
.sh-pop { flex: 1; height: 26px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border-radius: 6px; background: var(--rw-btn); box-shadow: 0 0 0 0.5px var(--rw-btn-ring), 0 0.5px 1.5px rgba(0, 0, 0, 0.18); }
.sh-pop svg, .rc-pick svg { width: 7px; height: 11px; stroke-width: 1.4; }
.sh-buttons { display: flex; gap: 8px; }
.sh-buttons .rw-btn { height: 24px; }
.sh-gap { flex: 1; }

/* Tooltips (.help) */
.rw-tip {
  position: absolute; z-index: 45; display: none; max-width: 300px; padding: 3px 7px; border-radius: 5px;
  background: #f2f2f2; color: #1d1d1f; font-size: 11px; line-height: 1.35; white-space: normal;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.2);
}
@media (prefers-color-scheme: dark) { .rw-tip { background: #3a3a3c; color: #ececec; box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.4); } }
.rw-tip.show { display: block; }

/* Screenshot flash */
.rw-flash { position: absolute; inset: 0; z-index: 11; background: #fff; opacity: 0; pointer-events: none; transition: opacity 0.35s ease-out; }
.rw-flash.on { opacity: 0.85; transition: none; }
.rw-screen.drawing, .rw-screen.drawing .mac * { cursor: crosshair; }

/* Status card over the last picture (ConnectionStatusView) */
.rw-ended { position: absolute; inset: 0; z-index: 12; display: none; place-items: center; background: rgba(0, 0, 0, 0.35); }
.rw-ended.show { display: grid; }
.rw-ended .card {
  width: 420px; padding: 28px 36px; border-radius: 18px; text-align: center; color: #fff; white-space: normal;
  background: rgba(26, 26, 26, 0.78); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.rw-ended svg { width: 44px; height: 44px; margin: 0 auto 14px; }
.rw-ended b { display: block; font-size: 22px; font-weight: 600; }
.rw-ended p { margin: 14px 0 18px; color: rgba(255, 255, 255, 0.8); font-size: 13px; }
.rw-ended .st-buttons { display: flex; justify-content: center; gap: 12px; }
.rw-ended .rw-btn { height: 28px; padding: 0 16px; }
.rw-ended .st-spin { display: none; width: 36px; height: 36px; margin: 0 auto 18px; border-radius: 50%;
  border: 3.5px solid rgba(255, 159, 10, 0.3); border-top-color: #ff9f0a; animation: rw-spin 0.9s linear infinite; }
.rw-ended.busy .st-spin { display: block; }
.rw-ended.busy .st-ended, .rw-ended.busy .st-buttons { display: none; }
@keyframes rw-spin { to { transform: rotate(360deg); } }
/* The overlays belong to the Front Desk session only. */
.rw:not([data-tab="frontdesk"]) :is(.rw-ended, .rw-hidden) { display: none; }

/* Remote control by the visitor: the real pointer hides, ShareDesk's local one takes over */
.rw-screen.control { cursor: none; }
.rw-screen.control .mac * { cursor: none; }
/* The technician's own windows keep the real pointer (the remote one stops at their edge) */
.rw-screen.control .rw-term, .rw-screen.control .rw-browse, .rw-screen.control .rw-stats { cursor: default; }
.rw-titlebar, .tm-bar, .st-head, .fi-bar, .pr-bar, .lg-bar { touch-action: none; }

/* Chat window (ChatWindowController): a separate window, group chat with private messages */
.rw-chat {
  right: 22px; bottom: 22px; width: 340px; height: 440px; z-index: 30; display: none; flex-direction: column;
  background: var(--rw-win); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.4);
}
.rw-chat.show { display: flex; }
.rw-chat .rw-titlebar { height: 28px; flex: none; padding: 0 12px 0 74px; font-size: 13px; color: var(--rw-sub); background: transparent; }
.rw-chat .rw-titlebar span { overflow: hidden; text-overflow: ellipsis; }
.rw-chat .rw-lights { top: 8px; left: 10px; }
.rc-list { flex: 1; overflow-y: auto; padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.rc-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; max-width: 88%; }
.rc-msg.mine { align-self: flex-end; align-items: flex-end; }
.rc-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--who, var(--rw-accent)); white-space: nowrap; }
.rc-meta .priv { display: inline-flex; align-items: center; gap: 4px; color: #f09a1a; }
.rc-meta .priv svg { width: 10px; height: 10px; }
.rc-meta time { color: var(--rw-sub); font-weight: 500; }
.rc-msg p {
  margin: 0; padding: 6px 11px; border-radius: 13px; font-size: 13px; line-height: 1.35;
  background: color-mix(in srgb, var(--who) 16%, transparent); box-shadow: inset 3px 0 0 var(--who);
  user-select: text; -webkit-user-select: text; white-space: pre-wrap; overflow-wrap: anywhere;
}
.rc-msg.mine p { background: var(--rw-accent); color: #fff; box-shadow: none; }
.rc-to { display: flex; align-items: center; gap: 10px; padding: 10px 12px 6px; border-top: 0.5px solid var(--rw-line); font-size: 13px; }
.rc-pick {
  min-width: 150px; height: 22px; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 8px;
  border-radius: 5px; background: var(--rw-btn); box-shadow: 0 0 0 0.5px var(--rw-btn-ring), 0 0.5px 1.5px rgba(0, 0, 0, 0.18);
}
.rc-form { display: flex; align-items: center; gap: 8px; padding: 6px 10px 10px; margin: 0; }
.rc-attach { width: 18px; height: 18px; color: var(--rw-sub); flex: none; }
.rc-form input {
  flex: 1; min-width: 0; height: 26px; padding: 0 9px; border: 0; border-radius: 6px; outline: none;
  font: inherit; color: var(--rw-text); background: var(--rw-btn); box-shadow: 0 0 0 0.5px var(--rw-btn-ring), inset 0 0.5px 1px rgba(0, 0, 0, 0.1);
}
.rc-form input::placeholder { color: var(--rw-sub); }
.rc-form input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--rw-accent) 45%, transparent); }
.rc-form button { border: 0; font: inherit; height: 26px; }

/* ---------- the customer's view: the same Mac, with ShareDesk's request and banner ----------
   The customer's screen fills the frame (the Mac is 1920×1179 points then). ShareDesk's own
   windows on it are drawn 1.4× their size in points, so they stay readable. */
.rw-desk.customer :is(.rw-titlebar, .rw-tabs, .rw-chat, .rw-menu, .rw-popover, .rw-sheet, .rw-alert, .rw-tip,
  .rw-stats, .rw-hidden, .rw-toast, .rw-term, .rw-browse, .rw-ended) { display: none; }
.rw-desk.customer .rw-screen { top: 0; height: 786px; }
.rw-desk.customer #mac { display: block; height: 1179px; }
.rw-desk.customer #mac ~ .mac, .rw-desk.customer.no-session .mac-cursor { display: none; }
:is(.cs-request, .cs-banner, .cs-circle, .cs-paused, .cs-card, .cs-veil) { display: none; }
.rw-desk.customer :is(.cs-request, .cs-banner, .cs-circle, .cs-paused, .cs-card, .cs-veil).show { display: block; }
.cs-request, .cs-card {
  position: absolute; left: 50%; top: 50%; z-index: 22; width: 460px; transform: translate(-50%, -50%) scale(1.4);
  padding: 26px 22px 20px; border-radius: 12px; background: var(--rw-win); color: var(--rw-text); white-space: normal;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.45);
}
.rq-head { display: flex; gap: 18px; align-items: flex-start; margin: 0 0 18px 2px; }
.rq-head img { width: 52px; height: 52px; flex: none; }
.rq-head b { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; }
.rq-head small { display: block; margin-top: 6px; font-size: 12px; color: var(--rw-sub); }
.rq-box { padding: 10px 12px; border-radius: 9px; background: var(--rw-group); }
.rq-h { font-size: 12px; font-weight: 600; color: var(--rw-sub); margin-bottom: 4px; }
.rq-c { display: flex; align-items: center; gap: 10px; min-height: 22.5px; padding: 1px 0; font-size: 13.5px; line-height: 1.2; }
.rq-c svg { width: 16px; height: 16px; color: var(--rw-sub); }
.rq-foot { display: flex; gap: 16px; justify-content: space-between; margin: 16px 2px 0; font-size: 11.5px; color: var(--rw-sub); }
.rq-foot p { margin: 0; max-width: 300px; }
.rq-foot span { white-space: nowrap; opacity: 0.8; }
.rq-buttons { display: flex; gap: 10px; margin-top: 18px; }
.cs-request .mbtn, .cs-card .mbtn { height: 26px; font-size: 13px; padding: 0 14px; background: var(--rw-btn); color: var(--rw-text); box-shadow: 0 0 0 0.5px var(--rw-btn-ring), 0 0.5px 1.5px rgba(0, 0, 0, 0.18); }
.cs-request .mbtn.blue, .cs-card .mbtn.blue { background: var(--rw-accent); color: #fff; box-shadow: none; }
.cs-request .mbtn.wait { opacity: 0.5; pointer-events: none; }
.cs-card { width: 380px; text-align: center; padding: 24px; }
.cs-card b { display: block; font-size: 15px; font-weight: 700; }
.cs-card p { margin: 8px 0 16px; font-size: 12.5px; color: var(--rw-sub); line-height: 1.4; }
/* The session banner at the top of the screen (always dark) and the circle it shrinks to */
.rw-desk.customer .cs-banner.show { display: flex; }
.cs-banner {
  position: absolute; left: 50%; top: 34px; z-index: 31; height: 48px; transform: translateX(-50%) scale(1.4); transform-origin: 50% 0;
  align-items: center; gap: 10px; padding: 0 10px 0 9px; border-radius: 24px; color: #fff; font-size: 14px; white-space: nowrap;
  background: rgba(62, 62, 64, 0.96); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 10px 30px rgba(0, 0, 0, 0.35);
}
.bn-av {
  display: block; width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #8e8e93 0 19%, transparent 20%), radial-gradient(ellipse 34% 26% at 50% 84%, #8e8e93 0 98%, transparent 100%), #e5e5ea;
}
.bn-dot { width: 8px; height: 8px; border-radius: 50%; background: #34c759; }
.cs-banner b { font-weight: 600; }
.bn-more svg { width: 18px; height: 18px; color: rgba(255, 255, 255, 0.7); }
.bn-btn { height: 32px; display: flex; align-items: center; gap: 7px; margin-left: 4px; padding: 0 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.15); font-weight: 600; }
.bn-btn svg { width: 18px; height: 18px; }
.bn-btn.end { margin-left: 0; }
.bn-btn.end:hover { background: #e5484d; }
.bn-btn:not(.end):hover, .bn-shrink:hover { background: rgba(255, 255, 255, 0.24); }
.cs-banner.shown .slash { display: none; }
.bn-shrink { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.bn-shrink svg { width: 13px; height: 13px; }
.bn-details {
  position: absolute; left: 30px; top: 56px; width: 330px; display: none; padding: 12px 14px; border-radius: 12px; white-space: normal;
  background: rgba(50, 50, 52, 0.97); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 30px rgba(0, 0, 0, 0.35); font-size: 12px;
}
.bn-details.show { display: block; }
.bn-details p { margin: 0 0 8px; color: rgba(255, 255, 255, 0.8); line-height: 1.4; }
.bn-details b { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.cs-circle {
  position: absolute; right: 24px; top: 34px; z-index: 31; width: 44px; height: 44px; padding: 4px; border-radius: 50%;
  transform: scale(1.4); transform-origin: 100% 0; background: #2c2c2e; box-shadow: 0 0 0 2.5px #34c759, 0 6px 18px rgba(0, 0, 0, 0.4);
}
.cs-circle .bn-av { width: 36px; height: 36px; }
.cs-paused {
  position: absolute; left: 50%; bottom: 120px; z-index: 21; transform: translateX(-50%) scale(1.4); transform-origin: 50% 100%;
  padding: 8px 16px; border-radius: 18px; background: rgba(30, 30, 32, 0.88); color: #fff; font-size: 13px;
}
.cs-veil { position: absolute; inset: 0; z-index: 29; background: #000; color: rgba(255, 255, 255, 0.85); }
.rw-desk.customer .cs-veil.show { display: grid; place-items: center; }
.cs-veil div { width: 520px; text-align: center; transform: scale(1.4); white-space: normal; }
.cs-veil b { font-size: 20px; font-weight: 600; }
.cs-veil p { font-size: 13.5px; color: rgba(255, 255, 255, 0.65); line-height: 1.45; }

/* ---------- around the demo: the view switch and the hint ---------- */
.demo-switch {
  display: flex; width: max-content; margin: 0 auto 22px; padding: 3px; gap: 2px;
  border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line);
}
.demo-switch .seg {
  padding: 8px 20px; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font: 600 14.5px/1 var(--body); cursor: pointer; transition: background 0.15s, color 0.15s;
}
.demo-switch .seg:hover { color: var(--ink); }
.demo-switch .seg.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); }
.demo-switch .seg:focus-visible { outline: 2px solid var(--red-text); outline-offset: 2px; }
.demo-hint { margin: 18px auto 0; text-align: center; font-size: 14px; color: var(--muted); max-width: 44em; }
.demo-hint b { color: var(--ink); font-weight: 600; }
.demo-hint .touch-only, .demo-hint .hint-customer, .demo.customer .demo-hint .hint-tech { display: none; }
.demo.customer .demo-hint .hint-customer { display: inline; }
@media (hover: none) {
  .demo-hint .mouse-only { display: none; }
  .demo-hint .touch-only { display: inline; }
}

/* Phones: the window at half size (readable), full width, swipe to pan.
   The script sets the frame's width to 1280 × scale. */
@media (max-width: 700px) {
  .demo-scroll {
    margin: -20px -28px -50px; padding: 20px 28px 50px;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .demo-scroll::-webkit-scrollbar { display: none; }
  .rw-screen.drawing { touch-action: none; }
}
@media (max-width: 560px) {
  .demo-scroll { margin: -20px -18px -50px; padding: 20px 18px 50px; }
}

/* Terminal-only session (Terminal in New Connection): a window of its own, no screen */
.rw-tsess {
  position: absolute; left: 150px; top: 120px; width: 760px; height: 470px; z-index: 30; display: none; flex-direction: column;
  border-radius: 10px; overflow: hidden; background: #262626; color: #ececec;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.5), 0 24px 60px rgba(0, 0, 0, 0.45);
}
.rw-tsess.show { display: flex; }
.rw-tsess .rw-titlebar { position: relative; height: 28px; flex: none; display: flex; align-items: center; justify-content: center; padding: 0 74px;
  background: #383838; color: rgba(255, 255, 255, 0.55); font-size: 13px; font-weight: 600; border-bottom: 1px solid #111; cursor: default; }
.rw-tsess .rw-titlebar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-tsess .rw-lights { top: 8px; left: 10px; }
.ts-out, .ts-line { font: 13px/1.45 ui-monospace, "SF Mono", Menlo, "JetBrains Mono", monospace; }
.ts-out { margin: 0; padding: 10px 12px 0; overflow: auto; white-space: pre-wrap; tab-size: 8; scrollbar-width: none; }
.ts-line { display: flex; gap: 0.6em; padding: 0 12px 12px; flex: 1; align-items: flex-start; }
.ts-ps { white-space: nowrap; font-weight: 700; }
.ts-line input { flex: 1; min-width: 0; padding: 0; border: 0; outline: none; background: none; color: inherit; font: inherit; caret-color: #ececec; caret-shape: block; }


/* (after the rules above, so these win) */
@media (max-width: 960px) {
  .demo { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .printer, .rw-toast, .demo-switch .seg { transition: none; }
  .rw-term .caret, .rw-ended .st-spin { animation: none; }
}
