/* LC Systems left menu (lcsm-) — Bible-matched tab/drawer behaviour from
   /workspace/lc-synced-nav-overlay/, with Encounter hero menu contents.
   Prefix lcsm- on every class, id, CSS variable and localStorage key.
   Do not use the kit prefix or the host video-chat page prefix.
   No build step. */

/* ===== Bible page base, scoped to the LC menu (zero specificity via :where, so lc-nav rules below win exactly as on Bible) ===== */
:where(.lcsm-edge-tab, .lcsm-trigger, .lcsm-backdrop, .lcsm-drawer, .lcsm-edge-strip),
:where(.lcsm-edge-tab, .lcsm-trigger, .lcsm-drawer) *,
:where(.lcsm-edge-tab, .lcsm-trigger, .lcsm-drawer) *::before,
:where(.lcsm-edge-tab, .lcsm-trigger, .lcsm-drawer) *::after,
:where(.lcsm-edge-tab, .lcsm-trigger, .lcsm-drawer)::before,
:where(.lcsm-edge-tab, .lcsm-trigger, .lcsm-drawer)::after { box-sizing: border-box; }
:where(.lcsm-drawer) {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px; font-weight: 400; font-style: normal; letter-spacing: normal;
  color: #1a1614; line-height: 1.4;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:where(button.lcsm-edge-tab, button.lcsm-trigger) {
  font: 400 16px/1.4 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #1a1614; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  cursor: pointer; border: none; background: none; padding: 0; margin: 0;
}
:where(.lcsm-drawer) :where(button, input) { font: inherit; color: inherit; }
:where(.lcsm-drawer) :where(button) { cursor: pointer; border: none; background: none; padding: 0; margin: 0; }
:where(.lcsm-drawer) :where(a) { color: #7a2e3a; text-decoration: none; }
:where(.lcsm-drawer) :where(a:hover) { text-decoration: underline; }
:where(.lcsm-drawer) :where(h2) { margin-top: 0; }

/* LC Features & Platforms drawer — class prefix lcsm-
   Tokens: CTO + Sphere (navy / cream / gold) + Rigo purple tab chrome. */
:root {
  --lcsm-ink: #0b1220;
  --lcsm-navy: #1a2744;
  --lcsm-navy-mid: #243556;
  --lcsm-cream: #f7f1e8;
  --lcsm-cream-2: #efe6d8;
  --lcsm-cream-soft: #fbf7f1;
  --lcsm-gold: #c9a227;
  --lcsm-gold-soft: #e8d48a;
  --lcsm-gold-deep: #a8841a;
  --lcsm-muted: #8a93a6;
  --lcsm-drawer-w: min(400px, 94vw);
  --lcsm-ease: cubic-bezier(.22, .61, .36, 1);
  --lcsm-z-backdrop: 10000;
  --lcsm-z-drawer: 10010;
  --lcsm-z-edge: 10005;
  --lcsm-tab-purple: #292477; /* exact closed-ref rgb(41,36,119) */
  --lcsm-tab-purple-hover: #3230a0;
  --lcsm-tab-purple-deep: #30288a;
  --lcsm-edge-navy: #0a122a; /* retained for LC mark circle only */
  --lcsm-edge-chrome: #f6f1e7; /* parchment closed-chrome — no black page edges (Rigo) */
  --lcsm-edge-chrome-soft: #fbf8f2;
  --lcsm-header-lav: #d1cde4;
  --lcsm-label: #2a2a3a;
  --lcsm-tab-w: 40px;
  --lcsm-tab-radius: 20px; /* half width → true semicircular left edge on right-side tab */
  --lcsm-strip-w: 40px;    /* parchment edge strip (no black/navy gutters) */
  --lcsm-font: "Inter", Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.lcsm-on .shell > .side {
  position: relative;
  z-index: 1;
}

.mi {
  font-family: "Material Icons Outlined", "Material Icons", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
}

/* —— Closed chrome: RIGHT edge, parchment strip (Rigo: no black Bible chrome) ——
   40px purple pill, left-only radius 20px (smooth semicircle into parchment),
   soft glow, white SHOW label, < chevrons. */
.lcsm-edge-strip {
  position: fixed;
  right: 0;
  left: auto;
  top: 0;
  bottom: 0;
  width: var(--lcsm-strip-w);
  background: var(--lcsm-edge-chrome);
  box-sizing: border-box;
  z-index: var(--lcsm-z-edge);
  pointer-events: none;
}
.lcsm-edge-tab {
  position: fixed;
  right: 0;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: calc(var(--lcsm-z-edge) + 1);
  width: var(--lcsm-tab-w);
  height: min(530px, 88vh);
  min-height: 400px;
  padding: 20px 0 22px;
  border: none;
  /* Left-only fully rounded — bubble curve into parchment; right flush to viewport */
  border-radius: var(--lcsm-tab-radius) 0 0 var(--lcsm-tab-radius);
  background: var(--lcsm-tab-purple);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  /* Soft glow — not a hard drop shadow */
  box-shadow:
    0 0 18px rgba(41, 36, 119, .55),
    0 0 6px rgba(41, 36, 119, .4),
    -2px 0 14px rgba(26, 22, 20, .12);
  transition: background .18s ease, box-shadow .18s ease, opacity .2s var(--lcsm-ease), visibility .2s;
  font-family: var(--lcsm-font);
}
.lcsm-edge-tab:hover {
  background: var(--lcsm-tab-purple-hover);
  box-shadow:
    0 0 22px rgba(50, 48, 160, .6),
    0 0 8px rgba(41, 36, 119, .45),
    -2px 0 16px rgba(26, 22, 20, .14);
}
.lcsm-edge-tab:focus-visible {
  outline: 2px solid var(--lcsm-gold);
  outline-offset: 2px;
}
.lcsm-edge-tab-chev {
  flex: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-family: var(--lcsm-font);
  text-shadow: 0 0 6px rgba(255, 255, 255, .35);
}
.lcsm-edge-tab-label {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: none; /* right-edge tab: top→bottom */
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.15;
  white-space: nowrap;
  color: #fff;
  font-family: var(--lcsm-font);
  text-shadow: 0 0 6px rgba(255, 255, 255, .25);
}
body.lcsm-drawer-open .lcsm-edge-strip,
body.lcsm-drawer-open .lcsm-edge-tab {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Optional hamburger — hidden; SHOW tab is primary */
.lcsm-trigger {
  display: none !important;
}

/* Backdrop */
.lcsm-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--lcsm-z-backdrop);
  background: rgba(11, 18, 32, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--lcsm-ease), visibility .22s;
  backdrop-filter: blur(2px);
  pointer-events: none;
}
.lcsm-backdrop.lcsm-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* —— Drawer (open): white panel + LC header + grids + HIDE tab —— */
.lcsm-drawer {
  position: fixed;
  top: 0;
  left: auto;
  right: 0;
  bottom: 0;
  z-index: var(--lcsm-z-drawer);
  width: var(--lcsm-drawer-w);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--lcsm-label);
  box-shadow: -12px 0 48px rgba(11, 18, 32, .35);
  transform: translateX(105%);
  transition: transform .28s var(--lcsm-ease);
  overflow: hidden;
  isolation: isolate;
  pointer-events: auto;
  font-family: var(--lcsm-font);
}
.lcsm-drawer.lcsm-open { transform: translateX(0); }

