/* Directory layout based on the recorded agent catalog; FlyBot tokens only. */
body.app-workspace:not(.chat-open) > main > #main-panel {
  display: block; width: 100%; max-width: 76rem; margin: 0 auto; padding: 1.5rem 2rem;
}
.catalog-toolbar { background: transparent; border: 0; box-shadow: none; padding: 0; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.catalog-tabs {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--ot-line);
}
.catalog-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .125rem .375rem;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--ot-muted);
  text-decoration: none;
}
.catalog-tabs a:hover,
.catalog-tabs a[aria-current="page"],
.catalog-tabs a[aria-current="page"]:hover { background: transparent; color: var(--ot-ink); }
.catalog-tabs a[aria-current="page"] {
  border-bottom-color: var(--ot-accent);
  font-weight: 650;
}
a.catalog-create[hidden] { display: none; }
#catalog-search { display: flex; align-items: center; gap: .4rem; padding: 0; border: 0; margin: 0; background: transparent; }
#catalog-query { min-width: 0; width: 15rem; border: 1px solid var(--ot-line); background: var(--ot-surface); color: var(--ot-ink); padding: .45rem .7rem; font: inherit; border-radius: 999px; }
.catalog-create { background: var(--ot-accent); color: var(--ot-surface); border-radius: 999px; padding: .5rem .8rem; text-decoration: none; }
.catalog-filters { display: flex; align-items: center; flex-wrap: nowrap; gap: .45rem .7rem; margin: 1rem 0 .35rem; min-width: 0; }
.catalog-filter-scroll { display: flex; align-items: center; flex-wrap: nowrap; gap: inherit; min-width: 0; flex: 1 1 auto; overflow-x: auto; overflow-y: hidden; }
.catalog-filters button { border: 0; background: transparent; color: var(--ot-muted); padding: .2rem 0; font: inherit; flex: 0 0 auto; white-space: nowrap; }
.catalog-filters button:disabled { opacity: 1; cursor: default; }
.catalog-filters [aria-pressed="true"] { padding: .25rem .75rem; border-radius: 999px; background: var(--ot-accent-soft); color: var(--ot-ink); }
.catalog-filter-search { display: inline-flex; align-items: center; justify-content: center; min-width: 1.4rem; padding: .15rem; flex: 0 0 auto; }
.catalog-creator-row { margin: 0 0 1rem; }
.catalog-creator { border: 0; background: transparent; color: var(--ot-muted); font: inherit; padding: 0; }
.catalog-creator:disabled { opacity: 1; cursor: default; }
#catalog-count { color: var(--ot-muted); font-size: .85rem; }
.catalog, .manage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalog > li { padding: 0; border: 0; }
.catalog article { box-sizing: border-box; display: flex; align-items: center; gap: .65rem; height: 100%; min-width: 0; border: 1px solid var(--ot-line); border-radius: .65rem; padding: .85rem .75rem; background: var(--ot-surface); }
.catalog-avatar { flex: 0 0 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--ot-accent-soft); color: var(--ot-ink); font-weight: 650; }
.catalog-copy { min-width: 0; flex: 1; }
.catalog h3 { margin: 0 0 .25rem; font-size: .9rem; overflow-wrap: anywhere; }
.catalog-profile { color: inherit; text-decoration: underline; text-decoration-color: var(--ot-muted); text-underline-offset: .2em; }
.catalog-profile:hover { color: var(--ot-accent); }
.catalog .summary { margin: 0; color: var(--ot-muted); font-size: .82rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.catalog article button { flex: 0 0 auto; padding: .2rem .55rem; border-radius: 999px; font-size: .8rem; }
#catalog-more { display: block; margin: 1rem auto; }
#catalog-manage { margin-top: 2rem; }
#catalog-manage > summary { cursor: pointer; color: var(--ot-muted); }
@media (max-width: 65rem) { .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 45rem) {
  .catalog { grid-template-columns: minmax(0, 1fr); }
  body.app-workspace:not(.chat-open) > main > #main-panel { padding: 1rem; }
  #catalog-search { flex-wrap: wrap; }
  #catalog-query { width: 100%; }
}

.manage-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 200px) auto auto;
  gap: 0.5rem;
  align-items: center;
  border: 1px solid var(--line, #d8dde6);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
}

.manage-row .title {
  font-weight: 600;
}

.manage-row .state {
  color: var(--muted, #5b6472);
  font-size: 0.8rem;
}

@media (max-width: 720px) {
  .manage-row {
    grid-template-columns: 1fr auto;
  }
}

/* Local accessible labels: shell CSS does not define this utility. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Feed layout based on the recorded /discover 关注/动态 page; FlyBot tokens only. */
#feed-panel { display: block; }
#feed-panel[hidden], #catalog-view[hidden],
#catalog-filters[hidden] { display: none; }
.feed-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
#feed-search {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex: 1;
  min-width: 16rem;
  margin: 0;
}
#feed-query {
  min-width: 0;
  flex: 1;
  max-width: 28rem;
  border: 1px solid var(--ot-line);
  background: var(--ot-surface);
  color: var(--ot-ink);
  padding: .55rem 1rem;
  font: inherit;
  border-radius: 999px;
}
.feed-tabs {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: auto;
}
.feed-tabs button {
  border: 0;
  background: transparent;
  color: var(--ot-muted);
  padding: .45rem 0;
  font: inherit;
}
.feed-tabs button[aria-selected="true"] {
  color: var(--ot-ink);
  font-weight: 650;
  border-bottom: 2px solid var(--ot-accent);
}
.feed-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem .9rem;
  margin: 0 0 1.25rem;
}
.feed-filters button {
  border: 0;
  background: transparent;
  color: var(--ot-muted);
  padding: .2rem 0;
  font: inherit;
}
.feed-filters button[aria-current="true"] {
  padding: .2rem .75rem;
  border-radius: 999px;
  background: var(--ot-accent-soft);
  color: var(--ot-ink);
  font-weight: 650;
}
.feed-activity-empty {
  display: grid;
  gap: .75rem;
  margin: 0 0 1rem;
}
.feed-activity-empty[hidden] { display: none; }
.feed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  min-height: 0;
}
.feed-grid[data-empty="true"] {
  min-height: 22rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--ot-surface) 92%, var(--ot-line) 8%);
}
.feed-card {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-height: 9.5rem;
  padding: .85rem .9rem;
  border: 1px solid var(--ot-line);
  border-radius: 1rem;
  background: var(--ot-surface);
  color: inherit;
  text-decoration: none;
}
.feed-card .kind {
  margin: 0;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ot-muted);
  font-weight: 650;
}
.feed-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.feed-byline {
  margin: auto 0 0;
  color: var(--ot-muted);
  font-size: .85rem;
}
#feed-more {
  margin: 0 0 1rem;
}
#feed-count { margin: 0 0 .5rem; color: var(--ot-muted); font-size: .9rem; }

