@charset "UTF-8";
/* ==========================================================================
   Luma / responsive
   --------------------------------------------------------------------------
   Five steps, chosen by what the layout can hold rather than by device names.

     >= 1600   the feed is allowed the reference design's full width
     >= 1400   desktop: navigation, feed, contextual widgets
     1120-1399 the contextual column goes, navigation keeps its labels
      768-1119 navigation collapses to an icon rail
      < 768    phone: one column, bottom bar, drawer navigation
      < 380    narrow phone: tighter gutters, smaller tiles

   The three-column threshold is 1400 rather than 1280, because the columns
   are wider than they were: at 1280 a third column leaves the feed narrower
   than a phone card, which is the opposite of what it is for.

   Each step only states what changed from the one above it.
   ========================================================================== */

/* ==========================================================================
   Three columns, but not the reference's width yet
   --------------------------------------------------------------------------
   Between 1400 and 1559 the panel and the contextual column each give up a
   little, so the feed between them stays wide enough for the composer's row
   and a post's header. At 1440 that is 704 for the feed rather than 613.
   ========================================================================== */

@media (max-width: 1559px) {
  :root {
    --lm-nav-width:     300px;
    --lm-widgets-width: 340px;
  }
}

/* ==========================================================================
   Below the three-column threshold
   --------------------------------------------------------------------------
   The contextual column is removed rather than squeezed. Its widgets are
   supporting material, and a cramped widget is worse than no widget. The
   panel keeps its labels here; there is room for them.
   ========================================================================== */

@media (max-width: 1399px) {
  :root {
    --lm-nav-width: 272px;
  }

  .lm-shell {
    grid-template-columns: minmax(0, var(--lm-feed-width));
  }

  .lm-widgets {
    display: none;
  }

  .lm-nav__item {
    font-size: var(--lm-text-md);
  }
}

/* ==========================================================================
   Tablet landscape: the panel becomes an icon rail
   ========================================================================== */

@media (max-width: 1119px) {
  :root {
    --lm-nav-width: var(--lm-nav-rail-width);
  }

  .lm-nav {
    padding-inline: var(--lm-space-3);
  }

  /* The rail keeps the icons and drops the labels. The label is still in the
     markup for a screen reader, and a tooltip shows it on hover. */
  .lm-nav__item {
    justify-content: center;
    padding-inline: 0;
    inline-size: 52px;
    margin-inline: auto;
  }

  /* Scoped to the navigation panel. The header carries its own lockup on a
     phone, and an unscoped .lm-brand__text hid that one too, leaving a mark
     with no name beside it. */
  .lm-nav__label,
  .lm-nav__heading,
  .lm-nav .lm-brand__text,
  .lm-nav .lm-brand__tagline,
  .lm-nav__promo-title,
  .lm-nav__footer {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* The lockup shrinks to the mark alone. */
  .lm-nav__brand {
    display: flex;
    justify-content: center;
    padding-inline: 0;
  }

  .lm-nav__badge {
    position: absolute;
    inset-block-start: 3px;
    inset-inline-end: 3px;
    margin: 0;
    min-inline-size: 18px;
    block-size: 18px;
    padding-inline: 4px;
    /* A ring in the page colour, so the count reads as sitting on the icon
       rather than cutting a hole in it. */
    border: 2px solid var(--lm-background);
  }

  .lm-nav__divider {
    margin-inline: var(--lm-space-3);
  }

  /* The promotional card has nothing left to say without its text. */
  .lm-nav__promo {
    display: none;
  }

  .lm-header__search {
    max-inline-size: none;
  }
}

/* ==========================================================================
   Tablet portrait
   ========================================================================== */

@media (max-width: 1023px) {
  :root {
    --lm-shell-inset:  var(--lm-space-4);
    --lm-shell-gutter: var(--lm-space-4);
    --lm-shell-gap:    var(--lm-space-4);
  }
}

/* ==========================================================================
   The split layouts
   --------------------------------------------------------------------------
   Sign-in and the landing page become one column earlier than the shell does,
   because two panels side by side stop working well before 768.
   ========================================================================== */

@media (max-width: 1023px) {
  .lm-auth,
  .lm-welcome {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--lm-space-6);
    min-block-size: auto;
    padding-block: var(--lm-space-6);
  }

  .lm-auth__intro,
  .lm-auth__panel {
    grid-column: 1;
    grid-row: auto;
  }

  /* On one column the introduction reads better under the form than above
     it, because the form is what the visitor came for. */
  .lm-auth__intro { order: 2; }
  .lm-auth__panel { order: 1; }

  .lm-auth__blurb,
  .lm-welcome__subhead {
    max-inline-size: none;
  }

  .lm-welcome__card {
    max-inline-size: none;
    margin-inline-start: 0;
  }
}

/* ==========================================================================
   Phone
   --------------------------------------------------------------------------
   Not a narrowed desktop. The side columns are gone, primary navigation moves
   to a bottom bar within thumb reach, and the header keeps only what a phone
   needs.
   ========================================================================== */

