/* ============================================================
   Collaborate — "Co-Work" multi-window web workspace
   A desktop-class canvas where the user launches AI sites into
   draggable / resizable glass windows (macOS-style controls).
   Desktop only — a friendly block is shown on small screens.
   Built on the shared cream-glass design tokens (variables.css).
   ============================================================ */

.collab-page {
  overflow: hidden;                 /* the canvas owns scrolling, not the body */
  height: 100vh;
}

/* ---- Shell: everything below the fixed navbar ---- */
.collab-shell {
  position: fixed;
  inset: var(--navbar-height) 0 0 0;
  display: flex;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(88, 86, 214, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(0, 113, 227, 0.07), transparent 55%),
    var(--color-bg-secondary);
}

/* Subtle "engineering paper" dotted grid on the canvas for an OS feel */
.collab-canvas {
  position: relative;
  flex: 1;
  overflow: hidden;
  background-image:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.06) 1px, transparent 1.4px);
  background-size: 26px 26px;
  background-position: -13px -13px;
  transition: background-color var(--transition-base);
}

/* ============================================================
   LEFT RAIL — site launcher, docks to the screen edge
   ============================================================ */
.collab-rail {
  position: relative;
  z-index: 6;
  flex: 0 0 auto;
  width: 224px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  padding: var(--spacing-md) var(--spacing-sm);
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--glass-border);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.05);
  transition: width var(--transition-smooth), padding var(--transition-smooth);
}

.collab-rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs) var(--spacing-sm) var(--spacing-sm);
  min-height: 34px;
}

.collab-rail__heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  transition: opacity var(--transition-fast);
}
.collab-rail__title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  letter-spacing: var(--letter-spacing-tight);
  white-space: nowrap;
}
.collab-rail__hint {
  font-size: 11px;
  color: var(--color-text-tertiary);
  white-space: nowrap;
}

.collab-rail__toggle {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: transform var(--transition-base), background var(--transition-fast), color var(--transition-fast);
}
.collab-rail__toggle:hover {
  background: var(--color-surface-glass-hover);
  color: var(--color-text-primary);
}
.collab-rail__toggle svg { width: 16px; height: 16px; transition: transform var(--transition-smooth); }

.collab-rail__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  scrollbar-width: thin;
}
.collab-rail__sep {
  height: 1px;
  margin: 6px 10px;
  background: var(--glass-border);
  border: none;
}

.collab-rail__btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text-secondary);
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: background var(--transition-fast), border-color var(--transition-fast),
              transform var(--transition-fast), color var(--transition-fast);
}
.collab-rail__btn:hover {
  background: var(--color-surface-glass-hover);
  border-color: var(--glass-border);
  color: var(--color-text-primary);
  transform: translateX(2px);
}
.collab-rail__btn:active { transform: translateX(2px) scale(0.985); }
.collab-rail__btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.collab-rail__btn.is-open {
  border-color: rgba(0, 113, 227, 0.35);
  background: rgba(0, 113, 227, 0.06);
  box-shadow: inset 3px 0 0 var(--color-accent-primary);
}

/* Unpin (×) control on pinned buttons — appears on hover */
.collab-rail__unpin {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--color-text-tertiary);
  background: var(--color-surface);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}
.collab-rail__unpin svg { width: 12px; height: 12px; }
.collab-rail__btn:hover .collab-rail__unpin { opacity: 1; pointer-events: auto; transform: translateY(-50%) scale(1); }
.collab-rail__unpin:hover { color: var(--color-error); background: rgba(255, 59, 48, 0.1); }
.collab-rail--collapsed .collab-rail__unpin { display: none; }

/* Monogram badge — brand-tinted, no external favicons needed */
.collab-badge {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  color: #fff;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 2px 6px rgba(0, 0, 0, 0.12);
}
.collab-badge svg { width: 17px; height: 17px; }

.collab-rail__label { overflow: hidden; text-overflow: ellipsis; transition: opacity var(--transition-fast); }

