/* app-operator-rail.css · shared CSS for the universal operator rail
 * Friction items #175-#177 · 2026-06-06
 *
 * Loaded by any page that adds:
 *   <link rel="stylesheet" href="/css/app-operator-rail.css">
 *   <script src="/js/app-operator-rail.js" defer></script>
 *
 * Provides: floating back-to-top button · help overlay · print stylesheet.
 * Companion JS module wires keyboard shortcuts (? / 0 Esc).
 */

#aor-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent, #2563eb);
  color: #fff;
  border: 0;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  display: none;
  z-index: 90;
  line-height: 1;
}
#aor-back-to-top:hover { background: #1d4ed8; }

#aor-help-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}
#aor-help-overlay.show { display: flex; }
#aor-help-overlay .aor-help-card {
  background: #fff;
  color: var(--text, #111);
  border-radius: 10px;
  padding: 22px 28px;
  max-width: 540px;
  width: 90%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  font: 13.5px/1.5 'IBM Plex Sans', system-ui, sans-serif;
}
#aor-help-overlay h3 { margin: 0 0 12px; font-size: 15px; }
#aor-help-overlay kbd {
  display: inline-block;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  padding: 1px 7px;
  font-family: ui-monospace, monospace;
  font-size: 11.5px;
}
#aor-help-overlay table { width: 100%; border-collapse: collapse; }
#aor-help-overlay td { padding: 4px 6px; }
#aor-help-overlay td:first-child { text-align: right; width: 120px; white-space: nowrap; }
#aor-help-overlay .aor-help-footer {
  margin-top: 14px;
  font-size: 12px;
  color: #6b7280;
}
#aor-help-overlay .aor-help-close {
  text-align: right;
  margin-top: 14px;
}
#aor-help-overlay .aor-help-close button {
  padding: 5px 14px;
  border: 1px solid var(--border, #d1d5db);
  background: #fff;
  border-radius: 4px;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}

/* Print: hide chrome, keep content. Pages with their own @media print rules
 * stay in control; this set only hides what the rail itself injected, plus
 * the well-known shared shells. */
@media print {
  #aor-back-to-top,
  #aor-help-overlay,
  app-topnav,
  .app-topnav,
  #app-topnav,
  #chatbar-host,
  #chatbar-root,
  .has-app-chatbar > [class*="chatbar"],
  .add-card,
  .filters {
    display: none !important;
  }
  body.has-app-chatbar { background: #fff !important; }
}