@media (max-width: 767px) {
  :root {
    --lm-header-height: 58px;
  }

  :root {
    --lm-shell-inset:  var(--lm-space-3);
    --lm-shell-gutter: var(--lm-space-3);
    --lm-shell-gap:    var(--lm-space-3);
  }

  .lm-app__frame {
    display: block;
  }

  .lm-shell,
  .lm-shell--narrow,
  .lm-shell--full,
  .lm-shell--wide {
    grid-template-columns: minmax(0, 1fr);
    padding-block: var(--lm-space-3);
  }

  /* Navigation lives in the bottom bar and the drawer now. */
  .lm-nav {
    display: none;
  }

  .lm-bottom-nav {
    display: block;
  }

  .lm-feed {
    max-inline-size: none;
  }

  /* Cards keep a corner but lose some of it; at this width a 20px radius eats
     the content's own gutter. */
  .lm-card {
    border-radius: var(--lm-radius-md);
  }

  .lm-card__header,
  .lm-card__body,
  .lm-card__footer {
    padding-inline: var(--lm-space-4);
  }

  /* -- The header -------------------------------------------------------- */

  /* The navigation column is gone at this width, so the drawer is the only
     way to the rest of the site, and the lockup comes back into the header
     because nothing else is carrying it. Same specificity as the rules that
     hid them, and this file loads last, so these win. */
  .lm-header .lm-header__menu {
    display: inline-grid;
  }

  .lm-header .lm-header__brand {
    display: inline-flex;
  }

  .lm-header__inner {
    gap: var(--lm-space-2);
  }

  /* The language pill and the hairline are desktop furniture. At this width
     they crowded the wordmark out of the header, so the pill is a globe
     again and the hairline goes. */
  .lm-lang-pill {
    inline-size: 40px;
    min-inline-size: 40px;
    padding-inline: 0;
    justify-content: center;
    gap: 0;
  }

  .lm-lang-pill__code,
  .lm-lang-pill__chevron,
  .lm-header__divider {
    display: none;
  }

  /* And the tinted discs behind the language and appearance switches are
     desktop furniture too; the phone header had plain glyphs and keeps
     them. */
  .lm-header .lm-lang-pill,
  .lm-header .lm-icon-btn--soft {
    background-color: transparent;
  }

  /* Search moves into the drawer; the header keeps the essentials. */
  .lm-header__search {
    display: none;
  }

  .lm-header__end {
    gap: 0;
  }

  /* The name is dropped; the avatar alone is the trigger, and the account
     menu it opens names the person at the top. */
  .lm-user-chip__name,
  .lm-user-chip__chevron {
    display: none;
  }

  .lm-user-chip {
    padding-inline-end: 4px;
  }

  /* -- The navigation drawer ------------------------------------------- */

  /* Phase 79.1: below 1120 pixels now, in the Phase 79.1 layer at the end. */

  /* -- Composer (Phase 37.1.1) --------------------------------------------- */

  /* The invitation keeps to one row; the quick parts sit under the
     hairline as on a desktop, only tighter. */
  .lm-composer__row {
    padding: var(--lm-space-3) var(--lm-space-4) var(--lm-space-2);
  }

  .lm-composer__row > .lm-avatar {
    inline-size: 40px;
    block-size: 40px;
    font-size: var(--lm-text-sm);
  }

  .lm-composer__prompt {
    min-block-size: 40px;
    padding-inline: var(--lm-space-4);
    font-size: var(--lm-text-sm);
  }

  .lm-composer__actions {
    margin-inline: var(--lm-space-3);
  }

  .lm-composer__action {
    gap: var(--lm-space-1);
    font-size: 0.8125rem;
  }

  .lm-composer__action svg { inline-size: 20px; block-size: 20px; }

  /* The editor becomes the screen: a sheet, not a floating card. */
  .lm-composer.is-open .lm-composer__overlay,
  .lm-modal--editor {
    padding: 0;
    place-items: stretch;
  }

  .lm-editor {
    max-inline-size: none;
    max-block-size: none;
    block-size: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  /* The tiles share the row evenly: up to four, an icon over its name. */
  .lm-editor .lm-composer__toolbar {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  }

  .lm-editor .lm-composer__tool-btn {
    min-block-size: 76px;
    padding: var(--lm-space-2) var(--lm-space-1);
    font-size: var(--lm-text-sm);
  }

  .lm-editor .lm-composer__tool-text { overflow-wrap: anywhere; }

  .lm-editor__title { font-size: var(--lm-text-lg); }

  .lm-composer__previews {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }

  .lm-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  /* -- Comments ---------------------------------------------------------- */

  /* A reply is inside a comment that is inside a card. A 40 pixel indent at
     320 leaves the text a third of the screen, so it drops to 28 and the
     line moves with it. The relationship still reads: it is underneath. */
  .lm-comment__replies,
  .lm-comment__more {
    margin-inline-start: 28px;
  }

  .lm-comment__replies::before {
    inset-inline-start: -16px;
  }

  .lm-comment-form__target,
  .lm-comment-form__error {
    margin-inline-start: 0;
  }

  /* -- Reactions --------------------------------------------------------- */

  /* The row must not run off the edge of a narrow screen. The five discs
     shrink a little and the row hugs the start edge of the card. */
  .lm-reactor__menu {
    inset-inline-start: 0;
    padding: 4px;
    gap: 0;
  }

  .lm-reactor__choice {
    inline-size: 40px;
    block-size: 40px;
  }

  .lm-reactor__choice svg {
    inline-size: 32px;
    block-size: 32px;
  }

  .lm-feed-tab {
    font-size: var(--lm-text-base);
  }

  /* -- Post card --------------------------------------------------------- */

  /* Three labelled buttons fit at 390 with the words at 14. */
  .lm-post__action {
    font-size: var(--lm-text-base);
    gap: 6px;
  }

  .lm-post__actions {
    margin-inline: var(--lm-space-3);
  }

  .lm-post__comments,
  .lm-post__summary {
    margin-inline: var(--lm-space-3);
  }

  .lm-post__summary {
    padding-inline: 0;
  }

  .lm-post__body {
    padding-inline: var(--lm-space-3);
  }

  /* -- Post ------------------------------------------------------------- */

  .lm-post__header {
    padding-inline: var(--lm-space-3);
  }

  /* (Phase 38.0.3: one picture's box is its own shape up to 4:5 and at
     most 620px, on every screen — on a phone the 4:5 is what holds it.) */

  .lm-user-chip > .lm-avatar {
    inline-size: 36px;
    block-size: 36px;
    font-size: var(--lm-text-base);
  }

  /* -- Stories ---------------------------------------------------------- */

  .lm-stories {
    padding: var(--lm-space-3);
  }

  /* The track bleeds to the card edge so a tile is visibly cut off, which is
     what tells a thumb there is more to scroll. */
  .lm-stories__track {
    --lm-story-w: 84px;
    --lm-story-h: 132px;

    margin-inline: calc(var(--lm-space-3) * -1);
    padding-inline: var(--lm-space-3);
  }

  .lm-story__add {
    inset-inline-start: 4px;
  }

  /* -- Settings ---------------------------------------------------------- */

  /* The section list becomes a scrolling strip above the form rather than a
     column beside it, because a 260 pixel column and a form do not share a
     360 pixel screen. */
  .lm-settings {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--lm-space-4);
  }

  .lm-settings__nav {
    position: static;
  }

  .lm-settings__list {
    flex-direction: row;
    gap: var(--lm-space-2);
    overflow-x: auto;
    scrollbar-width: none;
    padding-block-end: var(--lm-space-1);
  }

  .lm-settings__list::-webkit-scrollbar { display: none; }

  .lm-settings__item {
    white-space: nowrap;
    border: 1px solid var(--lm-border);
  }

  .lm-settings__item.is-active { border-color: var(--lm-primary); }

  .lm-settings__pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .lm-settings__actions {
    justify-content: stretch;
  }

  .lm-settings__actions .lm-btn { inline-size: 100%; }

  .lm-about__row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--lm-space-1);
    padding-inline: var(--lm-space-4);
  }

  /* -- Profile ----------------------------------------------------------- */

  .lm-profile__cover { block-size: 140px; }

  /* The avatar shrinks and the actions drop below it, because a 124px circle
     and two buttons do not share a 360 pixel row. */
  .lm-profile__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--lm-space-3);
    padding-inline: var(--lm-space-4);
  }

  .lm-profile__avatar {
    margin-block-start: -52px;
    margin-block-end: 0;
  }

  .lm-profile__avatar .lm-avatar {
    inline-size: 88px;
    block-size: 88px;
    font-size: var(--lm-text-2xl);
    border-width: 4px;
  }

  .lm-profile__online {
    inline-size: 16px;
    block-size: 16px;
    inset-block-end: 6px;
    inset-inline-end: 6px;
  }

  .lm-profile__cover-edit {
    inset-block-start: var(--lm-space-3);
    inset-inline-end: var(--lm-space-3);
    min-block-size: 34px;
  }

  .lm-profile__actions {
    padding-block-start: 0;
    inline-size: 100%;
  }

  .lm-profile__actions .lm-btn { flex: 1 1 auto; }

  .lm-profile__body { padding-inline: var(--lm-space-4); }

  /* The identity block reads from the start on a phone, the way it did
     before the desktop took the reference's centred shape. */
  .lm-profile__identity {
    max-inline-size: none;
    margin-inline-start: 0;
    text-align: start;
  }

  .lm-profile__name {
    justify-content: flex-start;
    font-size: var(--lm-text-2xl);
  }

  .lm-profile__facts { justify-content: flex-start; }

  .lm-profile__figures {
    justify-content: flex-start;
    gap: var(--lm-space-5);
    margin-block-start: var(--lm-space-4);
  }

  .lm-profile__figure {
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    min-inline-size: 0;
    padding-block: 0;
  }

  .lm-profile__figure + .lm-profile__figure { border-inline-start: 0; }

  .lm-profile__figure-value { font-size: var(--lm-text-lg); }

  .lm-tabs-host .lm-tabs {
    padding-inline: var(--lm-space-3);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .lm-tabs-host .lm-tab { flex: 1 0 auto; }

  .lm-tabs-host .lm-tabs::-webkit-scrollbar { display: none; }

  /* -- Overlays --------------------------------------------------------- */

  .lm-modal {
    padding: 0;
    place-items: end stretch;
  }

  /* A sheet rising from the bottom reads as native on a phone. */
  .lm-modal__dialog {
    max-inline-size: none;
    max-block-size: 92vh;
    border-start-start-radius: var(--lm-radius-xl);
    border-start-end-radius: var(--lm-radius-xl);
    border-end-start-radius: 0;
    border-end-end-radius: 0;
    padding-block-end: env(safe-area-inset-bottom, 0px);
    transform: translateY(100%);
  }

  .lm-modal.is-open .lm-modal__dialog {
    transform: translateY(0);
  }

  .lm-modal__footer {
    flex-direction: column-reverse;
  }

  .lm-modal__footer .lm-btn {
    inline-size: 100%;
  }

  /* Toasts clear the bottom bar. */
  .lm-toasts {
    inset-inline: var(--lm-space-3);
    inset-block-end: calc(var(--lm-bottom-nav) + env(safe-area-inset-bottom, 0px) + var(--lm-space-3));
    max-inline-size: none;
  }

  /* A menu must never be wider than the screen. */
  .lm-dropdown__menu {
    min-inline-size: 200px;
    max-inline-size: calc(100vw - var(--lm-space-6));
  }

  .lm-footer__inner {
    justify-content: center;
    text-align: center;
    padding-inline: var(--lm-space-3);
  }
}

/* ==========================================================================
   Narrow phone
   --------------------------------------------------------------------------
   320px still has to work. Gutters tighten, tiles shrink, nothing is cut off.
   ========================================================================== */