/* Collapsed rail: icons only, docked tight to the edge */
.collab-rail--collapsed { width: 60px; padding-left: 6px; padding-right: 6px; }
.collab-rail--collapsed .collab-rail__heading,
.collab-rail--collapsed .collab-rail__label { opacity: 0; pointer-events: none; width: 0; }
.collab-rail--collapsed .collab-rail__head { justify-content: center; padding-left: 0; padding-right: 0; }
.collab-rail--collapsed .collab-rail__btn { justify-content: center; padding: 8px 0; }
.collab-rail--collapsed .collab-rail__btn:hover { transform: none; }
.collab-rail--collapsed .collab-rail__btn.is-open::after { display: none; }
.collab-rail--collapsed .collab-rail__toggle svg { transform: rotate(180deg); }

/* Tooltip flyout for collapsed rail buttons */
.collab-rail--collapsed .collab-rail__btn::before {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: rgba(26, 26, 26, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-md);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 20;
}
.collab-rail--collapsed .collab-rail__btn:hover::before { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ============================================================
   CANVAS TOOLBAR (top-right) — window count + arrange + reset
   ============================================================ */
.collab-toolbar {
  position: absolute;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;              /* above windows, below the modal */
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: var(--radius-full);
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  transition: opacity var(--transition-base), transform var(--transition-base);
}
.collab-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 10px;
  height: 32px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.collab-count__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.5);
}
.collab-count.is-full .collab-count__dot { background: var(--color-warning); box-shadow: 0 0 8px rgba(255, 149, 0, 0.5); }

.collab-tool-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.collab-tool-btn:hover { background: var(--color-surface-glass-hover); color: var(--color-text-primary); }
.collab-tool-btn:active { transform: scale(0.92); }
.collab-tool-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.collab-tool-btn svg { width: 17px; height: 17px; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.collab-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  text-align: center;
  padding: var(--spacing-xl);
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base);
}
.collab-empty.is-hidden { opacity: 0; transform: scale(0.98); }
.collab-empty__icon {
  width: 76px; height: 76px;
  display: grid; place-items: center;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  color: var(--color-accent-primary);
  animation: collabFloat 6s ease-in-out infinite;
}
.collab-empty__icon svg { width: 36px; height: 36px; }
.collab-empty__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  letter-spacing: var(--letter-spacing-tight);
}
.collab-empty__text {
  max-width: 420px;
  font-size: var(--font-size-base);
  color: var(--color-text-tertiary);
  line-height: var(--line-height-relaxed);
}
@keyframes collabFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(-2deg); }
}

/* ============================================================
   WINDOW
   ============================================================ */
.collab-win {
  position: absolute;
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 220px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  will-change: transform, width, height;
  animation: collabWinIn var(--transition-smooth) cubic-bezier(0.16, 1, 0.3, 1);
}
.collab-win.is-active {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 113, 227, 0.28);
}
.collab-win.is-dragging, .collab-win.is-resizing { transition: none; user-select: none; }
.collab-win.is-dragging { cursor: grabbing; }
.collab-win.is-animating { transition: left var(--transition-smooth), top var(--transition-smooth),
                                        width var(--transition-smooth), height var(--transition-smooth); }
.collab-win.is-closing { animation: collabWinOut 260ms cubic-bezier(0.4, 0, 1, 1) forwards; }

