/* ==========================================================================
   meridian — components
   Surfaces, controls, feedback. Everything here is composable and carries no
   layout opinion beyond its own box; layout lives in shell.css / modules.css.
   ========================================================================== */

/* ══ GLASS ═════════════════════════════════════════════════════════════════
   The signature surface. Three elevations, all sharing one recipe:
   translucent fill + real backdrop blur + hairline border + inset top
   highlight + drop shadow. The inset highlight is what makes it read as a
   physical pane catching light rather than a tinted rectangle.             */

.lx-glass {
  position: relative;
  background: var(--lx-glass);
  -webkit-backdrop-filter: var(--lx-glass-blur);
  backdrop-filter: var(--lx-glass-blur);
  border: 1px solid var(--lx-glass-border);
  border-radius: var(--lx-r-lg);
  box-shadow: var(--lx-glass-shadow);
}

.lx-glass--floating {
  background: var(--lx-glass-strong);
  box-shadow: var(--lx-glass-shadow-floating);
}

.lx-glass--overlay {
  background: var(--lx-glass-strong);
  border-color: var(--lx-glass-border-strong);
  box-shadow: var(--lx-glass-shadow-overlay);
}

.lx-glass--subtle {
  background: var(--lx-glass-subtle);
  box-shadow: none;
}

.lx-glass--flat { box-shadow: var(--lx-glass-inset); }

/* Blur is the whole effect; where it is unsupported the translucent fill would
   render as muddy tint over the mesh, so fall back to an opaque surface. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lx-glass,
  .lx-glass--floating,
  .lx-glass--overlay,
  .lx-glass--subtle { background: var(--lx-bg-solid); }
}

/* Pointer-tracked specular sheen. --lx-mx/--lx-my are written by theme.js on
   hover only, so there is no scroll- or move-cost for surfaces at rest. */
.lx-glass--sheen::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    26rem 26rem at var(--lx-mx) var(--lx-my),
    var(--lx-sheen) 0%,
    transparent 62%
  );
  transition: opacity var(--lx-t-base) var(--lx-ease);
}
.lx-glass--sheen:hover::before { opacity: 1; }

/* ══ CARD ══════════════════════════════════════════════════════════════════ */

.lx-card {
  padding: var(--lx-s-5);
  border-radius: var(--lx-r-lg);
}

.lx-card--lg { padding: var(--lx-s-6); border-radius: var(--lx-r-xl); }
.lx-card--sm { padding: var(--lx-s-4); border-radius: var(--lx-r-md); }

/* An interactive card lifts a single pixel and brightens its edge. No scale,
   no spring — the reference language is calm, and bounce would break it. */
.lx-card--action {
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition:
    transform var(--lx-t-base) var(--lx-ease),
    border-color var(--lx-t-base) var(--lx-ease),
    box-shadow var(--lx-t-base) var(--lx-ease);
}
.lx-card--action:hover {
  transform: translateY(-1px);
  border-color: var(--lx-glass-border-strong);
  box-shadow: var(--lx-glass-shadow-floating);
  text-decoration: none;
}
.lx-card--action:active { transform: translateY(0); }

.lx-card__title {
  font-size: var(--lx-fs-md);
  font-weight: 500;
  letter-spacing: var(--lx-ls-title);
  color: var(--lx-t1);
}
.lx-card__desc {
  font-size: var(--lx-fs-sm);
  color: var(--lx-t3);
  line-height: var(--lx-lh-snug);
}

/* ══ BUTTONS ═══════════════════════════════════════════════════════════════ */

.lx-btn {
  --_h: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--lx-s-2);
  height: var(--_h);
  padding: 0 var(--lx-s-5);
  border-radius: var(--lx-r-full);
  font-size: var(--lx-fs-sm);
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--lx-t1);
  background: var(--lx-fill);
  border: 1px solid transparent;
  transition:
    background var(--lx-t-fast) var(--lx-ease),
    border-color var(--lx-t-fast) var(--lx-ease),
    color var(--lx-t-fast) var(--lx-ease),
    opacity var(--lx-t-fast) var(--lx-ease);
}
.lx-btn:hover { background: var(--lx-fill-hover); text-decoration: none; }
.lx-btn:active { background: var(--lx-fill-active); }
.lx-btn:disabled, .lx-btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* The one high-emphasis control: a solid pill, exactly as the reference uses
   for its single primary action per screen. Use sparingly — one per view. */
.lx-btn--primary {
  background: var(--lx-t1);
  color: var(--lx-t-inv);
  box-shadow: var(--lx-shadow-raised);
}
.lx-btn--primary:hover { background: var(--lx-t1); opacity: 0.88; }
.lx-btn--primary:active { opacity: 0.94; }

