.mobile-navigation-toggle, .mobile-navigation-heading, .mobile-navigation-backdrop { display: none; }
@media (max-width: 720px) {
  /* Keep the 48px hit target; draw a subtle 40px rounded-square menu button. */
  .topbar-user .mobile-navigation-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    flex: none;
    margin-left: 3px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #fff9e8;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .topbar-user .mobile-navigation-toggle::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid #f2ce5070;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff24, #ffffff0e);
    box-shadow: inset 0 1px 0 #ffffff20, 0 2px 7px #10142b1a;
    pointer-events: none;
    transition: background .18s ease, border-color .18s ease;
  }
  .topbar-user .mobile-navigation-toggle .ui-icon {
    position: relative;
    width: 23px;
    height: 23px;
    stroke-width: 2.4;
  }
  .mobile-navigation-toggle-label { display: none; }
  .topbar-user .mobile-navigation-toggle:hover::before,
  .topbar-user .mobile-navigation-toggle[aria-expanded="true"]::before {
    border-color: #f2ce50b3;
    background: linear-gradient(145deg, #ffffff35, #ffffff17);
  }
  .topbar-user .mobile-navigation-toggle:active::before {
    background: #ffffff30;
    box-shadow: inset 0 1px 4px #10142b24;
  }
  .topbar-user .mobile-navigation-toggle:focus-visible {
    outline: 3px solid #f2ce50;
    outline-offset: 0;
  }
  .topbar-user > a[href="/settings"] { display: none; }
  /* The compose shortcut belongs to the same compact right-hand action group. */
  .topbar-user > .header-compose,
  body[data-category] .topbar-user > .header-compose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    box-sizing: border-box;
    width: 28px;
    height: 30px;
    min-height: 30px;
    margin: 0;
    padding: 0;
    gap: 0;
    border: 1px solid #ffffff30;
    border-radius: var(--button-radius-small, 14px);
    background: linear-gradient(145deg, #ffffff26, #ffffff0d);
    box-shadow: inset 0 1px 0 #ffffff24, 0 3px 8px #171a3220;
    color: #fff9e8;
  }
  .topbar-user > .header-compose .ui-icon { width: 18px; height: 18px; }
  .topbar-user > .header-compose span { display: none; }
  .topbar-user > .header-compose:hover,
  body[data-category] .topbar-user > .header-compose:hover {
    background: #5b5e78;
    border-color: #ffffff45;
    color: #fff9e8;
  }

  .mobile-community-nav > a { min-height: 44px; }
  .mobile-navigation-backdrop { display: block; position: fixed; inset: 0; z-index: 50; background: #171b32a6; opacity: 0; visibility: hidden; transition: opacity .24s ease, visibility .24s; }
  .mobile-navigation-backdrop.is-open { opacity: 1; visibility: visible; }
  #community-navigation { display: block; position: fixed; inset: 0 0 0 auto; z-index: 60; width: min(340px, calc(100vw - 40px)); height: 100dvh; max-height: 100dvh; margin: 0; padding: max(12px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); border: 0; background: #faf8f4; box-shadow: -8px 0 32px #171b3233; overflow-y: auto; overscroll-behavior: contain; visibility: hidden; transform: translateX(100%); transition: transform .24s ease, visibility .24s; }
  #community-navigation.mobile-navigation-open { visibility: visible; transform: translateX(0); }
  .mobile-navigation-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #d4d1de; color: #343959; }
  .mobile-navigation-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: #e4e6f0; color: #343959; cursor: pointer; }
  #community-navigation .sidenav a, #community-navigation .sidebar-links a, #community-navigation .sidebar-group > summary { min-height: 44px; }
  /* Three-column mobile navigation; preserve the desktop sidebar. */
  #community-navigation {
    padding: max(10px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
  }
  #community-navigation .mobile-navigation-heading {
    margin-bottom: 8px;
    padding: 2px 2px 8px;
  }
  #community-navigation .sidenav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  #community-navigation .sidenav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 52px;
    padding: 6px 3px;
    font-size: .78rem;
    line-height: 1.25;
    text-align: center;
    border-radius: 10px;
    background: #ffffff88;
  }
  #community-navigation .sidenav a .ui-icon {
    width: 18px;
    height: 18px;
  }
  #community-navigation .sidenav a[aria-current="page"] { background: #f2dce6; }
  #community-navigation .sidebar-group {
    margin-top: 10px;
    padding-top: 8px;
  }
  #community-navigation .sidebar-group > summary {
    min-height: 38px;
    padding: 5px 6px 9px;
    font-size: .73rem;
    line-height: 1.35;
  }
  #community-navigation .sidebar-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 5px;
  }
  #community-navigation .sidebar-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 52px;
    padding: 5px 3px;
    font-size: .73rem;
    line-height: 1.25;
    text-align: center;
    border-radius: 10px;
    overflow-wrap: anywhere;
  }
  #community-navigation .sidebar-links a > span { min-width: 0; }
  #community-navigation .sidebar-links .category-icon {
    width: 24px;
    height: 24px;
    padding: 4px;
  }
  #community-navigation .sidebar-resources .ui-icon {
    width: 20px;
    height: 20px;
  }
  /* Topic names can be long, so keep them full width and retain their counts. */
  #community-navigation .popular-topics {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  #community-navigation .popular-topics a {
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    min-height: 40px;
    padding: 7px 9px;
    text-align: left;
    font-size: .79rem;
  }
  #community-navigation .sidebar-empty {
    grid-column: 1 / -1;
    padding: 6px 8px;
  }
  #community-navigation .sidebar-topics-note { margin-top: 4px; }

  html.mobile-navigation-locked, html.mobile-navigation-locked body { overflow: hidden; }
}
@media (max-width: 380px) {
  .topbar-inner { padding-left: 8px; padding-right: 8px; }
  .topbar .brand { font-size: .9rem; }
  .topbar-user { gap: 2px; }
  .topbar-user .mobile-navigation-toggle { width: 46px; min-width: 46px; margin-left: 2px; }
}
@media (prefers-reduced-motion: reduce) { #community-navigation, .mobile-navigation-backdrop { transition: none; } }

/* Soft pastel folder tabs: inactive tabs sit behind the unified reading panel. */
@media (max-width: 720px) {
  .feed-experience {
    --feed-surface: color-mix(in srgb, var(--board-surface, #fffdf9) 68%, var(--board-soft, #efe8de) 32%);
    --feed-edge: var(--board-line, #cfcac4);
    --feed-ink: var(--board-ink, #3f4352);
    --feed-idle-surface: color-mix(in srgb, var(--board-soft, #e7f0e6) 48%, #d9f2e5 52%);
  }
  .feed-experience .feed-toolbar {
    position: relative;
    /* Do not create a stacking context: the panel must cover inactive tabs. */
    z-index: auto;
    align-items: end;
    gap: 8px;
    margin-bottom: 0;
    background: transparent;
  }
  .feed-experience .feed-toolbar .feed-tabs,
  body[data-category] .feed-experience .feed-toolbar .feed-tabs {
    display: flex;
    align-items: end;
    gap: 4px;
    min-width: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    /* Explicitly suppress the older board's opaque .feed-tabs backing. */
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    overflow: visible;
  }
  .feed-experience .feed-toolbar .feed-tabs a,
  body[data-category] .feed-experience .feed-toolbar .feed-tabs a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 9px 3px 7px;
    border: 1px solid var(--feed-edge);
    border-bottom: 0;
    border-radius: 15px 15px 0 0;
    background: var(--feed-idle-surface);
    background-image: none;
    box-shadow: inset 0 1px 0 #ffffff55;
    color: var(--feed-ink);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    /* Same baseline as the selected tab; depth comes from panel overlap, not a downward shift. */
    transform: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .feed-experience .feed-toolbar .feed-tabs a:nth-child(2),
  body[data-category] .feed-experience .feed-toolbar .feed-tabs a:nth-child(2) {
    --feed-idle-surface: color-mix(in srgb, var(--board-soft, #e4ecf4) 45%, #d9ebfa 55%);
  }
  .feed-experience .feed-toolbar .feed-tabs a:nth-child(3),
  body[data-category] .feed-experience .feed-toolbar .feed-tabs a:nth-child(3) {
    --feed-idle-surface: color-mix(in srgb, var(--board-soft, #e9e2f2) 45%, #ebe0f8 55%);
  }
  .feed-experience .feed-toolbar .feed-tabs a .ui-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    opacity: .8;
  }
  .feed-experience .feed-toolbar .feed-tabs a.active,
  body[data-category] .feed-experience .feed-toolbar .feed-tabs a.active {
    z-index: 4;
    margin-bottom: 0;
    border: 1px solid var(--feed-edge);
    border-bottom: 0;
    background: var(--feed-surface);
    background-image: none;
    box-shadow: inset 0 1px 0 #ffffff8a;
    color: var(--board-accent, #56536a);
    font-weight: 750;
    transform: none;
  }
  .feed-experience .feed-toolbar .feed-tabs a.active::after {
    content: "";
    position: absolute;
    left: 1px;
    right: 1px;
    bottom: -9px;
    width: auto;
    height: 10px;
    border: 0;
    border-radius: 0;
    background: var(--feed-surface);
    transform: none;
  }
  .feed-experience .feed-toolbar .feed-tabs a:hover,
  body[data-category] .feed-experience .feed-toolbar .feed-tabs a:hover {
    background: var(--feed-surface);
    border-color: var(--feed-edge);
    color: var(--feed-ink);
    text-decoration: none;
  }
  .feed-experience .feed-toolbar .feed-tabs a.active:hover,
  body[data-category] .feed-experience .feed-toolbar .feed-tabs a.active:hover {
    background: var(--feed-surface);
    color: var(--board-accent, #56536a);
  }
  .feed-experience .feed-toolbar .feed-tabs a:focus-visible {
    outline: 2px solid var(--board-accent, #56536a);
    outline-offset: -4px;
  }
  /* The panel is only a layout wrapper: no second backing beneath post cards. */
  .feed-experience .feed-reading-panel {
    position: relative;
    z-index: 2;
    min-width: 0;
    min-height: 0;
    /* Let the first card/empty-state overlap the inactive tab bottoms. */
    margin-top: -8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  /* Each post remains its own card, separated by actual space rather than a thin rule. */
  .feed-experience .feed-reading-panel .post-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 0;
    border: 0;
  }
  .feed-experience .feed-reading-panel .post-list .post-card,
  body[data-category] .feed-experience .feed-reading-panel .post-list .post-card {
    min-width: 0;
    margin: 0;
    padding: 16px 12px;
    border: 1px solid var(--feed-edge);
    border-radius: 14px;
    background: var(--feed-surface);
    background-image: none;
    box-shadow: 0 3px 10px #3439590c;
  }
  .feed-experience .feed-reading-panel .post-list .post-card:last-child {
    border-bottom: 1px solid var(--feed-edge);
  }
  .feed-experience .feed-reading-panel .post-list .post-card:hover,
  body[data-category] .feed-experience .feed-reading-panel .post-list .post-card:hover {
    background: color-mix(in srgb, var(--feed-surface) 82%, #fff 18%);
  }
  /* Loading and empty states form their own card instead of reintroducing a backdrop. */
  .feed-experience .feed-reading-panel .state,
  body[data-category] .feed-experience .feed-reading-panel .state {
    min-height: 140px;
    margin: 0;
    padding: 24px 14px;
    border: 1px solid var(--feed-edge);
    border-radius: 14px;
    background: var(--feed-surface);
    box-shadow: 0 3px 10px #3439590c;
  }
  .feed-experience .feed-reading-panel .load-more { margin: 12px 0; }
}


/* Playful mobile composer: a content-sized floating sheet, with no dead space. */
.feed-composer > .composer-backdrop,
.feed-composer > summary .composer-sheet-close { display: none; }

@media (max-width: 720px) {
  html.bbbs-compose-locked,
  html.bbbs-compose-locked body { overflow: hidden; }

  .feed-experience .feed-toolbar .feed-composer.card[open],
  body[data-category] .feed-experience .feed-toolbar .feed-composer.card[open] {
    position: fixed;
    inset: 0;
    z-index: 120;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Stretch the open details content: centering makes the form shrink to intrinsic width. */
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    margin: 0;
    padding: max(16px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #1d2039ac !important;
    box-shadow: none;
    scroll-margin-top: 0;
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
  }
  .feed-experience .feed-toolbar .feed-composer[open] > .composer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: default;
  }
  .feed-experience .feed-toolbar .feed-composer[open] > summary,
  .feed-experience .feed-toolbar .feed-composer[open] > form {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(100%, 540px);
    max-width: 100%;
    margin: 0 auto;
  }
  .feed-experience .feed-toolbar .feed-composer[open] > summary {
    display: flex;
    flex: none;
    min-height: 66px;
    align-items: center;
    gap: 11px;
    padding: 18px 16px 10px;
    border: 1px solid #ead9e2;
    border-bottom-color: #eddee3;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(115deg, #fff4cf, #ffe9ec 58%, #f0eaff);
    color: #36354d;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.35;
    box-shadow: 0 -12px 40px #171b3340;
  }
  .feed-experience .feed-toolbar .feed-composer[open] > summary::before {
    content: "";
    position: absolute;
    top: 7px;
    left: calc(50% - 20px);
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #cdbfcf;
  }
  .feed-experience .feed-toolbar .feed-composer[open] > summary > .ui-icon {
    box-sizing: border-box;
    flex: none;
    width: 39px;
    height: 39px;
    padding: 9px;
    border: 1px solid #f1c96c;
    border-radius: 13px;
    background: #ffe28c;
    color: #705626;
  }
  .feed-experience .feed-toolbar .feed-composer[open] > summary .composer-prompt {
    margin: 0;
    color: #37344d;
    font-size: 1rem;
    font-weight: 750;
  }
  .feed-experience .feed-toolbar .feed-composer[open] > summary .composer-sheet-close {
    display: grid;
    flex: none;
    place-items: center;
    width: 37px;
    height: 37px;
    margin-left: auto;
    border: 1px solid #e0d6ec;
    border-radius: 12px;
    background: #ffffffa8;
    color: #686179;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
  }
  .feed-experience .feed-toolbar .feed-composer[open] > form {
    flex: 0 1 auto;
    min-height: 0;
    max-height: calc(100dvh - 106px - env(safe-area-inset-bottom));
    padding: 15px 16px 18px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #ead9e2;
    border-top: 0;
    border-radius: 0 0 24px 24px;
    background: linear-gradient(150deg, #fffcf6, #fff9f8 70%, #f8f5ff);
    box-shadow: 0 18px 38px #171b3333;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .composer-type {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin: 0 0 13px;
    padding: 4px;
    border: 1px solid #e8deef;
    border-radius: 16px;
    background: #f0ebf6;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .composer-type label {
    position: relative;
    display: flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #77718b;
    font-size: .9rem;
    font-weight: 650;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .composer-type label.is-selected {
    border-color: #f0cf84;
    background: linear-gradient(145deg, #ffe7a0, #ffcf78);
    box-shadow: inset 0 1px #fff9dd, 0 2px 7px #a77d3121;
    color: #5c452e;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .composer-type label.is-selected:has(input[value="topic"]) {
    border-color: #cec3ee;
    background: linear-gradient(145deg, #f0e5ff, #dcd9fa);
    box-shadow: inset 0 1px #ffffffb8, 0 2px 7px #7065a21c;
    color: #514777;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .composer-type input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .composer-type label:has(input:focus-visible) {
    outline: 3px solid #bb87cf;
    outline-offset: 2px;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .input {
    box-sizing: border-box;
    border: 1px solid #ddd6e2;
    border-radius: 15px;
    background: #fffefd;
    box-shadow: inset 0 1px 3px #4d40500a;
    color: #36354b;
    font-size: 16px;
    line-height: 1.55;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .input::placeholder {
    color: #9b95a2;
    opacity: 1;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .input:focus {
    border-color: #c59ad6;
    outline: none;
    box-shadow: 0 0 0 3px #eddcf7;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .composer-title {
    min-height: 48px;
    margin-bottom: 10px;
    padding: 10px 13px;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .composer-body {
    display: block;
    height: clamp(152px, 23dvh, 210px);
    min-height: 152px;
    max-height: 32dvh;
    margin-bottom: 0;
    padding: 13px;
    line-height: 1.65;
    resize: none;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .format-help {
    margin: 11px 0 14px;
    padding: 0 10px;
    border: 1px solid #eee4f5;
    border-radius: 12px;
    background: #f7f2ff;
    color: #706786;
    font-size: .78rem;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .format-help > summary {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 7px 0;
    color: #716287;
    cursor: pointer;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .format-help > summary::before {
    content: "✦";
    color: #d9a651;
    font-size: 1rem;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .format-help p {
    overflow-wrap: anywhere;
    line-height: 1.65;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .composer-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 0;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .composer-meta > select {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 46px;
    padding: 9px 12px;
    background-color: #fffefd;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .file-label {
    grid-column: 1;
    display: inline-flex;
    width: fit-content;
    min-height: 46px;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid #e4cde6;
    border-radius: 14px;
    background: linear-gradient(145deg, #fff0f2, #f2e8ff);
    color: #775b85;
    font-size: .87rem;
    font-weight: 650;
    box-shadow: inset 0 1px #ffffffdb;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .file-label:hover {
    background: linear-gradient(145deg, #ffe3eb, #eee0fc);
    color: #5c4b78;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .composer-meta > button[type="submit"] {
    grid-column: 2;
    min-width: 112px;
    min-height: 46px;
    padding: 10px 19px;
    border: 1px solid #eebc50;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffe58e, #f7c95c);
    box-shadow: inset 0 1px #fff5c6, 0 4px 11px #aa823328;
    color: #5c4528;
    font-size: .93rem;
    font-weight: 750;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .composer-meta > button[type="submit"]:hover:not(:disabled) {
    border-color: #dda93f;
    background: linear-gradient(145deg, #ffe99d, #ffd36b);
    color: #49371f;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .composer-meta > button[type="submit"]:disabled {
    opacity: 1;
    border-color: #ebddc5;
    background: #f5e9d6;
    box-shadow: none;
    color: #a79a89;
    cursor: not-allowed;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .composer-meta > .muted {
    grid-column: 1 / -1;
    order: 3;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .media-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .thumb-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 9px;
    border: 1px solid #eed4e3;
    border-radius: 10px;
    background: #fff0f5;
    color: #785c7b;
  }
  .feed-experience .feed-toolbar .feed-composer[open] .thumb-x {
    color: #8e6582;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .feed-experience .feed-toolbar .feed-composer.card[open] {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
 
/* Shared mobile feed toolbar: the publish entry stays visible across views. */
.feed-tab-label-short, .feed-compose-action { display: none; }
@media (max-width: 720px) {
  .feed-experience .feed-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: end;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .feed-experience .feed-toolbar > .feed-tabs,
  body[data-category] .feed-experience .feed-toolbar > .feed-tabs {
    grid-column: 1;
    grid-row: 1;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .feed-experience .feed-toolbar .feed-tabs a {
    box-sizing: border-box;
    overflow: hidden;
  }
  .feed-experience .feed-toolbar .feed-tabs a .ui-icon { flex: 0 0 16px; }
  .feed-experience .feed-toolbar .feed-tabs a span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* The expanded composer is a full-screen sheet, not a fifth tab. */
  .feed-experience .feed-toolbar > .feed-composer.card:not([open]) { display: none !important; }
  .feed-experience .feed-toolbar > .no-composer { display: none !important; }
  .feed-experience .feed-toolbar > .feed-compose-action {
    grid-column: 2;
    grid-row: 1;
    display: inline-flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid var(--board-line, #bcd5cb);
    border-radius: 13px;
    background: var(--board-surface, #f8fffb);
    color: var(--board-accent, #376b5f);
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
  }
  .feed-experience .feed-toolbar > .feed-compose-action:hover {
    background: var(--board-soft, #e0f7ea);
    color: var(--board-accent, #376b5f);
    text-decoration: none;
  }
  .feed-experience .feed-toolbar > .feed-compose-action .ui-icon {
    width: 17px;
    height: 17px;
    flex: none;
  }
  .feed-experience .feed-toolbar > .feed-compose-action:focus-visible {
    outline: 2px solid var(--board-accent, #376b5f);
    outline-offset: 2px;
  }
}
@media (max-width: 560px) {
  .feed-experience .feed-toolbar .feed-tabs .feed-tab-label-full { display: none; }
  .feed-experience .feed-toolbar .feed-tabs .feed-tab-label-short { display: inline; }
}
@media (max-width: 360px) {
  .feed-experience .feed-toolbar { gap: 5px; }
  .feed-experience .feed-toolbar .feed-tabs a { gap: 2px; padding-inline: 2px; font-size: .74rem; }
  .feed-experience .feed-toolbar > .feed-compose-action { gap: 4px; padding-inline: 7px; font-size: .74rem; }
}