@keyframes collabWinIn {
  from { opacity: 0; transform: scale(0.9) translateY(14px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes collabWinOut {
  to { opacity: 0; transform: scale(0.92) translateY(10px); }
}

/* Title bar */
.collab-win__bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  height: 42px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
  border-bottom: 1px solid var(--glass-border);
  cursor: grab;
  user-select: none;
}
.collab-win__bar:active { cursor: grabbing; }

/* macOS traffic lights */
.collab-win__lights { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.collab-win__light {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition-fast), filter var(--transition-fast);
}
.collab-win__light:hover { filter: brightness(1.05); }
.collab-win__light:active { transform: scale(0.88); }
.collab-win__light--close  { background: #ff5f57; }
.collab-win__light--reset  { background: #febc2e; }
.collab-win__light--expand { background: #28c840; }
/* glyphs on hover, macOS-style */
.collab-win__light svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px; height: 9px;
  opacity: 0;
  color: rgba(0, 0, 0, 0.55);
  transition: opacity var(--transition-fast);
}
.collab-win__lights:hover .collab-win__light svg { opacity: 1; }

.collab-win__title {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}
.collab-win__title .collab-badge { width: 20px; height: 20px; border-radius: 6px; font-size: 10px; }
.collab-win__title .collab-badge svg { width: 12px; height: 12px; }
.collab-win__title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.collab-win__bar-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.collab-win__bar-btn {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-tertiary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.collab-win__bar-btn:hover { background: var(--color-surface-glass-hover); color: var(--color-text-primary); }
.collab-win__bar-btn svg { width: 15px; height: 15px; }

/* Login / embed notice strip */
.collab-win__notice {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 12px;
  line-height: 1.35;
  color: #7a5b00;
  background: rgba(255, 196, 0, 0.14);
  border-bottom: 1px solid rgba(255, 196, 0, 0.28);
  overflow: hidden;
}
.collab-win__notice svg { flex: 0 0 auto; width: 15px; height: 15px; }
.collab-win__notice-text { flex: 1 1 auto; min-width: 0; }
.collab-win__notice-link {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 3px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent-primary);
  text-decoration: none;
  white-space: nowrap;
}
.collab-win__notice-link:hover { text-decoration: underline; }
.collab-win__notice-close {
  flex: 0 0 auto;
  border: none; background: transparent; cursor: pointer;
  color: #9a7b1a; display: grid; place-items: center; padding: 2px; border-radius: 4px;
}
.collab-win__notice-close:hover { background: rgba(0, 0, 0, 0.06); }
.collab-win__notice-close svg { width: 13px; height: 13px; }

/* Body / iframe */
.collab-win__body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: var(--color-bg-primary);
}
.collab-win__frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #fff;
}
/* While dragging/resizing ANY window, block iframe pointer capture so the
   drag doesn't get "swallowed" when the cursor passes over an iframe. */
.collab-shell.is-interacting .collab-win__frame { pointer-events: none; }

.collab-win__loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  background: var(--color-bg-primary);
  color: var(--color-text-tertiary);
  transition: opacity var(--transition-base);
}
.collab-win__loader.is-hidden { opacity: 0; pointer-events: none; }
.collab-spinner {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent-primary);
  animation: collabSpin 0.8s linear infinite;
}
@keyframes collabSpin { to { transform: rotate(360deg); } }

/* Resize handles — kept inside the window so overflow:hidden won't clip them */
.collab-win__rz { position: absolute; z-index: 4; touch-action: none; }
.collab-win__rz--n  { top: 0; left: 14px; right: 14px; height: 6px; cursor: ns-resize; }
.collab-win__rz--s  { bottom: 0; left: 14px; right: 14px; height: 6px; cursor: ns-resize; }
.collab-win__rz--e  { right: 0; top: 14px; bottom: 14px; width: 6px; cursor: ew-resize; }
.collab-win__rz--w  { left: 0; top: 14px; bottom: 14px; width: 6px; cursor: ew-resize; }
.collab-win__rz--ne { top: 0; right: 0; width: 14px; height: 14px; cursor: nesw-resize; }
.collab-win__rz--nw { top: 0; left: 0; width: 14px; height: 14px; cursor: nwse-resize; }
.collab-win__rz--se { bottom: 0; right: 0; width: 18px; height: 18px; cursor: nwse-resize; }
.collab-win__rz--sw { bottom: 0; left: 0; width: 14px; height: 14px; cursor: nesw-resize; }
/* visible grip on the SE corner */
.collab-win__rz--se::after {
  content: "";
  position: absolute;
  right: 3px; bottom: 3px;
  width: 8px; height: 8px;
  border-right: 2px solid var(--color-text-tertiary);
  border-bottom: 2px solid var(--color-text-tertiary);
  border-bottom-right-radius: 3px;
  opacity: 0.5;
}