/* Work cards retain a separate keyboard-accessible detail action. */
.feed-entry { display: flex; flex-direction: column; min-width: 0; }
.feed-detail-toggle {
  align-self: flex-start;
  margin: 0 .9rem .7rem;
  padding: .25rem .55rem;
  border: 1px solid var(--ot-line);
  border-radius: var(--ot-radius, .5rem);
  background: var(--ot-surface);
  color: var(--ot-muted);
  font: inherit;
  font-size: .78rem;
  line-height: 1.3;
  cursor: pointer;
}
.feed-detail-toggle:hover { color: var(--ot-ink); border-color: var(--ot-line-strong); }
.feed-detail-toggle:focus-visible { outline: 2px solid var(--ot-accent); outline-offset: 2px; }
.work-detail-view { display: grid; gap: .875rem; width: min(100%, 58rem); margin-inline: auto; }
.work-detail-view[hidden], .work-detail-actions[hidden] { display: none; }
.work-detail-toolbar,
.work-detail-navigation,
.work-detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.work-detail-toolbar {
  justify-content: space-between;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.work-detail-view :is(button, .feed-detail-open) { min-height: 2.625rem; }
.work-detail-view button:disabled { opacity: .52; cursor: default; }
.work-detail-paper {
  display: grid;
  gap: .75rem;
  min-width: 0;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--ot-line);
  border-radius: .875rem;
  color: var(--ot-ink);
  background: var(--ot-surface);
  overflow-wrap: anywhere;
}
#work-detail-title { margin: 0; font-size: clamp(1.25rem, 3.5vw, 1.75rem); line-height: 1.3; }
.work-detail-paper p { margin: 0; }
.work-detail-meta, #work-detail-status, #work-share-status { color: var(--ot-muted); font-size: .875rem; }
.work-detail-meta:empty, #work-detail-status:empty, #work-share-status:empty,
.work-detail-content:empty { display: none; }
.work-detail-paper #work-detail-retry { justify-self: start; }
.work-detail-content { display: grid; gap: .65rem; min-width: 0; line-height: 1.65; }
.work-detail-site {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: clamp(21rem, 60dvh, 42rem);
  border: 1px solid var(--ot-line);
  border-radius: .75rem;
  background: #fff;
}
.work-detail-image { display: block; max-width: 100%; max-height: 50dvh; margin-inline: auto; object-fit: contain; }
.work-detail-audio { display: block; width: 100%; }
.work-detail-video {
  display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 60dvh;
  border-radius: .625rem; background: #141318; object-fit: contain;
}
.work-media-status { color: var(--ot-muted); font-size: .875rem; }
.work-media-status:empty { display: none; }
.work-detail-actions { padding-top: .875rem; border-top: 1px solid var(--ot-line); }
.work-detail-actions .feed-detail-open { display: inline-flex; align-items: center; padding-inline: .5rem; }
.work-detail-actions button[aria-pressed="true"] { background: var(--ot-accent-soft); color: var(--ot-accent-hover); }
.work-detail-actions #work-detail-share, .work-share-dialog #work-share-copy {
  background: var(--ot-accent);
  color: var(--ot-on-accent);
}
.work-share-dialog .catalog-dialog-actions { flex-wrap: wrap; }
.work-share-dialog button { min-height: 2.625rem; }
#work-chat-share-panel { margin-top: .75rem; border-top: 1px solid var(--ot-line); padding-top: .75rem; }
#work-chat-share-panel summary { width: fit-content; cursor: pointer; }
#work-chat-share-form { display: grid; gap: .6rem; margin-top: .75rem; }
#work-chat-share-form select { display: block; width: 100%; min-width: 0; }
#work-chat-share-status { min-height: 1.25rem; margin: 0; color: var(--ot-muted); }
.work-remix-dialog .catalog-dialog-actions { flex-wrap: wrap; align-items: center; }
.work-remix-dialog :is(button, a) { min-height: 2.625rem; }
.work-remix-dialog a:not([hidden]) { display: inline-flex; align-items: center; padding-inline: .75rem; }
#work-remix-source { overflow-wrap: anywhere; }
#work-remix-name-field[hidden] { display: none; }
@media (max-width: 43.75rem) {
  .work-detail-view { gap: .625rem; }
  .work-detail-toolbar, .work-detail-navigation, .work-detail-actions { gap: .375rem; }
  .work-detail-toolbar button { padding-inline: .625rem; }
  .work-detail-site { height: clamp(18rem, 50dvh, 34rem); }
}
.feed-detail-lines { display: grid; gap: .18rem; margin: 0; padding-left: 1.1rem; }
#work-detail-reader:empty { display: none; }
.work-document-reader { min-width: 0; border-top: 1px solid var(--ot-line); }
.work-document-reader > summary {
  box-sizing: border-box;
  width: fit-content;
  min-height: 2.75rem;
  padding-block: .55rem;
  color: var(--ot-accent-hover);
  font-weight: 650;
  cursor: pointer;
}
.work-document-status { color: var(--ot-muted); font-size: .875rem; }
.work-document-status:empty, .work-document-body:empty { display: none; }
.work-document-reader > button { margin-block-start: .375rem; min-height: 2.75rem; }
.work-document-body {
  display: grid;
  gap: .9rem;
  padding: clamp(.875rem, 3vw, 1.5rem);
  border: 1px solid var(--ot-line);
  border-radius: .625rem;
  background: var(--ot-surface);
  overflow-wrap: anywhere;
}
.work-document-body > :is(h3, h4, h5, h6, ul, ol, blockquote, pre, hr) { margin: 0; }
.work-document-body > :is(ul, ol) { padding-inline-start: 1.25rem; }
.work-document-body > blockquote { padding-inline-start: .75rem; border-inline-start: 2px solid var(--ot-line); }
.work-document-body pre, .work-document-body .chat-markdown-table-scroll { max-width: 100%; overflow: auto; }
.work-document-body pre { padding: .625rem; border-radius: .45rem; background: var(--ot-surface-2); }
.work-document-body table { min-width: 100%; border-collapse: collapse; font-size: .875rem; }
.work-document-body :is(th, td) { padding: .375rem .55rem; border: 1px solid var(--ot-line); text-align: start; }
.work-document-body th { background: var(--ot-surface-2); }
.work-document-body [data-align="center"] { text-align: center; }
.work-document-body [data-align="right"] { text-align: right; }
.feed-detail-open { color: var(--ot-accent); font-weight: 600; text-decoration: none; }
.feed-detail-open:hover { text-decoration: underline; }
.feed-detail-open:focus-visible { outline: 2px solid var(--ot-accent); outline-offset: 2px; }
.feed-model3d-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .625rem; }
.feed-model3d-actions button { font: inherit; padding: .375rem .625rem; }
.feed-model3d-preview { min-width: 0; min-height: 10rem; background: var(--ot-surface-2); border-radius: .625rem; }
.feed-model3d-preview canvas {
  display: block;
  width: 100%;
  height: clamp(10rem, 30dvh, 16rem);
  border-radius: inherit;
  cursor: grab;
  touch-action: none;
}
.feed-model3d-preview canvas:active { cursor: grabbing; }
.feed-model3d-preview canvas:focus-visible { outline: 2px solid var(--ot-focus); outline-offset: -2px; }
.feed-model3d-status:empty { display: none; }
@media (max-width: 65rem) {
  .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.app-workspace:not(.chat-open) > main > #main-panel { max-width: none; }
}
@media (max-width: 45rem) {
  .feed-grid { grid-template-columns: minmax(0, 1fr); }
  #feed-search { flex-wrap: wrap; }
  #feed-query { max-width: none; width: 100%; }
  .feed-tabs { margin-left: 0; }
}

.feed-following-empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.4rem;
  margin: 1.75rem 0 0;
  padding: 3.25rem 1.5rem;
  border-radius: 1.15rem;
  background: color-mix(in srgb, var(--ot-surface) 86%, var(--ot-ink) 14%);
  color: var(--ot-ink);
}
.feed-following-empty[hidden] { display: none; }
.feed-following-empty h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
}
.feed-following-empty p {
  margin: 0;
  color: var(--ot-muted);
  font-size: 0.9rem;
}

.teams-catalog { align-items: stretch; }

.catalog.teams-catalog article {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .65rem;
}

.team-card-heading {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}

.teams-catalog h3 {
  margin: 0;
  font-size: .95rem;
  overflow-wrap: anywhere;
}

.team-summary {
  margin: 0;
  color: var(--ot-muted);
  font-size: .85rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.team-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
  font-size: .8125rem;
}

.team-size { color: var(--ot-muted); }

.team-membership {
  padding: .25rem .55rem;
  border-radius: 999px;
  background: var(--ot-surface-2);
  color: var(--ot-muted);
}

.team-membership[data-state="member"] {
  background: var(--ot-accent-soft);
  color: var(--ot-accent-hover);
}

#catalog-panel .team-join, #teams-retry { min-height: 2.5rem; }
.team-open {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-inline-start: auto;
  padding-inline: .65rem;
  border: 1px solid var(--ot-line);
  border-radius: .6rem;
  color: var(--ot-accent-hover);
  font-weight: 650;
}
.team-open:hover { background: var(--ot-accent-soft); }