/* Lavender LC header */
.lcsm-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--lcsm-header-lav);
  border-bottom: 1px solid rgba(255, 255, 255, .85);
  min-height: 56px;
  box-sizing: border-box;
}
.lcsm-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lcsm-edge-navy); /* dark navy circle + white LC */
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  flex: none;
  font-family: var(--lcsm-font);
}
.lcsm-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  flex: 1;
}
.lcsm-brand-title {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
}
.lcsm-brand-title strong,
.lcsm-brand strong {
  position: relative;
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  color: var(--lcsm-navy); /* bold navy title on lavender header */
  letter-spacing: .01em;
  line-height: 1.2;
}
/* Header title: hover = underline ONLY; click = Directory MOS hub when href is live preview */
.lcsm-brand-title:hover strong::after,
.lcsm-brand-title:focus-visible strong::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--lcsm-gold);
  border-radius: 1px;
}
.lcsm-brand-title:focus-visible {
  outline: 2px solid var(--lcsm-gold);
  outline-offset: 2px;
  border-radius: 4px;
}
.lcsm-brand > span:not(.lcsm-brand-title) { display: none; } /* hide leftover subtitle spans only */
.lcsm-brand .lcsm-brand-title { display: inline-block; }
.lcsm-close {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #1f1f2e; /* Rigo ref charcoal glyph rgb(31,31,46) */
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
}
.lcsm-close:hover {
  background: rgba(31, 31, 46, .08);
}
.lcsm-close .mi { font-size: 22px; }

