:root {
  --feed-ink: #11181f;
  --feed-muted: #65717d;
  --feed-faint: #8e99a4;
  --feed-line: #dce3e8;
  --feed-line-strong: #c7d0d7;
  --feed-surface: #ffffff;
  --feed-canvas: #f3f5f6;
  --feed-soft: #eef2f3;
  --feed-accent: #7c3aed;
  --feed-accent-strong: #5b21b6;
  --feed-teal: #087b72;
  --feed-ai: #6658d8;
  --feed-danger: #bd2f45;
  --feed-shadow: 0 10px 30px rgba(22, 34, 44, 0.06);
}

body[data-page-id="feed_alpha"],
body[data-page-id="feed_permissions"] {
  background: var(--feed-canvas);
  color: var(--feed-ink);
}

body[data-page-id="feed_alpha"] .main,
body[data-page-id="feed_permissions"] .main {
  background: var(--feed-canvas);
  padding: 0 28px;
}

body[data-page-id="feed_alpha"] .topbar,
body[data-page-id="feed_permissions"] .topbar {
  border-bottom-color: var(--feed-line);
  box-shadow: none;
}

body[data-page-id="feed_alpha"] .sidebar,
body[data-page-id="feed_permissions"] .sidebar {
  border-right: 1px solid var(--feed-line);
  border-radius: 0;
  box-shadow: none;
}

body[data-page-id="feed_alpha"] .sidebar nav,
body[data-page-id="feed_permissions"] .sidebar nav {
  padding: 10px 12px;
}

body[data-page-id="feed_alpha"] .sidebar nav a,
body[data-page-id="feed_permissions"] .sidebar nav a {
  min-height: 42px;
  box-sizing: border-box;
  margin: 2px 0;
  padding: 9px 12px;
  border-radius: 7px;
  color: #52606c;
  font-size: 14px;
  font-weight: 700;
}

body[data-page-id="feed_alpha"] .sidebar nav a:hover,
body[data-page-id="feed_permissions"] .sidebar nav a:hover {
  background: var(--feed-soft);
  color: var(--feed-ink);
}

body[data-page-id="feed_alpha"] .sidebar nav a.active,
body[data-page-id="feed_permissions"] .sidebar nav a.active {
  background: #f3e8ff;
  color: var(--feed-accent-strong);
  box-shadow: inset 3px 0 0 var(--feed-accent);
}

.feed-shell {
  width: min(1540px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 300px);
  gap: 22px;
  align-items: start;
  box-sizing: border-box;
  padding: 26px 0 104px;
}

.feed-main {
  min-width: 0;
}

.feed-header,
.feed-title,
.feed-rail-heading,
.permissions-header,
.feed-post-header,
.feed-post-author,
.feed-post-meta,
.feed-composer-tools,
.feed-post-actions,
.feed-dialog-header {
  display: flex;
  align-items: center;
}

.feed-header {
  min-height: 48px;
  justify-content: space-between;
}

.feed-title {
  gap: 10px;
}

.feed-mobile-ai-master {
  display: none;
}

.feed-title > div {
  min-width: 0;
}

.feed-title p {
  margin: 4px 0 0;
  color: var(--feed-muted);
  font-size: 13px;
  line-height: 1.35;
}

.feed-header h1,
.permissions-header h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.feed-live-mark {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--feed-accent);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
}

.feed-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.feed-circle-mark{display:block;width:21px;height:21px;object-fit:contain}

.feed-trends-button {
  display: none;
}

.icon-button,
.feed-tool-button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--feed-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-button:hover,
.feed-tool-button:hover,
.feed-tool-button.active {
  background: var(--feed-soft);
  color: var(--feed-ink);
}

.icon-button.compact {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
}

.feed-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  margin: 12px 0 14px;
  padding: 4px;
  border: 1px solid var(--feed-line);
  border-radius: 8px;
  background: #e9edef;
}

.feed-tabs button {
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--feed-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.feed-tabs button:hover {
  color: var(--feed-ink);
}

.feed-tabs button.active {
  background: var(--feed-surface);
  color: var(--feed-ink);
  box-shadow: 0 1px 4px rgba(22, 34, 44, 0.12);
}

.feed-composer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--feed-line);
  border-radius: 8px;
  background: var(--feed-surface);
  box-shadow: var(--feed-shadow);
}

.feed-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(17, 24, 31, 0.08);
  border-radius: 50%;
  object-fit: cover;
  background: var(--feed-soft);
}