/* Design refresh */
.catalog article {
  border-radius: var(--ot-radius-lg);
  box-shadow: var(--ot-shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.catalog article:hover {
  transform: translateY(-2px);
  border-color: var(--ot-line-strong);
  box-shadow: var(--ot-shadow);
}
.catalog-avatar {
  background: var(--ot-accent-soft);
  color: var(--ot-accent-hover);
}
.catalog-create {
  background: var(--ot-accent);
  color: var(--ot-on-accent);
  box-shadow: var(--ot-shadow-sm);
}
.catalog-create:hover { background: var(--ot-accent-hover); }
#catalog-query { background: var(--ot-surface); }
.catalog-filters [aria-pressed="true"] {
  background: var(--ot-accent-soft);
  color: var(--ot-accent-hover);
}
.manage-row {
  border-radius: var(--ot-radius);
  background: var(--ot-surface);
  box-shadow: var(--ot-shadow-sm);
}
.feed-toolbar,
.feed-filters {
  border-radius: var(--ot-radius-lg);
}

/* 17 Nov captured directory rows and four-column work-feed hierarchy. */
body.app-workspace:not(.chat-open) > main > #main-panel { padding: 1.25rem clamp(1rem, 5vw, 4rem); max-width: 84rem; }
.catalog-toolbar { gap: .65rem; }
.catalog-filters { margin-top: 1rem; }
.catalog article { padding: .7rem .65rem; min-height: 5rem; border-radius: .6rem; box-shadow: none; transition: border-color .15s; }
.catalog article:hover { transform: none; box-shadow: none; border-color: var(--ot-line-strong); }
.catalog-avatar { background: var(--ot-accent-soft); color: var(--ot-accent-hover); }
.catalog h3 { font-size: .88rem; font-weight: 600; }
.catalog .summary { line-height: 1.45; font-size: .8rem; }
.catalog article button { border-color: var(--ot-line); box-shadow: none; }
.catalog-create { box-shadow: none; }
#feed-search { min-width: 0; flex: 1 1 14rem; }
#feed-query, #catalog-query { background: var(--ot-bg-accent); border-color: transparent; }
.feed-toolbar { margin-bottom: .75rem; }
.feed-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; gap: .9rem; }
.feed-filters button { flex: 0 0 auto; white-space: nowrap; font-size: .82rem; }
.feed-grid { gap: .85rem; align-items: start; }
.feed-grid > article { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--ot-line); border-radius: .75rem; overflow: hidden; background: var(--ot-surface); }
.feed-card { border: 0; border-radius: .75rem; padding: .6rem; min-height: 0; gap: .4rem; }
.feed-card:focus-visible { outline-offset: -3px; }
.feed-card h3 { font-size: .9rem; line-height: 1.45; }
.feed-card .kind { font-size: .75rem; letter-spacing: 0; text-transform: none; }
.feed-byline { font-size: .78rem; }
.work-cover { order: -1; display: grid; place-items: center; width: calc(100% + 1.2rem); height: 11.5rem; object-fit: cover; margin: -.6rem -.6rem .15rem; background: var(--ot-bg-accent); color: var(--ot-muted); font-size: 1.05rem; }
.feed-grid > article > div { display: flex; flex-wrap: wrap; gap: .25rem; padding: 0 .5rem .5rem; }
.feed-grid > article > div > button { padding: .2rem .35rem; font-size: .75rem; box-shadow: none; border: 0; background: transparent; }
.feed-grid > article > div > button[aria-pressed="true"] { color: var(--ot-accent-hover); background: var(--ot-accent-soft); }
.feed-following-empty { background: transparent; padding: 6rem 1rem; border-radius: 0; }
#feed-note { color: var(--ot-muted); font-size: .8rem; }
#feed-note:empty { display: none; }
@media (max-width: 65rem) { .feed-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 45rem) {
  .catalog, .feed-grid { grid-template-columns: minmax(0,1fr); }
  .catalog-toolbar { align-items: stretch; }
  #catalog-search, #catalog-query { width: 100%; }
  #catalog-search { flex-wrap: wrap; }
  .feed-toolbar { gap: .5rem; }
  .feed-tabs { margin-left: 0; }
  .feed-tabs button { min-height: 2.5rem; }
}
a.catalog-create:hover { background: var(--ot-accent-hover); color: var(--ot-on-accent); }

/* Page parity layer (2026-11-19): recorded discover feed + agent directory.
   Open toolbar (no boxed card), pill searches with a leading icon, plain-text
   chips with one green pill, card grid with toned monograms and outlined 聊天. */
.feed-toolbar, .catalog-toolbar { background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.feed-toolbar { margin: .25rem 0 1rem; gap: 1rem; flex-wrap: nowrap; }
#feed-search, #catalog-search {
  position: relative; flex: 0 1 17rem; min-width: 12rem; max-width: 17rem; height: 2.125rem; gap: 0;
  display: flex; align-items: center; border-radius: 999px; background: var(--ot-bg-accent);
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .15s, background-color .15s;
}
#catalog-search { flex-basis: 15rem; max-width: 15rem; }
#feed-search:focus-within, #catalog-search:focus-within { background: var(--ot-surface); box-shadow: inset 0 0 0 1px var(--ot-accent); }
#feed-search .search-submit, #catalog-search .search-submit {
  flex: 0 0 2rem; width: 2rem; height: 2rem; min-height: 0; padding: 0; margin: 0 0 0 .125rem;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ot-muted); box-shadow: none;
}
#feed-search .search-submit:hover, #catalog-search .search-submit:hover { color: var(--ot-ink); background: transparent; }
#feed-clear {
  flex: 0 0 2rem;
  height: 2rem;
  min-height: 0;
  margin: 0 .1875rem 0 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ot-muted);
  box-shadow: none;
}
#feed-clear:hover { color: var(--ot-ink); background: var(--ot-bg-accent); }
#feed-query, #catalog-query {
  flex: 1 1 auto; width: auto; min-width: 0; max-width: none; height: 100%; padding: 0 .75rem 0 .125rem;
  border: 0; background: transparent; box-shadow: none; font-size: .8125rem; color: var(--ot-ink); outline: none;
}
#feed-query::-webkit-search-cancel-button, #catalog-query::-webkit-search-cancel-button { display: none; }
#catalog-clear {
  flex: 0 0 auto; height: 1.5rem; min-height: 0; margin-right: .375rem; padding: 0 .5rem; border: 0; border-radius: 999px;
  background: var(--ot-surface); color: var(--ot-muted); font-size: .75rem; box-shadow: none;
}
#catalog-search:has(#catalog-query:placeholder-shown) #catalog-clear { display: none; }
.feed-tabs { gap: 1.25rem; }
.feed-tabs button { font-size: .8125rem; padding: .375rem 0; min-height: 0; border-radius: 0; box-shadow: none; }
.feed-tabs button[aria-selected="true"] { font-weight: 650; color: var(--ot-ink); border-bottom: 2px solid var(--ot-ink); padding-bottom: .25rem; }
.catalog-toolbar { gap: .75rem; margin-top: .25rem; flex-wrap: nowrap; }
.catalog-create { display: inline-flex; align-items: center; gap: .25rem; height: 2.125rem; padding: 0 1rem; font-size: .8125rem; font-weight: 600; border-radius: 999px; white-space: nowrap; }

.feed-filters, .catalog-filters { gap: .25rem; margin: 0 0 .75rem; padding-bottom: .25rem; scrollbar-width: none; }
.catalog-filter-scroll { gap: .25rem; scrollbar-width: none; }
.feed-filters button, .catalog-filters button {
  height: 1.875rem; min-height: 0; padding: 0 .75rem; border: 0; border-radius: 999px; background: transparent;
  color: var(--ot-ink); font-size: .8125rem; font-weight: 450; box-shadow: none;
}
.feed-filters button:disabled, .catalog-filters button:disabled { color: var(--ot-muted); }
.feed-filters button:not(:disabled):hover { background: var(--ot-bg-accent); }
.feed-filters button[aria-current="true"], .catalog-filters [aria-pressed="true"] {
  padding: 0 .875rem; background: var(--ot-accent-soft); color: var(--ot-accent-hover); font-weight: 650;
}
.catalog-filters .catalog-filter-search { width: 1.875rem; padding: 0; min-width: 1.875rem; }
.catalog-creator-row { margin: 0 0 1.125rem; padding-left: .75rem; }
#catalog-count { font-size: .75rem; margin: 0 0 .5rem; }