/* Header collapse control — exact Rigo glyph: vertical bar + left arrow */
.lcsm-collapse-ico {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
}


.lcsm-scroll {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 12px 12px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(40, 36, 119, .35) transparent;
  background: #fff;
}

/* Section titles — centered, clear hierarchy */
.lcsm-sec {
  margin-bottom: 36px;
}
.lcsm-sec:last-child { margin-bottom: 12px; }
.lcsm-sec-title {
  margin: 0 0 22px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--lcsm-tab-purple-deep);
  letter-spacing: .01em;
  font-family: var(--lcsm-font);
}
.lcsm-sec-title::after { display: none; }

/* Hide old platforms toggle chrome */
.lcsm-sec-toggle,
.lcsm-sec-meta,
.lcsm-collapse[hidden] { display: none !important; }
.lcsm-collapse:not([hidden]) {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

/* Grid of circular thumbs + labels — cells must fit full labels (e.g. Communications) */
.lcsm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px 16px;
  align-items: start;
}
.lcsm-grid-features {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.lcsm-grid-platforms {
  /* Was 7×minmax(0,1fr) — cells shrank and clipped "Communications" */
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
@media (max-width: 640px) {
  .lcsm-grid-features,
  .lcsm-grid-platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.lcsm-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  min-width: 0;
  padding: 6px 6px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--lcsm-label);
  overflow: visible;
  transition: background .15s ease, box-shadow .15s ease;
}
/* Hover = gold underline on label only (no navigation). Click = follow href only if real preview URL. */
.lcsm-tile:hover,
.lcsm-tile:focus-visible {
  background: transparent;
  box-shadow: none;
}
.lcsm-tile:focus-visible {
  outline: 2px solid var(--lcsm-gold);
  outline-offset: 2px;
}
.lcsm-thumb {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow:
    inset 0 0 0 1px rgba(11, 18, 32, .12),
    0 2px 8px rgba(11, 18, 32, .18);
  position: relative;
  overflow: hidden;
}
.lcsm-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, .42);
  border-radius: 50%;
}
.lcsm-thumb .mi {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #fff;
  line-height: 1;
}
.lcsm-tile-label {
  position: relative;
  display: inline-block;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--lcsm-label);
  font-family: var(--lcsm-font);
  white-space: normal;
  overflow: visible;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

/* Hover = underline ONLY on Feature / Platform labels (no nav on hover; click follows real preview href) */
.lcsm-tile:hover .lcsm-tile-label::after,
.lcsm-tile:focus-visible .lcsm-tile-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--lcsm-gold);
  border-radius: 1px;
}


/* Unconnected / reserved tiles — hover underline stays; click blocked in JS when href is # */
.lcsm-tile.lcsm-tile--nobot,
.lcsm-tile[data-status="no-bot"] {
  opacity: 0.42;
  cursor: default;
  pointer-events: none;
}
.lcsm-tile.lcsm-tile--nobot:hover,
.lcsm-tile.lcsm-tile--nobot:focus-visible,
.lcsm-tile[data-status="no-bot"]:hover,
.lcsm-tile[data-status="no-bot"]:focus-visible {
  background: transparent;
  box-shadow: none;
}
.lcsm-tile[data-status="awaiting-preview"] {
  opacity: 0.85;
  cursor: default;
}
.lcsm-tile[data-status="excluded"] {
  opacity: 0.45;
  cursor: not-allowed;
}
.lcsm-tile[data-status="connected"] {
  opacity: 1;
  cursor: pointer;
}