.lx-btn--glass {
  background: var(--lx-glass);
  -webkit-backdrop-filter: var(--lx-glass-blur-sm);
  backdrop-filter: var(--lx-glass-blur-sm);
  border-color: var(--lx-glass-border);
  box-shadow: var(--lx-glass-inset);
}
.lx-btn--glass:hover { background: var(--lx-glass-strong); border-color: var(--lx-glass-border-strong); }

.lx-btn--ghost { background: transparent; color: var(--lx-t2); }
.lx-btn--ghost:hover { background: var(--lx-fill); color: var(--lx-t1); }

.lx-btn--danger { color: var(--lx-danger); background: var(--lx-danger-soft); }

.lx-btn--lg { --_h: 52px; padding: 0 var(--lx-s-8); font-size: var(--lx-fs-base); }
.lx-btn--sm { --_h: 32px; padding: 0 var(--lx-s-4); font-size: var(--lx-fs-xs); }
.lx-btn--block { display: flex; width: 100%; }

/* Square icon-only button, sized to match .lx-btn heights */
.lx-icon-btn {
  --_h: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--_h);
  height: var(--_h);
  flex: none;
  border-radius: var(--lx-r-full);
  color: var(--lx-t2);
  transition:
    background var(--lx-t-fast) var(--lx-ease),
    color var(--lx-t-fast) var(--lx-ease);
}
.lx-icon-btn:hover { background: var(--lx-fill-hover); color: var(--lx-t1); }
.lx-icon-btn:active { background: var(--lx-fill-active); }
.lx-icon-btn--sm { --_h: 30px; }
.lx-icon-btn.is-active { background: var(--lx-fill-active); color: var(--lx-t1); }

/* ══ CHIPS & BADGES ════════════════════════════════════════════════════════ */

.lx-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--lx-s-2);
  height: 28px;
  padding: 0 var(--lx-s-3);
  border-radius: var(--lx-r-full);
  background: var(--lx-fill);
  border: 1px solid var(--lx-line-soft);
  font-size: var(--lx-fs-xs);
  color: var(--lx-t2);
  white-space: nowrap;
}
.lx-chip--accent  { background: var(--lx-accent-soft);  color: var(--lx-accent);  border-color: transparent; }
.lx-chip--link    { background: var(--lx-link-soft);    color: var(--lx-link);    border-color: transparent; }
.lx-chip--success { background: var(--lx-success-soft); color: var(--lx-success); border-color: transparent; }
.lx-chip--warning { background: var(--lx-warning-soft); color: var(--lx-warning); border-color: transparent; }
.lx-chip--danger  { background: var(--lx-danger-soft);  color: var(--lx-danger);  border-color: transparent; }
.lx-chip--info    { background: var(--lx-info-soft);    color: var(--lx-info);    border-color: transparent; }

button.lx-chip { cursor: pointer; transition: background var(--lx-t-fast) var(--lx-ease); }
button.lx-chip:hover { background: var(--lx-fill-hover); }
button.lx-chip.is-active {
  background: var(--lx-t1);
  color: var(--lx-t-inv);
  border-color: transparent;
}

.lx-dot {
  width: 6px; height: 6px;
  flex: none;
  border-radius: var(--lx-r-full);
  background: currentColor;
}

/* ══ SEGMENTED CONTROL ═════════════════════════════════════════════════════
   The reference's pill-in-pill pattern. Also serves as the module tab bar.  */

.lx-seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: var(--lx-r-full);
  background: var(--lx-glass-subtle);
  border: 1px solid var(--lx-glass-border);
  -webkit-backdrop-filter: var(--lx-glass-blur-sm);
  backdrop-filter: var(--lx-glass-blur-sm);
}

.lx-seg__item {
  display: inline-flex;
  align-items: center;
  gap: var(--lx-s-2);
  height: 32px;
  padding: 0 var(--lx-s-4);
  border-radius: var(--lx-r-full);
  font-size: var(--lx-fs-sm);
  font-weight: 500;
  color: var(--lx-t3);
  white-space: nowrap;
  transition:
    background var(--lx-t-base) var(--lx-ease),
    color var(--lx-t-base) var(--lx-ease);
}
.lx-seg__item:hover { color: var(--lx-t1); text-decoration: none; }
.lx-seg__item.is-active {
  background: var(--lx-glass-strong);
  color: var(--lx-t1);
  box-shadow: var(--lx-glass-inset), var(--lx-shadow-raised);
}

/* ══ FIELDS ════════════════════════════════════════════════════════════════ */

.lx-divider { height: 1px; background: var(--lx-line); border: none; }