@media (max-width: 379px) {
  :root {
    --lm-text-md: 0.9rem;
  }

  .lm-shell {
    padding-inline: var(--lm-space-2);
  }

  .lm-header__inner {
    padding-inline: var(--lm-space-3);
    gap: var(--lm-space-1);
  }

  .lm-card__header,
  .lm-card__body,
  .lm-card__footer,
  .lm-post__header,
  .lm-post__body {
    padding-inline: var(--lm-space-3);
  }

  /* At 320 the three words no longer fit beside their icons. The icons stay
     and the words go; each button still has its accessible name.

     :not(.lm-reactor__icon) because the reaction button holds TWO spans — the
     icon in one, the word in the other — and a bare `> span` took both. The
     wrapper collapsed to a pixel, base.css's `max-inline-size: 100%` clamped
     the icon inside it to match, and the Like button drew a 1px line on every
     phone at 375 and under. The explicit `block-size: 20px` kept the icon its
     full height, so it measured 1x20: not missing, not visibly wrong, just a
     hairline where a thumb should be. Found by measuring, not by looking. */
  .lm-post__action > span:not(.lm-reactor__icon),
  .lm-reactor__label {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .lm-stories__track {
    --lm-story-w: 72px;
    --lm-story-h: 112px;

    gap: 14px;
  }

  .lm-story__add {
    inset-inline-start: 2px;
  }

  .lm-icon-btn {
    inline-size: 36px;
    block-size: 36px;
  }

  /* Five labelled items do not fit at this width, so the bar keeps the icons
     and drops the words. */
  .lm-bottom-nav__label {
    display: none;
  }


  .lm-composer__prompt {
    font-size: var(--lm-text-base);
  }

  /* Two fields side by side do not fit; they stack. */
  .lm-auth__pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Short windows
   --------------------------------------------------------------------------
   Width is not the only thing that runs out. A laptop gives about 840 pixels
   of page height, and the navigation column wants 816 of them for nine links,
   a compose button, a promotional card and a copyright line. The column has
   an internal scrollbar as a backstop, but navigation that has to be scrolled
   to is navigation that will not be found.

   So the column sheds what it can spare, cheapest first. The measurements
   below are for an administrator, who has one link more than anyone else and
   is therefore the case that has to fit.
   ========================================================================== */

@media (max-height: 900px) {
  /* The copyright goes first. It is the only thing in the column that nobody
     has ever needed to see, and it is still on every signed-out page. */
  .lm-nav__footer {
    display: none;
  }

  /* And the links tighten. 44 pixels is still a comfortable target for a
     pointer, which is the only input a window this shape has. */
  .lm-nav__item {
    min-block-size: 44px;
  }

  .lm-nav__list {
    gap: var(--lm-space-1);
  }

  .lm-nav__brand {
    padding-block-end: var(--lm-space-4);
  }

  .lm-nav__promo {
    margin-block-start: var(--lm-space-4);
    padding-block: var(--lm-space-3);
  }
}

@media (max-height: 800px) {
  /* Shorter still, and the promotional card goes too, so that the links are
     never the things pushed out of reach. The cut is at 800 rather than
     lower because at 768, a common laptop height, the column was still over
     even with everything else tightened. */
  .lm-nav__promo {
    display: none;
  }
}

/* ==========================================================================
   Pointer
   --------------------------------------------------------------------------
   Hover styling is wasted on a touch screen, where it sticks after a tap.
   ========================================================================== */

@media (hover: none) {
  .lm-card--interactive:hover {
    border-color: var(--lm-card-border);
    box-shadow: var(--lm-shadow-sm);
  }

  .lm-story:hover .lm-story__tile {
    transform: none;
  }
}

/* The narrowest phones (320): the five header buttons leave no room for the
   wordmark, which ran under the Messages button. The mark stays; the name
   stays the link's text for a screen reader (the visually-hidden pattern,
   by breakpoint). */
@media (max-width: 359px) {
  .lm-header .lm-header__brand .lm-brand__body {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ==========================================================================
   Phase 29.1 — the media viewer and the player on a small screen
   ========================================================================== */

@media (max-width: 980px) {
  /* The stage above, the post below, the way the reference apps read. */
  .lm-viewer { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(40vh, 58vh) minmax(0, 1fr); }
  .lm-viewer__media img { max-block-size: 100%; }
  .lm-viewer__media--video { inline-size: 100%; }
  /* Phase 38.0.1: the stage is at most 58vh here; the video fits inside it. */
  .lm-viewer__media--video .lm-vp__video { max-block-size: calc(58vh - 2 * var(--lm-space-4)); }
  .lm-viewer__nav { inline-size: 40px; block-size: 40px; }
  .lm-viewer__count { inset-block-end: auto; inset-block-start: var(--lm-space-4); }
}

@media (max-width: 560px) {
  /* The volume slider needs a pointer; the button still mutes. */
  .lm-vp__vol { display: none; }
  .lm-vp__time { display: none; }
  .lm-vp.is-fullscreen .lm-vp__time { display: inline-flex; }
}

/* ==========================================================================
   Phase 78. Home and the main navigation
   --------------------------------------------------------------------------
   The approved feed mockup first (the panel's short list, the composer in
   one row, the stories card, the right column's Trending / Who to follow /
   Your week), the reference's patterns where the mockup is silent ("See
   more" in place, a "/" search hint, a compact feed-mode row, 12px-ish card
   rhythm). Last in the cascade on purpose: each rule here is the Home layer
   over the shared components, and the rail and phone rules above are
   re-stated where they must still win.
   ========================================================================== */

/* -- Navigation panel: "See more" -------------------------------------------- */
.lm-nav__icon { display: inline-flex; flex: none; align-items: center; justify-content: center; }
.lm-nav__more { display: flex; flex-direction: column; gap: var(--lm-space-2); }
/* The modules under "See more": the list's own spacing (short windows
   included), nothing of their own but no stray margin. */
.lm-nav__list--more { margin: 0; }
/* A button that reads as one more item: the items' own size and weight
   (only the family needs inheriting), full width in the panel, the rail's
   52px in the rail. */
.lm-nav__more-toggle { border: 0; background: none; font-family: inherit; text-align: start; cursor: pointer; }
@media (min-width: 1120px) { .lm-nav__more-toggle { inline-size: 100%; } }
.lm-nav__more-toggle .lm-nav__icon svg { transition: transform var(--lm-fast); }
.lm-nav__more.is-open .lm-nav__more-toggle .lm-nav__icon svg { transform: rotate(180deg); }
.lm-nav__more-open { display: none; }
.lm-nav__more.is-open .lm-nav__more-open { display: inline; }
.lm-nav__more.is-open .lm-nav__more-closed { display: none; }
/* The main panel only (the AdminCP shares these stylesheets and its own
   sidebar uses .lm-nav__item). */
.lm-app__frame .lm-nav .lm-nav__item:focus-visible { outline: 2px solid var(--lm-primary-text); outline-offset: -2px; }
/* The unread counts: a filled red circle beside the label, as the mockup. */
.lm-app__frame .lm-nav .lm-nav__badge.lm-count { background-color: var(--lm-danger-strong); color: var(--lm-on-danger); }

/* -- Header: the search's "/" -------------------------------------------------- */
.lm-search__kbd {
  position: absolute;
  inset-inline-end: var(--lm-space-3);
  inset-block-start: 50%;
  translate: 0 -50%;
  display: none;
  min-inline-size: 22px;
  padding: 0 var(--lm-space-2);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius-xs);
  background-color: var(--lm-surface);
  color: var(--lm-muted);
  font-size: var(--lm-text-xs);
  font-weight: var(--lm-weight-semibold);
  line-height: 1.6;
  text-align: center;
  pointer-events: none;
}
@media (min-width: 1120px) {
  .lm-search__kbd { display: inline-block; }
  .lm-search:focus-within .lm-search__kbd,
  .lm-search__input:not(:placeholder-shown) ~ .lm-search__kbd { display: none; }
  .lm-header .lm-search__input[data-lm-search-shortcut] { padding-inline-end: var(--lm-space-10); }
}

/* -- Composer: one row (avatar, prompt, the quick parts) ---------------------- */
.lm-composer .lm-composer__row { gap: var(--lm-space-3); padding: var(--lm-space-3) var(--lm-space-4); }
.lm-composer .lm-composer__actions { display: flex; flex: none; align-items: center; gap: var(--lm-space-2); margin: 0; padding: 0; border: 0; }
.lm-composer .lm-composer__action {
  flex: none;
  inline-size: 42px;
  min-inline-size: 42px;
  block-size: 42px;
  min-block-size: 42px;
  padding: 0;
  border-radius: var(--lm-radius-md);
}
.lm-composer .lm-composer__action svg { inline-size: 21px; block-size: 21px; }
.lm-composer .lm-composer__action--video { background-color: var(--lm-primary-soft); }
.lm-composer .lm-composer__action--video:hover { background-color: var(--lm-primary-soft-2); }
.lm-composer .lm-composer__action:focus-visible { outline: 2px solid var(--lm-primary-text); outline-offset: 2px; }
/* The word stays for a screen reader (and as the button's tooltip). */
.lm-composer .lm-composer__action-label {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* -- Stories: rounded tiles a little taller than wide, names beneath --------- */
@media (min-width: 768px) { .lm-feed .lm-stories__track { --lm-story-w: 100px; --lm-story-h: 128px; } }

/* -- The feed's modes: a compact row above the posts -------------------------- */
.lm-feed .lm-feed-tabs { align-self: flex-start; gap: 2px; padding: 3px; border-color: var(--lm-card-border); box-shadow: none; }
.lm-feed .lm-feed-tab { flex: none; padding: var(--lm-space-2) var(--lm-space-5); font-size: var(--lm-text-sm); font-weight: var(--lm-weight-semibold); }
.lm-feed .lm-feed-tab:focus-visible { outline: 2px solid var(--lm-primary-text); outline-offset: -2px; }

/* -- Post cards: the reference's rhythm (tablet and up; phones keep the
      padding their own rules set above) ----------------------------------- */
@media (min-width: 768px) {
  .lm-feed .lm-post__header { gap: var(--lm-space-3); padding: var(--lm-space-4) var(--lm-space-4) var(--lm-space-2); }
  .lm-feed .lm-post__header > .lm-post__avatar .lm-avatar { inline-size: 44px; block-size: 44px; }
  .lm-feed .lm-post__name { font-size: var(--lm-text-base); }
  .lm-feed .lm-post__actions { gap: var(--lm-space-2); }
  .lm-feed .lm-post__action { min-block-size: 40px; border-radius: var(--lm-radius-sm); }
}
.lm-feed .lm-post__action:focus-visible { outline: 2px solid var(--lm-primary-text); outline-offset: -2px; }

/* -- The right column (Home): Trending, Who to follow, Your week -------------- */
.lm-widgets .lm-widget__header { gap: var(--lm-space-2); }
/* Trending rows: a tag over its count, compact as the mockup draws them. */
.lm-widgets .lm-widget__list > a.lm-widget__row { padding-block: var(--lm-space-2); }
.lm-widgets .lm-widget__list > a.lm-widget__row:hover { background-color: var(--lm-surface-secondary); }
.lm-widgets .lm-trend { display: flex; flex-direction: column; gap: 0; min-inline-size: 0; }
/* Who to follow: the person fills the row, so Follow sits at its end. */
.lm-widgets .lm-widget__row > .lm-user-row { flex: 1 1 auto; }
.lm-widgets .lm-trend__tag { color: var(--lm-text); font-weight: var(--lm-weight-semibold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-widgets .lm-trend__count { color: var(--lm-muted); font-size: var(--lm-text-sm); }
/* The mockup's soft Follow: the tint, the accent as text only where it passes. */
.lm-widgets .lm-follow.lm-btn--primary { background-color: var(--lm-primary-soft); color: var(--lm-primary-text); }
.lm-widgets .lm-follow.lm-btn--primary:hover { background-color: var(--lm-primary-soft-2); color: var(--lm-primary-text); }
/* ...so a person already followed (or asked) reads differently: neutral. */
.lm-widgets .lm-follow.lm-follow--on, .lm-widgets .lm-follow.lm-follow--req { background-color: var(--lm-surface-secondary); color: var(--lm-text-secondary); }

/* -- Phones --------------------------------------------------------------------- */
@media (max-width: 767px) {
  .lm-composer .lm-composer__row { gap: var(--lm-space-2); padding: var(--lm-space-3); }
  .lm-composer .lm-composer__row > .lm-avatar { inline-size: 40px; block-size: 40px; }
  .lm-composer .lm-composer__actions { gap: var(--lm-space-1); }
  .lm-composer .lm-composer__action { inline-size: 40px; min-inline-size: 40px; block-size: 40px; min-block-size: 40px; }
  .lm-feed .lm-feed-tabs { align-self: stretch; }
  .lm-feed .lm-feed-tab { display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; min-block-size: 44px; padding-inline: var(--lm-space-2); font-size: var(--lm-text-base); }
}
@media (min-width: 380px) and (max-width: 767px) {
  .lm-feed .lm-stories__track { --lm-story-w: 88px; --lm-story-h: 112px; }
}

/* ==========================================================================
   Phase 79. Settings: the sections in groups, a header on every section,
   and — narrower than 1024 pixels — one thing at a time: the list of
   sections at /settings, then a section on its own under a way back.
   Every rule is scoped to the settings frame: its form classes are shared
   with other pages' forms and with the AdminCP.
   ========================================================================== */

.lm-settings { grid-template-columns: minmax(0, 248px) minmax(0, 1fr); }
/* The list scrolls with the page, never inside it: grouped, with a
   section's parts, it can be taller than a laptop's screen. */
.lm-settings__nav { position: static; padding-block-end: var(--lm-space-2); }
.lm-settings__heading { margin-block-end: var(--lm-space-3); }
.lm-settings__group + .lm-settings__group { margin-block-start: var(--lm-space-4); }
.lm-settings__group-title { margin: 0 0 var(--lm-space-1); padding-inline: var(--lm-space-3); color: var(--lm-muted); font-size: var(--lm-text-xs); font-weight: var(--lm-weight-semibold); letter-spacing: 0.06em; text-transform: uppercase; }
/* Spacing letters apart breaks Arabic's joined script. */
html[lang="ar"] .lm-settings__group-title,
html[lang="ar"] .lm-settings__heading,
html[lang="ar"] .lm-settings__title { letter-spacing: normal; }
.lm-settings .lm-settings__item { min-block-size: 40px; gap: var(--lm-space-3); font-size: var(--lm-text-sm); }
.lm-settings__icon { display: inline-flex; flex: none; align-items: center; justify-content: center; inline-size: 30px; block-size: 30px; border-radius: var(--lm-radius-sm); background-color: var(--lm-surface-2); color: var(--lm-text-secondary); }
.lm-settings .lm-settings__icon svg { inline-size: 17px; block-size: 17px; }
.lm-settings__item.is-active .lm-settings__icon { background-color: var(--lm-surface); color: var(--lm-primary-text); }
.lm-settings__label { flex: 1 1 auto; min-inline-size: 0; }
.lm-settings__hint,
.lm-settings__chevron { display: none; }
.lm-settings__parts { margin: 2px 0 var(--lm-space-2); padding: 0; padding-inline-start: 27px; list-style: none; }
.lm-settings__part { display: flex; align-items: center; min-block-size: 34px; padding-inline: var(--lm-space-4) var(--lm-space-2); border-inline-start: 2px solid var(--lm-border); color: var(--lm-text-secondary); font-size: var(--lm-text-sm); }
.lm-settings__part:hover { border-inline-start-color: var(--lm-border-strong); color: var(--lm-text); }
.lm-settings__part.is-danger,
.lm-settings__jump-link.is-danger { color: var(--lm-danger-text); }
.lm-settings__view { margin-block-start: var(--lm-space-4); min-block-size: 44px; font-size: var(--lm-text-sm); }
/* The focus ring drawn inside: rows sit edge to edge in their card. */
.lm-settings .lm-settings__item:focus-visible,
.lm-settings__part:focus-visible,
.lm-settings__view:focus-visible,
.lm-security__fact-link:focus-visible { outline-offset: -2px; }
/* A finger, not a pointer: every row at least 44px. */
@media (hover: none) {
  .lm-settings .lm-settings__item,
  .lm-settings__part { min-block-size: 44px; }
}

/* The open section: its header, then its cards and forms one gap apart
   (a card outside a form had none before). */
.lm-settings__panel > * + *:not(.lm-modal) { margin-block-start: var(--lm-space-4); }

/* The open section's own header. */
.lm-settings__head { display: flex; flex-direction: column; gap: var(--lm-space-1); margin-block-end: var(--lm-space-4); }
.lm-settings__back,
.lm-settings__jump { display: none; }
.lm-settings__title { margin: 0; font-size: var(--lm-text-xl); font-weight: var(--lm-weight-bold); letter-spacing: -0.01em; }
.lm-settings__lead { margin: 0; color: var(--lm-muted); font-size: var(--lm-text-sm); }
.lm-settings__jump { flex-wrap: wrap; gap: var(--lm-space-2); margin: var(--lm-space-2) 0 0; padding: 0; list-style: none; }
.lm-settings__jump-link { display: inline-flex; align-items: center; min-block-size: 44px; padding-inline: var(--lm-space-4); border: 1px solid var(--lm-border); border-radius: var(--lm-radius-pill); background-color: var(--lm-surface); color: var(--lm-text-secondary); font-size: var(--lm-text-sm); font-weight: var(--lm-weight-medium); }
.lm-settings__jump-link:hover { border-color: var(--lm-border-strong); color: var(--lm-text); }

/* Cards: the title, then its one-line explanation under it (not squeezed
   beside it); an action in the header keeps its place at the end. */
.lm-settings__panel .lm-card__header { flex-wrap: wrap; align-items: flex-start; row-gap: 2px; }
.lm-settings__panel .lm-card__header > .lm-card__title { flex: 1 1 auto; }
.lm-settings__panel .lm-card__header > .lm-card__subtitle { flex: 1 1 100%; }

/* Security center: each fact, its state as a word, and a way to its card —
   one per row, so the state always sits at the end of its own line. */
.lm-security .lm-security__facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
.lm-security .lm-security__fact { align-items: center; }
.lm-security .lm-security__fact + .lm-security__fact { border-block-start: 1px solid var(--lm-border); }
.lm-security__fact-link { display: flex; flex: 1 1 auto; align-items: center; gap: var(--lm-space-2); min-block-size: 44px; padding: var(--lm-space-2) var(--lm-space-3); margin-inline: calc(var(--lm-space-3) * -1); border-radius: var(--lm-radius-md); color: inherit; }
.lm-security__fact-link:hover { background-color: var(--lm-surface-2); color: var(--lm-text); }
.lm-security__fact-text { flex: 1 1 auto; }
.lm-security__state { flex: none; padding: 2px var(--lm-space-2); border-radius: var(--lm-radius-pill); background-color: var(--lm-surface-2); color: var(--lm-text-secondary); font-size: var(--lm-text-xs); font-weight: var(--lm-weight-semibold); }
.lm-security__state.is-good { background-color: var(--lm-success-soft); color: var(--lm-success-text); }
.lm-security__state.is-warn { background-color: var(--lm-warning-soft); color: var(--lm-warning-text); }
.lm-security__state.is-plain { background-color: var(--lm-surface-2); }

/* Language and appearance. */
.lm-settings-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--lm-space-3); }
.lm-settings-theme { display: flex; flex-direction: column; gap: var(--lm-space-2); min-inline-size: 0; padding: var(--lm-space-3); border: 1px solid var(--lm-border); border-radius: var(--lm-radius-lg); background-color: var(--lm-surface); color: var(--lm-text); font: inherit; text-align: start; cursor: pointer; transition: border-color var(--lm-fast), box-shadow var(--lm-fast); }
.lm-settings-theme:hover { border-color: var(--lm-border-strong); }
.lm-settings-theme.is-active { border-color: var(--lm-primary); box-shadow: 0 0 0 1px var(--lm-primary); }
.lm-settings-theme__preview { display: grid; grid-template-columns: 28% minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 5px; block-size: 64px; padding: 6px; border-radius: var(--lm-radius-md); background-color: var(--lm-preview-light-ground); }
.lm-settings-theme__preview span { border-radius: 4px; background-color: var(--lm-preview-light-panel); box-shadow: inset 0 0 0 1px var(--lm-preview-light-line); }
.lm-settings-theme__preview span:first-child { grid-row: 1 / 3; }
.lm-settings-theme__preview span:last-child { background-image: linear-gradient(var(--lm-preview-accent), var(--lm-preview-accent)); background-size: 40% 6px; background-repeat: no-repeat; background-position: 8px 8px; }
.lm-settings-theme__preview--dark { background-color: var(--lm-preview-dark-ground); }
.lm-settings-theme__preview--dark span { background-color: var(--lm-preview-dark-panel); box-shadow: inset 0 0 0 1px var(--lm-preview-dark-line); }
/* System: the light picture, and the dark one over its second half. */
.lm-settings-theme__split { position: relative; display: block; block-size: 64px; }
.lm-settings-theme__split > .lm-settings-theme__preview { position: absolute; inset: 0; block-size: auto; }
.lm-settings-theme__split > .lm-settings-theme__preview--dark { clip-path: inset(0 0 0 50%); }
.lm-settings-theme__body { display: flex; align-items: center; gap: var(--lm-space-2); }
.lm-settings-theme__body svg { flex: none; inline-size: 18px; block-size: 18px; }
/* The chosen one marked by more than the coloured edge. */
.lm-settings-theme__check { display: none; margin-inline-start: auto; color: var(--lm-primary-text); }
.lm-settings-theme.is-active .lm-settings-theme__check { display: inline-flex; }
.lm-settings-theme .lm-help { margin: 0; }
.lm-settings-languages { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: var(--lm-space-2); margin: 0; padding: 0; list-style: none; }
.lm-settings-language { display: flex; align-items: center; justify-content: space-between; gap: var(--lm-space-2); min-block-size: 44px; padding-inline: var(--lm-space-4); border: 1px solid var(--lm-border); border-radius: var(--lm-radius-md); color: var(--lm-text); }
.lm-settings-language:hover { background-color: var(--lm-surface-2); }
.lm-settings-language.is-active { border-color: var(--lm-primary); background-color: var(--lm-primary-soft); color: var(--lm-primary-text); font-weight: var(--lm-weight-semibold); }
.lm-settings-language svg { flex: none; inline-size: 18px; block-size: 18px; }

@media (max-width: 1023px) {
  .lm-settings { grid-template-columns: minmax(0, 1fr); gap: var(--lm-space-4); }
  .lm-settings__nav { position: static; max-block-size: none; overflow: visible; padding-block-end: 0; }

  /* /settings: the list, and no section beside it. */
  .lm-settings.is-landing .lm-settings__panel { display: none; }

  /* A section: on its own, under the way back (its title is the page's
     heading). */
  .lm-settings.is-section { row-gap: 0; }
  .lm-settings.is-section .lm-settings__nav { display: none; }
  .lm-settings__back { display: inline-flex; align-items: center; gap: var(--lm-space-2); align-self: flex-start; min-block-size: 44px; margin-inline-start: calc(var(--lm-space-2) * -1); padding-inline: var(--lm-space-2) var(--lm-space-3); border-radius: var(--lm-radius-pill); color: var(--lm-primary-text); font-size: var(--lm-text-sm); font-weight: var(--lm-weight-semibold); }
  .lm-settings__back:hover { background-color: var(--lm-surface-2); }
  .lm-settings__back svg { inline-size: 18px; block-size: 18px; }
  .lm-settings__jump { display: flex; }

  /* The list of sections: each group a card of rows. */
  .lm-settings__heading { padding-inline: 0; }
  .lm-settings__group-title { padding-inline: var(--lm-space-1); }
  .lm-settings__group + .lm-settings__group { margin-block-start: var(--lm-space-5); }
  .lm-settings__list { flex-direction: column; gap: 0; padding: 0; overflow: hidden; border: 1px solid var(--lm-card-border); border-radius: var(--lm-radius-lg); background-color: var(--lm-surface); }
  .lm-settings__list > li + li { border-block-start: 1px solid var(--lm-border); }
  .lm-settings .lm-settings__item,
  .lm-settings .lm-settings__item.is-active { min-block-size: 56px; padding-inline: var(--lm-space-4); border: 0; border-radius: 0; background-color: transparent; color: var(--lm-text); font-size: var(--lm-text-base); font-weight: var(--lm-weight-medium); white-space: normal; }
  .lm-settings .lm-settings__item:hover { background-color: var(--lm-surface-2); }
  .lm-settings__item.is-active .lm-settings__icon { background-color: var(--lm-surface-2); color: var(--lm-text-secondary); }
  /* Up to two lines, never cut: the state word comes last in some
     languages ("Double auth. désactivée"). */
  .lm-settings__hint { display: -webkit-box; flex: 0 1 auto; max-inline-size: 45%; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--lm-muted); font-size: var(--lm-text-sm); font-weight: var(--lm-weight-regular); line-height: var(--lm-leading-snug); text-align: end; }
  .lm-settings__chevron { display: inline-flex; flex: none; color: var(--lm-subtle); }
  .lm-settings .lm-settings__chevron svg { inline-size: 16px; block-size: 16px; }
  .lm-settings__view { margin-block-start: var(--lm-space-5); padding-inline: var(--lm-space-1); }
}

@media (max-width: 767px) {
  .lm-settings__back { margin-inline-start: 0; }
}

@media (max-width: 559px) {
  .lm-settings-themes { grid-template-columns: minmax(0, 1fr); }
  .lm-settings-theme { display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--lm-space-3); row-gap: 2px; align-items: center; }
  .lm-settings-theme__preview,
  .lm-settings-theme__split { grid-row: 1 / 3; block-size: 56px; }
  .lm-settings-theme__split > .lm-settings-theme__preview { block-size: auto; }
}
/* Phase 79. A list's own card (blocked, muted): what it holds, then the rows. */
.lm-settings__list-card { display: flex; flex-direction: column; gap: var(--lm-space-3); }
.lm-settings__count { margin: 0; color: var(--lm-text-secondary); font-size: var(--lm-text-sm); }

/* ==========================================================================
   Phase 79.1. Below 1120 pixels every destination is named somewhere.
   --------------------------------------------------------------------------
   The rail (768–1119) keeps its icons, as approved; a touch screen has no
   hover for its tooltips, so the header's menu button now opens the drawer
   there too — the same lists (shell/nav-lists) with their labels. The rail
   rules above narrow every .lm-nav__item to 52px and hide every
   .lm-nav__label, so the drawer's copy takes the panel's rows back. Scoped
   to .lm-drawer: the AdminCP's sidebar shares .lm-nav__item and is untouched.
   ========================================================================== */

@media (max-width: 1119px) {
  .lm-header .lm-header__menu {
    display: inline-grid;
  }

  .lm-drawer {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: var(--lm-z-drawer);
    inline-size: min(84vw, 320px);
    padding: var(--lm-space-4);
    padding-block-start: calc(var(--lm-space-4) + env(safe-area-inset-top, 0px));
    background-color: var(--lm-surface);
    border-inline-end: 1px solid var(--lm-border);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-100%);
    display: block;

    /* Moving the panel off-screen hides it from the eye and from nobody else.
       A closed drawer that is only translated away still takes tab stops and
       is still read out, so the reader lands in a menu they cannot see.
       visibility removes it from both, and is delayed until the slide has
       finished so the panel does not vanish mid-animation. */
    visibility: hidden;
    transition: transform var(--lm-slow), visibility 0s linear 260ms;
  }

  /* The drawer is hinged on the reading-start edge, so it swings from the
     right in Arabic. translateX is physical, so the sign is flipped. */
  html[dir="rtl"] .lm-drawer {
    transform: translateX(100%);
  }

  body.lm-drawer-open .lm-drawer {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--lm-slow), visibility 0s;
  }

  .lm-drawer .lm-nav__item {
    justify-content: flex-start;
    inline-size: auto;
    margin-inline: 0;
    padding-inline: var(--lm-space-4);
    min-block-size: 48px;
    font-size: var(--lm-text-base);
  }

  .lm-drawer .lm-nav__more-toggle { inline-size: 100%; }

  .lm-drawer .lm-nav__label {
    position: static;
    flex: 1 1 auto;
    inline-size: auto;
    block-size: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
  }

  /* A count beside its label, at the end of the row (not on the icon). */
  .lm-drawer .lm-nav__badge {
    position: static;
    margin-inline-start: auto;
    border: 0;
  }

  .lm-drawer .lm-nav__badge.lm-count { background-color: var(--lm-danger-strong); color: var(--lm-on-danger); }
  .lm-drawer .lm-nav__item:focus-visible { outline: 2px solid var(--lm-primary-text); outline-offset: -2px; }
  .lm-drawer .lm-nav__divider { margin-inline: 0; }
}

