/* Discussion — minimal styles aligned with team.html tokens */

.disc-root {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.disc-loading,
.disc-empty,
.disc-error,
.disc-guest {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.disc-error {
  color: #f87171;
}

.disc-guest {
  background: var(--s1);
  border: 1px solid var(--div);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.disc-signin {
  align-self: flex-start;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
  border: 1px solid rgba(0, 194, 203, 0.35);
  border-radius: 4px;
  padding: 8px 14px;
}

.disc-signin:hover {
  background: var(--t08);
}

.disc-compose {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--s1);
  border: 1px solid var(--div);
  border-radius: 6px;
  padding: 12px 14px;
}

.disc-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.disc-input {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--div);
  border-radius: 4px;
  padding: 10px 12px;
  resize: vertical;
  min-height: 72px;
}

.disc-input:focus {
  outline: 2px solid rgba(0, 194, 203, 0.45);
  outline-offset: 1px;
}

.disc-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 8px 14px;
  cursor: pointer;
  border: 1px solid transparent;
  align-self: flex-start;
}

.disc-btn--primary {
  color: var(--navy);
  background: var(--teal);
}

.disc-btn--primary:hover {
  filter: brightness(1.05);
}

.disc-btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.disc-btn--ghost {
  color: var(--muted);
  background: transparent;
  border-color: var(--div);
}

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

.disc-post {
  background: var(--s1);
  border: 1px solid var(--div);
  border-radius: 6px;
  padding: 12px 14px;
}

.disc-post-hd,
.disc-reply-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.disc-author {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
}

.disc-team-flag {
  display: inline-block;
  width: 16px;
  height: 12px;
  margin-left: 4px;
  border-radius: 2px;
  vertical-align: -1px;
  object-fit: cover;
}

.disc-when {
  font-size: 12px;
  color: var(--dim);
}

.disc-delete {
  margin-left: auto;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.disc-delete:hover {
  color: #f87171;
}

.disc-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--body);
  margin: 0 0 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

.disc-mention,
.sf-mention {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.disc-mention:hover,
.disc-mention:focus-visible,
.sf-mention:hover,
.sf-mention:focus-visible {
  color: var(--teal);
  opacity: 0.88;
}

.disc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.disc-like,
.disc-reply-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 1px solid var(--div);
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
}

.disc-like.is-on {
  color: var(--teal);
  border-color: rgba(0, 194, 203, 0.4);
  background: var(--t06);
}

.disc-like:hover,
.disc-reply-btn:hover {
  border-color: rgba(0, 194, 203, 0.35);
  color: var(--teal);
}

.disc-reply-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.disc-reply-actions {
  display: flex;
  gap: 8px;
}

.disc-replies {
  margin-top: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--div);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.disc-reply {
  padding: 12px 0 12px 12px;
  border-left: 2px solid rgba(0, 194, 203, 0.22);
  margin-left: 0;
}

.disc-reply + .disc-reply {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.disc-reply-to {
  font-size: 12px;
  color: var(--dim);
  margin: 0 0 6px;
  line-height: 1.35;
}

.disc-reply-to-user {
  color: var(--teal);
  font-weight: 600;
}

.disc-post.disc-target-flash,
.disc-reply.disc-target-flash {
  outline: 2px solid rgba(0, 194, 203, 0.85);
  outline-offset: 4px;
  border-radius: 6px;
  transition: outline-color 0.4s ease;
}

.disc-reply.disc-target-flash {
  animation: disc-target-pulse 2.4s ease;
}

.disc-post.disc-target-flash {
  animation: disc-target-pulse 2.4s ease;
}

@keyframes disc-target-pulse {
  0%, 100% { outline-color: rgba(0, 194, 203, 0.85); }
  50% { outline-color: rgba(0, 194, 203, 0.2); }
}

/* @mention autocomplete */
.mention-ac {
  position: fixed;
  z-index: 10100;
  max-height: 220px;
  overflow-y: auto;
  background: var(--navy, #0A1628);
  border: 1px solid rgba(0, 194, 203, 0.35);
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
  padding: 4px;
}

.mention-ac-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--body, #E0E0E0);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.mention-ac-item:hover,
.mention-ac-item.is-active {
  background: rgba(0, 194, 203, 0.12);
}

.mention-ac-handle {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--teal, #00C2CB);
}

.mention-ac-name {
  font-size: 13px;
  color: var(--muted, #B8CEDD);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