.lx-field { display: flex; flex-direction: column; gap: var(--lx-s-2); }

.lx-field__label {
  font-family: var(--lx-f-mono);
  font-size: var(--lx-fs-micro);
  font-weight: 500;
  letter-spacing: var(--lx-ls-label);
  text-transform: uppercase;
  color: var(--lx-t3);
}

.lx-input,
.lx-textarea,
.lx-select {
  width: 100%;
  min-height: 44px;
  padding: var(--lx-s-3) var(--lx-s-4);
  border-radius: var(--lx-r-md);
  background: var(--lx-glass-subtle);
  border: 1px solid var(--lx-glass-border);
  color: var(--lx-t1);
  font-size: var(--lx-fs-base);
  transition:
    border-color var(--lx-t-fast) var(--lx-ease),
    background var(--lx-t-fast) var(--lx-ease);
}
.lx-input:hover, .lx-textarea:hover, .lx-select:hover { border-color: var(--lx-glass-border-strong); }
.lx-input:focus, .lx-textarea:focus, .lx-select:focus {
  border-color: var(--lx-focus);
  background: var(--lx-glass);
}
.lx-textarea { min-height: 96px; resize: vertical; line-height: var(--lx-lh-body); }

.lx-select {
  appearance: none;
  padding-right: var(--lx-s-10);
  cursor: pointer;
  /* Chevron drawn inline so it inherits the token colour in both modes */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--lx-s-4) center;
}
.lx-select option { background: var(--lx-bg-solid); color: var(--lx-t1); }

/* Search field with a leading icon */
.lx-search { position: relative; }
.lx-search .lx-icon {
  position: absolute;
  left: var(--lx-s-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--lx-t4);
  pointer-events: none;
}
.lx-search .lx-input { padding-left: var(--lx-s-10); }

/* ══ AVATAR ════════════════════════════════════════════════════════════════
   Initials on a soft gradient — the reference's iridescent profile dot. */

.lx-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  flex: none;
  border-radius: var(--lx-r-full);
  /* Iridescent ring built from the ambient hues, so an avatar always belongs
     to the same light as the backdrop behind it. */
  background: conic-gradient(from 210deg,
    rgb(var(--lx-mesh-1) / 0.55), rgb(var(--lx-mesh-2) / 0.55),
    rgb(var(--lx-mesh-3) / 0.55), rgb(var(--lx-mesh-1) / 0.55));
  border: 1px solid var(--lx-glass-border);
  color: var(--lx-t1);
  font-size: var(--lx-fs-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow: hidden;
}
.lx-avatar--lg { width: 56px; height: 56px; font-size: var(--lx-fs-base); }
.lx-avatar--sm { width: 26px; height: 26px; font-size: var(--lx-fs-micro); }
.lx-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* The avatar doubles as the account menu's trigger — a <button>, so it needs
   its own reset before .lx-avatar's own rules apply on top. */
.lx-avatar-btn {
  appearance: none;
  border: 1px solid var(--lx-glass-border);
  cursor: pointer;
  font: inherit;
  transition: filter var(--lx-t-fast) var(--lx-ease);
}
.lx-avatar-btn:hover { filter: brightness(1.08); }

/* ══ DROPDOWN MENU ═════════════════════════════════════════════════════════
   The topbar account menu, and any future trigger + panel pair. See
   [data-menu-toggle] in theme.js for the open/close contract. */

.lx-accountmenu { position: relative; }

.lx-menu {
  position: absolute;
  top: calc(100% + var(--lx-s-3));
  right: 0;
  min-width: 240px;
  z-index: var(--lx-z-overlay);
  background: var(--lx-panel-surface);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--lx-glass-border);
  border-radius: var(--lx-r-lg);
  box-shadow: var(--lx-shadow-overlay);
  padding: var(--lx-s-2);
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  pointer-events: none;
  transition: opacity var(--lx-t-fast) var(--lx-ease), transform var(--lx-t-fast) var(--lx-ease);
}
.lx-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lx-menu { background: var(--lx-bg-solid); }
}

.lx-menu__head {
  display: flex;
  align-items: center;
  gap: var(--lx-s-3);
  padding: var(--lx-s-2) var(--lx-s-3) var(--lx-s-3);
}
.lx-menu__name { display: block; font-size: var(--lx-fs-sm); color: var(--lx-t1); }
.lx-menu__email { display: block; margin-top: 1px; font-size: var(--lx-fs-xs); color: var(--lx-t3); }

.lx-menu__sep { height: 1px; background: var(--lx-line); margin: var(--lx-s-1) var(--lx-s-1); }

