/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sr-font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--sr-text);
  background: var(--sr-black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--sr-accent);
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(230, 57, 0, 0.15);
}
a:hover { color: var(--sr-accent-hover); text-decoration: underline; }
a.sr-mention {
  font-weight: 600;
  color: var(--sr-accent);
  text-decoration: none;
}
a.sr-mention:hover {
  color: var(--sr-accent-hover);
  text-decoration: underline;
}

/* @mention autocomplete dropdown */
.sr-mention-dropdown {
  min-width: 220px;
  max-width: min(320px, calc(100vw - 16px));
  max-height: 240px;
  overflow-y: auto;
  background: var(--sr-card);
  border: 1px solid var(--sr-border);
  border-radius: var(--sr-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  padding: 4px;
}
.sr-mention-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: var(--sr-radius-sm);
  background: transparent;
  color: var(--sr-text);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.sr-mention-item:hover,
.sr-mention-item.is-active {
  background: var(--sr-dark);
}
.sr-mention-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e0e0e0;
}
.sr-mention-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}
.sr-mention-login {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sr-accent);
}
.sr-mention-name {
  font-size: 0.75rem;
  color: var(--sr-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

img { max-width: 100%; height: auto; display: block; }
button { -webkit-tap-highlight-color: transparent; }

.sr-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
