/* Phone composer only: one compact action row, with native tools on demand. */
.feed-composer-extra-tools { display: contents; }
.feed-composer-tools-toggle[hidden],
.feed-composer-extra-tools[hidden] { display: none; }
@media (max-width: 767px) {
  html:is([data-candao-device="phone"], [data-candao-ux-phone="true"]):not([data-candao-device="desktop"]):not([data-candao-device="tablet"]) body .feed-composer[data-mobile-composer-tools] .feed-composer-tools {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) max-content;
    position: relative;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px 8px;
    padding-top: 8px;
  }
  html:is([data-candao-device="phone"], [data-candao-ux-phone="true"]):not([data-candao-device="desktop"]):not([data-candao-device="tablet"]) body .feed-composer[data-mobile-composer-tools] .feed-composer-actions {
    display: contents;
  }
  html:is([data-candao-device="phone"], [data-candao-ux-phone="true"]):not([data-candao-device="desktop"]):not([data-candao-device="tablet"]) body .feed-composer[data-mobile-composer-tools] .feed-composer-tools-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    grid-column: 1;
    grid-row: 1;
    color: var(--feed-teal);
  }
  html:is([data-candao-device="phone"], [data-candao-ux-phone="true"]):not([data-candao-device="desktop"]):not([data-candao-device="tablet"]) body .feed-composer[data-mobile-composer-tools] .feed-composer-extra-tools:not([hidden]) {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 30;
    display: flex;
    padding: 6px;
    gap: 2px;
    border: 1px solid var(--feed-line);
    border-radius: 12px;
    background: var(--feed-surface);
    box-shadow: 0 8px 24px rgba(17, 24, 31, .12);
  }
  html:is([data-candao-device="phone"], [data-candao-ux-phone="true"]):not([data-candao-device="desktop"]):not([data-candao-device="tablet"]) body .feed-composer[data-mobile-composer-tools] .feed-composer-extra-tools .feed-tool-button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }
  html:is([data-candao-device="phone"], [data-candao-ux-phone="true"]):not([data-candao-device="desktop"]):not([data-candao-device="tablet"]) body .feed-composer[data-mobile-composer-tools] .feed-composer-submit-group {
    display: contents;
  }
  html:is([data-candao-device="phone"], [data-candao-ux-phone="true"]):not([data-candao-device="desktop"]):not([data-candao-device="tablet"]) body .feed-composer[data-mobile-composer-tools] .feed-first-circle-guide {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
  }
  html:is([data-candao-device="phone"], [data-candao-ux-phone="true"]):not([data-candao-device="desktop"]):not([data-candao-device="tablet"]) body .feed-composer[data-mobile-composer-tools] :is(.feed-context-selection, .feed-media-selection) {
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html:is([data-candao-device="phone"], [data-candao-ux-phone="true"]):not([data-candao-device="desktop"]):not([data-candao-device="tablet"]) body .feed-composer[data-mobile-composer-tools] .feed-publish .material-icons { width: 18px; flex: 0 0 18px; overflow: hidden; }
  html:is([data-candao-device="phone"], [data-candao-ux-phone="true"]):not([data-candao-device="desktop"]):not([data-candao-device="tablet"]) body .feed-composer[data-mobile-composer-tools] .feed-publish [hidden] { display: none !important; }
  html:is([data-candao-device="phone"], [data-candao-ux-phone="true"]):not([data-candao-device="desktop"]):not([data-candao-device="tablet"]) body .feed-composer[data-mobile-composer-tools] .feed-publish { min-height: 44px; grid-column: 3; grid-row: 1; }
  html:is([data-candao-device="phone"], [data-candao-ux-phone="true"]):not([data-candao-device="desktop"]):not([data-candao-device="tablet"]) body .feed-composer[data-mobile-composer-tools] .feed-circle-toggle { min-height: 44px; grid-column: 2; grid-row: 1; justify-self: end; }
}