.lx-menu__item {
  display: flex;
  align-items: center;
  gap: var(--lx-s-3);
  width: 100%;
  padding: var(--lx-s-3);
  border-radius: var(--lx-r-md);
  font-size: var(--lx-fs-sm);
  color: var(--lx-t2);
  text-align: left;
  transition: background var(--lx-t-fast) var(--lx-ease), color var(--lx-t-fast) var(--lx-ease);
}
button.lx-menu__item { appearance: none; border: none; background: transparent; cursor: pointer; font: inherit; }
.lx-menu__item:hover { background: var(--lx-fill); color: var(--lx-t1); text-decoration: none; }
.lx-menu__item .lx-icon { color: var(--lx-t3); flex: none; }
.lx-menu__item:hover .lx-icon { color: var(--lx-t1); }

.lx-menu__item--danger { color: var(--lx-danger); }
.lx-menu__item--danger .lx-icon { color: var(--lx-danger); }
.lx-menu__item--danger:hover { background: var(--lx-danger-soft); color: var(--lx-danger); }
.lx-menu__item--danger:hover .lx-icon { color: var(--lx-danger); }

/* Preference rows (text size, language) — plain <select>s, not .lx-menu__item,
   so the menu's own click-to-close handling (bound to .lx-menu__item) leaves
   them alone and the native select popover can be used freely without the
   whole account menu dismissing itself mid-interaction. */
.lx-menu__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lx-s-3);
  width: 100%;
  padding: var(--lx-s-2) var(--lx-s-3);
  font-size: var(--lx-fs-sm);
  color: var(--lx-t2);
}
.lx-menu__row-label { flex: none; }
.lx-menu__select {
  flex: none;
  max-width: 130px;
  height: 30px;
  padding: 0 var(--lx-s-2);
  border-radius: var(--lx-r-sm);
  border: 1px solid var(--lx-glass-border);
  background: var(--lx-fill);
  color: var(--lx-t1);
  font-size: var(--lx-fs-xs);
  font-family: inherit;
}
.lx-menu__select:focus { outline: none; border-color: var(--lx-accent); box-shadow: 0 0 0 2px var(--lx-accent-soft); }

/* ══ PROGRESS ══════════════════════════════════════════════════════════════ */

.lx-bar {
  height: 4px;
  border-radius: var(--lx-r-full);
  background: var(--lx-fill-active);
  overflow: hidden;
}
.lx-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: var(--lx-accent);
  transition: width var(--lx-t-slow) var(--lx-ease-out);
}

/* Ring — set --lx-pct (0..100) on the element */
.lx-ring {
  --lx-pct: 0;
  --_size: 68px;
  position: relative;
  width: var(--_size);
  height: var(--_size);
  flex: none;
  border-radius: var(--lx-r-full);
  background: conic-gradient(
    var(--lx-accent) calc(var(--lx-pct) * 1%),
    var(--lx-fill-active) 0
  );
  transition: background var(--lx-t-slow) var(--lx-ease-out);
}
.lx-ring::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: var(--lx-bg);
}
.lx-ring__value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  font-size: var(--lx-fs-sm);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--lx-t1);
}
.lx-ring--sm { --_size: 44px; }
.lx-ring--sm .lx-ring__value { font-size: var(--lx-fs-xs); }

/* ══ SKELETON ══════════════════════════════════════════════════════════════
   Shaped placeholders, not spinners — a loading view should keep the layout
   it is about to become. */

.lx-skel {
  position: relative;
  overflow: hidden;
  border-radius: var(--lx-r-sm);
  background: var(--lx-fill);
}
.lx-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--lx-fill-hover), transparent);
  animation: lx-shimmer 1.6s var(--lx-ease) infinite;
}
@keyframes lx-shimmer { to { transform: translateX(100%); } }

.lx-skel--text  { height: 0.75rem; margin: 0.28rem 0; }
.lx-skel--title { height: 1.1rem; width: 45%; }
.lx-skel--line  { height: 0.75rem; width: 100%; }
.lx-skel--short { height: 0.75rem; width: 60%; }
.lx-skel--card  { height: 118px; border-radius: var(--lx-r-lg); }
.lx-skel--avatar{ width: 34px; height: 34px; border-radius: var(--lx-r-full); }

/* A bare spinner, for the few places a shape can't be predicted */
.lx-spinner {
  width: 16px; height: 16px;
  flex: none;
  border-radius: var(--lx-r-full);
  border: 2px solid var(--lx-fill-active);
  border-top-color: var(--lx-t2);
  animation: lx-spin 720ms linear infinite;
}
@keyframes lx-spin { to { transform: rotate(360deg); } }