/* Phase 79.1. Basic information: the language, shown, with the way to the
   one place it is changed (Settings → Language and appearance). */
.lm-profile-edit__setting { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--lm-space-1) var(--lm-space-3); min-block-size: 44px; margin: 0; padding: 0 var(--lm-space-4); border: 1px solid var(--lm-border); border-radius: var(--lm-radius-md); background-color: var(--lm-surface-2); color: var(--lm-text); }
.lm-profile-edit__setting-link { display: inline-flex; align-items: center; gap: var(--lm-space-1); min-block-size: 44px; color: var(--lm-primary-text); font-size: var(--lm-text-sm); font-weight: var(--lm-weight-semibold); }
.lm-profile-edit__setting-link:hover { text-decoration: underline; }
.lm-profile-edit__setting-link svg { inline-size: 16px; block-size: 16px; flex: none; }

/* Phase 79.2. The menu button and the drawer's close button: a 44px target
   around the same icon (only these two; the header's other buttons keep
   their size). */
.lm-header .lm-header__menu,
.lm-drawer__header .lm-icon-btn {
  min-inline-size: 44px;
  min-block-size: 44px;
}

/* ==========================================================================
   Phase 80. Messenger
   --------------------------------------------------------------------------
   One card holding the conversations and the open one, the panes divided by
   a hairline rather than set apart as two cards; the list in rounded rows
   with 48px pictures under a way to find someone; the thread in runs — one
   sender's consecutive messages share one picture and one time — each day
   opened by its date, the reader's "Seen" on their newest message only (the
   script marks them: luma.js shapeThread); the composer one rounded field
   with a round send button. Scoped to .lm-messages: Page Studio's inbox has
   classes of its own and shares only messages/attachment.
   ========================================================================== */