.feed-composer-body {
  position: relative;
  min-width: 0;
}
.feed-composer-editor{position:relative;min-width:0}.feed-composer-highlight{position:absolute;z-index:0;inset:0 0 auto 0;min-height:70px;padding:7px 2px 10px;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--feed-ink);font:inherit;font-size:17px;line-height:1.45;pointer-events:none}
.feed-composer-highlight mark{padding:0;background:transparent;color:#2563eb;font-weight:750}
.feed-composer-editor>textarea{position:relative;z-index:1;background:transparent!important;color:transparent!important;caret-color:var(--feed-ink);-webkit-text-fill-color:transparent}
.feed-composer-editor>textarea::placeholder{-webkit-text-fill-color:var(--feed-faint)}

.feed-composer-body textarea {
  width: 100%;
  min-height: 70px;
  padding: 7px 2px 10px;
  resize: vertical;
  border: 0;
  outline: 0;
  color: var(--feed-ink);
  background: transparent;
  font: inherit;
  font-size: 17px;
  line-height: 1.45;
  box-sizing: border-box;
}

.feed-composer-body textarea::placeholder {
  color: var(--feed-faint);
}

.feed-composer-tools {
  min-height: 40px;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--feed-soft);
  padding-top: 10px;
}

.feed-composer-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.feed-tool-button {
  position: relative;
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  color: var(--feed-teal);
}

.feed-tool-button .material-icons {
  font-size: 21px;
}

.feed-tool-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.feed-media-selection {
  margin-left: 5px;
  color: var(--feed-muted);
  font-size: 12px;
  font-weight: 700;
}

.feed-context-selection {
  max-width: 180px;
  margin-left: 5px;
  overflow: hidden;
  color: var(--feed-teal);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-composer-options {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--feed-soft);
}

.feed-composer-options[hidden] {
  display: none;
}

.feed-option-group {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(120px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.feed-option-group + .feed-option-group {
  grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1.3fr);
  margin-top: 8px;
}

.feed-option-group input,
.feed-option-group select,
.feed-agent-form input,
.feed-agent-form select,
.permissions-toolbar input,
.permissions-toolbar select,
.permissions-dialog input,
.permissions-dialog select {
  width: 100%;
  min-width: 0;
  height: 40px;
  box-sizing: border-box;
  border: 1px solid var(--feed-line);
  border-radius: 6px;
  padding: 0 11px;
  background: #fff;
  color: var(--feed-ink);
  font: inherit;
}

.feed-option-group input:focus,
.feed-option-group select:focus,
.feed-agent-form input:focus,
.feed-agent-form select:focus {
  border-color: var(--feed-teal);
  outline: 3px solid rgba(8, 123, 114, 0.1);
}

.feed-entity-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--feed-muted);
  font-size: 13px;
  white-space: nowrap;
}

.feed-entity-toggle input {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--feed-teal);
}