/* Row dividers between grid visual rows (subtle) */
.lcsm-sec-features .lcsm-grid,
.lcsm-sec-platforms .lcsm-grid {
  padding-bottom: 4px;
}

/* Footer strip (minimal — screenshot has no logout; keep compact note optional) */
.lcsm-foot {
  display: none;
}

/* HIDE tab — on left edge of open (right-side) drawer; curve into parchment */
.lcsm-hide-rail {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  bottom: 0;
  width: var(--lcsm-tab-w);
  background: var(--lcsm-edge-chrome);
  box-sizing: border-box;
  pointer-events: none;
  z-index: 2;
}
.lcsm-hide-tab {
  position: absolute;
  top: 50%;
  /* Sit on the left edge of the drawer; curve bubbles into parchment gutter */
  left: 0;
  right: auto;
  transform: translateY(-50%);
  width: var(--lcsm-tab-w);
  height: min(530px, 88vh);
  min-height: 400px;
  padding: 20px 0 22px;
  border: none;
  border-radius: var(--lcsm-tab-radius) 0 0 var(--lcsm-tab-radius);
  background: var(--lcsm-tab-purple);
  color: #fff;
  cursor: pointer;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: auto;
  z-index: 3;
  font-family: var(--lcsm-font);
  box-shadow:
    0 0 18px rgba(41, 36, 119, .55),
    0 0 6px rgba(41, 36, 119, .4);
  transition: background .18s ease, box-shadow .18s ease;
}
.lcsm-drawer.lcsm-open .lcsm-hide-tab { display: flex; }
.lcsm-hide-tab:hover {
  background: var(--lcsm-tab-purple-hover);
  box-shadow:
    0 0 22px rgba(50, 48, 160, .6),
    0 0 8px rgba(41, 36, 119, .45);
}
.lcsm-hide-tab:focus-visible {
  outline: 2px solid var(--lcsm-gold);
  outline-offset: 2px;
}

/* Pad drawer content so it doesn't sit under HIDE rail (left edge) */
.lcsm-drawer.lcsm-open .lcsm-scroll,
.lcsm-drawer.lcsm-open .lcsm-head {
  padding-left: calc(28px + var(--lcsm-tab-w));
}
.lcsm-drawer.lcsm-open .lcsm-head {
  padding-left: calc(16px + var(--lcsm-tab-w));
}

body.lcsm-drawer-open { /* overflow unchanged */ }

body.lcsm-drawer-open .leaflet-container,
body.lcsm-drawer-open .leaflet-pane,
body.lcsm-drawer-open .leaflet-top,
body.lcsm-drawer-open .leaflet-bottom,
body.lcsm-drawer-open .leaflet-control-container {
  z-index: 0 !important;
}
body.lcsm-drawer-open header.top {
  z-index: 0;
  position: relative;
}