.lm-messages {
  gap: 0;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  border: 1px solid var(--lm-card-border);
  border-radius: var(--lm-radius-xl);
  background: var(--lm-surface);
  overflow: hidden;
}

.lm-messages .lm-messages__list,
.lm-messages .lm-messages__thread {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.lm-messages .lm-messages__list { border-inline-end: 1px solid var(--lm-card-border); }

/* -- The list --------------------------------------------------------------- */
.lm-messages .lm-messages__list-head { padding: var(--lm-space-5) var(--lm-space-5) var(--lm-space-3); border-block-end: 0; }
.lm-messages .lm-messages__title { font-size: var(--lm-text-xl); font-weight: var(--lm-weight-bold); letter-spacing: -0.01em; }
html[lang="ar"] .lm-messages .lm-messages__title { letter-spacing: normal; }
.lm-messages__find {
  display: flex;
  align-items: center;
  gap: var(--lm-space-2);
  margin: 0 var(--lm-space-4) var(--lm-space-3);
  min-block-size: 44px;
  padding-inline: var(--lm-space-4);
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius-pill);
  background: var(--lm-surface-2);
  color: var(--lm-muted);
  font: inherit;
  font-size: var(--lm-text-sm);
  text-align: start;
  cursor: pointer;
}
.lm-messages__find:hover { border-color: var(--lm-border-strong); color: var(--lm-text-secondary); }
.lm-messages__find:focus-visible { outline: 2px solid var(--lm-primary-text); outline-offset: 2px; }
.lm-messages__find svg { flex: none; inline-size: 18px; block-size: 18px; }
.lm-messages .lm-convo-list { padding: 0 var(--lm-space-2) var(--lm-space-2); }
.lm-messages .lm-convo { gap: var(--lm-space-3); padding: var(--lm-space-3); border-block-end: 0; border-radius: var(--lm-radius-lg); }
.lm-messages .lm-convo + .lm-convo { margin-block-start: 2px; }
.lm-messages .lm-convo > .lm-avatar { flex: none; inline-size: 48px; block-size: 48px; font-size: var(--lm-text-md); }
.lm-messages .lm-convo__name { font-size: var(--lm-text-base); }
.lm-messages .lm-convo.is-active { background: var(--lm-primary-soft); }
.lm-messages .lm-convo.is-active .lm-convo__name { color: var(--lm-primary-text); }
.lm-messages .lm-convo:focus-visible { outline: 2px solid var(--lm-primary-text); outline-offset: -2px; }