/* ============================================================
   CUSTOM URL MODAL
   ============================================================ */
.collab-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  background: rgba(20, 20, 25, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.collab-modal.is-open { opacity: 1; pointer-events: auto; }
.collab-modal__card {
  width: min(440px, 100%);
  background: var(--color-bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--spacing-xl);
  transform: translateY(14px) scale(0.97);
  transition: transform var(--transition-smooth);
}
.collab-modal.is-open .collab-modal__card { transform: translateY(0) scale(1); }
.collab-modal__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xs);
}
.collab-modal__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--spacing-lg);
  line-height: var(--line-height-normal);
}
.collab-modal__input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-family: inherit;
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.collab-modal__input:focus {
  outline: none;
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}
.collab-modal__error {
  min-height: 18px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-error);
}
/* Pin checkbox */
.collab-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--spacing-md);
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-secondary);
  cursor: pointer;
  user-select: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.collab-check:hover { border-color: var(--color-border-hover); }
.collab-check__input { position: absolute; opacity: 0; width: 0; height: 0; }
.collab-check__box {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 1.5px solid var(--color-border-hover);
  border-radius: 7px;
  background: var(--color-bg-primary);
  color: #fff;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.collab-check__box svg { width: 14px; height: 14px; opacity: 0; transform: scale(0.6); transition: opacity var(--transition-fast), transform var(--transition-bounce); }
.collab-check__input:checked + .collab-check__box {
  background: var(--color-gradient);
  border-color: transparent;
}
.collab-check__input:checked + .collab-check__box svg { opacity: 1; transform: scale(1); }
.collab-check__input:focus-visible + .collab-check__box { box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.25); }
.collab-check__label { font-size: var(--font-size-sm); color: var(--color-text-secondary); line-height: 1.35; }

.collab-modal__actions { display: flex; justify-content: flex-end; gap: var(--spacing-sm); margin-top: var(--spacing-md); }
.collab-btn {
  height: 42px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.collab-btn:active { transform: scale(0.97); }
.collab-btn--ghost { background: transparent; border-color: var(--color-border); color: var(--color-text-secondary); }
.collab-btn--ghost:hover { background: var(--color-surface-glass-hover); color: var(--color-text-primary); }
.collab-btn--primary { background: var(--color-gradient); color: #fff; box-shadow: var(--shadow-glow); }
.collab-btn--primary:hover { box-shadow: var(--shadow-glow-strong); }

/* ============================================================
   MOBILE / SMALL-SCREEN BLOCK
   ============================================================ */
.collab-mobile {
  display: none;
  position: fixed;
  inset: var(--navbar-height) 0 0 0;
  z-index: 10;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-xl);
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(88, 86, 214, 0.1), transparent 60%),
    var(--color-bg-secondary);
}
.collab-mobile__icon {
  width: 84px; height: 84px;
  display: grid; place-items: center;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  color: var(--color-accent-primary);
}
.collab-mobile__icon svg { width: 40px; height: 40px; }
.collab-mobile__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  letter-spacing: var(--letter-spacing-tight);
}
.collab-mobile__text {
  max-width: 360px;
  font-size: var(--font-size-base);
  color: var(--color-text-tertiary);
  line-height: var(--line-height-relaxed);
}
.collab-mobile__link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 22px;
  border-radius: var(--radius-full);
  background: var(--color-gradient);
  color: #fff;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  text-decoration: none;
  box-shadow: var(--shadow-glow);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.collab-mobile__link:hover { box-shadow: var(--shadow-glow-strong); transform: translateY(-1px); }

/* Screens too small / coarse pointer → block the workspace, show notice */
@media (max-width: 860px) {
  .collab-shell { display: none; }
  .collab-mobile { display: flex; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .collab-win, .collab-empty__icon, .collab-spinner { animation: none !important; }
  .collab-win, .collab-rail, .collab-modal, .collab-modal__card { transition: none !important; }
}