/* Agent directory cards: 3 columns, toned 2.5rem monogram, bold title, two-line copy, outlined 聊天 pill. */
.catalog { gap: .75rem; }
.catalog article {
  align-items: center; gap: .75rem; min-height: 4.75rem; padding: .875rem 1rem; border: 1px solid var(--ot-line);
  border-radius: .75rem; background: var(--ot-surface); box-shadow: 0 1px 2px rgba(20, 40, 30, .04);
  transition: border-color .15s, box-shadow .15s;
}
.catalog article:hover { border-color: var(--ot-line-strong); box-shadow: 0 4px 14px rgba(20, 40, 30, .07); }
.catalog-avatar { flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; font-size: .75rem; font-weight: 650; letter-spacing: .02em; align-self: center; }
.catalog-avatar[data-tone="1"] { background: #e3f1fb; color: #1d5c86; }
.catalog-avatar[data-tone="2"] { background: #fdecd8; color: #8a4b12; }
.catalog-avatar[data-tone="3"] { background: #e5f5ea; color: #1f6b3f; }
.catalog-avatar[data-tone="4"] { background: #efe8fb; color: #5b3c91; }
.catalog-avatar[data-tone="5"] { background: #fde7ef; color: #8f2c52; }
.catalog-avatar[data-tone="6"] { background: #e6f3f4; color: #1f6168; }
html[data-theme-resolved="dark"] .catalog-avatar[data-tone] { background: var(--ot-accent-soft); color: var(--ot-ink); }
.catalog h3 { margin: 0 0 .1875rem; font-size: .8125rem; font-weight: 650; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog .summary { font-size: .75rem; line-height: 1.5; }
.catalog article button {
  height: 1.75rem; min-height: 0; padding: 0 .875rem; border: 1px solid var(--ot-line-strong); border-radius: 999px;
  background: var(--ot-surface); color: var(--ot-ink); font-size: .75rem; font-weight: 600;
}
.catalog article button:disabled { opacity: 1; color: var(--ot-ink); }
#catalog-more { height: 2rem; padding: 0 1.25rem; border-radius: 999px; font-size: .8125rem; }
#catalog-manage { margin-top: 1.5rem; font-size: .8125rem; }

/* Work feed: cover-first cards with a kind badge on the cover (no invented imagery). */
.feed-grid { gap: 1rem; }
.feed-grid[data-empty="true"] { min-height: 0; background: transparent; }
.feed-grid > article, .feed-grid > .feed-card { border: 1px solid var(--ot-line); border-radius: .875rem; background: var(--ot-surface); overflow: hidden; box-shadow: 0 1px 2px rgba(20, 40, 30, .04); transition: box-shadow .15s, border-color .15s; }
.feed-grid > article:hover, .feed-grid > .feed-card:hover { border-color: var(--ot-line-strong); box-shadow: 0 6px 18px rgba(20, 40, 30, .08); }
.feed-grid > article > .feed-card { border: 0; border-radius: 0; box-shadow: none; }
.feed-card { position: relative; padding: .625rem .75rem .25rem; gap: .25rem; }
.feed-card .kind {
  position: absolute; top: .5rem; right: .5rem; z-index: 1; margin: 0; padding: .0625rem .4375rem; border-radius: .375rem;
  background: rgba(255, 255, 255, .92); color: var(--ot-ink); font-size: .6875rem; font-weight: 600; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}
.feed-card h3 { font-size: .8125rem; font-weight: 650; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-byline { margin: 0; font-size: .75rem; }
.work-cover {
  width: calc(100% + 1.5rem); height: auto; aspect-ratio: 4 / 3; margin: -.625rem -.75rem .375rem; border-radius: 0;
  display: grid; place-items: center; font-size: .875rem; font-weight: 600; letter-spacing: .04em;
  background: linear-gradient(145deg, #eef4f0, #dfe9e3); color: #4d6157;
}
.work-cover[data-kind="website"] { background: linear-gradient(145deg, #e8f0fb, #d6e3f5); color: #2f4e78; }
.work-cover[data-kind="document"] { background: linear-gradient(145deg, #f6f2e8, #ebe3d0); color: #6a5634; }
.work-cover[data-kind="slides"] { background: linear-gradient(145deg, #f8ece6, #efd9cd); color: #7a4630; }
.work-cover[data-kind="audio"], .work-cover[data-kind="video"] { background: linear-gradient(145deg, #efeaf8, #ddd4ef); color: #4f3d7a; }
html[data-theme-resolved="dark"] .work-cover { background: var(--ot-surface-2); color: var(--ot-muted); }
html[data-theme-resolved="dark"] .feed-card .kind { background: var(--ot-surface); }
.feed-grid > article > div { padding: 0 .5rem .5rem; gap: .125rem; }
.feed-grid > article > div > button { height: 1.625rem; min-height: 0; padding: 0 .5rem; border-radius: 999px; color: var(--ot-muted); font-size: .75rem; }
.feed-grid > article > div > button:hover { background: var(--ot-bg-accent); color: var(--ot-ink); }
#feed-count { font-size: .75rem; margin: .75rem 0 .25rem; }
#feed-panel .note { font-size: .75rem; color: var(--ot-muted); margin: .25rem 0; }
.feed-search-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--ot-muted);
  font-size: .8125rem;
  line-height: 1.45;
  margin: 0;
}
.feed-card mark { padding: 0 .0625rem; border-radius: .125rem; background: var(--ot-accent-soft); color: var(--ot-ink); }
.feed-feedback { display: flex; flex-wrap: wrap; align-items: center; column-gap: .75rem; }
#feed-error { margin: .375rem 0; font-size: .8125rem; color: var(--ot-ink); }
#feed-retry { min-height: 2.25rem; margin: .25rem 0; }
@media (max-width: 45rem) {
  .feed-toolbar, .catalog-toolbar { flex-wrap: wrap; }
  #feed-search, #catalog-search { flex: 1 1 100%; max-width: none; height: 2.75rem; }
  #feed-query, #catalog-query { font-size: 1rem; }
  .feed-tabs button, .catalog-create { min-height: 2.75rem; }
}
#feed-activity-empty, .feed-activity-empty { background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.catalog-filters { margin-top: 1rem; }
#feed-activity-empty.feed-activity-empty { border: 0; outline: 0; }

/* Cover patterns are original geometric fills hashed from the title.
   Kind labels sit in a small dark badge; covers are not vendor thumbnails. */
.feed-grid { gap: 0.85rem; }
.feed-card .kind {
  background: rgba(20, 24, 22, 0.62);
  color: #fff;
  box-shadow: none;
  font-size: 0.625rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}
.feed-card h3 { font-size: 0.8125rem; font-weight: 650; margin: 0; }
.feed-byline {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.25rem;
  color: var(--ot-muted);
}
.feed-byline .feed-author-mark {
  width: 1.1rem; height: 1.1rem; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center;
  font-size: 0.5rem; font-weight: 700;
}
.feed-byline .feed-likes { margin-left: auto; font-size: 0.6875rem; white-space: nowrap; }
.feed-entry > .feed-byline { margin: 0; padding: .125rem .75rem .375rem; overflow-wrap: anywhere; }
.work-author-link { color: var(--ot-accent-hover); text-decoration: underline; text-underline-offset: .16em; }
.work-cover {
  aspect-ratio: 16 / 11;
  font-size: 0;
  color: transparent;
  background-repeat: no-repeat;
  background-size: cover;
}
.work-cover[data-pattern="0"] { background-image: radial-gradient(circle at 20% 25%, rgb(255 255 255 / 45%) 0 18%, transparent 19%), linear-gradient(145deg, var(--cover-a, #d7e6f5), var(--cover-b, #9bb6d4)); }
.work-cover[data-pattern="1"] { background-image: radial-gradient(ellipse at 85% 15%, rgb(255 255 255 / 38%) 0 24%, transparent 25%), linear-gradient(145deg, var(--cover-a, #efe4cc), var(--cover-b, #d2b98a)); }
.work-cover[data-pattern="2"] { background-image: radial-gradient(circle at 80% 75%, rgb(255 255 255 / 35%) 0 22%, transparent 23%), linear-gradient(160deg, var(--cover-a, #f3d9ce), var(--cover-b, #d9a48d)); }
.work-cover[data-pattern="3"] { background-image: radial-gradient(circle at 30% 40%, rgb(255 255 255 / 34%) 0 20%, transparent 21%), linear-gradient(145deg, var(--cover-a, #e2d8f0), var(--cover-b, #b6a3d0)); }
.work-cover[data-pattern="4"] { background-image: radial-gradient(circle at 15% 80%, rgb(255 255 255 / 35%) 0 16%, transparent 17%), linear-gradient(125deg, var(--cover-a, #d8eee4), var(--cover-b, #8fbfa8)); }
.work-cover[data-pattern="5"] { background-image: radial-gradient(circle at 50% 0, rgb(255 255 255 / 40%), transparent 55%), linear-gradient(180deg, var(--cover-a, #f0e3d2), var(--cover-b, #c9a882)); }
.work-cover[data-pattern="6"] { background-image: radial-gradient(ellipse at 10% 100%, rgb(255 255 255 / 32%) 0 30%, transparent 31%), linear-gradient(145deg, var(--cover-a, #dce8f6), var(--cover-b, #8fa9c8)); }
.work-cover[data-pattern="7"] { background-image: radial-gradient(circle at 70% 30%, rgb(255 255 255 / 40%) 0 14%, transparent 15%), radial-gradient(circle at 25% 70%, rgb(255 255 255 / 28%) 0 16%, transparent 17%), linear-gradient(145deg, var(--cover-a, #eadff0), var(--cover-b, #b89bc4)); }
.work-cover[data-kind="website"] { --cover-a: #d9e6f6; --cover-b: #8ea9c9; }
.work-cover[data-kind="document"] { --cover-a: #f3ead6; --cover-b: #cbb68a; }
.work-cover[data-kind="slides"] { --cover-a: #f4ddd4; --cover-b: #d19a86; }
.work-cover[data-kind="audio"], .work-cover[data-kind="video"] { --cover-a: #e6dcf3; --cover-b: #b09acd; }
.feed-grid > article > div { display: flex; gap: 0.25rem; padding: 0 0.65rem 0.55rem; }
.feed-grid > article > div > button { height: 1.5rem; padding: 0 0.45rem; font-size: 0.6875rem; }

/* Polish 5: signed-in cards already show the like count on the 点赞 action,
   so drop the duplicate heart; the action row reads as a quiet footer. */
.feed-grid > article .feed-likes { display: none; }
html[data-theme-resolved="dark"] .feed-grid > article > div{ gap: .125rem; padding: .25rem .375rem .375rem; border-top: 1px solid var(--ot-line); }html[data-theme-resolved="dark"] .feed-grid > article > div > button{ min-height: 1.75rem; border-radius: .5rem; color: var(--ot-muted); }html[data-theme-resolved="dark"] .feed-grid > article > div > button:hover{ background: var(--ot-bg-accent); color: var(--ot-ink); }html[data-theme-resolved="dark"] /* Aurora Glass: discover */
.catalog article{
  position: relative;
  overflow: hidden;
  background: var(--ot-surface);
  border: 1px solid var(--ot-line);
  border-radius: var(--ot-radius-lg);
  box-shadow: var(--ot-shadow-sm);
  -webkit-backdrop-filter: var(--ot-blur);
  backdrop-filter: var(--ot-blur);
  transition: transform .18s var(--ot-ease), box-shadow .18s var(--ot-ease), border-color .18s var(--ot-ease);
}html[data-theme-resolved="dark"] .catalog article::before{
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--ot-grad);
  opacity: 0;
  transition: opacity .18s var(--ot-ease);
}html[data-theme-resolved="dark"] .catalog article:hover{
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--ot-shadow), var(--ot-glow);
}html[data-theme-resolved="dark"] .catalog article:hover::before{ opacity: 1; }html[data-theme-resolved="dark"] .catalog-avatar{
  background: var(--ot-grad);
  color: #ffffff;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--ot-accent) 30%, transparent);
}html[data-theme-resolved="dark"] .catalog-create{
  background: var(--ot-grad);
  color: #ffffff;
  border: 0;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--ot-accent) 32%, transparent);
}html[data-theme-resolved="dark"] .catalog-create:hover{ color: #ffffff; }html[data-theme-resolved="dark"] #catalog-query{ background: var(--ot-surface-solid); border-radius: 999px; }html[data-theme-resolved="dark"] .catalog-filters [aria-pressed="true"]{ background: var(--ot-grad-soft); color: var(--ot-accent); }html[data-theme-resolved="dark"] .feed-toolbar, html[data-theme-resolved="dark"] .feed-filters{
  background: var(--ot-surface);
  border: 1px solid var(--ot-line);
  border-radius: var(--ot-radius-lg);
  box-shadow: var(--ot-shadow-sm);
  -webkit-backdrop-filter: var(--ot-blur);
  backdrop-filter: var(--ot-blur);
}

.catalog-filters button:hover, #catalog-category-options button:hover {
  background: var(--ot-bg-accent);
}

.catalog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .5rem;
  margin-top: .3rem;
  color: var(--ot-muted);
  font-size: .75rem;
}
.catalog article .catalog-author {
  height: auto;
  padding: 0;
  border: 0;
  border-radius: .25rem;
  background: transparent;
  color: var(--ot-accent-hover);
  font-weight: 500;
  text-align: left;
}
.catalog article .catalog-author:hover { text-decoration: underline; }
.catalog article .catalog-use { flex: none; white-space: nowrap; }
.catalog-creator-row { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; }
#catalog-clear-creator { border: 0; min-height: 2rem; background: transparent; color: var(--ot-accent-hover); }

.catalog-dialog {
  width: min(30rem, calc(100vw - 2rem));
  max-height: min(80vh, 42rem);
  box-sizing: border-box;
  padding: 1.25rem;
  overflow-y: auto;
  border: 1px solid var(--ot-line);
  border-radius: 1rem;
  background: var(--ot-surface);
  color: var(--ot-ink);
}
.catalog-dialog::backdrop { background: rgb(12 22 17 / 42%); }
.catalog-dialog h2 { margin: 0 0 .75rem; font-size: 1.125rem; }
.catalog-dialog label { display: grid; gap: .35rem; margin: .625rem 0; }
.catalog-dialog form { padding: 0; border: 0; background: transparent; box-shadow: none; }
.catalog-dialog :is(input, select) { width: 100%; box-sizing: border-box; font-size: 1rem; }
.catalog-dialog-actions { display: flex; justify-content: flex-end; gap: .5rem; }
#feed-followed-creators { flex: 0 0 auto; min-height: 2.125rem; padding-inline: .7rem; white-space: nowrap; }
.followed-creators-dialog header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .7rem; }
.followed-creators-dialog header h2 { margin: 0; }
.followed-creators-dialog button { min-height: 2.625rem; }
#followed-creators-all { margin-block: .75rem .4rem; }
#followed-creators-list { margin: .25rem 0 .65rem; padding: 0; list-style: none; max-height: min(43dvh, 24rem); overflow: auto; }
#followed-creators-list li + li { margin-top: .3rem; }
.followed-creator-choice { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: start; }
.followed-creator-choice > :last-child { min-width: 0; overflow-wrap: anywhere; }
.followed-creator-avatar {
  flex: 0 0 2rem; display: grid; place-content: center; width: 2rem; height: 2rem;
  border-radius: 50%; background: var(--ot-bg-accent); color: var(--ot-accent); font-weight: 650;
}
.followed-creator-handle { display: block; color: var(--ot-muted); font-size: .82rem; }
.followed-creator-choice[aria-pressed="true"], #followed-creators-all[aria-pressed="true"] { background: var(--ot-bg-accent); }
#followed-creators-status:empty { display: none; }
#catalog-remix-summary, #catalog-remix-description { color: var(--ot-muted); }
#catalog-remix-quick-starts h3 { margin: .75rem 0 .375rem; font-size: .875rem; }
#catalog-remix-quick-starts-list { margin: 0 0 .75rem; padding-inline-start: 1.125rem; overflow-wrap: anywhere; }
#catalog-remix-quick-starts-list li + li { margin-block-start: .25rem; }
#catalog-remix-dialog .catalog-dialog-actions { flex-wrap: wrap; }
#catalog-remix-submit { background: var(--ot-accent); color: var(--ot-on-accent); }
#catalog-remix-status:empty { display: none; }
#received-agent-shares { margin: .5rem 0 .75rem; overflow-wrap: anywhere; }
#received-agent-shares summary { cursor: pointer; }
#received-agent-shares-status:empty, #received-agent-shares-list:empty { display: none; }
#received-agent-shares-list { display: grid; gap: .5rem; list-style: none; padding: 0; }
#received-agent-shares-list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .375rem 1rem; }
#received-agent-shares-list a { display: inline-flex; align-items: center; min-height: 2.75rem; }
#catalog-category-options { display: flex; flex-wrap: wrap; gap: .375rem; margin: .75rem 0 1rem; }
#catalog-category-options button[aria-pressed="true"] {
  background: var(--ot-accent-soft);
  color: var(--ot-accent-hover);
}
.catalog-publish-options { grid-column: 1 / -1; flex-basis: 100%; }
.catalog-publish-options label { display: flex; flex-wrap: nowrap; align-items: center; gap: .375rem; }
.catalog-publish-options input[type="checkbox"] { width: auto; }
.catalog-publish-options pre, #catalog-remix-prompt {
  max-height: 12rem;
  overflow: auto;
  margin: .5rem 0;
  padding: .75rem;
  border-radius: .625rem;
  background: var(--ot-bg-accent);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
@media (pointer: coarse) {
  .catalog-filters button, .catalog-filters .catalog-filter-search, .catalog article .catalog-use {
    min-height: 44px;
  }
  .catalog-filters .catalog-filter-search { min-width: 44px; }
}

.catalog-agent-actions { display: flex; flex: none; flex-direction: column; gap: .375rem; }
.catalog article .catalog-chat {
  display: grid;
  place-items: center;
  min-height: 1.75rem;
  padding: 0 .875rem;
  border: 1px solid var(--ot-accent);
  border-radius: 999px;
  color: var(--ot-accent-hover);
  font-size: .75rem;
  font-weight: 650;
  text-decoration: none;
}
.catalog article .catalog-chat:hover { background: var(--ot-accent-soft); }
.catalog-publish-options .note { margin: .125rem 0 .5rem; }
@media (pointer: coarse) { .catalog article .catalog-chat { min-height: 44px; } }

.feed-entry > div:has(.feed-comments-toggle) { flex-wrap: wrap; }
.feed-entry > div > .feed-comments-toggle { min-height: 2rem; }
.feed-comments-dialog {
  box-sizing: border-box;
  width: min(34rem, calc(100vw - 2rem));
  min-height: min(25rem, 65dvh);
  max-height: min(48rem, 85dvh);
  padding: 0;
  border: 1px solid var(--ot-line);
  border-radius: 1rem;
  background: var(--ot-surface);
  color: var(--ot-ink);
  overflow: hidden;
}
.feed-comments-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}
.feed-comments-dialog::backdrop { background: rgb(12 22 17 / 45%); }
.feed-comments-dialog [hidden] { display: none; }
.feed-comments-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--ot-line);
}
.feed-comments-header > div { min-width: 0; }
.feed-comments-header h2 { margin: 0 0 .25rem; font-size: 1.05rem; }
#feed-comments-work {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ot-muted);
  font-size: .85rem;
}
#feed-comments-close { flex: 0 0 auto; min-height: 2.5rem; }
.feed-comments-scroll {
  min-height: 0;
  overscroll-behavior: contain;
  overflow-y: auto;
  padding: .25rem 1rem .8rem;
}
.feed-comments-thread {
  list-style: none;
  display: grid;
  gap: .125rem;
  margin: 0;
  padding: 0;
}
.feed-comment { min-width: 0; padding: .7rem 0; border-bottom: 1px solid var(--ot-line); }
.feed-comment p { margin: 0; }
.feed-comment .feed-comment-author {
  display: flex;
  align-items: baseline;
  gap: .35rem .6rem;
  flex-wrap: wrap;
  font-size: .85rem;
  margin-bottom: .25rem;
}
.feed-comment-author strong, .feed-comments-reply-target span { overflow-wrap: anywhere; }
.feed-comment-author time, .feed-comment-load-status, #feed-comments-status, #feed-comments-read-status, #feed-comments-empty {
  color: var(--ot-muted);
  font-size: .8rem;
}
#feed-comments-status {
  margin: 0;
  padding: .4rem 1rem;
  border-top: 1px solid var(--ot-line);
  background: var(--ot-surface-2);
}
#feed-comments-status[data-kind="error"] { color: var(--ot-danger); }
#feed-comments-status:empty, #feed-comments-read-status:empty { display: none; }
.feed-comment .feed-comment-body {
  color: var(--ot-ink);
  font-size: .92rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.feed-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .25rem;
  margin: .35rem 0 -.25rem -.3rem;
}
.feed-comments-dialog .feed-comment-actions > button {
  min-height: 2rem;
  padding: .25rem .3rem;
  border: 0;
  background: transparent;
  color: var(--ot-muted);
  font-size: .8rem;
}
.feed-comments-dialog .feed-comment-actions > button[aria-pressed="true"] { color: var(--ot-accent-hover); }
.feed-comments-dialog .feed-comment-actions > .feed-comment-confirm { color: var(--ot-danger); }
.feed-comment-replies {
  border-inline-start: 2px solid var(--ot-line);
  margin: .35rem 0 0 .125rem;
  padding-inline-start: .65rem;
}
.feed-comment-replies li:last-child { border-bottom: 0; }
.feed-comment.is-pending .feed-comment-load-status { margin-top: .25rem; }
#feed-comments-more, .feed-comment-more-replies { margin-top: .45rem; }
#feed-comments-form {
  display: grid;
  gap: .5rem;
  border: 0;
  border-top: 1px solid var(--ot-line);
  border-radius: 0;
  box-shadow: none;
  padding: .75rem 1rem;
  margin: 0;
  background: var(--ot-surface);
}
#feed-comments-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 3.6rem;
  max-height: 9rem;
  resize: vertical;
  font-size: 1rem;
}
.feed-comments-form-actions, .feed-comments-reply-target {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .65rem;
}
.feed-comments-form-actions { justify-content: flex-end; }
.feed-comments-reply-target { color: var(--ot-muted); font-size: .85rem; }
#feed-comments-cancel-reply { min-height: 2rem; }
#feed-comments-submit {
  min-height: 2.5rem;
  min-width: 4rem;
  background: var(--ot-accent);
  color: var(--ot-on-accent);
}
.feed-comments-login {
  display: block;
  padding: .8rem 1rem;
  border-top: 1px solid var(--ot-line);
  color: var(--ot-accent-hover);
}
@media (max-width: 43.75rem) {
  .feed-comments-dialog {
    inset: auto 0 0;
    margin: auto 0 0;
    width: 100%;
    max-width: none;
    min-height: min(26rem, 72dvh);
    max-height: 88dvh;
    border-radius: 1rem 1rem 0 0;
  }
  .feed-comments-login, #feed-comments-form {
    padding-bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
  }
  .feed-entry > div > .feed-comments-toggle, .feed-comments-dialog .feed-comment-actions > button {
    min-height: 2.5rem;
  }
}

.discover-page {
  --discover-glass: var(--ot-glass, color-mix(in srgb, var(--ot-surface-solid) 87%, transparent));
  --discover-glass-line: var(--ot-glass-line, color-mix(in srgb, var(--ot-line-strong) 65%, transparent));
  --discover-card-shadow: 0 1px 2px rgb(28 22 46 / .035), 0 4px 16px rgb(28 22 46 / .04);
  --discover-segment-fill: linear-gradient(155deg, var(--ot-surface-solid), var(--ot-grouped-surface, var(--ot-surface-2)));
  --discover-filter-fill: linear-gradient(150deg, var(--ot-accent-soft), color-mix(in srgb, var(--ot-accent-soft) 58%, var(--ot-surface-solid)));
  --discover-action-fill: var(--ot-action-gradient, linear-gradient(135deg, var(--ot-accent), var(--ot-accent-hover)));
}

html[data-theme-resolved="dark"] .discover-page {
  --discover-card-shadow: 0 2px 8px rgb(0 0 0 / .22), 0 8px 24px rgb(0 0 0 / .10);
}

.discover-page #main {
  background: var(--ot-canvas-wash, linear-gradient(155deg, var(--ot-surface-solid), var(--ot-grouped-bg, var(--ot-surface-2)) 82%));
}

#discover-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.2vw, 2.625rem);
  font-weight: 690;
  line-height: 1.12;
  letter-spacing: -.037em;
}
#discover-tabs { gap: 1rem; margin-bottom: .75rem; }
#discover-tabs a { font-size: .9375rem; }

.feed-controls {
  position: sticky;
  z-index: 2;
  inset-block-start: .375rem;
  padding: .5rem .625rem .25rem;
  border: 1px solid var(--discover-glass-line);
  border-radius: 1.125rem;
  background: var(--discover-glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: var(--discover-card-shadow);
}
#main:has(#feed-panel:not([hidden])) { scroll-padding-block-start: 7rem; }
.feed-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "search sections";
  gap: .5rem 1rem;
  margin: 0 0 .375rem;
}
#feed-search, #catalog-search { min-height: 2.75rem; }
#feed-search {
  grid-area: search;
  width: 100%;
  min-width: 0;
  max-width: 24rem;
  border-color: var(--discover-glass-line);
  border-radius: .75rem;
  background: color-mix(in srgb, var(--ot-grouped-fill, var(--ot-bg-accent)) 76%, transparent);
}
.feed-sections {
  grid-area: sections;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .375rem;
  min-width: 0;
}
.feed-tabs { gap: .125rem; margin: 0; }
.feed-tabs button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 .5rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  white-space: nowrap;
}
.feed-tabs button[aria-selected="true"] {
  padding: 0 .5rem;
  border-bottom-color: var(--ot-accent);
}
.feed-sections #discover-tabs {
  align-items: center;
  flex: none;
  gap: 0;
  margin: 0;
  padding-inline-start: .375rem;
  border: 0;
  border-inline-start: 1px solid var(--ot-line);
}
.feed-sections #discover-tabs a { padding-inline: .5rem; font-size: .8125rem; white-space: nowrap; }
.feed-sections #catalog-tab-feed { display: none; }
body.app-workspace > .app-rail > #login-panel.discover-guest-signin {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.discover-guest-signin a {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--ot-radius-sm);
  color: var(--ot-accent-hover);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}
.discover-guest-signin a:hover { background: var(--ot-accent-soft); }
.feed-filters, .catalog-filters {
  gap: .25rem;
  margin: 0 0 .625rem;
  padding: .125rem .125rem .25rem;
}
.feed-filter-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .5rem;
  align-items: start;
}
.feed-topic-field select {
  height: 2.125rem;
  max-width: 8.5rem;
  margin: .125rem 0 0;
  padding: 0 .5rem;
  border: 1px solid var(--ot-line);
  border-radius: .625rem;
  background: var(--ot-surface);
  color: var(--ot-ink);
  font: inherit;
  font-size: .82rem;
}
.feed-filters button, .catalog-filters button { height: 2.125rem; padding-inline: .65rem; }
.feed-filters button[aria-current="true"], .catalog-filters [aria-pressed="true"] { padding-inline: .65rem; }
.feed-filters button[aria-description][aria-current="true"] {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
}
.feed-filters button[aria-description][aria-current="true"]::after {
  content: "";
  width: .875rem;
  height: .875rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.5 6a5.7 5.7 0 0 0-9.7-2L2 6m0 0V2m0 4h4m-3.5 4a5.7 5.7 0 0 0 9.7 2l1.8-2m0 0v4m0-4h-4'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .feed-filters[data-refreshing="true"] button[aria-current="true"]::after {
    animation: feed-refresh .8s linear infinite;
  }
  @keyframes feed-refresh { to { transform: rotate(1turn); } }
}
.feed-filters #feed-creator-filter {
  background: var(--ot-accent-soft);
  color: var(--ot-accent-hover);
  font-weight: 650;
}
html[data-theme-resolved="dark"] :is(.feed-toolbar, .feed-filters) {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.feed-grid { align-items: stretch; gap: 1rem; }
.feed-activity-empty[data-initial-loading="true"] .feed-grid::before,
.feed-activity-empty[data-initial-loading="true"] .feed-grid::after {
  content: "";
  display: block;
  min-height: 9rem;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--ot-line);
  border-radius: .875rem;
  background:
    linear-gradient(var(--ot-bg-accent), var(--ot-bg-accent)) top / 100% 62% no-repeat,
    linear-gradient(var(--ot-bg-accent), var(--ot-bg-accent)) 9% 76% / 78% .625rem no-repeat,
    linear-gradient(var(--ot-bg-accent), var(--ot-bg-accent)) 5% 88% / 45% .5rem no-repeat,
    var(--ot-surface);
}
.feed-grid > article { border-radius: .875rem; }
.feed-card {
  flex: 1;
  gap: .375rem;
  padding: .75rem .875rem .625rem;
}
.feed-card h3 { color: var(--ot-ink); font-size: 1rem; line-height: 1.4; }
.feed-byline { font-size: .8125rem; }
.feed-card .kind {
  top: .625rem;
  right: .625rem;
  padding: .1875rem .5rem;
  font-size: .6875rem;
  line-height: 1.25;
}
.work-cover {
  width: calc(100% + 1.75rem);
  aspect-ratio: 16 / 10;
  margin: -.75rem -.875rem .25rem;
}
.work-cover[data-kind="image"] { position: relative; overflow: hidden; }
.work-cover-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.work-cover[data-kind="audio"]::after {
  content: "♫"; color: var(--ot-muted); font-size: 2rem; line-height: 1;
}
.work-cover[data-kind="video"]::after {
  content: ""; width: 1.5rem; height: 1.5rem; background: var(--ot-muted); clip-path: polygon(18% 0, 100% 50%, 18% 100%);
}
.work-cover:has(.thumb-document) {
  background: var(--ot-surface-2);
  border-bottom: 1px solid var(--ot-line);
}
.work-cover .thumb-document {
  padding: 1.5rem 1rem .875rem;
  color: var(--ot-ink);
  font-size: .8125rem;
}
.work-cover .thumb-document .thumb-page {
  box-sizing: border-box;
  padding: .75rem .875rem;
  border: 1px solid var(--ot-line);
  border-radius: .5rem;
  background: var(--ot-surface);
  box-shadow: none;
}
.work-cover .thumb-document .thumb-heading { color: var(--ot-ink); font-size: .875rem; }
.work-cover .thumb-document .thumb-line { color: var(--ot-muted); }
.work-cover .thumb-document .thumb-block { font-size: .75rem; }

.feed-grid > .feed-entry > .feed-card-actions,
html[data-theme-resolved="dark"] .feed-grid > .feed-entry > .feed-card-actions {
  align-items: center;
  gap: .125rem;
  padding: .25rem .5rem;
  border-top: 1px solid var(--ot-line);
}
.feed-grid > .feed-entry > .feed-card-actions > button {
  height: auto;
  min-height: 2.25rem;
  padding-inline: .45rem;
  border-radius: .375rem;
  font-size: .8125rem;
  white-space: nowrap;
}
.feed-card-actions > button[aria-busy="true"] { opacity: .65; cursor: progress; }
.feed-card-feedback {
  margin: 0;
  padding: .375rem .75rem .625rem;
  color: var(--ot-danger);
  font-size: .8125rem;
}
.feed-entry > .feed-card-actions > .feed-detail-toggle {
  align-self: center;
  margin: 0 0 0 auto;
  color: var(--ot-accent-hover);
  font-weight: 650;
}

.catalog-toolbar { gap: .5rem; margin: 0 0 .5rem; }
#catalog-search { flex-wrap: nowrap; }
.catalog-create {
  min-height: 2.625rem;
  padding-inline: .875rem;
  border-radius: .625rem;
  color: var(--ot-on-accent);
}
a.catalog-create.catalog-create-secondary {
  border: 1px solid var(--ot-line);
  background: var(--ot-surface-solid);
  color: var(--ot-accent);
}
a.catalog-create.catalog-create-secondary:hover {
  background: var(--ot-accent-soft);
  color: var(--ot-accent-hover);
}
#discover-list article { padding: .875rem; gap: .75rem; }
#discover-list h3 { font-size: .9375rem; }
#discover-list .summary { font-size: .8125rem; }
#discover-list .catalog-profile:not(:hover) { text-decoration: none; }
#discover-list article :is(.catalog-chat, .catalog-use) {
  height: auto;
  min-height: 2.125rem;
  padding-inline: .75rem;
  border-radius: .5rem;
  font-size: .8125rem;
}
#discover-list article .catalog-chat {
  border-color: transparent;
  background: var(--ot-accent-soft);
}
#discover-list article .catalog-chat:hover { border-color: var(--ot-accent); }

#work-detail-title {
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  font-weight: 670;
  line-height: 1.18;
  letter-spacing: -.028em;
}
.work-detail-paper {
  border-radius: 1.25rem;
  background: var(--ot-surface-solid);
  box-shadow: var(--discover-card-shadow);
}
.work-detail-paper:has(.feed-detail-lines) .work-detail-content {
  padding: .875rem 1rem;
  border-radius: .625rem;
  background: var(--ot-surface-2);
}
.work-detail-actions :is(button, #work-detail-open, #work-detail-download) {
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: .375rem .75rem;
  border: 1px solid var(--ot-line);
  border-radius: .5rem;
  font-size: .875rem;
  text-align: center;
}
.work-detail-actions #work-detail-open {
  justify-content: center;
  border-color: transparent;
  background: var(--discover-action-fill);
  color: var(--ot-on-accent);
}
.work-detail-actions #work-detail-open:hover {
  background: var(--ot-accent-hover);
  text-decoration: none;
}
.work-detail-actions #work-detail-share { background: var(--ot-surface); color: var(--ot-ink); }
.work-detail-actions #work-detail-share:hover { background: var(--ot-surface-2); }
.work-detail-actions #work-detail-download { justify-content: center; background: var(--ot-surface); }
.work-detail-actions #work-detail-download:hover { background: var(--ot-surface-2); text-decoration: none; }
#work-detail-library:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  padding: .25rem;
  border: 1px solid var(--ot-glass-line, var(--ot-line));
  border-radius: .875rem;
  background: var(--ot-grouped-fill, var(--ot-surface-2));
}
#work-detail-library a:not([hidden]) {
  display: inline-flex;
  flex: 1 1 13rem;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 2.75rem;
  padding: 0 .75rem;
  border-radius: .625rem;
  background: var(--ot-surface-solid);
  color: var(--ot-ink);
  font-size: .875rem;
  font-weight: 580;
  text-decoration: none;
}
#work-detail-library a:not([hidden]):hover { background: var(--ot-accent-soft); color: var(--ot-accent-hover); }
#work-detail-library a::after {
  content: "";
  inline-size: .4375rem;
  block-size: .4375rem;
  flex: none;
  border-block-start: 1.5px solid var(--ot-muted);
  border-inline-end: 1.5px solid var(--ot-muted);
  transform: rotate(45deg);
}

@media (max-width: 45rem) {
  body.app-workspace:not(.chat-open) > main > #main-panel { padding-top: .875rem; }
  #main:has(#feed-panel:not([hidden])) { scroll-padding-block-start: 10rem; }
  .feed-controls { margin-inline: -.25rem; padding-inline: .375rem; }
  #discover-title { margin-bottom: .75rem; }
  #discover-tabs { margin-bottom: .5rem; }
  .feed-toolbar { grid-template-columns: minmax(0, 1fr); grid-template-areas: "sections" "search"; gap: .375rem; }
  .feed-sections #discover-tabs a:not(#catalog-tab-feed) {
    min-height: 2.75rem;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
  }
  #feed-search { height: 2.75rem; max-width: none; }
  #feed-search .search-submit { min-width: 2.75rem; min-height: 2.75rem; }
  #feed-clear { flex-basis: 2.75rem; height: 2.75rem; margin-right: 0; }
  .feed-topic-field select { min-height: 2.75rem; }
  .feed-filters { margin-bottom: .5rem; }
  .feed-filters button { min-height: 2.75rem; }
  #catalog-search { flex: 1 1 0; }
  .catalog-create { flex: none; padding-inline: .625rem; }
  .work-cover[data-kind="document"] { aspect-ratio: 16 / 7; }
  .feed-grid > .feed-entry > .feed-card-actions > button { min-height: 2.75rem; }
  #discover-list article :is(.catalog-chat, .catalog-use) { min-height: 2.75rem; }
  #work-detail-open { flex: 1 1 8rem; }
  .work-detail-actions { gap: .5rem; }
}

@media (max-width: 22.5rem) {
  .feed-sections, .feed-tabs { gap: 0; }
  .feed-tabs button, .feed-tabs button[aria-selected="true"], .feed-sections #discover-tabs a { padding-inline: .35rem; }
}

.feed-controls { margin-bottom: 1rem; }
.feed-tabs {
  padding: .125rem;
  gap: .125rem;
  border-radius: .75rem;
  background: var(--ot-grouped-fill, var(--ot-bg-accent));
}
.feed-tabs button, .feed-tabs button[aria-selected="true"] {
  border: 0;
  border-radius: .625rem;
  font-weight: 520;
}
.feed-tabs button[aria-selected="true"] {
  background: var(--discover-segment-fill);
  box-shadow: var(--ot-segment-shadow, 0 1px 3px rgb(0 0 0 / 9%));
  font-weight: 620;
}
.feed-filters button[aria-current="true"],
.catalog-filters [aria-pressed="true"] {
  background: var(--discover-filter-fill);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ot-accent) 10%, transparent);
}
.feed-grid > .feed-entry {
  border-radius: 1.125rem;
  background: var(--ot-surface-solid);
  box-shadow: var(--discover-card-shadow);
}
.feed-entry .feed-card h3 {
  font-size: .9375rem;
  font-weight: 620;
  line-height: 1.4;
  letter-spacing: -.012em;
}

#main-panel:not(.discover-feed-mode) #discover-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .1875rem;
  width: min(100%, 22rem);
  margin: .875rem 0 1.25rem;
  padding: .1875rem;
  border: 0;
  border-radius: .875rem;
  background: var(--ot-grouped-fill, var(--ot-bg-accent));
}
#main-panel:not(.discover-feed-mode) #discover-tabs a {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  padding: .375rem .5rem;
  border: 0;
  border-radius: .6875rem;
  color: var(--ot-muted);
  font-size: .9375rem;
  font-weight: 530;
  line-height: 1.25;
}
#main-panel:not(.discover-feed-mode) #discover-tabs a[aria-current="page"] {
  background: var(--discover-segment-fill);
  color: var(--ot-ink);
  font-weight: 620;
  box-shadow: var(--ot-segment-shadow, 0 1px 3px rgb(0 0 0 / 9%));
}
.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 30rem) minmax(max-content, 1fr);
  align-items: center;
  row-gap: .625rem;
  margin: 0 0 .875rem;
}
.catalog-toolbar #catalog-search {
  grid-column: 2;
  width: 100%;
  max-width: none;
  min-height: 2.75rem;
  border: 1px solid var(--discover-glass-line);
  border-radius: .875rem;
  background: var(--discover-glass);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
  backdrop-filter: blur(12px) saturate(1.12);
  box-shadow: var(--discover-card-shadow);
}
.catalog-toolbar-actions {
  display: flex;
  grid-column: 3;
  justify-content: flex-end;
  gap: .375rem;
}
.catalog-toolbar-actions:not(:has(.catalog-create:not([hidden]))) { display: none; }
.catalog-toolbar-actions .catalog-create {
  min-height: 2.75rem;
  padding-inline: .75rem;
  font-size: .8125rem;
  font-weight: 620;
}
.catalog-toolbar-actions .catalog-create:not(.catalog-create-secondary) {
  background: var(--discover-action-fill);
  color: var(--ot-on-accent);
  box-shadow: var(--discover-card-shadow);
}
#catalog-clear, #catalog-search .search-submit {
  min-width: 2.75rem;
  min-height: 2.75rem;
}
#catalog-clear { margin-right: 0; background: transparent; }
#catalog-panel { padding-block: .25rem 1.25rem; border-top: 1px solid var(--ot-line); }
#catalog-count, #catalog-error, #discover-empty { margin-block: .5rem .625rem; }
#catalog-count:empty { display: none; }
#discover-empty { max-width: 36rem; }
#catalog-panel[aria-busy="true"] #discover-list:empty::before {
  content: "";
  min-height: 5.25rem;
  border: 1px solid var(--ot-line);
  border-radius: 1rem;
  background:
    linear-gradient(var(--ot-bg-accent), var(--ot-bg-accent)) 4rem 1.25rem / 40% .65rem no-repeat,
    linear-gradient(var(--ot-bg-accent), var(--ot-bg-accent)) 4rem 2.5rem / 55% .6rem no-repeat,
    var(--ot-surface-2);
}
#catalog-panel :is(#catalog-more, #teams-retry, #catalog-empty-reset) {
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--ot-line);
  border-radius: .75rem;
  background: var(--ot-surface-2);
  color: var(--ot-ink);
  font-size: .875rem;
  font-weight: 600;
}
#catalog-panel .catalog article {
  border-radius: 1.125rem;
  background: var(--ot-surface-solid);
  box-shadow: var(--discover-card-shadow);
}
#catalog-panel .catalog h3 { font-size: 1rem; font-weight: 620; letter-spacing: -.012em; }
#catalog-panel .catalog :is(.summary, .team-summary) { font-size: .8375rem; line-height: 1.5; }
.catalog-dialog, .feed-comments-dialog {
  border-color: var(--discover-glass-line);
  background: var(--ot-surface-solid);
  box-shadow: var(--ot-float-shadow, var(--ot-shadow-lg));
}

@media (max-width: 58rem) {
  .catalog-toolbar { grid-template-columns: minmax(0, 1fr); }
  .catalog-toolbar #catalog-search, .catalog-toolbar-actions { grid-column: 1; }
  .catalog-toolbar-actions { justify-content: flex-end; flex-wrap: wrap; }
  .catalog-filters button { min-height: 2.75rem; }
  .catalog-filters .catalog-filter-search { min-width: 2.75rem; }
}

@media (prefers-reduced-transparency: reduce) {
  .feed-controls, .catalog-toolbar #catalog-search {
    background: var(--ot-surface-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