/* ══ EMPTY STATE ═══════════════════════════════════════════════════════════ */

.lx-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--lx-s-3);
  padding: var(--lx-s-16) var(--lx-s-6);
  text-align: center;
}
.lx-empty__glyph {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  margin-bottom: var(--lx-s-2);
  border-radius: var(--lx-r-full);
  background: var(--lx-glass-subtle);
  border: 1px solid var(--lx-glass-border);
  color: var(--lx-t3);
}
.lx-empty__title { font-size: var(--lx-fs-md); font-weight: 500; color: var(--lx-t1); }
.lx-empty__desc {
  max-width: 42ch;
  font-size: var(--lx-fs-sm);
  color: var(--lx-t3);
  line-height: var(--lx-lh-snug);
}

/* ══ SHEET / MODAL ═════════════════════════════════════════════════════════ */

.lx-scrim {
  position: fixed;
  inset: 0;
  z-index: var(--lx-z-overlay);
  background: rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--lx-t-base) var(--lx-ease), visibility var(--lx-t-base);
}
.lx-scrim.is-open { opacity: 1; visibility: visible; }

.lx-modal {
  position: fixed;
  z-index: var(--lx-z-sheet);
  top: 50%; left: 50%;
  width: min(560px, calc(100vw - var(--lx-s-8)));
  max-height: min(80vh, 720px);
  display: flex;
  flex-direction: column;
  padding: var(--lx-s-6);
  border-radius: var(--lx-r-xl);
  transform: translate(-50%, calc(-50% + 8px));
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--lx-t-base) var(--lx-ease-out),
    transform var(--lx-t-base) var(--lx-ease-out),
    visibility var(--lx-t-base);
}
.lx-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}

/* Right-hand side sheet — used for the article chat and detail panes */
.lx-sheet {
  position: fixed;
  z-index: var(--lx-z-sheet);
  top: 0; right: 0;
  height: 100%;
  width: min(440px, 100vw);
  display: flex;
  flex-direction: column;
  border-radius: var(--lx-r-xl) 0 0 var(--lx-r-xl);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--lx-t-slow) var(--lx-ease-out), visibility var(--lx-t-slow);
}
.lx-sheet.is-open { transform: none; visibility: visible; }

.lx-sheet__head,
.lx-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lx-s-4);
  padding-bottom: var(--lx-s-4);
  margin-bottom: var(--lx-s-4);
  border-bottom: 1px solid var(--lx-line-soft);
}
.lx-sheet__head { padding: var(--lx-s-5); margin: 0; }
.lx-sheet__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: var(--lx-s-5); }

/* ══ TOASTS ════════════════════════════════════════════════════════════════ */

.lx-toasts {
  position: fixed;
  z-index: var(--lx-z-toast);
  bottom: var(--lx-s-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--lx-s-2);
  pointer-events: none;
}

.lx-toast {
  display: flex;
  align-items: center;
  gap: var(--lx-s-3);
  max-width: min(440px, calc(100vw - var(--lx-s-8)));
  padding: var(--lx-s-3) var(--lx-s-5);
  border-radius: var(--lx-r-full);
  font-size: var(--lx-fs-sm);
  color: var(--lx-t1);
  pointer-events: auto;
  animation: lx-toast-in var(--lx-t-base) var(--lx-ease-out);
}
.lx-toast.is-leaving { animation: lx-toast-out var(--lx-t-fast) var(--lx-ease-in) forwards; }
.lx-toast--success .lx-icon { color: var(--lx-success); }
.lx-toast--error   .lx-icon { color: var(--lx-danger); }

@keyframes lx-toast-in  { from { opacity: 0; transform: translateY(10px); } }
@keyframes lx-toast-out { to   { opacity: 0; transform: translateY(6px); } }

/* ══ DIVIDER & MISC ════════════════════════════════════════════════════════ */

.lx-hr { height: 1px; background: var(--lx-line-soft); border: 0; }

.lx-kbd {
  display: inline-block;
  padding: 0.1em 0.42em;
  border-radius: var(--lx-r-sm);
  background: var(--lx-fill);
  border: 1px solid var(--lx-line);
  border-bottom-width: 2px;
  font-family: var(--lx-f-mono);
  font-size: var(--lx-fs-micro);
  color: var(--lx-t2);
}

/* Horizontal scroller that hides its scrollbar — the reference's "Now for you"
   row. Keeps keyboard and trackpad scrolling intact. */
.lx-rail {
  display: flex;
  gap: var(--lx-s-3);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: var(--lx-s-1);
}
.lx-rail::-webkit-scrollbar { display: none; }
.lx-rail > * { scroll-snap-align: start; flex: none; }