/* —— Bible copy only: resizable drawer (grip on inner, page-facing edge) —— */
.lcsm-resize-grip {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--lcsm-tab-w); /* right-side drawer: just inside the HIDE rail on the left edge */
  right: auto;
  width: 14px;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  background: var(--lcsm-cream-soft);
  border-left: 1px solid var(--lcsm-cream-2);
  border-right: 1px solid var(--lcsm-cream-2);
  box-sizing: border-box;
  transition: background .15s ease;
}
.lcsm-drawer[data-lcsm-side="left"] .lcsm-resize-grip {
  left: auto;
  right: 0;
}
.lcsm-drawer.lcsm-open .lcsm-resize-grip { display: flex; }
.lcsm-resize-grip:hover,
.lcsm-drawer.lcsm-resizing .lcsm-resize-grip {
  background: var(--lcsm-cream-2);
}
.lcsm-resize-grip:focus-visible {
  outline: 2px solid var(--lcsm-gold);
  outline-offset: -2px;
}
.lcsm-resize-grip__dots {
  width: 6px;
  height: 44px;
  border-radius: 3px;
  background:
    radial-gradient(circle, var(--lcsm-gold-deep) 1.3px, transparent 1.6px) 0 0 / 6px 7px repeat-y;
  opacity: .75;
}
.lcsm-drawer.lcsm-resizing { transition: none; user-select: none; }
.lcsm-drawer.lcsm-resizing * { cursor: ew-resize !important; }
/* keep content clear of the grip */
.lcsm-drawer.lcsm-open:not([data-lcsm-side="left"]) .lcsm-scroll {
  padding-left: calc(28px + var(--lcsm-tab-w) + 14px);
}
.lcsm-drawer.lcsm-open:not([data-lcsm-side="left"]) .lcsm-head {
  padding-left: calc(16px + var(--lcsm-tab-w) + 14px);
}
.lcsm-width-reset {
  flex: none;
  margin-left: auto;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--lcsm-cream-2);
  border-radius: 8px;
  background: var(--lcsm-cream-soft);
  color: var(--lcsm-navy);
  font: 600 12px/1 var(--lcsm-font);
  letter-spacing: .02em;
  cursor: pointer;
}
.lcsm-width-reset:hover { background: var(--lcsm-cream); border-color: var(--lcsm-gold-soft); }
.lcsm-width-reset:focus-visible { outline: 2px solid var(--lcsm-gold); outline-offset: 2px; }
.lcsm-width-reset + .lcsm-close { margin-left: 0; }
/* Narrow drawer: header wraps so Reset / collapse never overlap the title */
.lcsm-drawer.lcsm-narrow .lcsm-head { flex-wrap: wrap; row-gap: 8px; }
.lcsm-drawer.lcsm-narrow .lcsm-brand { flex: 1 1 calc(100% - 60px); }
.lcsm-drawer.lcsm-narrow .lcsm-width-reset { margin-left: auto; }

/* —— Bible copy only (Rigo): NOTHING in the top/bottom corners of the LC edge chrome ——
   - no full-height cream strips (closed .lcsm-edge-strip, open .lcsm-hide-rail): page/drawer shows through
   - SHOW/HIDE tabs are plain square vertical bars in the middle band only (no rounded caps, no corner chevrons, no glow)
   - drawer pinned by top/bottom (no 100dvh gap that let the dark backdrop show as a bottom band) */
.lcsm-edge-strip,
.lcsm-hide-rail {
  display: none !important;
  background: transparent !important;
  pointer-events: none !important;
}
.lcsm-edge-tab,
.lcsm-hide-tab {
  border-radius: 0;
  height: min(420px, calc(100vh - 240px));
  min-height: 0;
  padding: 12px 0;
  justify-content: center;
  box-shadow: none;
}
.lcsm-edge-tab:hover,
.lcsm-hide-tab:hover {
  box-shadow: none;
}
.lcsm-edge-tab .lcsm-edge-tab-chev,
.lcsm-hide-tab .lcsm-edge-tab-chev {
  display: none;
}
.lcsm-drawer {
  height: auto;
  top: 0;
  bottom: 0;
  box-shadow: -10px 0 32px rgba(41, 36, 119, .12);
}
/* resize grip: middle band only, never in the drawer's corners */
.lcsm-resize-grip {
  top: 120px;
  bottom: 120px;
  border-radius: 0;
}

/* Rigo: tabs not sharp — rounded corners (page-facing side 18px, screen-edge side softer 6px).
   Tab stays mid-height; corners of the screen/drawer stay clear. */
.lcsm-edge-tab {
  border-radius: 18px 6px 6px 18px; /* right-edge tab: left side faces the page */
}
.lcsm-hide-tab {
  border-radius: 18px 6px 6px 18px; /* sits on the drawer's left (page-facing) edge */
}
/* Open drawer: soften its page-facing corners */
.lcsm-drawer:not([data-lcsm-side="left"]) { border-radius: 14px 0 0 14px; }
.lcsm-drawer[data-lcsm-side="left"] { border-radius: 0 14px 14px 0; }

