/* fediverse-overlay — dim amber translucent rail (txw dark aesthetic) */

#txw-fo-btn {
  position: absolute;
  bottom: 66px;
  right: 12px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-family: inherit;
  letter-spacing: .3px;
  color: #f3e3c3;
  background: rgba(28, 21, 12, 0.72);
  border: 1px solid rgba(240, 180, 90, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
#txw-fo-btn:hover {
  background: rgba(46, 33, 16, 0.85);
  border-color: rgba(240, 180, 90, 0.5);
}

#txw-fo-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 66px;
  width: 300px;
  max-width: calc(100% - 24px);
  z-index: 99;
  display: none;
  flex-direction: column;
  background: rgba(20, 15, 9, 0.82);
  border: 1px solid rgba(240, 180, 90, 0.22);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  pointer-events: auto;
}
#txw-fo-panel.open { display: flex; }

.txw-fo-head {
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #f3e3c3;
  font-size: 13px;
  position: relative;
  padding-right: 28px;
}
.txw-fo-head b { color: #ffb45e; }
.txw-fo-sub {
  display: block;
  font-size: 10.5px;
  color: #b9a47f;
  margin-top: 2px;
  line-height: 1.35;
}
.txw-fo-x {
  position: absolute;
  top: 7px;
  right: 7px;
  background: none;
  border: none;
  color: #b9a47f;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 5px;
}
.txw-fo-x:hover { color: #f3e3c3; }

.txw-fo-list {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 180, 90, 0.3) transparent;
}
.txw-fo-list.txw-fo-flash { animation: txw-glow .7s ease; }
@keyframes txw-glow {
  0% { box-shadow: inset 0 0 24px rgba(255, 180, 94, 0.18); }
  100% { box-shadow: inset 0 0 0 rgba(255, 180, 94, 0); }
}

.txw-fo-empty {
  padding: 26px 16px;
  text-align: center;
  color: #b9a47f;
  font-size: 12px;
}

.txw-fo-row {
  display: flex;
  gap: 9px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.txw-fo-av {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex: none;
  background: rgba(255, 255, 255, 0.06);
  object-fit: cover;
}
.txw-fo-body { min-width: 0; flex: 1; }
.txw-fo-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  color: #f0e2c4;
}
.txw-fo-acct {
  color: #9d8b6b;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.txw-fo-link {
  margin-left: auto;
  color: #b98c4e;
  text-decoration: none;
  font-size: 12px;
}
.txw-fo-link:hover { color: #ffb45e; }
.txw-fo-text {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.42;
  color: #ddcdab;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

@media (max-width: 700px) {
  #txw-fo-panel {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 60px;
    width: auto;
    max-height: 42%;
  }
}