/* -- The open conversation --------------------------------------------------- */
.lm-messages .lm-thread__head { min-block-size: 68px; padding: var(--lm-space-3) var(--lm-space-5); }
.lm-messages .lm-thread__person { gap: var(--lm-space-3); }
.lm-messages .lm-thread__person .lm-avatar { inline-size: 44px; block-size: 44px; }
.lm-messages .lm-thread__name { font-size: var(--lm-text-md); }
.lm-messages .lm-thread__handle { font-size: var(--lm-text-sm); }
.lm-messages .lm-thread__back { inline-size: 44px; block-size: 44px; }
.lm-messages .lm-thread__scroll { padding: var(--lm-space-4) var(--lm-space-5) var(--lm-space-5); }

/* A day's heading, between its hairlines. */
.lm-msg-day {
  display: flex;
  align-items: center;
  gap: var(--lm-space-3);
  margin-block: var(--lm-space-5) var(--lm-space-2);
  color: var(--lm-muted);
  font-size: var(--lm-text-xs);
  font-weight: var(--lm-weight-semibold);
}
.lm-msg-day::before,
.lm-msg-day::after { content: ""; flex: 1 1 auto; block-size: 1px; background: var(--lm-border); }
.lm-msg-day:first-child { margin-block-start: 0; }

/* Runs: tight inside one, room between two. Only once the script has
   shaped the thread (.is-shaped): until then every row shows its picture,
   name, time and state, as it always did. */
.lm-messages .lm-msg { max-inline-size: min(78%, 560px); }
.lm-messages .lm-msg--system { max-inline-size: 100%; }
.lm-messages .lm-msg__body { border-radius: 18px; }
.lm-messages .lm-thread__messages.is-shaped { gap: 0; }
.lm-messages .is-shaped > .lm-msg { margin-block-start: 2px; }
.lm-messages .is-shaped > .lm-msg.is-run-start,
.lm-messages .is-shaped > .lm-msg--system { margin-block-start: var(--lm-space-3); }
.lm-messages .is-shaped > .lm-msg-day + .lm-msg { margin-block-start: 0; }
.lm-messages .is-shaped > .lm-msg:not(.is-run-end) .lm-msg__avatar { visibility: hidden; }
.lm-messages .is-shaped > .lm-msg:not(.is-run-start) .lm-msg__sender { display: none; }
.lm-messages .is-shaped > .lm-msg:not(.is-run-end) .lm-msg__meta:not(:has(.lm-msg__edited)) { display: none; }
.lm-messages .is-shaped > .lm-msg:not(.is-run-end) .lm-msg__meta > time,
.lm-messages .is-shaped > .lm-msg:not(.is-latest-mine) .lm-msg__state { display: none; }
.lm-messages .is-shaped > .lm-msg:not(.lm-msg--mine):not(.is-run-start) .lm-msg__body { border-start-start-radius: 6px; }
.lm-messages .is-shaped > .lm-msg:not(.lm-msg--mine):not(.is-run-end) .lm-msg__body { border-end-start-radius: 6px; }
.lm-messages .is-shaped > .lm-msg--mine:not(.is-run-start) .lm-msg__body { border-start-end-radius: 6px; }
.lm-messages .is-shaped > .lm-msg--mine:not(.is-run-end) .lm-msg__body { border-end-end-radius: 6px; }
.lm-messages .lm-msg__body--media { border-radius: 18px; }
.lm-messages .lm-msg__text { font-size: var(--lm-text-base); line-height: 1.45; }

/* An empty conversation: whom it is with, and the invitation. */
.lm-messages .lm-thread__empty { display: flex; flex-direction: column; align-items: center; gap: var(--lm-space-2); padding: var(--lm-space-12) var(--lm-space-6); }
.lm-thread__empty-avatar.lm-avatar { inline-size: 72px; block-size: 72px; font-size: var(--lm-text-2xl); }
.lm-thread__empty-name { margin: 0; color: var(--lm-text); font-size: var(--lm-text-md); font-weight: var(--lm-weight-semibold); }
.lm-thread__empty-text { margin: 0; color: var(--lm-muted); font-size: var(--lm-text-sm); }