/* —— Bible copy: movable LC tab + drawer (anywhere; docks when dropped near an edge) —— */
/* closed tab: draggable; grip of dots = "drag me" hint (mid-tab, never in a corner) */
.lcsm-edge-tab { touch-action: none; cursor: grab; }
.lcsm-edge-tab.lcsm-tab-dragging { cursor: grabbing; transition: none; opacity: .92; }
.lcsm-edge-tab[data-lcsm-edge="right"] { border-radius: 18px 6px 6px 18px; }
.lcsm-edge-tab[data-lcsm-edge="left"]  { border-radius: 6px 18px 18px 6px; }
.lcsm-edge-tab[data-lcsm-edge="float"] { border-radius: 18px; }
.lcsm-tab-grip {
  flex: none;
  width: 12px;
  height: 16px;
  margin-bottom: 6px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .85) 1.3px, transparent 1.6px) 0 0 / 6px 6px;
  opacity: .9;
}

/* closed drawer slides off toward its anchored side */
.lcsm-drawer[data-lcsm-side="right"]:not(.lcsm-open) { transform: translateX(110vw); }
.lcsm-drawer[data-lcsm-side="left"]:not(.lcsm-open)  { transform: translateX(-110vw); }

/* header is the move handle */
.lcsm-head { cursor: grab; touch-action: none; user-select: none; }
.lcsm-head a, .lcsm-head button { cursor: pointer; }
.lcsm-drawer.lcsm-moving { transition: none; }
.lcsm-drawer.lcsm-moving .lcsm-head { cursor: grabbing; }

/* corners: docked right → round left; docked left → round right; floating → all round */
.lcsm-drawer[data-lcsm-dock="left"] { border-radius: 0 14px 14px 0; box-shadow: 10px 0 32px rgba(41, 36, 119, .12); }
.lcsm-drawer[data-lcsm-dock="right"] { border-radius: 14px 0 0 14px; }
.lcsm-drawer[data-lcsm-dock="float"] { border-radius: 14px; box-shadow: 0 16px 48px rgba(41, 36, 119, .18); }

/* page-facing edge when anchored LEFT: HIDE tab + grip move to the drawer's right edge */
.lcsm-drawer[data-lcsm-side="left"] .lcsm-hide-tab {
  left: auto;
  right: 0;
  border-radius: 6px 18px 18px 6px;
}
.lcsm-drawer[data-lcsm-side="left"] .lcsm-resize-grip {
  left: auto;
  right: var(--lcsm-tab-w);
}
.lcsm-drawer.lcsm-open[data-lcsm-side="left"] .lcsm-scroll {
  padding-left: 12px;
  padding-right: calc(12px + var(--lcsm-tab-w) + 14px);
}
.lcsm-drawer.lcsm-open[data-lcsm-side="left"] .lcsm-head {
  padding-left: 16px;
  padding-right: calc(16px + var(--lcsm-tab-w) + 14px);
}
/* floating card: keep grip in its middle band */
.lcsm-drawer[data-lcsm-dock="float"] .lcsm-resize-grip { top: 90px; bottom: 60px; }

/* —— Bible copy: resizable closed tab (corner grip bottom-right); content adapts to size —— */
.lcsm-edge-tab {
  position: fixed;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  max-width: 120px;
  max-height: 520px;
  gap: 6px;
  box-sizing: border-box;
}
.lcsm-edge-tab.lcsm-tab-resizing { transition: none; }
.lcsm-tab-lc {
  flex: none;
  font: 800 11px/1 var(--lcsm-font);
  letter-spacing: .04em;
  color: #fff;
}
.lcsm-tab-chev {
  flex: none;
  font: 700 15px/1 var(--lcsm-font);
  color: #fff;
}
.lcsm-edge-tab .lcsm-edge-tab-label { flex: 0 1 auto; min-height: 0; overflow: hidden; }
.lcsm-edge-tab.lcsm-tab-compact .lcsm-edge-tab-label { display: none; }
.lcsm-edge-tab.lcsm-tab-compact { padding: 6px 0 10px; gap: 3px; }
.lcsm-edge-tab.lcsm-tab-tiny { padding: 3px 0 6px; gap: 1px; }
.lcsm-edge-tab.lcsm-tab-tiny .lcsm-tab-grip { height: 8px; margin-bottom: 1px; background-size: 6px 4px; }
.lcsm-edge-tab.lcsm-tab-tiny .lcsm-tab-lc { font-size: 9px; }
.lcsm-edge-tab.lcsm-tab-tiny .lcsm-tab-chev { font-size: 12px; }
.lcsm-tab-rz {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
  touch-action: none;
  z-index: 2;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(255,255,255,.8) 48% 56%, transparent 56% 70%,
      rgba(255,255,255,.8) 70% 78%, transparent 78%);
}
.lcsm-edge-tab[data-lcsm-edge="right"] .lcsm-tab-rz { border-bottom-right-radius: 6px; }
.lcsm-edge-tab[data-lcsm-edge="left"] .lcsm-tab-rz,
.lcsm-edge-tab[data-lcsm-edge="float"] .lcsm-tab-rz { border-bottom-right-radius: 18px; }
/* Closed (off-screen) drawer casts no shadow onto the screen edge */
.lcsm-drawer:not(.lcsm-open) { box-shadow: none !important; }

