.sq-community-page {
  background: #0a0a0a;
  color: #e6e9ef;
  min-height: 100vh;
  font-family: Barlow, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.sq-community-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 16px 72px;
}

.sq-community-hero {
  margin-bottom: 24px;
}

.sq-community-kicker {
  margin: 0 0 8px;
  font: 700 11px/1.2 "Barlow Condensed", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #e8771a;
}

.sq-community-hero h1 {
  margin: 0 0 10px;
  font: 800 clamp(28px, 5vw, 40px)/1.05 "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.sq-community-lead {
  margin: 0 0 18px;
  max-width: 58ch;
  color: rgba(255, 255, 255, .62);
  font-size: 15px;
  line-height: 1.5;
}

.sq-community-search-wrap {
  display: block;
}

.sq-community-search-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}

.sq-community-search {
  width: 100%;
  max-width: 520px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  background: #141414;
  color: #e6e9ef;
  font: 600 15px/1.2 "Barlow", sans-serif;
}

.sq-community-search:focus {
  outline: none;
  border-color: #e8771a;
  box-shadow: 0 0 0 2px rgba(232, 119, 26, .18);
}

.sq-community-list {
  display: grid;
  gap: 10px;
}

.sq-community-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  background: #141414;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}

.sq-community-card:hover {
  border-color: rgba(232, 119, 26, .45);
  transform: translateY(-1px);
}

.sq-community-avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #1e1e1e;
  font: 800 18px/1 "Barlow Condensed", sans-serif;
  color: #fff;
}

.sq-community-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sq-community-body {
  flex: 1 1 auto;
  min-width: 0;
}

.sq-community-name {
  font: 800 17px/1.15 "Barlow Condensed", sans-serif;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.sq-community-handle {
  margin-top: 2px;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}

.sq-community-followers {
  flex: 0 0 auto;
  text-align: right;
}

.sq-community-followers strong {
  display: block;
  font: 800 20px/1 "Barlow Condensed", sans-serif;
  color: #ff6b00;
}

.sq-community-followers span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
}

.sq-community-loading,
.sq-community-empty,
.sq-community-error {
  padding: 28px 16px;
  border-radius: 12px;
  border: 1px dashed #2a2a2a;
  color: rgba(255, 255, 255, .55);
  text-align: center;
}

.sq-community-error {
  border-color: rgba(214, 57, 57, .35);
  color: #ef9a9a;
}

@media (max-width: 640px) {
  .sq-community-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .sq-community-followers {
    width: 100%;
    text-align: left;
    padding-left: 62px;
  }
}

.sq-community-chat {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #2a2a2a;
}

.sq-community-chat-head h2 {
  margin: 0 0 8px;
  font: 800 clamp(22px, 4vw, 30px)/1.05 "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.sq-community-chat-head p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .58);
  font-size: 14px;
  line-height: 1.45;
}

.sq-community-chat-log {
  min-height: 220px;
  max-height: 420px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  background: #141414;
  margin-bottom: 12px;
}

.sq-community-chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sq-community-chat-avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #1e1e1e;
  font: 800 13px/1 "Barlow Condensed", sans-serif;
}

.sq-community-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sq-community-chat-bubble {
  flex: 1 1 auto;
  min-width: 0;
}

.sq-community-chat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  margin-bottom: 2px;
}

.sq-community-chat-name {
  font: 700 13px/1.2 "Barlow", sans-serif;
  color: #fff;
  text-decoration: none;
}

.sq-community-chat-name:hover { color: #ff6b00; }

.sq-community-chat-time {
  font-size: 11px;
  color: rgba(255, 255, 255, .38);
}

.sq-community-chat-text {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .86);
  word-break: break-word;
}

.sq-community-chat-form {
  display: block;
}

.sq-community-chat-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.sq-community-chat-compose {
  display: flex;
  gap: 8px;
}

.sq-community-chat-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  background: #141414;
  color: #e6e9ef;
  font: 600 15px/1.2 "Barlow", sans-serif;
}

.sq-community-chat-input:focus {
  outline: none;
  border-color: #e8771a;
  box-shadow: 0 0 0 2px rgba(232, 119, 26, .18);
}

.sq-community-chat-input:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.sq-community-chat-send {
  flex: 0 0 auto;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: #ff6b00;
  color: #fff;
  font: 700 14px/1 "Barlow", sans-serif;
  cursor: pointer;
}

.sq-community-chat-send:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.sq-community-chat-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}

.sq-community-chat-hint a {
  color: #e8771a;
  font-weight: 700;
  text-decoration: none;
}

.sq-community-chat-empty {
  margin: auto;
  text-align: center;
  color: rgba(255, 255, 255, .45);
  font-size: 14px;
}