/* -- The composer ----------------------------------------------------------- */
.lm-messages .lm-thread__composer { padding: var(--lm-space-3) var(--lm-space-4) var(--lm-space-4); }
.lm-messages .lm-thread__input {
  min-block-size: 44px;
  padding-block: 11px;
  padding-inline: var(--lm-space-4);
  border-color: transparent;
  border-radius: 22px;
  background: var(--lm-surface-2);
  font-size: var(--lm-text-base);
}
.lm-messages .lm-thread__input::placeholder { color: var(--lm-muted); }
.lm-messages .lm-thread__input:focus { border-color: var(--lm-primary); background: var(--lm-surface); box-shadow: 0 0 0 3px var(--lm-primary-ring); }
.lm-messages .lm-thread__send { inline-size: 44px; min-inline-size: 44px; block-size: 44px; min-block-size: 44px; padding: 0; border-radius: 50%; }
.lm-messages .lm-thread__form.is-empty .lm-thread__send:not(.is-loading) { border-color: transparent; background: var(--lm-surface-2); color: var(--lm-muted); }
.lm-messages .lm-thread__attach > .lm-icon-btn,
.lm-messages .lm-thread__record { inline-size: 44px; block-size: 44px; }

@media (max-width: 900px) {
  /* One screen at a time (layout.css), the shown one the card's width:
     the two columns above are for wider screens only. */
  .lm-messages { grid-template-columns: minmax(0, 1fr); }
  .lm-messages .lm-messages__list { border-inline-end: 0; }
  .lm-messages .lm-msg { max-inline-size: 88%; }
}

/* A phone: an open conversation takes the screen's width. */
@media (max-width: 767px) {
  /* Edge to edge whatever the shell pads: centred on its column, the
     screen's width (a phone has no scrollbar to subtract). */
  .lm-messages.lm-messages--thread-open { inline-size: 100vw; margin-inline: calc(50% - 50vw); border-inline: 0; border-radius: 0; }
  .lm-messages .lm-messages__list-head { padding: var(--lm-space-4) var(--lm-space-4) var(--lm-space-3); }
  .lm-messages .lm-thread__head { min-block-size: 60px; padding: var(--lm-space-2) var(--lm-space-3); }
  .lm-messages .lm-thread__scroll { padding: var(--lm-space-3); }
  .lm-messages .lm-thread__composer { padding: var(--lm-space-2) var(--lm-space-3) var(--lm-space-3); }

  /* Writing: the bottom bar steps aside and the conversation fits what the
     keyboard leaves of the screen (--lm-vvh, set by the script from the
     visual viewport), so the composer stays above the keyboard. */
  body.lm-composing .lm-bottom-nav { display: none; }
  body.lm-composing.lm-has-bottom-nav .lm-shell { padding-block-end: var(--lm-space-3); }
  body.lm-composing .lm-messages {
    block-size: calc(var(--lm-vvh, 100dvh) - var(--lm-header-height) - var(--lm-space-6));
  }
}

/* =============================================================================
   Phase 81. The unified Home: the other sources' cards and their marks.
   Scoped under .lm-feed with doubled classes where a later sheet would win;
   tokens only (one new: the media stage, dark in both themes); logical
   properties for RTL; every icon sized (Lm_Icon draws an unsized SVG).
   ========================================================================== */

/* -- The end of the list ----------------------------------------------------- */
.lm-feed .lm-home-caught-up.lm-home-caught-up {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--lm-space-2);
  padding: var(--lm-space-6) var(--lm-space-4);
  color: var(--lm-text-secondary);
  font-size: var(--lm-text-sm);
}
.lm-home-caught-up__icon .lm-icon { inline-size: 18px; block-size: 18px; }

/* -- A kind chip ("Reel", "Event", …) beside the time ------------------------ */
.lm-home-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-block-size: 20px;
  padding-inline: var(--lm-space-2);
  border-radius: var(--lm-radius-pill);
  background-color: var(--lm-surface-secondary);
  color: var(--lm-text-secondary);
  font-size: var(--lm-text-xs);
  font-weight: var(--lm-weight-semibold);
  white-space: nowrap;
}
.lm-home-chip .lm-icon { inline-size: 12px; block-size: 12px; flex: 0 0 auto; }

/* -- A community's post: its community first --------------------------------- */
.lm-feed .lm-post__source.lm-post__source {
  display: flex;
  align-items: center;
  gap: var(--lm-space-2);
  min-inline-size: 0;
  padding: var(--lm-space-3) var(--lm-space-4) 0;
  font-size: var(--lm-text-sm);
}
.lm-post__source-pic {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  inline-size: 28px;
  block-size: 28px;
  overflow: hidden;
  border-radius: var(--lm-radius-xs);
  background-color: var(--lm-surface-secondary);
  color: var(--lm-text);
  font-weight: var(--lm-weight-semibold);
}
.lm-post__source-pic img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.lm-post__source-name {
  min-inline-size: 0;
  overflow: hidden;
  color: var(--lm-text);
  font-weight: var(--lm-weight-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lm-post__source-kind {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  color: var(--lm-text-secondary);
}
.lm-post__source-kind .lm-icon { inline-size: 14px; block-size: 14px; }

/* Read by somebody not in it: taking part is the members'. */
.lm-feed .lm-post__join.lm-post__join {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--lm-space-2) var(--lm-space-3);
  margin: var(--lm-space-2) var(--lm-space-4) 0;
  padding: var(--lm-space-3);
  border-radius: var(--lm-radius-sm);
  background-color: var(--lm-surface-secondary);
  color: var(--lm-text-secondary);
  font-size: var(--lm-text-sm);
}
.lm-post__join > .lm-icon { inline-size: 18px; block-size: 18px; flex: 0 0 auto; }
.lm-post__join > span { flex: 1 1 12rem; min-inline-size: 0; }
.lm-post__join .lm-btn { min-block-size: 44px; }

/* A Page's post: following the Page, beside its name — a small button whose
   reach is still 44px tall (the row keeps its height). */
.lm-post__follow { display: inline-flex; align-items: center; gap: var(--lm-space-1); }
.lm-post__follow .lm-btn { position: relative; }
.lm-post__follow .lm-btn::after { content: ""; position: absolute; inset: -6px 0; }

/* -- A reel, played in place ------------------------------------------------- */
.lm-feed .lm-home-reel.lm-home-reel { overflow: hidden; }
.lm-home-reel__series {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-inline-size: 0;
  color: var(--lm-text-secondary);
}
.lm-home-reel__series .lm-icon { inline-size: 14px; block-size: 14px; flex: 0 0 auto; }
.lm-home-reel__caption-wrap { padding: 0 var(--lm-space-4) var(--lm-space-3); }
.lm-home-reel__caption-wrap.is-covered { filter: blur(6px); pointer-events: none; user-select: none; }
.lm-home-reel__caption {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: var(--lm-text-md);
  line-height: var(--lm-leading);
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* The stage: the video's own shape (9:16 to 16:9), at most 620px or three
   quarters of the screen tall — by an explicit width, never a max height on
   an auto-width aspect-ratio box (which would cap its width instead). */
.lm-home-reel__band { display: flex; justify-content: center; background-color: var(--lm-media-stage); }
.lm-home-reel__stage {
  --reel-max-h: min(620px, 75vh);

  position: relative;
  inline-size: min(100%, calc(var(--reel-max-h) * var(--reel-w) / var(--reel-h)));
  aspect-ratio: var(--reel-w) / var(--reel-h);
}
@supports (height: 1svh) {
  .lm-home-reel__stage { --reel-max-h: min(620px, 75svh); }
}
.lm-home-reel__media { position: absolute; inset: 0; }
.lm-home-reel__media.is-covered { filter: blur(48px) saturate(0.5); pointer-events: none; user-select: none; }
.lm-home-reel__poster,
.lm-home-reel__video {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
}
.lm-home-reel__video { z-index: 1; background-color: transparent; }

.lm-home-reel__toggle {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lm-on-media);
  cursor: pointer;
}
.lm-home-reel__toggle:focus-visible { outline: 2px solid var(--lm-on-media); outline-offset: -4px; }
.lm-home-reel__state {
  display: grid;
  place-items: center;
  inline-size: 56px;
  block-size: 56px;
  border-radius: 50%;
  background-color: rgb(0 0 0 / 50%);
}
.lm-home-reel__state .lm-icon { inline-size: 26px; block-size: 26px; }
.lm-home-reel__state-pause { display: none; }
.lm-home-reel.is-playing .lm-home-reel__state-play { display: none; }
.lm-home-reel.is-playing .lm-home-reel__state-pause { display: grid; }
.lm-home-reel.is-playing .lm-home-reel__state { opacity: 0; }
.lm-home-reel.is-playing .lm-home-reel__toggle:hover .lm-home-reel__state,
.lm-home-reel.is-playing .lm-home-reel__toggle:focus-visible .lm-home-reel__state { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .lm-home-reel__state { transition: opacity 0.2s ease; }
}

.lm-home-reel__sound,
.lm-home-reel__open {
  position: absolute;
  z-index: 3;
  inset-block-end: var(--lm-space-3);
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgb(0 0 0 / 55%);
  color: var(--lm-on-media);
}
.lm-home-reel__sound { inset-inline-end: var(--lm-space-3); cursor: pointer; }
.lm-home-reel__open { inset-inline-end: calc(var(--lm-space-3) + 52px); }
.lm-home-reel__sound .lm-icon,
.lm-home-reel__open .lm-icon { inline-size: 20px; block-size: 20px; }
.lm-home-reel__sound > span { display: grid; place-items: center; }
.lm-home-reel__sound > span[hidden] { display: none; }
.lm-home-reel__sound:focus-visible,
.lm-home-reel__open:focus-visible { outline: 2px solid var(--lm-on-media); outline-offset: 2px; }

.lm-home-reel__progress {
  position: absolute;
  z-index: 3;
  inset-inline: 0;
  inset-block-end: 0;
  block-size: 3px;
  background-color: rgb(255 255 255 / 25%);
}
.lm-home-reel__progress > span { display: block; inline-size: 0; block-size: 100%; background-color: var(--lm-on-media); }

.lm-home-reel__gone {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  margin: 0;
  padding: var(--lm-space-4);
  background-color: var(--lm-media-stage);
  color: var(--lm-on-media);
  font-size: var(--lm-text-sm);
  text-align: center;
}
.lm-home-reel__gone[hidden] { display: none; }

/* A paid episode this reader may not play: its picture, its series, and
   the way to it on Reels. */
.lm-home-reel__lock {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--lm-space-2);
  padding: var(--lm-space-5);
  background-color: rgb(0 0 0 / 60%);
  color: var(--lm-on-media);
  text-align: center;
}
.lm-home-reel__lock p { margin: 0; }
.lm-home-reel__lock-icon .lm-icon { inline-size: 28px; block-size: 28px; }
.lm-home-reel__lock-series { font-size: var(--lm-text-md); font-weight: var(--lm-weight-semibold); }
.lm-home-reel__lock-ep,
.lm-home-reel__lock-note { color: rgb(255 255 255 / 88%); font-size: var(--lm-text-sm); }
.lm-home-reel__lock .lm-btn { min-block-size: 44px; }
.lm-home-reel__lock .lm-btn .lm-icon { inline-size: 16px; block-size: 16px; }