/* ===== Default position: LEFT edge (Rigo, Oct 16). Pre-JS paint only; lc-nav.js positions the tab inline. ===== */
.lcsm-edge-strip { left: 0; right: auto; }
.lcsm-edge-tab:not([data-lcsm-edge]) { left: 0; right: auto; border-radius: 6px 18px 18px 6px; }


/* —— Encounter “Find An Encounter” menu body (scraped from lc-encounter-preview.pages.dev) —— */
.lcsm-menu {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 8px 8px 10px;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #0b1f3a;
}
.lcsm-menu-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
}
.lcsm-menu-head b,
.lcsm-menu-title {
  font: 900 14px/17px var(--lcsm-font);
  color: #0b1f3a;
  text-transform: capitalize;
}
.lcsm-free {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  line-height: 19px;
  height: 19px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff3cd;
  color: #7a5b00;
  letter-spacing: .04em;
}
.lcsm-menu-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}
.lcsm-dd { margin: 0 0 4px; }
.lcsm-l {
  display: block;
  font-size: 13px;
  line-height: 17px;
  font-weight: 600;
  text-transform: capitalize;
  color: #0b1f3a;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lcsm-l i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border: 1.3px solid currentColor;
  border-radius: 50%;
  font: 700 9px/1 serif;
  font-style: normal;
  vertical-align: -1px;
  margin-left: 2px;
  cursor: help;
}
.lcsm-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 38px;
  padding: 6px 26px 6px 8px;
  font-family: inherit;
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  color: #24352e;
  text-transform: capitalize;
  text-align: left;
  background: #fff;
  border: 2px solid rgba(15,31,26,.15);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  cursor: pointer;
  white-space: nowrap;
}
.lcsm-btn span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lcsm-btn::after {
  content: "▾";
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
}
.lcsm-btn.on::after { content: "▴"; }
.lcsm-btn.set { color: #0b1f3a; font-weight: 600; }
.lcsm-opts {
  list-style: none;
  margin: 4px 0 6px;
  padding: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  max-height: 200px;
  overflow-y: auto;
}
.lcsm-opts[hidden] { display: none; }
.lcsm-opts label {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  padding: 4px 6px;
  font-size: 13px;
  color: #24352e;
  cursor: pointer;
  border-radius: 6px;
}
.lcsm-opts label:hover { background: #f1f5f9; }
.lcsm-opts input { margin-top: 3px; accent-color: #0b1f3a; }
.lcsm-save {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0 2px;
  font-size: 13px;
  line-height: 19px;
  color: #0b1f3a;
}
.lcsm-save input { accent-color: #0b1f3a; }
.lcsm-go {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: #0b1f3a;
  color: #fff !important;
  font-family: inherit;
  font-size: 13px;
  line-height: 16px;
  font-weight: 800;
  letter-spacing: .3px;
  box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
  cursor: pointer;
  text-decoration: none !important;
  text-align: center;
}
.lcsm-go:hover { color: #fff !important; text-decoration: none !important; filter: brightness(1.08); }

/* Hide unused kit tile typography so leftover rules cannot leak if a host has .lcsm-tile */