.feed-publish,
.permissions-primary {
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 7px;
  background: var(--feed-accent);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.feed-publish:hover,
.permissions-primary:hover {
  background: var(--feed-accent-strong);
}

.feed-publish .material-icons {
  font-size: 18px;
}

.feed-status {
  min-height: 0;
  padding: 0 4px;
  color: var(--feed-muted);
  font-size: 13px;
}

.feed-status:not(:empty) {
  padding-top: 12px;
  padding-bottom: 12px;
}

.feed-search-state {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--feed-line);
  border-radius: 8px;
  background: var(--feed-surface);
  color: var(--feed-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.feed-search-state[hidden] {
  display: none;
}

.feed-search-state button {
  border: 0;
  background: transparent;
  color: var(--feed-accent-strong);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.feed-search-state .material-icons {
  font-size: 16px;
}

.feed-stream {
  display: grid;
  gap: 14px;
}

.feed-post {
  min-width: 0;
  padding: 17px 18px 10px;
  border: 1px solid var(--feed-line);
  border-radius: 8px;
  background: var(--feed-surface);
  box-shadow: 0 4px 18px rgba(22, 34, 44, 0.035);
}

.feed-post-agent {
  border-top-color: rgba(102, 88, 216, 0.5);
}

.feed-post-header {
  gap: 11px;
  align-items: flex-start;
}

.feed-circle-title-input {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(8, 123, 114, .28);
  border-radius: 8px;
  background: #f5fbf9;
  color: var(--feed-ink);
  font: 800 16px/1.3 inherit;
}

.feed-circle-headline {
  margin: 14px 0 4px;
  color: var(--feed-ink);
  font-size: 20px;
  line-height: 1.25;
}

.feed-post-identity {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.feed-post-author {
  min-width: 0;
  gap: 5px;
}

.feed-post-author strong {
  overflow: hidden;
  color: var(--feed-ink);
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-post-badge {
  color: var(--feed-teal);
  font-size: 17px;
}

.feed-post-agent .feed-post-badge {
  color: var(--feed-ai);
}

.feed-post-meta {
  min-width: 0;
  gap: 7px;
  color: var(--feed-muted);
  font-size: 12px;
}

.feed-post-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-post-meta time::before {
  content: "·";
  margin-right: 7px;
  color: var(--feed-faint);
}

.feed-post-body {
  margin: 13px 0;
  color: #202a33;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.55;
}

.feed-post-body:empty {
  display: none;
}

.feed-post-reason {
  margin: 9px 0;
  padding-left: 10px;
  border-left: 2px solid var(--feed-accent);
  color: var(--feed-muted);
  font-size: 12px;
  font-weight: 700;
}

.feed-post-unavailable {
  border-style: dashed;
}

.feed-post-unavailable .feed-post-body {
  margin-bottom: 10px;
}

.feed-post-unavailable .feed-post-actions,
.feed-post-unavailable .feed-comments {
  display: none;
}

.feed-post-availability {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  color: var(--feed-muted);
  background: var(--feed-soft);
  border: 1px solid var(--feed-line);
}

.feed-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  color: var(--feed-teal);
  font-size: 14px;
  font-weight: 700;
}

.feed-post-tags button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.feed-post-tags button:hover {
  color: var(--feed-accent-strong);
  text-decoration: underline;
}

.feed-post-context {
  margin-top: 10px;
  color: var(--feed-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.feed-circle-summary {
  display: block;
  overflow: hidden;
  margin: 10px 0 2px;
  padding: 10px 12px;
  background: rgba(20, 184, 122, .08);
  border: 1px solid rgba(20, 184, 122, .22);
  border-radius: 12px;
}

.feed-circle-summary[hidden] { display: none; }
.feed-circle-role-track { display: flex; width: max-content; gap: 7px; align-items: center; }
.feed-circle-role-track.is-animated { animation: feed-circle-roles 24s linear infinite; }
.feed-circle-summary:hover .feed-circle-role-track { animation-play-state: paused; }
@keyframes feed-circle-roles { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .feed-circle-role-track.is-animated { animation: none; } }

.feed-circle-toggle {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 4px;
  padding: 0 9px;
  color: var(--feed-muted);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.feed-circle-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.feed-circle-toggle .material-icons { font-size: 18px; }
.feed-circle-toggle:has(input:checked) { color: #0c8d60; background: rgba(20, 184, 122, .1); border-color: rgba(20, 184, 122, .35); }

.feed-circle-summary strong,
.feed-circle-summary span {
  font-size: 11px;
}

.feed-circle-summary strong { margin-right: 3px; color: var(--feed-ink); }
.feed-circle-summary span {
  padding: 3px 7px;
  color: var(--feed-accent-text, #097a51);
  background: rgba(20, 184, 122, .12);
  border-radius: 999px;
}

.feed-pairing-status {
  margin: 8px 0;
  color: var(--feed-muted);
  font-size: 12px;
}

.feed-post-context a {
  color: var(--feed-teal);
  text-decoration: none;
}

.feed-join-control {
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-join-control[hidden] { display: none; }
.feed-circle-member-count { color: var(--feed-muted); font-size: 11px; font-weight: 800; white-space: nowrap; }

.feed-join-as {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(8, 123, 114, 0.24);
  border-radius: 6px;
  background: #f2fbfa;
  color: var(--feed-teal);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.feed-join-chevron { margin-left: 1px; }

.feed-join-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  right: 0;
  width: 250px;
  padding: 6px;
  border: 1px solid var(--feed-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(22, 34, 44, .18);
}

.feed-join-menu[hidden] { display: none; }

.feed-join-menu button {
  width: 100%;
  min-height: 52px;
  padding: 8px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--feed-ink);
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.feed-join-menu button:hover { background: #eef8f5; }
.feed-join-menu button > i { color: var(--feed-teal); font-size: 20px; }
.feed-join-menu strong,
.feed-join-menu small { display: block; }
.feed-join-menu strong { font-size: 12px; }
.feed-join-menu small { margin-top: 2px; color: var(--feed-muted); font-size: 10px; }

.feed-circle-post { cursor: pointer; }
.feed-circle-post:focus-visible { outline: 3px solid rgba(8, 123, 114, .25); outline-offset: 2px; }

.feed-join-as[hidden] {
  display: none;
}

.feed-join-as .material-icons {
  font-size: 17px;
}

.feed-post-media {
  margin: 14px -18px 0;
  overflow: hidden;
  border-top: 1px solid var(--feed-line);
  border-bottom: 1px solid var(--feed-line);
  background: #101417;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(180px, 260px);
  gap: 2px;
}

.feed-post-media > :only-child {
  grid-column: 1 / -1;
}

.feed-media-open {
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #101417;
  cursor: zoom-in;
}

.feed-media-open:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid #fff;
  outline-offset: -4px;
}

.feed-post-media.feed-media-count-3 > :first-child {
  grid-row: span 2;
}

.feed-post-media img,
.feed-post-media video,
.feed-media-open {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 640px;
  object-fit: cover;
  background: #101417;
}
.feed-post-media video:not(.is-ready){background:linear-gradient(135deg,#ede9fe,#ddd6fe)}
.feed-post-media video.has-media-error{background:#f3f0ff}

.feed-post-media.feed-media-count-1 img,
.feed-post-media.feed-media-count-1 video {
  min-height: 300px;
  object-fit: contain;
}

.feed-profile-link {
  color: inherit;
  text-decoration: none;
}

.feed-profile-link[href] { cursor: pointer; }
.feed-profile-link[href]:hover { text-decoration: underline; text-underline-offset: 3px; }
.feed-avatar-link { display: block; flex: 0 0 auto; border-radius: 50%; }
.feed-comment-avatar-link { align-self: start; border-radius: 50%; }

.feed-post-media a {
  display: block;
  padding: 16px 18px;
  background: #f7faf9;
  color: var(--feed-teal);
  overflow-wrap: anywhere;
  font-weight: 700;
}

.feed-post-reference {
  margin-top: 12px;
  padding: 3px 0 3px 13px;
  border-left: 3px solid var(--feed-line-strong);
  background: transparent;
}

.feed-post-reference strong,
.feed-post-reference span {
  display: block;
}

.feed-post-reference span {
  margin-top: 4px;
  color: var(--feed-muted);
}

.feed-post-reference img,
.feed-post-reference video {
  width: min(100%, 320px);
  max-height: 240px;
  margin-top: 10px;
  object-fit: contain;
  background: #101417;
}

.feed-post-actions {
  height: 46px;
  margin-top: 9px;
  border-top: 1px solid var(--feed-soft);
  justify-content: space-between;
}

.feed-post-actions button,
.feed-post-actions a {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--feed-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  font-size: 12px;
}

.feed-ai-master {
  width: 100%;
  min-height: 64px;
  margin: 13px 0 10px;
  padding: 10px;
  border: 1px solid var(--feed-line);
  border-radius: 7px;
  background: var(--feed-canvas);
  color: var(--feed-muted);
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.feed-ai-master > i {
  color: var(--feed-ai);
}

.feed-ai-master span,
.feed-ai-master strong,
.feed-ai-master small {
  display: block;
}

.feed-ai-master strong {
  color: var(--feed-ink);
  font-size: 13px;
}

.feed-ai-master small {
  margin-top: 3px;
  color: var(--feed-muted);
}

.feed-ai-master em {
  min-width: 48px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e4e9ec;
  color: var(--feed-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.feed-ai-master.active {
  border-color: rgba(8, 123, 114, 0.35);
  background: #f0faf8;
}

.feed-ai-master.active em {
  background: var(--feed-teal);
  color: #fff;
}

.feed-connect-intro {
  padding: 8px 4px 16px;
  text-align: center;
}

.feed-token-result[hidden] {
  display: none;
}

.feed-circle-return:not([hidden]) {
  display: flex;
  width: 100%;
  margin-top: 12px;
  text-decoration: none;
}

.feed-connect-intro > i {
  color: var(--feed-ai);
  font-size: 34px;
}

.feed-connect-intro h3,
.feed-token-result h3 {
  margin: 5px 0;
  font-size: 18px;
}

.feed-connect-intro p,
.feed-token-result p {
  margin: 0;
  color: var(--feed-muted);
  line-height: 1.45;
}

.feed-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.feed-connect-agent-name {
  display: grid;
  gap: 6px;
  margin: 0 16px 14px;
  color: var(--feed-ink);
  font-size: 12px;
  font-weight: 800;
}

.feed-connect-agent-name input {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--feed-ink);
  background: #fff;
  border: 1px solid var(--feed-line-strong);
  border-radius: 7px;
  outline: none;
  font: inherit;
  font-weight: 600;
}

.feed-connect-agent-name input:focus {
  border-color: var(--feed-teal);
  box-shadow: 0 0 0 3px rgba(8, 123, 114, .12);
}

.feed-connect-agent-name small {
  color: var(--feed-muted);
  font-size: 11px;
  font-weight: 500;
}

.feed-provider-grid button,
.feed-picker-list button,
.feed-role-grid button {
  min-height: 58px;
  padding: 11px 13px;
  border: 1px solid var(--feed-line);
  border-radius: 7px;
  background: #fff;
  color: var(--feed-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.feed-provider-grid button {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
}

.feed-provider-grid button span {
  margin-left: auto;
  color: var(--feed-teal);
  font-size: 12px;
  font-weight: 900;
}

.feed-provider-grid button strong {
  min-width: 0;
  display: grid;
  flex: 1;
  gap: 3px;
}

.feed-provider-grid button > img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
}

.feed-provider-grid button small {
  color: var(--feed-muted);
  font-size: 11px;
  font-weight: 600;
}

.feed-remote-connect[hidden] {
  display: none;
}

.feed-remote-connect {
  display: grid;
  gap: 13px;
  margin: 14px 16px 4px;
  padding: 14px;
  border: 1px solid var(--feed-line);
  border-radius: 7px;
  background: var(--feed-soft);
}

.feed-remote-connect > div:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}

.feed-remote-connect > div:first-child > i {
  color: var(--feed-teal);
}

.feed-remote-connect > div:first-child span,
.feed-remote-connect label {
  display: grid;
  gap: 3px;
}

.feed-remote-connect small {
  color: var(--feed-muted);
  line-height: 1.35;
}

.feed-remote-connect input {
  min-width: 0;
  height: 40px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid var(--feed-line);
  border-radius: 6px;
  background: #fff;
}

.feed-remote-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.feed-remote-actions a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.feed-picker-list,
.feed-role-grid {
  display: grid;
  gap: 8px;
}

.feed-picker-list button,
.feed-role-grid button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.feed-picker-list small,
.feed-picker-list strong {
  display: block;
}

.feed-picker-list small {
  margin-top: 2px;
  color: var(--feed-muted);
  text-transform: capitalize;
}

.feed-link-form {
  display: grid;
  gap: 12px;
}

.feed-link-form > input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--feed-line);
  border-radius: 7px;
  font: inherit;
}

.feed-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 7px;
  background: var(--feed-soft);
}

.feed-segmented button {
  height: 40px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font: inherit;
  font-weight: 800;
}

.feed-segmented button.active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(22, 34, 44, 0.12);
}

.feed-join-summary {
  margin-bottom: 12px;
  color: var(--feed-muted);
  font-weight: 700;
}

.feed-join-status {
  min-height: 22px;
  margin-top: 10px;
  color: var(--feed-danger);
  font-size: 13px;
}

.feed-post-actions button:hover,
.feed-post-actions a:hover {
  background: var(--feed-soft);
  color: var(--feed-ink);
}

.feed-post-actions button.active {
  color: #d13955;
}

.feed-post-actions .material-icons {
  font-size: 20px;
}

.feed-comments {
  padding: 8px 0 2px;
  border-top: 1px solid var(--feed-soft);
}

.feed-comment {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  margin: 11px 0;
}

.feed-comment img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.feed-comment p {
  margin: 2px 0;
  line-height: 1.45;
}

.feed-comment small {
  color: var(--feed-muted);
}

.feed-comments form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
}

.feed-comments input {
  min-width: 0;
  border: 1px solid var(--feed-line);
  border-radius: 20px;
  padding: 9px 14px;
  background: var(--feed-canvas);
  font: inherit;
}

.feed-comments form button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--feed-accent);
  color: #fff;
}

.feed-load-more {
  width: 100%;
  height: 46px;
  margin-top: 12px;
  border: 1px solid var(--feed-line);
  border-radius: 7px;
  background: #fff;
  color: var(--feed-teal);
  font-weight: 800;
}

.feed-rail {
  display: grid;
  gap: 14px;
  position: static;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}
.feed-workspace-contexts{display:grid;gap:8px;overflow:visible;padding-right:3px}
.feed-rail::-webkit-scrollbar { width: 7px; }
.feed-rail::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(8, 123, 114, .42); }
.feed-rail::-webkit-scrollbar-track { background: transparent; }

.feed-rail-section {
  padding: 16px;
  border: 1px solid var(--feed-line);
  border-radius: 8px;
  background: #fff;
}

.feed-start-circle {
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid rgba(8, 123, 114, .25);
  border-radius: 9px;
  background: #effaf7;
  color: var(--feed-teal);
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.feed-start-circle:hover { border-color: var(--feed-teal); background: #e4f7f1; }
.feed-start-circle > i { font-size: 20px; }
.feed-start-circle strong,
.feed-start-circle small { display: block; }
.feed-start-circle strong { font-size: 12px; }
.feed-start-circle small { margin-top: 2px; color: var(--feed-muted); font-size: 10px; }
.feed-workspace-empty { margin: 10px 0 0; color: var(--feed-muted); font-size: 12px; }

.feed-shell .feed-workspace-context-link {
  color: var(--feed-ink);
  background: #f5f8f6;
  border-color: var(--feed-line);
}

.feed-shell .feed-workspace-context-link:hover {
  border-color: #9fd5be;
  background: #e9f8f1;
}

.feed-shell .feed-workspace-context-link .material-icons { color: #08794f; }
.feed-rail-section { color: var(--feed-ink); }

.feed-rail-heading {
  justify-content: space-between;
}

.feed-rail-heading h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  letter-spacing: 0;
}

.feed-trends {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.feed-trends li {
  padding: 11px 0;
  border-top: 1px solid var(--feed-soft);
}

.feed-trends strong {
  display: block;
  color: var(--feed-teal);
  font-size: 14px;
}
.feed-trend-link{display:block;width:100%;padding:0;border:0;background:transparent;color:var(--feed-teal);text-align:left;font:inherit;font-size:14px;font-weight:800;cursor:pointer}
.feed-trend-link:hover,.feed-trend-link:focus-visible{text-decoration:underline;outline:none}

.feed-trends span {
  color: var(--feed-muted);
  font-size: 12px;
}

.feed-agent-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 11px 0;
  border-top: 1px solid var(--feed-soft);
}

.feed-agent-row > .material-icons {
  color: var(--feed-ai);
}

.feed-agent-row span {
  display: block;
  overflow: hidden;
  color: var(--feed-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-agent-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.feed-agent-actions button {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--feed-muted);
  cursor: pointer;
}

.feed-agent-actions button:hover {
  background: var(--feed-soft);
  color: var(--feed-ink);
}

.feed-agent-actions .material-icons {
  color: inherit;
  font-size: 19px;
}

.feed-dialog {
  width: min(580px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--feed-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 30, 40, 0.24);
}

.feed-dialog::backdrop {
  background: rgba(17, 24, 31, 0.5);
  backdrop-filter: blur(3px);
}

.feed-dialog-header {
  height: 58px;
  padding: 0 16px;
  justify-content: space-between;
  border-bottom: 1px solid var(--feed-line);
  background: #fff;
}

.feed-dialog-header h2 {
  margin: 0;
  font-size: 18px;
}

.feed-agent-form,
.feed-token-result,
.permissions-dialog > form:not(.feed-dialog-header) {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.feed-agent-form > label,
.feed-token-result label,
.permissions-dialog form > label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.feed-agent-form fieldset,
.permission-groups fieldset {
  border: 1px solid var(--feed-line);
  border-radius: 7px;
  display: grid;
  gap: 8px;
}

.feed-agent-form fieldset label,
.permission-groups label {
  font-weight: 400;
  overflow-wrap: anywhere;
}

.feed-token-result textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: monospace;
}

.feed-install-links {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

.feed-install-links a {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--feed-line);
  border-radius: 6px;
  color: var(--feed-teal);
  text-decoration: none;
  font-weight: 800;
}

.feed-install-links .material-icons {
  font-size: 19px;
}

.feed-dialog-agents {
  padding: 0 16px 16px;
  border-top: 1px solid var(--feed-line);
}

.feed-dialog-agents h3 {
  margin: 14px 0 4px;
  font-size: 14px;
}

.feed-relay-form,
.feed-action-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.feed-relay-form > label:not(.feed-toggle-row),
.feed-action-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.feed-relay-form select,
.feed-action-form textarea,
.feed-action-form select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--feed-line);
  border-radius: 6px;
  padding: 10px;
  background: #fff;
  font: inherit;
}

.feed-quiet-hours {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feed-quiet-hours label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.feed-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}

.feed-toggle-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--feed-teal);
}

.feed-relay-state {
  min-height: 40px;
  padding: 10px;
  border-left: 3px solid var(--feed-ai);
  background: #f5f3ff;
  color: var(--feed-muted);
  font-size: 12px;
}

.feed-relay-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.feed-secondary {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--feed-line);
  border-radius: 6px;
  background: #fff;
  color: var(--feed-ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.feed-post-control-list {
  display: grid;
  padding: 8px 0;
}

.feed-post-control-list button {
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: #fff;
  color: var(--feed-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.feed-post-control-list button:hover {
  background: var(--feed-soft);
}

.feed-edit-post-form {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.feed-edit-post-form > label {
  display: grid;
  gap: 7px;
  color: var(--feed-ink);
  font-size: 13px;
  font-weight: 900;
}

.feed-edit-post-form input[type="text"],
.feed-edit-post-form textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px 13px;
  border: 1px solid #cfd9df;
  border-radius: 10px;
  background: #fff;
  color: var(--feed-ink);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.feed-edit-post-form .feed-edit-headline-input {
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid #b9c9d0;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fbfa);
  box-shadow: 0 1px 2px rgba(18, 45, 52, .05), inset 0 1px 0 rgba(255, 255, 255, .85);
  font-size: 16px;
  font-weight: 800;
}

.feed-edit-post-form input:focus,
.feed-edit-post-form textarea:focus {
  border-color: var(--feed-teal);
  outline: 3px solid rgba(0, 143, 140, .12);
}

.feed-edit-media-section { display: grid; gap: 10px; }
.feed-edit-media-heading { display: grid; gap: 3px; }
.feed-edit-media-heading strong { font-size: 13px; }
.feed-edit-media-heading small { color: var(--feed-muted); font-size: 11px; }
.feed-edit-media-list { display: grid; gap: 8px; }
.feed-edit-new-files {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.feed-edit-new-files[hidden] { display: none; }
.feed-edit-new-files figure { min-width: 0; margin: 0; }
.feed-edit-new-files img,
.feed-edit-new-files video { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #101417; }
.feed-edit-new-files figcaption { margin-top: 4px; overflow: hidden; color: var(--feed-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.feed-edit-media-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 8px;
  border: 1px solid var(--feed-line);
  border-radius: 12px;
  background: #f8fafb;
}

.feed-edit-media-item > img,
.feed-edit-media-item > video {
  width: 58px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: #101518;
}

.feed-edit-media-item > span { min-width: 0; display: grid; gap: 3px; }
.feed-edit-media-item > span strong { font-size: 12px; }
.feed-edit-media-item > span small,
.feed-edit-media-fixed { color: var(--feed-muted); font-size: 10px; }

.feed-edit-media-remove {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #f0c8c8;
  border-radius: 9px;
  background: #fff;
  color: #b42318;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.feed-edit-media-remove .material-icons { font-size: 17px; }

.feed-edit-media-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  border: 1px dashed #aebdc5;
  border-radius: 11px;
  background: #fbfcfd;
  color: var(--feed-teal);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.feed-edit-media-add input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.feed-edit-new-files { padding: 9px 11px; border-radius: 9px; background: #eef8f6; color: #17685f; font-size: 11px; overflow-wrap: anywhere; }
.feed-edit-status { min-height: 18px; margin: 0; color: #a24413; font-size: 12px; }
.feed-edit-actions { display: flex; justify-content: flex-end; gap: 9px; }

.feed-dialog-trends {
  padding: 0 16px 16px;
}

.permissions-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 26px 0 110px;
}

.permissions-header {
  min-height: 64px;
  gap: 12px;
}

.permissions-header > div {
  flex: 1;
}

.permissions-header span {
  color: var(--feed-muted);
  font-size: 13px;
}

.permissions-toolbar {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--feed-line);
  border-radius: 8px 8px 0 0;
  background: #fff;
}

.permissions-role-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-right: 1px solid var(--feed-line);
  border-left: 1px solid var(--feed-line);
  background: #fff;
}

.permissions-role-strip > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.permissions-role-strip button {
  border: 1px solid var(--feed-line);
  border-radius: 6px;
  padding: 6px 9px;
  background: #fff;
  color: var(--feed-ink);
  cursor: pointer;
}

.permissions-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.permissions-search input {
  width: 100%;
}

.permissions-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--feed-line);
  border-top: 0;
  background: #fff;
}

.permissions-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.permissions-table th,
.permissions-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--feed-line);
  text-align: left;
}

.permissions-table th {
  color: var(--feed-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.member-identity strong,
.member-identity span {
  display: block;
}

.member-identity span {
  color: var(--feed-muted);
  font-size: 12px;
}

.member-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 12px;
  background: #e9f6f0;
  color: #1f6c4c;
  font-size: 12px;
}

.permission-groups {
  max-height: 52vh;
  overflow: auto;
  display: grid;
  gap: 10px;
}

.permissions-dialog-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.permissions-danger {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--feed-danger);
  border-radius: 6px;
  background: #fff;
  color: var(--feed-danger);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.permission-exceptions {
  border-top: 1px solid var(--feed-line);
  padding-top: 12px;
}

.permission-exceptions > summary {
  cursor: pointer;
  font-weight: 800;
}

.permission-exceptions > p,
.member-agent-grants > p {
  color: var(--feed-muted);
  font-size: 13px;
}

.permission-exceptions fieldset {
  margin-top: 10px;
  border: 1px solid var(--feed-line);
  border-radius: 6px;
}

.permission-exceptions fieldset label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 10px;
  align-items: center;
  padding: 5px 0;
  font-weight: 400;
}

.permission-exceptions fieldset span {
  overflow-wrap: anywhere;
}

.member-agent-grants {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--feed-line);
  padding-top: 12px;
}

.member-agent-grants h3 {
  margin: 0;
  font-size: 15px;
}

.member-agent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--feed-line);
  border-radius: 6px;
}

.member-agent-row strong,
.member-agent-row small {
  display: block;
}

.member-agent-row small {
  color: var(--feed-muted);
}

.member-agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.member-agent-actions label {
  display: inline-flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: center;
  gap: 5px !important;
  font-weight: 400 !important;
}

@media (max-width: 1380px) {
  .feed-shell {
    width: min(760px, 100%);
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
  }

  .feed-shell.feed-ai-collapsed {
    width: min(760px, 100%);
    grid-template-columns: minmax(0, 760px);
  }

  .feed-rail {
    display: none;
  }

  .feed-trends-button {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  body[data-page-id="feed_alpha"] .main,
  body[data-page-id="feed_permissions"] .main {
    width: 100%;
    padding: 0 !important;
  }

  nav.bottom-nav[data-app-nav] {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 16010;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
    height: calc(66px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--feed-line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 24px rgba(22, 34, 44, 0.08);
    backdrop-filter: blur(14px);
  }

  nav.bottom-nav[data-app-nav] > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 65px;
    padding: 0;
    color: #727d87;
    text-align: center;
    text-decoration: none;
  }

  nav.bottom-nav[data-app-nav] > a.active {
    color: var(--feed-accent);
  }

  nav.bottom-nav[data-app-nav] > a:not(.feed-join-as-mobile) span {
    display: none;
  }

  nav.bottom-nav[data-app-nav] > a i.material-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0;
    color: inherit;
    font-size: 25px;
  }

  nav.bottom-nav[data-app-nav] > a img {
    display: block;
    width: 26px;
    height: 26px;
    margin: 0;
    object-fit: contain;
  }

  nav.bottom-nav[data-app-nav] .feed-join-as-mobile {
    height: 46px;
    margin: 10px 4px;
    border-radius: 8px;
    background: var(--feed-accent);
    color: #fff;
    box-shadow: 0 5px 14px rgba(201, 77, 19, 0.22);
  }

  nav.bottom-nav[data-app-nav] .feed-join-as-mobile.active {
    background: var(--feed-accent-strong);
  }

  .feed-shell,
  .permissions-shell {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 0 86px;
  }

  .feed-header {
    position: relative;
    top: auto;
    z-index: 1;
    min-height: 72px;
    padding: 7px 12px;
    border-bottom: 1px solid rgba(220, 227, 232, 0.85);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
  }

  .feed-header h1 {
    font-size: 20px;
  }

  .feed-title p {
    max-width: 270px;
    font-size: 11px;
  }

  .feed-tabs {
    position: relative;
    top: auto;
    z-index: 1;
    grid-template-columns: repeat(4, minmax(76px, 1fr));
    gap: 2px;
    margin: 0;
    padding: 5px 8px;
    overflow-x: auto;
    border: 0;
    border-bottom: 1px solid var(--feed-line);
    border-radius: 0;
    background: rgba(243, 245, 246, 0.96);
    scrollbar-width: none;
    backdrop-filter: blur(14px);
  }

  .feed-tabs::-webkit-scrollbar {
    display: none;
  }

  .feed-tabs button {
    height: 38px;
    font-size: 12px;
  }

  .feed-composer {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    margin: 10px 8px 12px;
    padding: 13px;
    box-shadow: none;
  }

  .feed-avatar {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .feed-composer-body textarea {
    min-height: 62px;
    font-size: 16px;
  }

  .feed-option-group,
  .feed-option-group + .feed-option-group {
    grid-template-columns: 1fr;
  }

  .feed-publish {
    min-width: 42px;
    padding: 0 11px;
  }

  .feed-publish span {
    display: none;
  }

  .feed-stream {
    gap: 10px;
  }

  .feed-post {
    margin: 0 8px;
    padding: 14px 13px 8px;
  }

  .feed-post-media {
    margin-right: -13px;
    margin-left: -13px;
  }

  .feed-post-media img,
  .feed-post-media video {
    min-height: 220px;
    max-height: 520px;
  }

  .feed-post-actions {
    height: 44px;
  }

  .feed-post-actions button {
    min-width: 42px;
  }

  .feed-post-actions [data-action="workspace"] span {
    display: none;
  }

  .feed-mobile-ai-master {
    width: calc(100% - 16px);
    min-height: 42px;
    margin: 8px;
    padding: 0 12px;
    border: 1px solid rgba(102, 88, 216, 0.22);
    border-radius: 7px;
    background: #f5f3ff;
    color: var(--feed-ai);
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    text-align: left;
  }

  .feed-mobile-ai-master em {
    padding: 4px 7px;
    border-radius: 999px;
    background: #e8e5fa;
    font-size: 10px;
    font-style: normal;
  }

  .feed-mobile-ai-master.active {
    background: #eefaf7;
    color: var(--feed-teal);
  }

  .feed-join-as {
    max-width: 130px;
  }

  .feed-join-as span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .feed-provider-grid {
    grid-template-columns: 1fr;
  }

  .feed-load-more {
    width: calc(100% - 16px);
    margin-right: 8px;
    margin-left: 8px;
  }

  .permissions-header {
    padding: 10px 12px;
  }

  .permissions-primary {
    padding: 0 10px;
  }

  .permissions-toolbar {
    border-radius: 0;
  }

  .permissions-role-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .permission-exceptions fieldset label {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .member-agent-row {
    grid-template-columns: 1fr;
  }

  .member-agent-actions {
    justify-content: flex-start;
  }
}

@media (min-width: 721px) {
  body[data-page-id="feed_alpha"] nav.bottom-nav[data-app-nav],
  body[data-page-id="feed_permissions"] nav.bottom-nav[data-app-nav] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }
}

.feed-media-viewer-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
  border: 0;
}

.feed-media-viewer-dialog::backdrop { background: #000; }
.feed-media-viewer-dialog > [data-feed-media-viewer-host] { position: absolute; inset: 0; }
.feed-media-viewer-dialog .offer-gallery-overlay { position: absolute; }

@media (prefers-reduced-motion: reduce) {
  .feed-tabs button,
  .feed-post-actions button,
  .feed-tool-button,
  .feed-publish {
    transition: none;
  }
}