/* Behind a warning: the warning over the blurred picture. */
.lm-home-reel__stage > .lm-safety-cover {
  position: absolute;
  z-index: 5;
  inset-inline: var(--lm-space-3);
  inset-block-start: 50%;
  margin: 0;
  transform: translateY(-50%);
}

.lm-home-reel__counts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lm-space-4);
  padding: var(--lm-space-3) var(--lm-space-4) 0;
  color: var(--lm-text-secondary);
  font-size: var(--lm-text-sm);
}
.lm-home-reel__count { display: inline-flex; align-items: center; gap: 4px; }
.lm-home-reel__count .lm-icon { inline-size: 15px; block-size: 15px; }
.lm-feed .lm-home-reel .lm-post__actions {
  grid-template-columns: none;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
}
/* The save button's two pictures are pictures, whatever the narrow-screen
   rule does to an action's words. */
.lm-feed .lm-home-reel .lm-post__action > .lm-home-reel__save-off,
.lm-feed .lm-home-reel .lm-post__action > .lm-home-reel__save-on {
  position: static;
  display: inline-flex;
  inline-size: auto;
  block-size: auto;
  overflow: visible;
  clip-path: none;
}
.lm-feed .lm-home-reel .lm-post__action > .lm-home-reel__save-on,
.lm-feed .lm-home-reel .lm-post__action.is-saved > .lm-home-reel__save-off { display: none; }
.lm-feed .lm-home-reel .lm-post__action.is-saved > .lm-home-reel__save-on { display: inline-flex; }

/* -- An event: its cover and date, when and where, Going / Interested ------- */
.lm-home-avatar--square.lm-home-avatar--square { border-radius: var(--lm-radius-sm); }
.lm-home-event__cover {
  position: relative;
  display: block;
  /* An explicit width: left auto, the height cap below would be carried
     through the ratio into a width cap (300 × 16/9 ≈ 533px). */
  inline-size: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-block-size: 300px;
  margin-block-start: var(--lm-space-2);
  background-color: var(--lm-surface-secondary);
}
.lm-home-event__cover > img,
.lm-home-event__cover > .lm-tile {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}
.lm-home-event__body {
  display: flex;
  flex-direction: column;
  gap: var(--lm-space-2);
  padding: var(--lm-space-3) var(--lm-space-4) var(--lm-space-4);
}
.lm-home-event__title {
  margin: 0;
  font-size: var(--lm-text-lg);
  font-weight: var(--lm-weight-bold);
  line-height: var(--lm-leading-snug);
  overflow-wrap: anywhere;
}
.lm-home-event__title a { color: var(--lm-text); }
.lm-home-event__body .lm-event-line { margin: 0; }
.lm-home-event__body .lm-event-line .lm-icon { inline-size: 16px; block-size: 16px; flex: 0 0 auto; }
.lm-home-event__zone { color: var(--lm-text-secondary); font-size: var(--lm-text-sm); }
.lm-home-event__yours { color: var(--lm-text-secondary); font-size: var(--lm-text-sm); }
.lm-home-event__text {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--lm-text-secondary);
  font-size: var(--lm-text-base);
  line-height: var(--lm-leading);
  overflow-wrap: anywhere;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.lm-home-event__counts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--lm-space-2);
  margin: 0;
  color: var(--lm-text-secondary);
  font-size: var(--lm-text-sm);
}
.lm-home-event__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--lm-space-2);
  padding-block-start: var(--lm-space-1);
}
.lm-home-event__actions .lm-event-respond { display: flex; flex-wrap: wrap; gap: var(--lm-space-2); }
.lm-home-event__actions .lm-btn { min-block-size: 44px; }
.lm-home-event__actions .lm-btn .lm-icon { inline-size: 16px; block-size: 16px; }

/* -- A listing: its photo (at most 620px, at most 4:5), price, Save ---------- */
.lm-home-listing__photo {
  display: flex;
  justify-content: center;
  overflow: hidden;
  margin-block-start: var(--lm-space-2);
  background-color: var(--lm-surface-secondary);
}
.lm-home-listing__photo > img {
  display: block;
  inline-size: 100%;
  max-inline-size: 620px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
@media (min-width: 768px) {
  .lm-home-listing__photo > img { aspect-ratio: 1 / 1; max-inline-size: 460px; }
}
.lm-home-listing__none {
  display: grid;
  place-items: center;
  inline-size: 100%;
  aspect-ratio: 16 / 9;
  max-block-size: 260px;
}
.lm-home-listing__none .lm-icon { inline-size: 40px; block-size: 40px; }
.lm-home-listing__body,
.lm-home-job__body {
  display: flex;
  flex-direction: column;
  gap: var(--lm-space-2);
  padding: var(--lm-space-3) var(--lm-space-4) var(--lm-space-4);
}
.lm-home-listing__price {
  margin: 0;
  color: var(--lm-text);
  font-size: var(--lm-text-lg);
  font-weight: var(--lm-weight-bold);
}
.lm-home-listing__title,
.lm-home-job__title {
  margin: 0;
  font-size: var(--lm-text-md);
  font-weight: var(--lm-weight-semibold);
  line-height: var(--lm-leading-snug);
  overflow-wrap: anywhere;
}
.lm-home-listing__title a,
.lm-home-job__title a { color: var(--lm-text); }
.lm-home-listing__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--lm-space-2);
  margin: 0;
  color: var(--lm-text-secondary);
  font-size: var(--lm-text-sm);
}
.lm-home-listing__place { display: inline-flex; align-items: center; gap: 4px; min-inline-size: 0; }
.lm-home-listing__place .lm-icon { inline-size: 14px; block-size: 14px; flex: 0 0 auto; }
.lm-home-listing__actions,
.lm-home-job__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--lm-space-2);
  padding-block-start: var(--lm-space-1);
}
.lm-home-listing__actions .lm-btn,
.lm-home-job__actions .lm-btn { min-block-size: 44px; }
.lm-home-listing__actions .lm-btn .lm-icon,
.lm-home-job__actions .lm-btn .lm-icon { inline-size: 16px; block-size: 16px; }

/* -- A job: what, where, the salary while shown ------------------------------ */
.lm-home-job__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--lm-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.lm-home-job__chips .lm-icon { inline-size: 14px; block-size: 14px; }
.lm-home-job__salary { margin: 0; color: var(--lm-text); font-weight: var(--lm-weight-semibold); }
.lm-home-job__applied { margin: 0; }

/* -- The cards' roots, and the pieces their scripts switch ------------------ */
.lm-feed .lm-home-event.lm-home-event,
.lm-feed .lm-home-listing.lm-home-listing,
.lm-feed .lm-home-job.lm-home-job { overflow: hidden; }
.lm-home-reel__sound-on,
.lm-home-reel__sound-off { display: grid; place-items: center; }
.lm-home-reel__sound-on[hidden],
.lm-home-reel__sound-off[hidden] { display: none; }
.lm-feed .lm-home-reel__save.lm-home-reel__save { gap: var(--lm-space-2); }
.lm-post__source-initial { font-size: var(--lm-text-xs); line-height: 1; }
