/* Shared wiring for the B/C feature modules. Feature styling lives in each
 * module stylesheet; this file only places the module-owned DOM in the two
 * clients and adds the message-selection quote affordance. */
.ct-anchor {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
}
#session-search-host {
  margin: 8px 0 12px;
}
#session-search-host.hidden { display: none !important; }
.dr-bc-search-toggle.is-active { border-color: var(--dsr-accent, #58a6ff); }

.ct-quote-pick {
  position: fixed;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--dsr-accent, #58a6ff);
  border-radius: 10px;
  background: var(--dsr-panel, #161b22);
  color: var(--dsr-text, #f0f6fc);
  font: inherit;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  cursor: pointer;
}
.ct-quote-pick[hidden], .ct-quote-pick.hidden { display: none !important; }
.ct-quote-pick:focus-visible { outline: 2px solid var(--dsr-accent, #58a6ff); outline-offset: 2px; }

/* The session-actions dialog receives the C3 row actions at runtime. */
#session-admin-actions:empty { display: none; }
#session-admin-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }

/* Workspace administration dialog, mounted by C3. */
#modal-workspace-admin .dr-session-admin-host { margin: 0; }

/* Desktop settings do not load the mobile form styles; give the one added
 * switch the same compact appearance without touching the shared stylesheet. */
.ds-setting-row .switch {
  position: relative;
  display: inline-block;
  flex: none;
  width: 46px;
  height: 27px;
}
.ds-setting-row .switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.ds-setting-row .switch .slider {
  position: absolute;
  inset: 0;
  border: 1px solid var(--dsr-line, #30363d);
  border-radius: 999px;
  background: var(--dsr-bg-2, #21262d);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.ds-setting-row .switch .slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--dsr-text-disabled, #8b949e);
  transition: transform .15s ease, background-color .15s ease;
}
.ds-setting-row .switch input:checked + .slider {
  background: var(--dsr-accent-soft, rgba(88, 166, 255, .16));
  border-color: var(--dsr-accent, #58a6ff);
}
.ds-setting-row .switch input:checked + .slider::before {
  transform: translateX(19px);
  background: var(--dsr-accent, #58a6ff);
}
.ds-setting-row .switch input:focus-visible + .slider { outline: 2px solid var(--dsr-accent, #58a6ff); outline-offset: 2px; }
