.fb-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fb-f {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.fb-lb {
  font-size: 13px;
  font-weight: 700;
  color: var(--tx2);
}

.fb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fb-chips button {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--s2);
  color: var(--tx2);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.fb-chips button.on {
  border-color: var(--ink);
  background: rgba(var(--acc-rgb), 0.14);
  color: var(--tx);
}

.fb-ta {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--s2);
  color: var(--tx);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}

.fb-ta:focus {
  outline: none;
  border-color: var(--ink);
}

.fb-up {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px dashed var(--line2);
  color: var(--tx2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.fb-up i {
  color: var(--ink);
}

.fb-th {
  position: relative;
  display: inline-flex;
  width: 120px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.fb-th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-rm {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
}

.fb-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--tx3);
}

.fb-acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.fb-acts .btn {
  min-width: 96px;
}

.toast.fb-act {
  background-color: var(--bg);
  background-image: linear-gradient(var(--s2), var(--s2));
  color: var(--tx);
  border: 1px solid var(--line);
}

.toast.fb-act i {
  color: var(--live);
}

.toast.fb-act span {
  flex: 1;
}

.toast.fb-act button {
  border: none;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
}

.fb-rt {
  position: fixed;
  z-index: 75;
  left: 12px;
  right: 12px;
  bottom: calc(var(--tabbar-h, 0px) + 12px + var(--safe-b, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background-color: var(--bg);
  background-image: linear-gradient(var(--s1), var(--s1));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  animation: fb-in 0.25s ease-out;
}

@keyframes fb-in {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.fb-rt-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--tx3);
  cursor: pointer;
}

.fb-rt-t {
  padding-right: 32px;
  font-size: 15px;
  line-height: 1.4;
}

.fb-stars {
  display: flex;
  gap: 6px;
}

.fb-stars button {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--s2);
  color: var(--tx3);
  font-size: 20px;
  cursor: pointer;
}

.fb-stars button.on {
  color: var(--ink);
  background: rgba(var(--acc-rgb), 0.14);
}

.fb-st {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--s2);
  color: var(--tx2);
}

.fb-st.nw {
  background: rgba(var(--acc-rgb), 0.16);
  color: var(--ink);
}

.fb-st.rv {
  background: rgba(242, 201, 76, 0.16);
  color: #d9a900;
}

.fb-st.ok {
  background: rgba(46, 184, 114, 0.16);
  color: var(--ok);
}

.fb-pg,
.page.sub.fb-pg:not(.sd-pg):not(.sn-pg) {
  gap: 16px;
  align-items: stretch;
}

.fb-pg .hdr .sp {
  flex: 1;
}

.fb-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--tx2);
}

.fb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fb-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--s1);
  color: var(--tx);
  text-decoration: none;
}

.fb-row.un {
  border-color: var(--ink);
}

.fb-row-h,
.fb-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fb-kd {
  font-size: 13px;
  font-weight: 700;
  color: var(--tx2);
}

.fb-row-m {
  font-size: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fb-row-f {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--tx3);
}

.fb-new {
  color: var(--ink);
}

.fb-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 16px;
  text-align: center;
  color: var(--tx2);
}

.fb-empty > i {
  font-size: 30px;
  color: var(--tx3);
}

.fb-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 14px 0;
}

.fb-msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 86%;
}

.fb-msg.me {
  align-self: flex-end;
  align-items: flex-end;
}

.fb-msg.them {
  align-self: flex-start;
}

.fb-who {
  font-size: 12px;
  color: var(--tx3);
}

.fb-bub {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.fb-msg.me .fb-bub {
  background: rgba(var(--acc-rgb), 0.14);
  border-bottom-right-radius: 6px;
}

.fb-msg.them .fb-bub {
  background: var(--s1);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}

.fb-img {
  display: block;
  margin-top: 10px;
  max-width: 240px;
  border-radius: 10px;
  overflow: hidden;
}

.fb-img img {
  display: block;
  width: 100%;
}

.fb-reply {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fb-closed {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--s2);
  color: var(--tx2);
  font-size: 14px;
}

.fb-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--live);
  vertical-align: middle;
}

.tn-av.fb-has {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--live);
}

@media (min-width: 900px) {
  .fb-rt {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: 380px;
  }

  .page.sub.fb-pg,
  .page.sub.fb-pg:not(.sd-pg):not(.sn-pg) {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
  }

  .fb-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 14px;
  }

  .fb-msg {
    max-width: min(70%, 760px);
  }

  .fb-reply {
    flex-direction: row;
    align-items: flex-end;
  }

  .fb-reply .fb-ta {
    flex: 1;
  }

  .fb-reply .fb-acts .btn {
    height: 48px;
  }
}
