/* rrmyers social app — Matrix green (matched to rrmyers-static) */

:root {
  --bg: #101010;
  --panel: #0d0d0d;
  --panel-border: #1b5e20;
  --text: #78787f;
  --headings: #ffffff;
  --logo: #ffffff;
  --link: #66bb6a;
  --link-hover: #32cd32;
  --accent: #2e7d32;
  --lime: #39ff14;
  --menu-bg: #1b5e20;
  --menu-bg-scroll: rgba(27, 94, 32, 0.95);
  --footer-bg: #0d1f0e;
  --footer-text: #a0a0a0;
  --footer-link: #0bb4aa;
  --footer-link-hover: #076c65;
  --danger: #e57373;
  --danger-bg: rgba(229, 115, 115, 0.12);
  --ok: #66bb6a;
  --ok-bg: rgba(102, 187, 106, 0.12);
  --input-bg: #141414;
  --input-border: #2a2a2a;
  --max-width: 560px;
  --header-height: 64px;
  --bottom-nav-height: 56px;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-heading: "Onest", "Inter", system-ui, sans-serif;
  --radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--link-hover);
}

::selection {
  background: var(--lime);
  color: #000;
}

/* ----- Config banner ----- */
.config-banner {
  background: #3e2723;
  color: #ffccbc;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  text-align: center;
  border-bottom: 1px solid #5d4037;
}

.config-banner code {
  font-size: 0.8em;
  color: #fff;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--menu-bg);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--logo);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.site-logo:hover,
.site-logo:focus {
  color: var(--logo);
}

.site-logo span {
  color: var(--lime);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85em;
  margin-left: 0.35rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  color: #fff;
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
}

.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  color: #fff;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}



.site-nav li[hidden] {
  display: none !important;
}

.auth-slot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-slot a:not(.btn) {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  color: #fff;
}

/* Beat .site-nav a { color:#fff } so Sign up stays black on the lime pill */
.site-nav a.btn--primary,
.auth-slot a.btn--primary,
a.btn.btn--primary {
  color: #0a0a0a !important;
  text-decoration: none !important;
}

.site-nav a.btn--primary:hover,
.site-nav a.btn--primary:focus,
.auth-slot a.btn--primary:hover,
.auth-slot a.btn--primary:focus,
a.btn.btn--primary:hover,
a.btn.btn--primary:focus {
  color: #0a0a0a !important;
  text-decoration: none !important;
}

/* Log in outline stays white */
.site-nav a.btn--outline,
.auth-slot a.btn--outline,
a.btn.btn--outline {
  color: #ffffff !important;
  text-decoration: none !important;
}

.site-nav a.btn--outline:hover,
.site-nav a.btn--outline:focus,
.auth-slot a.btn--outline:hover,
.auth-slot a.btn--outline:focus,
a.btn.btn--outline:hover,
a.btn.btn--outline:focus {
  color: #39ff14 !important;
  text-decoration: none !important;
}

/* ----- Main ----- */
.app-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.app-main--wide {
  max-width: 720px;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--headings);
  line-height: 1.3;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

.lede {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

.muted,
.is-muted {
  color: var(--text);
  opacity: 0.85;
}

/* ----- Panels ----- */
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: 0 0 24px rgba(46, 125, 50, 0.12);
}

.panel + .panel {
  margin-top: 1.25rem;
}

.panel-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--lime);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

/* ----- Forms ----- */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--headings);
  margin-bottom: 0.35rem;
}

.field .hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text);
  margin-top: 0.3rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--headings);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.2);
}

.field input.input--readonly,
.field input[readonly] {
  color: var(--muted, #6b7280);
  background: var(--panel-bg, var(--input-bg));
  opacity: 0.85;
  cursor: default;
}


.field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.25rem;
}

.form-footer {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  text-align: center;
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.field-label-row label {
  margin-bottom: 0;
}

.field-aside {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
  text-decoration: none;
}

.btn-link:hover,
.btn-link:focus {
  color: var(--link-hover);
  text-decoration: underline;
}

/* ----- Buttons (pill style matched to www.rrmyers.com nav) ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.55rem 1.15rem;
  line-height: 1.2;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--primary {
  background: #39ff14;
  color: #0a0a0a !important;
  border-color: #39ff14;
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.55);
}

.btn--primary:hover,
.btn--primary:focus {
  background: #7cff6b;
  border-color: #7cff6b;
  color: #0a0a0a !important;
  box-shadow: 0 0 22px rgba(57, 255, 20, 0.75);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover,
.btn--ghost:focus {
  border-color: #39ff14;
  color: #39ff14;
}

.btn--outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--outline:hover,
.btn--outline:focus {
  border-color: #39ff14;
  color: #39ff14;
  background: rgba(57, 255, 20, 0.08);
}

.btn.btn--sm {
  /* Keep auth/chrome pills at WWW nav-btn dimensions, including mobile. */
  padding: 0.45rem 1.05rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

/* Auth nav slot: keep pills tight in the header */
.auth-slot {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.auth-slot a:not(.btn) {
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}

/* ----- Alerts ----- */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert[hidden] {
  display: none !important;
}

.alert--error {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: #ffcdd2;
}

.alert--success {
  background: var(--ok-bg);
  border-color: var(--ok);
  color: #c8e6c9;
}

.alert--info {
  background: rgba(27, 94, 32, 0.35);
  border-color: var(--accent);
  color: #dcedc8;
}

/* ----- Home ----- */
.hero-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.hero-card .mark {
  display: inline-block;
  background: var(--menu-bg);
  color: var(--lime);
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid var(--lime);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.feed-placeholder {
  border: 1px dashed var(--panel-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--text);
  background: rgba(13, 13, 13, 0.6);
}

.feed-placeholder strong {
  color: var(--lime);
  font-family: var(--font-heading);
}

/* ----- Profile ----- */
.profile-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.avatar {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid var(--lime);
  background: #1a1a1a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(50, 205, 50, 0.25);
}

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

.avatar-fallback {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--lime);
}

.profile-meta h1 {
  margin-bottom: 0.15rem;
}

.profile-username {
  color: var(--link);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

.profile-bio {
  margin: 0;
  white-space: pre-wrap;
}

.owner-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.owner-actions[hidden],
.admin-member-actions[hidden] {
  display: none !important;
}

.status-line {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 1.75rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--footer-link);
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--footer-link-hover);
}

.footer-copy {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
}


/* ----- Help disclosure (hamburger App-first) ----- */
.nav-help {
  list-style: none;
}

.nav-help-details {
  position: relative;
}

.nav-help-details > summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  color: #fff;
  user-select: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
}

.nav-help-details > summary::-webkit-details-marker {
  display: none;
}

.nav-help-details > summary::marker {
  content: none;
  display: none;
}

.nav-help-details > summary::after {
  content: "▾";
  font-size: 0.75em;
  line-height: 1;
  opacity: 0.75;
  margin-left: 0.2em;
}

.nav-help-details[open] > summary::after {
  content: " ▴";
}

.nav-help-details > summary:hover,
.nav-help-details > summary:focus {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-help-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(57, 255, 20, 0.28);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.12);
}

.nav-help-links a {
  font-size: 14px !important;
  color: #c8f5c8 !important;
  text-decoration: none !important;
  padding: 0.2rem 0;
}

.nav-help-links a:hover,
.nav-help-links a:focus {
  color: #39ff14 !important;
  text-decoration: underline !important;
}

@media (min-width: 641px) {
  .nav-help-details {
    position: relative;
  }
  .nav-help-links {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    min-width: 11rem;
    z-index: 1200;
  }
}

@media (max-width: 768px) {
  .nav-help-details > summary {
    display: block;
    padding: 0.65rem 1.25rem;
  }
  .nav-help-links {
    margin: 0 1.25rem 0.35rem;
  }
  .nav-help-links a {
    display: block;
    padding: 0.45rem 0.25rem !important;
  }
}

/* ----- Mobile ----- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--menu-bg-scroll);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.is-open {
    max-height: 720px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  }

  .site-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }

  .site-nav a,
  .auth-slot {
    display: block;
    padding: 0.65rem 1.25rem;
  }

  .auth-slot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .app-main {
    padding: 1.5rem 1rem 2.5rem;
  }

  /* Hamburger drawer: left-align ALL items like Home / Help */
  .site-nav > ul > li,
  .site-nav .auth-slot,
  .site-nav .notif-wrap {
    text-align: left;
  }

  .site-nav a.btn,
  .site-nav button.btn,
  .site-nav .btn,
  .site-nav .notif-bell {
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
  }

  .site-nav .nav-user-chip {
    justify-content: flex-start;
    max-width: none;
  }

  .site-nav .notif-bell {
    display: flex;
    width: 100%;
    padding: 0.65rem 1.25rem;
    box-sizing: border-box;
  }

  .site-nav .notif-wrap {
    display: block;
    width: 100%;
  }

  /* Alerts slot: match Home/Help horizontal padding (bell already padded) */
  .site-nav li[data-notif-nav] {
    padding: 0;
  }

  .site-nav li[data-notif-nav] .notif-bell {
    margin: 0;
  }

}

/* ----- Phase A: toast ----- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--menu-bg);
  color: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  box-shadow: 0 0 24px rgba(57, 255, 20, 0.35);
  z-index: 2000;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ----- Phase A: compact nav user chip (same feel as www) ----- */
.nav-user-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 0.3rem;
  max-width: 160px;
  padding: 0.32rem 0.72rem 0.32rem 0.28rem !important;
  font-size: 0.76rem !important;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-decoration: none !important;
}

.auth-slot a.nav-user-chip.btn--primary,
.site-nav a.nav-user-chip.btn--primary {
  color: #0a0a0a !important;
}

.auth-slot a.nav-user-chip.btn--primary:hover,
.auth-slot a.nav-user-chip.btn--primary:focus,
.site-nav a.nav-user-chip.btn--primary:hover,
.site-nav a.nav-user-chip.btn--primary:focus {
  color: #0a0a0a !important;
  text-decoration: none !important;
}

.nav-user-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar--nav {
  width: 22px;
  height: 22px;
  border-width: 1.5px;
  border-color: rgba(10, 10, 10, 0.35);
  box-shadow: none;
  flex-shrink: 0;
}

.avatar-fallback--nav {
  font-size: 0.64rem;
  color: #39ff14;
}

/* Keep signed-in auth buttons in a row like www */
.auth-slot {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

/* ----- Phase A: profile polish ----- */
.panel--profile {
  background: linear-gradient(160deg, rgba(27, 94, 32, 0.18) 0%, var(--panel) 45%);
}

.avatar--lg {
  width: 104px;
  height: 104px;
}

.profile-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.profile-share-open {
  font-size: 0.9rem;
}

.avatar-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.avatar-upload-status {
  margin-top: 0 !important;
  color: var(--lime);
}

/* ----- Phase A: online now ----- */
.online-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  margin-left: 0.45rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(57, 255, 20, 0.15);
  border: 1px solid var(--lime);
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: middle;
  letter-spacing: 0;
  text-transform: none;
}

.online-empty {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.online-empty[hidden] {
  display: none !important;
}

.online-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.online-item {
  margin: 0;
}

.online-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.online-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  color: var(--headings);
  text-decoration: none !important;
  transition: background 0.15s ease;
}

.online-follow-btn {
  flex-shrink: 0;
  min-width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(57, 255, 20, 0.55);
  background: transparent;
  color: var(--lime);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.online-follow-btn:hover,
.online-follow-btn:focus {
  background: rgba(57, 255, 20, 0.12);
  outline: none;
}

.online-follow-btn.is-following {
  min-width: auto;
  padding: 0 0.7rem;
  border-color: rgba(102, 187, 106, 0.65);
  color: #9ae69a;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.online-follow-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.online-link:hover,
.online-link:focus {
  background: rgba(57, 255, 20, 0.08);
  color: var(--lime);
}

.avatar--sm {
  width: 40px;
  height: 40px;
  border-width: 1.5px;
  box-shadow: 0 0 10px rgba(50, 205, 50, 0.2);
}

.avatar-fallback--sm {
  font-size: 1rem;
}

.online-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.online-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-handle {
  font-size: 0.8rem;
  color: var(--link);
}

.online-dot {
  width: 8px;
  height: 8px;
  margin-right: 0.65rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  flex-shrink: 0;
}


/* ----- Phase B: feed + posts + likes ----- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.home-member-hero {
  margin-bottom: 1.25rem;
}

.home-hero-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin: 0.35rem 0 0.15rem;
}

.home-hero-identity h1 {
  margin: 0;
}


.avatar--hero {
  width: 84px;
  height: 84px;
  border-width: 2px;
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.28);
  flex-shrink: 0;
}

a.avatar--hero {
  text-decoration: none !important;
}

a.avatar--hero:hover,
a.avatar--hero:focus {
  box-shadow: 0 0 22px rgba(57, 255, 20, 0.5);
}

.avatar-fallback--hero {
  font-size: 1.85rem;
}

.compose-panel {
  margin-top: 0 !important;
  margin-bottom: 1.25rem;
  background: linear-gradient(145deg, rgba(27, 94, 32, 0.16), var(--panel) 55%);
}

.compose-panel textarea {
  min-height: 125px;
}

.compose-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.4rem;
}

.compose-meta .hint {
  margin: 0;
}

.compose-count {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--link);
}

.compose-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.compose-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 0.35rem;
}

.visibility-toggle {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(46, 125, 50, 0.85);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(13, 13, 13, 0.55);
}

.visibility-option {
  position: relative;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.visibility-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.visibility-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.25rem 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted, #9aa39a);
  transition: background 0.15s ease, color 0.15s ease;
}

.visibility-option input:checked + span {
  background: rgba(57, 255, 20, 0.16);
  color: var(--lime);
}

.visibility-option:hover span {
  color: var(--headings);
}

.visibility-option input:focus-visible + span {
  outline: 2px solid var(--lime);
  outline-offset: -2px;
}

.post-visibility-badge {
  display: inline-flex;
  align-items: center;
  margin: 0.55rem 0 0.15rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.55);
  color: var(--lime);
}

.join-feed-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.join-feed-prompt[hidden] {
  display: none !important;
}

.join-feed-prompt p {
  margin: 0;
  max-width: 36rem;
}

.join-feed-prompt strong {
  color: var(--headings);
}

.feed-shell {
  margin-top: 1.75rem;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.feed-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.feed-heading .panel-title {
  margin: 0;
}

.feed-status {
  margin: 0;
  padding: 1.25rem;
  text-align: center;
  border: 1px dashed var(--panel-border);
  border-radius: var(--radius);
  background: rgba(13, 13, 13, 0.55);
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.post-card {
  padding: 1.1rem 1.15rem 0.85rem;
  background: linear-gradient(150deg, rgba(27, 94, 32, 0.11), var(--panel) 42%);
  border: 1px solid rgba(46, 125, 50, 0.75);
  border-radius: var(--radius);
  box-shadow: 0 0 18px rgba(46, 125, 50, 0.08);
  min-width: 0;
  overflow-x: clip;
}

.post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: var(--headings);
  text-decoration: none !important;
}

a.post-author:hover,
a.post-author:focus {
  color: var(--lime);
}

.avatar--post {
  width: 46px;
  height: 46px;
  border-width: 1.5px;
  box-shadow: 0 0 12px rgba(50, 205, 50, 0.18);
}

.avatar-fallback--post {
  font-size: 1.1rem;
}

.post-author-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.post-author-name {
  max-width: 28rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
}

.post-author-handle {
  max-width: 28rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--link);
  font-size: 0.8rem;
}

.post-pending-deletion {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(180, 80, 40, 0.18);
  color: #c45c2a;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.post-time {
  flex-shrink: 0;
  padding-top: 0.15rem;
  color: var(--text);
  font-size: 0.78rem;
  white-space: nowrap;
}

.post-body {
  margin: 0.95rem 0 0.8rem;
  color: #dedee2;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.55rem;
  min-height: 2rem;
  min-width: 0;
  border-top: 1px solid rgba(46, 125, 50, 0.28);
  padding-top: 0.65rem;
}

.like-button {
  min-width: 4.2rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid rgba(102, 187, 106, 0.45);
  border-radius: 999px;
  background: transparent;
  color: var(--link);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease,
    box-shadow 0.15s ease;
}

.like-button:hover:not(:disabled),
.like-button:focus-visible:not(:disabled) {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(57, 255, 20, 0.08);
}

.like-button.is-liked {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(57, 255, 20, 0.1);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.12);
}

.like-button:disabled {
  cursor: default;
  opacity: 0.7;
}

/* Own-post delete: ghost/danger text, secondary to Like */
.delete-post-button {
  margin-left: auto;
  padding: 0.28rem 0.55rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(229, 115, 115, 0.78);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.delete-post-button:hover:not(:disabled),
.delete-post-button:focus-visible:not(:disabled) {
  color: var(--danger);
  background: var(--danger-bg);
  outline: none;
}


.delete-post-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

/* Own-post edit: sits left of Delete */
.edit-post-button {
  margin-left: auto;
  padding: 0.28rem 0.55rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(102, 187, 106, 0.85);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.edit-post-button:hover:not(:disabled),
.edit-post-button:focus-visible:not(:disabled) {
  color: var(--lime);
  background: rgba(57, 255, 20, 0.08);
  outline: none;
}

.edit-post-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

/* When Edit is present, Delete should not also pull margin-left */
.post-actions .edit-post-button + .delete-post-button {
  margin-left: 0;
}

/* Compose media picker */
.compose-media-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.15rem;
}

.compose-media-pick {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  margin: 0;
}

.compose-media-preview {
  margin-top: 0.55rem;
  padding: 0.45rem;
  border: 1px dashed rgba(46, 125, 50, 0.65);
  border-radius: var(--radius);
  background: rgba(13, 13, 13, 0.45);
}

.compose-media-preview[hidden] {
  display: none !important;
}

.compose-preview-media {
  max-height: 220px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 8px;
}

.compose-record-unsupported {
  margin: 0.35rem 0 0;
  color: var(--muted, #9e9e9e);
}

.compose-recorder {
  margin-top: 0.55rem;
  padding: 0.55rem;
  border: 1px solid rgba(46, 125, 50, 0.65);
  border-radius: var(--radius);
  background: rgba(8, 18, 9, 0.72);
  display: grid;
  gap: 0.5rem;
}

.compose-recorder[hidden] {
  display: none !important;
}

.compose-recorder-live {
  width: 100%;
  max-height: 280px;
  background: #000;
  border-radius: 8px;
  object-fit: cover;
}

.compose-recorder-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.compose-recorder-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #fff;
  background: #c62828;
  box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.55);
  animation: compose-rec-pulse 1.2s ease-in-out infinite;
}

.compose-recorder-label {
  font-size: 0.85rem;
  color: var(--muted, #9e9e9e);
}

.compose-recorder-status {
  margin: 0;
}

@keyframes compose-rec-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.45);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(198, 40, 40, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .compose-recorder-countdown {
    animation: none;
  }
}

/* Post media display */
.post-media-wrap {
  margin: 0.65rem 0 0.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(46, 125, 50, 0.45);
  background: #0a0a0a;
}

.post-media {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #0a0a0a;
}

.post-media--video {
  max-height: 420px;
}

/* Inline edit form */
.post-edit-form {
  margin: 0.75rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.post-edit-body {
  width: 100%;
  min-height: 100px;
  resize: vertical;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--headings);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
}

.post-edit-body:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.35);
}

.post-edit-toolbar {
  margin-top: 0;
}


@media (max-width: 640px) {
  .post-card {
    padding: 1rem 0.95rem 0.8rem;
  }

  .post-header {
    gap: 0.6rem;
  }

  .avatar--post {
    width: 40px;
    height: 40px;
  }

  .post-author-name,
  .post-author-handle {
    max-width: 12rem;
  }

  .post-actions {
    gap: 0.4rem;
  }

  .like-button,
  .repost-button,
  .comment-toggle {
    min-width: 0;
    padding: 0.28rem 0.55rem;
    font-size: 0.78rem;
  }

  .bookmark-button,
  .report-button,
  .pin-post-button {
    padding: 0.28rem 0.5rem;
    font-size: 0.72rem;
  }

  .pin-post-button__icon {
    font-size: 0.78rem;
  }

  .edit-post-button,
  .delete-post-button {
    margin-left: 0;
    padding: 0.28rem 0.4rem;
  }

  /* Owner cluster (Pin and/or Edit) stays on the right of a wrapped row */
  .post-actions .pin-post-button,
  .post-actions .edit-post-button {
    margin-left: auto;
  }

  .post-actions .pin-post-button + .edit-post-button,
  .post-actions .edit-post-button + .delete-post-button,
  .post-actions .pin-post-button + .edit-post-button + .delete-post-button {
    margin-left: 0;
  }
}

/* ----- Phase C: follows + comments ----- */

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin: 0.65rem 0 0.15rem;
  color: var(--text);
  font-size: 0.9rem;
}

.profile-stat strong {
  color: var(--headings);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-right: 0.25rem;
}

button.profile-stat--btn {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0.15rem 0.2rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  text-align: left;
}
button.profile-stat--btn:hover,
button.profile-stat--btn:focus {
  color: var(--lime);
  outline: none;
}
button.profile-stat--btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.35);
}
button.profile-stat--btn:hover strong,
button.profile-stat--btn:focus strong {
  color: var(--lime);
}

.profile-follow-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.profile-follow-primary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-follow-secondary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.follows-you-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--lime);
  border-radius: 999px;
  background: rgba(57, 255, 20, 0.12);
  color: var(--lime);
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.28);
}

.follows-you-badge[hidden] {
  display: none !important;
}

.profile-follow-row[hidden] {
  display: none !important;
}

.profile-follow-row .btn.is-following,
[data-follow-toggle].is-following {
  border-color: rgba(102, 187, 106, 0.55);
  color: var(--lime);
}

.comment-toggle {
  min-width: 4.2rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid rgba(102, 187, 106, 0.45);
  border-radius: 999px;
  background: transparent;
  color: var(--link);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease,
    box-shadow 0.15s ease;
}

.comment-toggle:hover,
.comment-toggle:focus-visible {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(57, 255, 20, 0.08);
  outline: none;
}

.comment-toggle.is-expanded {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(57, 255, 20, 0.1);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.12);
}

.comments-thread {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(46, 125, 50, 0.22);
}

.comments-status,
.comments-guest {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
}

.comments-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.comment-item {
  position: relative;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(46, 125, 50, 0.35);
  border-radius: 8px;
  background: rgba(13, 13, 13, 0.55);
}

.comment-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.comment-author {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  min-width: 0;
  color: var(--headings);
  text-decoration: none !important;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
}

a.comment-author:hover,
a.comment-author:focus {
  color: var(--lime);
}

.comment-author-handle {
  color: var(--link);
  font-size: 0.76rem;
  font-weight: 500;
}

.comment-time {
  flex-shrink: 0;
  color: var(--text);
  font-size: 0.72rem;
  white-space: nowrap;
}

.comment-body {
  margin: 0;
  color: #dedee2;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.delete-comment-button {
  margin-top: 0.45rem;
  padding: 0.15rem 0.4rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(229, 115, 115, 0.78);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.delete-comment-button:hover:not(:disabled),
.delete-comment-button:focus-visible:not(:disabled) {
  color: var(--danger);
  background: var(--danger-bg);
  outline: none;
}

.delete-comment-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.comment-compose {
  margin-top: 0.85rem;
}

.comment-compose textarea {
  min-height: 4.25rem;
  resize: vertical;
}

.comment-compose-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.35rem;
}

.comment-compose-actions {
  margin-top: 0.55rem;
}

@media (max-width: 640px) {
  .profile-stats {
    gap: 0.55rem 1rem;
  }

  .comment-item-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
}

/* ----- Admin → Users v1 ----- */
.admin-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* display:flex above must not override the hidden attribute (non-admins). */
.admin-shell[hidden],
[data-admin-ok][hidden],
[data-admin-denied][hidden],
[data-admin-loading][hidden] {
  display: none !important;
}

/* Sitewide: keep [hidden] winning over any later display: rules. */
[hidden] {
  display: none !important;
}

.admin-hero h1 {
  margin-bottom: 0.35rem;
}

.admin-panel {
  padding-top: 1.25rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.admin-toolbar .panel-title {
  margin: 0;
}

.admin-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 220px;
  max-width: 420px;
}

.admin-search input[type="search"] {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.admin-status {
  margin: 0 0 0.75rem;
}

.admin-empty {
  margin: 0.5rem 0 0;
}

.admin-user-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-user-item {
  margin: 0;
}

.admin-user-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: 8px;
  color: var(--headings);
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-user-link:hover,
.admin-user-link:focus {
  background: rgba(57, 255, 20, 0.08);
  border-color: rgba(57, 255, 20, 0.25);
  color: var(--lime);
}

.admin-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 0.15rem;
}

.admin-user-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}

.admin-user-handle {
  font-size: 0.85rem;
  color: var(--link);
}

.admin-user-dates {
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(57, 255, 20, 0.12);
  border: 1px solid var(--lime);
  color: var(--lime);
}

.admin-badge[hidden] {
  display: none !important;
}

.admin-online-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--lime);
  text-transform: none;
  letter-spacing: 0;
}

.admin-mod-note {
  margin: 1.1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(57, 255, 20, 0.15);
}

@media (max-width: 640px) {
  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-search {
    max-width: none;
  }
}

.admin-user-link--static {
  cursor: default;
  opacity: 0.92;
}

.admin-user-link--static:hover,
.admin-user-link--static:focus {
  background: transparent;
  border-color: transparent;
  color: var(--headings);
}


/* ----- Admin create account ----- */
.admin-create-lede {
  margin: 0.35rem 0 1rem;
}

.admin-create-form .form-row {
  margin-bottom: 0.85rem;
}

.admin-create-form .form-row label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-create-form .req {
  color: var(--lime);
}

.admin-create-form input {
  width: 100%;
  max-width: 420px;
}

.admin-create-form .hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
}

.admin-create-form .form-actions {
  margin-top: 0.5rem;
}

.admin-panel code {
  font-size: 0.85em;
}

/* ----- Phase D: direct messages ----- */
.dm-panel {
  padding-top: 1.25rem;
}

.dm-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.dm-heading .panel-title {
  margin: 0;
}

.dm-lede {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.dm-inbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dm-inbox-item {
  margin: 0;
}

.dm-inbox-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: 8px;
  color: var(--headings);
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dm-inbox-link:hover,
.dm-inbox-link:focus {
  background: rgba(57, 255, 20, 0.08);
  border-color: rgba(57, 255, 20, 0.25);
  color: var(--lime);
}

.dm-inbox-avatar {
  flex-shrink: 0;
}

.avatar--dm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 94, 32, 0.45);
  border: 1px solid rgba(57, 255, 20, 0.35);
}

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

.avatar--dm .avatar-fallback {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--lime);
}

.dm-inbox-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 0.15rem;
}

.dm-inbox-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.dm-inbox-handle {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--link);
}

.dm-inbox-snippet {
  font-size: 0.82rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-inbox-time {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--text);
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 0.15rem;
}

.dm-thread-panel {
  display: flex;
  flex-direction: column;
  min-height: min(70vh, 640px);
}

/* Author display:flex overrides UA [hidden]{display:none}; keep inbox-only until a thread is open */
.dm-thread-panel[hidden],
[data-dm-thread][hidden] {
  display: none !important;
}

.dm-thread-header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(46, 125, 50, 0.28);
}

.dm-thread-profile-link {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--link);
  text-decoration: none !important;
  white-space: nowrap;
  padding: 0.2rem 0.15rem;
}

.dm-thread-profile-link:hover,
.dm-thread-profile-link:focus {
  color: var(--lime);
}

.dm-thread-icon-btn {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(102, 187, 106, 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--link);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dm-thread-icon-btn:hover,
.dm-thread-icon-btn:focus {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(57, 255, 20, 0.08);
}

.dm-compose-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.dm-compose-row textarea {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  width: auto; /* override .field textarea { width:100% } so Send stays on-screen */
  margin: 0;
  box-sizing: border-box;
}

.dm-send-btn {
  flex: 0 0 auto;
  flex-shrink: 0;
  align-self: flex-end;
  white-space: nowrap;
}

.dm-back {
  flex-shrink: 0;
}

.dm-thread-identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.dm-thread-titles {
  min-width: 0;
}

.dm-thread-name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--headings);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-thread-handle {
  margin: 0.1rem 0 0;
  font-size: 0.82rem;
  color: var(--link);
}

.dm-thread-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  flex-shrink: 0;
}

.dm-message-list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  overflow-y: auto;
  max-height: min(48vh, 420px);
  scroll-behavior: smooth;
}

.dm-bubble {
  max-width: min(85%, 420px);
  padding: 0.55rem 0.75rem 0.4rem;
  border-radius: 12px;
  border: 1px solid rgba(46, 125, 50, 0.35);
  background: rgba(13, 13, 13, 0.7);
}

.dm-bubble--mine {
  align-self: flex-end;
  background: rgba(27, 94, 32, 0.35);
  border-color: rgba(57, 255, 20, 0.35);
}

.dm-bubble--theirs {
  align-self: flex-start;
}

.dm-bubble-body {
  margin: 0;
  color: #dedee2;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.dm-bubble-time {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.68rem;
  color: var(--text);
  text-align: right;
}
.dm-bubble-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.dm-bubble-footer .dm-bubble-time {
  margin-top: 0;
}

.dm-like-button {
  flex-shrink: 0;
  min-width: 0;
  padding: 0.12rem 0.45rem;
  border: 1px solid rgba(102, 187, 106, 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--link);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.dm-like-button:hover:not(:disabled),
.dm-like-button:focus-visible:not(:disabled) {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(57, 255, 20, 0.08);
}

.dm-like-button.is-liked {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(57, 255, 20, 0.1);
}

.dm-like-button:disabled {
  cursor: default;
  opacity: 0.65;
}

.dm-bubble--mine .dm-bubble-footer {
  flex-direction: row-reverse;
}


.dm-compose {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(46, 125, 50, 0.28);
}

.dm-compose textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.profile-dm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.profile-dm-row[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  /*
   * Messages mobile 20260923o (builds on 20260923n)
   * Screenshot / feedback vs n:
   *  1) Composer still pinched — almost no air above textarea (flush to last bubble) and
   *     meta/Send tight against fixed bottom nav (borders look clipped).
   *  2) Locked viewport (body overflow:hidden + 100dvh; only .dm-message-list scrolled)
   *     felt stuck / fought finger gestures.
   * Scroll model: document/page scroll again. Do NOT lock body height/overflow. Thread
   * panel + message list grow with content (no nested list scroller). Composer sits in
   * normal flow at the end with generous top/bottom padding so the rounded field + meta
   * clear the list edge and the fixed bottom nav. Search stays Inbox-only; one-row header.
   */
  .dm-thread-header {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
  }

  .dm-back {
    padding: 0.35rem 0.55rem;
    font-size: 0.75rem;
  }

  .dm-thread-identity {
    gap: 0.4rem;
    flex: 1 1 auto;
    min-width: 0;
  }

  .dm-thread-identity .avatar--dm {
    width: 32px;
    height: 32px;
  }

  .dm-thread-name {
    font-size: 0.92rem;
  }

  .dm-thread-handle {
    font-size: 0.72rem;
    margin-top: 0;
  }

  .dm-thread-actions {
    margin-left: 0;
  }

  .dm-inbox-link {
    align-items: flex-start;
  }

  body[data-dm-page] .chrome-strip-links {
    display: none !important;
  }

  body[data-dm-page] .dm-inbox-list {
    overflow: visible;
    touch-action: pan-y;
  }

  /* Open thread: unlock page scroll (no overflow/height lock). Bottom clearance lives on compose. */
  body[data-dm-page].dm-thread-open {
    overflow: visible;
    height: auto;
    min-height: 100svh;
    min-height: 100dvh;
    padding-bottom: 0;
  }

  body[data-dm-page].dm-thread-open.has-bottom-nav {
    padding-bottom: 0;
  }

  /* 20260928h: the site header (logo + hamburger) now stays visible on an open
     thread, like every other app page. It is sticky, so the page stays the only
     scroller; keep jump targets clear of it. */
  body[data-dm-page].dm-thread-open .dm-compose,
  body[data-dm-page].dm-thread-open .dm-thread-header {
    scroll-margin-top: calc(var(--header-height) + 0.5rem);
  }

  body[data-dm-page].dm-thread-open .site-footer {
    display: none;
  }

  /* Search stays on inbox; hide chrome when reading a thread to free height */
  body[data-dm-page].dm-thread-open .chrome-strip {
    display: none;
  }

  body[data-dm-page].dm-thread-open .app-main {
    display: block;
    max-width: none;
    width: 100%;
    padding: 0.4rem 0.65rem 0;
    overflow: visible;
    min-height: 0;
  }

  body[data-dm-page].dm-thread-open .status-line:not([hidden]),
  body[data-dm-page].dm-thread-open .alert:not([hidden]) {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
  }

  body[data-dm-page].dm-thread-open .dm-thread-panel {
    display: block;
    min-height: 0;
    max-height: none;
    margin: 0;
    padding: 0.55rem 0.65rem 0;
    border-radius: 10px 10px 0 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible; /* was overflow-x:hidden — clipped compose borders */
  }

  body[data-dm-page].dm-thread-open .dm-thread-header {
    margin-bottom: 0.35rem;
    padding-bottom: 0.35rem;
  }

  /* List grows with bubbles; page (not nested list) is the scroller */
  body[data-dm-page].dm-thread-open .dm-message-list {
    flex: none;
    min-height: 0;
    max-height: none;
    overflow: visible;
    -webkit-overflow-scrolling: auto;
    overscroll-behavior: auto;
    touch-action: pan-y;
    padding: 0.25rem 0 0.85rem; /* air before compose top border */
  }

  body[data-dm-page].dm-thread-open .dm-compose {
    margin-top: 0.35rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    gap: 0; /* override .form-stack gap — single field */
    background: var(--panel);
    /* Clear space above rounded textarea (not flush to last bubble / list edge) */
    padding-top: 0.85rem;
    /* Full compose block (textarea + meta + Send) clears fixed bottom nav with visible air */
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 1.75rem);
    border-top: 1px solid rgba(46, 125, 50, 0.28);
    overflow: visible; /* avoid clipping textarea/meta borders */
  }

  body[data-dm-page].dm-thread-open .dm-compose-field {
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body[data-dm-page].dm-thread-open .dm-compose-row {
    gap: 0.4rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body[data-dm-page].dm-thread-open .dm-compose textarea {
    min-height: 2.5rem;
    max-height: 22vh;
    resize: none;
    padding: 0.45rem 0.6rem;
    /* 16px minimum — iOS Safari zooms focused inputs under 16px */
    font-size: 16px;
    line-height: 1.35;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  body[data-dm-page].dm-thread-open .dm-send-btn {
    flex: 0 0 auto;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.5rem 0.85rem;
    min-height: 2.5rem;
  }

  body[data-dm-page].dm-thread-open .dm-compose-meta {
    margin-top: 0.4rem;
    margin-bottom: 0.15rem;
    gap: 0.5rem;
    max-width: 100%;
    min-width: 0;
  }

  body[data-dm-page].dm-thread-open .dm-compose-meta .hint {
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  body[data-dm-page].dm-thread-open .dm-compose-meta .compose-count {
    font-size: 0.68rem;
  }
}

/* Desktop / large: keep capped list height so thread panel stays sensible */
@media (min-width: 641px) {
  .dm-message-list {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .dm-compose-row textarea {
    min-height: 4.5rem;
  }

  .dm-send-btn {
    min-height: 2.75rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Desktop keeps outline Profile button look via link styling; icon refresh stays compact */
  .dm-thread-profile-link {
    font-size: 0.82rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    color: #fff;
  }

  .dm-thread-profile-link:hover,
  .dm-thread-profile-link:focus {
    border-color: #39ff14;
    color: #39ff14;
  }
}


/* ----- People panel: online / offline status ----- */
.people-subtitle {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.85rem;
}

.presence-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-right: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.presence-status-label {
  line-height: 1;
}

.presence-status--online {
  color: var(--lime);
}

.presence-status--offline {
  color: #7a857a;
}

.offline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b736b;
  box-shadow: none;
  flex-shrink: 0;
}

.online-item.is-offline .online-name {
  color: #b7c0b7;
}

.online-item.is-offline .online-handle {
  opacity: 0.75;
}

/* Keep status column aligned when follow button is absent (self / guest) */
.online-row .presence-status {
  min-width: 4.5rem;
  justify-content: flex-end;
}

/* ----- Repost button + nested card + composer ----- */
.repost-button {
  min-width: 4.2rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid rgba(102, 187, 106, 0.45);
  border-radius: 999px;
  background: transparent;
  color: var(--link);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease,
    box-shadow 0.15s ease;
}

.repost-button:hover:not(:disabled),
.repost-button:focus-visible:not(:disabled) {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(57, 255, 20, 0.08);
}

.repost-button.is-reposted {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(57, 255, 20, 0.1);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.12);
}

.repost-button:disabled {
  cursor: default;
  opacity: 0.7;
}

.post-card--repost {
  border-color: rgba(57, 255, 20, 0.35);
}

.repost-verb {
  margin-bottom: 0.35rem;
  color: var(--muted, #9aaa9a);
  font-size: 0.92rem;
}

.repost-note {
  margin: 0 0 0.65rem;
  padding: 0.15rem 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

.repost-embed {
  margin: 0.25rem 0 0.15rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(102, 187, 106, 0.4);
  border-radius: 12px;
  background: rgba(27, 94, 32, 0.12);
}

.repost-embed__head {
  margin-bottom: 0.35rem;
}

.repost-embed__author {
  color: var(--lime);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
}

.repost-embed__author:hover,
.repost-embed__author:focus {
  text-decoration: underline !important;
}

.repost-embed__body {
  margin: 0 0 0.45rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
}

.repost-embed__link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lime);
  text-decoration: none;
}

.repost-embed__link:hover,
.repost-embed__link:focus {
  text-decoration: underline;
}

.repost-embed__missing {
  margin: 0;
  font-size: 0.88rem;
}

.repost-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.repost-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.repost-modal__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 1.1rem 1.15rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(102, 187, 106, 0.45);
  background: var(--panel, #122012);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.repost-modal__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--lime);
}

.repost-modal__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  color: var(--text);
}

.repost-modal__note {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 4.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(102, 187, 106, 0.4);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  line-height: 1.4;
}

.repost-modal__note:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.18);
}

.repost-modal__count {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.78rem;
}

.repost-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* ----- Follow activity cards ----- */
.post-card--activity {
  background: linear-gradient(150deg, rgba(27, 94, 32, 0.06), var(--panel) 48%);
  border-style: dashed;
  border-color: rgba(46, 125, 50, 0.45);
  box-shadow: none;
}

.post-body--activity {
  font-size: 0.98rem;
  color: var(--text);
}

.activity-target-link {
  color: var(--lime);
  font-weight: 600;
  text-decoration: none !important;
}

.activity-target-link:hover,
.activity-target-link:focus {
  text-decoration: underline !important;
}

.post-actions--activity {
  justify-content: flex-end;
}

.hide-activity-button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #c5cfc5;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.hide-activity-button:hover,
.hide-activity-button:focus {
  border-color: rgba(255, 82, 82, 0.55);
  color: #ff8a80;
  outline: none;
}


/* ----- Admin edit any member ----- */
.admin-user-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
}

.admin-user-row .admin-user-link {
  flex: 1;
  min-width: 0;
}

.admin-user-actions {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.5rem 0.55rem 0;
  flex-shrink: 0;
}

.admin-user-item.is-editing {
  border: 1px solid rgba(57, 255, 20, 0.35);
  border-radius: 8px;
  background: rgba(57, 255, 20, 0.04);
}

.admin-edit-panel {
  margin: 0 0 1rem;
  padding: 1rem 1rem 0.85rem;
  border: 1px solid rgba(57, 255, 20, 0.28);
  border-radius: 10px;
  background: rgba(57, 255, 20, 0.05);
}

.admin-edit-heading {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.admin-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-member-actions {
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  .admin-user-row {
    flex-direction: column;
  }

  .admin-user-actions {
    padding: 0 0.75rem 0.7rem;
    width: 100%;
  }

  .admin-user-actions .btn {
    width: 100%;
  }
}

/* ----- Phase E ----- */
.site-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-style: solid;
  border-width: 0 0 3px 0;
  border-color: transparent;
  border-radius: 10px;
  background-color: #0b1a33;
  background-image:
    linear-gradient(#0b1a33, #0b1a33),
    linear-gradient(90deg, #b22234, #3c3b6e);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  background-repeat: no-repeat;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: normal; /* 20260928f: newlines render as <br> */
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.site-banner a,
.site-banner a.sn-link {
  color: #00E5FF;
  text-decoration: underline;
  text-decoration-color: rgba(0, 229, 255, 0.9);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.site-banner a:hover,
.site-banner a:focus {
  color: #ffffff;
  text-decoration-color: #00E5FF;
}

.site-banner a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 2px;
}

/* 20260928f: site notice codes — ~~small~~ and {colour}…{/colour} */
.site-banner small,
.site-banner .sn-small {
  font-size: 0.85em;
  opacity: 0.8;
}

.site-banner .sn-c--green { color: #39ff14; }
.site-banner .sn-c--white { color: #ffffff; }
.site-banner .sn-c--gold  { color: #ffd54a; }
.site-banner .sn-c--red   { color: #ff6b6b; }
.site-banner .sn-c--cyan  {
  color: #00E5FF;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.55);
}

/* Bold/italic inside a colour keep that colour. */
.site-banner .sn-c strong,
.site-banner .sn-c em {
  color: inherit;
}

/* A coloured link keeps its colour. */
.site-banner .sn-c a,
.site-banner a .sn-c {
  color: inherit;
}

.site-banner strong {
  font-weight: 700;
  color: #ffffff;
}

.site-banner em {
  font-style: italic;
  color: #ffffff;
}

/* ----- Admin Site notice editor ----- */
.admin-banner-panel {
  position: relative;
}

.admin-banner-form .admin-banner-textarea {
  width: 100%;
  max-width: none;
  min-height: 7rem;
  font-size: 1rem;
  line-height: 1.45;
  padding: 0.75rem 0.85rem;
  box-sizing: border-box;
}

.admin-banner-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0.55rem;
}

.admin-banner-chip {
  min-height: 2.5rem;
  min-width: 4.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.admin-banner-chip--icon {
  min-width: 2.75rem;
  padding: 0.55rem 0.8rem;
}

.admin-banner-color {
  min-height: 2.5rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(57, 255, 20, 0.45);
  background: rgba(0, 0, 0, 0.35);
  color: #d8ffd0;
  max-width: 9rem;
}

.admin-banner-chip-hint {
  margin: 0 0 0.5rem;
  line-height: 1.6;
}

.admin-banner-chip-hint code {
  font-size: 0.85em;
  padding: 0 0.25em;
  border-radius: 4px;
  background: rgba(57, 255, 20, 0.1);
  white-space: nowrap;
}

.admin-banner-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-top: 0.4rem;
}

.admin-banner-previews {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1rem 0 0.25rem;
}

@media (min-width: 720px) {
  .admin-banner-previews {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.admin-banner-preview-label {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--headings, #e8ffe8);
}

.admin-banner-live {
  margin-bottom: 0.35rem;
}

.admin-banner-phone {
  max-width: 280px;
  margin: 0 auto 0 0;
  border: 2px solid rgba(57, 255, 20, 0.35);
  border-radius: 28px;
  background: #0a0f0a;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.12);
}

.admin-banner-phone__chrome {
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}

.admin-banner-phone__notch {
  width: 4.5rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.admin-banner-phone__screen {
  padding: 0.65rem 0.7rem 1rem;
  min-height: 8rem;
}

.admin-banner-phone__screen .site-banner {
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  padding: 0.55rem 0.7rem;
}

.admin-banner-phone-feed {
  margin: 0.5rem 0 0;
  opacity: 0.55;
}

.admin-banner-actions {
  position: sticky;
  bottom: 0.75rem;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.65rem 0.15rem;
  background: linear-gradient(
    180deg,
    rgba(8, 14, 8, 0) 0%,
    rgba(8, 14, 8, 0.92) 28%,
    rgba(8, 14, 8, 0.98) 100%
  );
}

body.has-bottom-nav .admin-banner-actions {
  bottom: calc(var(--bottom-nav-height, 56px) + env(safe-area-inset-bottom, 0px) + 0.35rem);
}

.admin-banner-save {
  min-height: 2.75rem;
  min-width: 8rem;
  font-size: 0.95rem;
  padding: 0.7rem 1.35rem;
}

@media (max-width: 640px) {
  .admin-banner-form .admin-banner-textarea {
    font-size: 16px; /* avoid iOS zoom */
    min-height: 8rem;
  }

  .admin-banner-actions {
    bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    margin-left: -0.15rem;
    margin-right: -0.15rem;
    padding: 0.75rem 0.35rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }

  .admin-banner-save,
  .admin-banner-actions .btn {
    flex: 1 1 auto;
    min-height: 2.85rem;
  }

  .admin-banner-phone {
    max-width: 100%;
  }

  .admin-banner-chips {
    gap: 0.4rem;
  }

  .admin-banner-color {
    font-size: 16px; /* avoid iOS zoom */
  }
}

.search-panel .search-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.search-panel input[type="search"] {
  flex: 1;
  min-width: 12rem;
}

.search-section-title {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.95rem;
}

.search-people-list,
.search-posts-list,
.saved-list,
.admin-reports-list,
.admin-audit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-people-list li,
.search-posts-list li,
.saved-list li,
.admin-report-item,
.admin-audit-item {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mention-link {
  color: #39ff14;
  text-decoration: none;
  font-weight: 600;
}

.mention-link:hover,
.mention-link:focus {
  text-decoration: underline;
}

.bookmark-button,
.report-button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #c5cfc5;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.bookmark-button.is-saved {
  border-color: rgba(57, 255, 20, 0.45);
  color: #39ff14;
}

.report-button:hover,
.bookmark-button:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.admin-badge--banned {
  background: rgba(229, 115, 115, 0.2);
  color: #ff8a80;
  border: 1px solid rgba(229, 115, 115, 0.45);
}

.admin-user-actions {
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 16rem;
  justify-content: flex-end;
}

.admin-danger-btn {
  color: #ff8a80 !important;
}

.admin-report-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
}

.admin-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-hold-tag {
  display: table;
  background: #3a1414;
  color: #f3a0a0;
  font: 700 0.7rem/1.2 ui-monospace, Menlo, monospace;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  margin: 0.2rem 0;
}

.profile-website a {
  color: #39ff14;
}

.profile-restrict-row,
.profile-admin-mod-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.profile-restrict-row[hidden],
.profile-admin-mod-row[hidden] {
  display: none !important;
}

.danger-zone {
  border-color: rgba(229, 115, 115, 0.35) !important;
}

.danger-zone[hidden] {
  display: none !important;
}

.notif-wrap {
  position: relative;
}

.notif-bell {
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  padding: 0.25rem 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: 500;
}

.notif-bell-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.notif-bell-label {
  font-size: 15px;
  line-height: 1;
  color: #fff;
}

/* Badge sits on the icon, not the whole labeled button */
.notif-bell .notif-badge {
  right: auto;
  left: 1.05rem;
}

.notif-badge {
  position: absolute;
  top: -0.15rem;
  right: -0.25rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #e57373;
  color: #111;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notif-page-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.4rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #e57373;
  color: #111;
  font-size: 0.65rem;
  font-weight: 700;
  vertical-align: middle;
  line-height: 1;
}

.notif-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(0, 0, 0, 0.45);
}

.notif-backdrop[hidden],
.notif-panel[hidden] {
  display: none !important;
}

/* Body-mounted portal — fixed so .site-nav overflow cannot clip it */
.notif-panel {
  position: fixed;
  right: 1rem;
  top: calc(var(--header-height) + 0.5rem);
  width: min(22rem, 92vw);
  max-height: min(70vh, 24rem);
  overflow: auto;
  z-index: 1100;
  background: #0d140d;
  border: 1px solid rgba(57, 255, 20, 0.28);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  padding: 0.65rem 0.75rem;
}

@media (max-width: 640px) {
  .notif-panel {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    top: calc(var(--header-height) + 0.5rem);
    max-height: min(70vh, 24rem);
  }
}

@media (min-width: 641px) {
  .notif-backdrop {
    display: none !important;
  }
}

.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.notif-item {
  display: block;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notif-item.is-unread {
  background: rgba(57, 255, 20, 0.05);
}

.notif-item-link {
  display: block;
  padding: 0.55rem 0.25rem;
  color: #dedee2;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
}

/* Legacy: panel is body-mounted; keep in case links ever nest under nav */
.site-nav .notif-item-link {
  display: block;
  padding: 0.55rem 0.25rem;
  color: #dedee2;
  font-size: 0.86rem;
  font-weight: 500;
}

.notif-item-link:hover,
.site-nav .notif-item-link:hover {
  color: #39ff14;
}

.notif-item-text {
  display: block;
}

.notif-snippet {
  display: inline;
}

/* ----- Member chrome strip (Messages / Admin) ----- */
.chrome-strip {
  margin-bottom: 1rem;
}
.chrome-strip .mark {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--lime);
  margin-bottom: 0.35rem;
}
.chrome-strip-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
}
.chrome-search-results {
  margin-top: 0.75rem;
}
.profile-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
}

/* Admin tools tabs: one scrollable strip under the site header. Not a second bottom bar. */
body[data-admin-page] { --admin-tabs-h: 52px; }
.admin-tabs {
  position: sticky;
  top: var(--header-height);
  z-index: 40;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  min-height: var(--admin-tabs-h);
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.15rem;
  background: var(--bg);
  border-bottom: 1px solid var(--panel-border);
}
.admin-tabs a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--headings);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
}
.admin-tabs a[aria-current="page"] {
  color: #0a0a0a;
  background: var(--lime);
}
.admin-tab__badge {
  min-width: 1.2rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: #0a0a0a;
  color: var(--lime);
  font: 700 0.72rem/1.2 var(--font-heading, sans-serif);
  text-align: center;
}
.admin-tab-panel[hidden] { display: none !important; }
.admin-home {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 800px) {
  .admin-home { grid-template-columns: 1fr 1fr; }
}
.admin-home-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-height: 44px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--headings);
  text-decoration: none;
}
.admin-home-card:hover,
.admin-home-card:focus-visible {
  border-color: var(--lime);
  outline: none;
}
.admin-home-card__title { font-weight: 700; }
.admin-home-card__count {
  font: 700 1.45rem/1 var(--font-heading, sans-serif);
  color: var(--lime);
}
.admin-home-card__note {
  color: var(--text);
  font-size: 0.88rem;
}
.admin-hidden-news-row { margin: 0 0 0.75rem; }
.admin-hidden-news { min-height: 44px; }

/* ----- App icon bar (signed-in only; JS adds body.has-bottom-nav) -----
   Mobile + desktop when logged in. Guests never get the class, so desktop
   signed-out stays header/hamburger only. */
.bottom-nav {
  display: none;
}
body.has-bottom-nav .bottom-nav {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  padding: 0 0.25rem env(safe-area-inset-bottom, 0);
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  overflow: hidden;
  background: #0a120a;
  border-top: 1px solid var(--panel-border, #1b5e20);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.45);
  align-items: stretch;
  justify-content: space-between;
}
body.has-bottom-nav .bottom-nav[data-bottom-nav-count="6"] .bottom-nav__item {
  font-size: 0.6rem;
  padding-left: 0.05rem;
  padding-right: 0.05rem;
}
@media (max-width: 400px) {
  body.has-bottom-nav .bottom-nav[data-bottom-nav-count="6"] .bottom-nav__item > span:last-child {
    white-space: nowrap;
    letter-spacing: -0.02em;
  }
}
body.has-bottom-nav .bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-width: 0;
  padding: 0.25rem 0.15rem;
  color: #9a9aa0;
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
body.has-bottom-nav .bottom-nav__item:hover,
body.has-bottom-nav .bottom-nav__item:focus {
  color: var(--lime);
}
body.has-bottom-nav .bottom-nav__item.is-active,
body.has-bottom-nav .bottom-nav__item[aria-current="page"] {
  color: var(--lime);
}
body.has-bottom-nav .bottom-nav__icon {
  font-size: 1.15rem;
  line-height: 1;
}
body.has-bottom-nav .bottom-nav__icon--svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0;
}
body.has-bottom-nav .bottom-nav__icon--svg svg {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
}
body.has-bottom-nav button.bottom-nav__item {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: inherit;
  position: relative;
}
body.has-bottom-nav .bottom-nav__item > span:not(.bottom-nav__icon):not(.bottom-nav__icon-wrap):not(.bottom-nav__badge) {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.1;
}
body.has-bottom-nav .bottom-nav__icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
body.has-bottom-nav .bottom-nav__badge {
  position: absolute;
  top: -0.35rem;
  right: -0.55rem;
  margin: 0;
  min-width: 0.95rem;
  height: 0.95rem;
  padding: 0 0.2rem;
  font-size: 0.58rem;
  line-height: 0.95rem;
  z-index: 1;
}
body.has-bottom-nav {
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 0.5rem);
}
body.has-bottom-nav .site-footer {
  margin-bottom: 0.25rem;
}
/* Hamburger keeps Help + auth; primary destinations live on the icon bar */
body.has-bottom-nav [data-feed-nav],
body.has-bottom-nav [data-messages-nav],
body.has-bottom-nav [data-notif-nav] {
  display: none !important;
}
/* Desktop: full-width bar (same edge-to-edge as mobile), slightly roomier */
@media (min-width: 641px) {
  body.has-bottom-nav {
    --bottom-nav-height: 64px;
  }
  body.has-bottom-nav .bottom-nav {
    left: 0;
    right: 0;
    max-width: none;
    width: 100%;
    transform: none;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  body.has-bottom-nav .bottom-nav__item {
    font-size: 0.78rem;
    gap: 0.2rem;
  }
  body.has-bottom-nav .bottom-nav__icon {
    font-size: 1.75rem;
  }
  /* Messages / Profile use emoji glyphs — give them a bit more presence */
  body.has-bottom-nav [data-bottom-nav-messages] .bottom-nav__icon,
  body.has-bottom-nav [data-bottom-nav-profile] .bottom-nav__icon {
    font-size: 1.9rem;
    line-height: 1;
  }
  body.has-bottom-nav .bottom-nav__icon--svg,
  body.has-bottom-nav .bottom-nav__icon--svg svg {
    width: 1.7rem;
    height: 1.7rem;
  }
  body.has-bottom-nav .bottom-nav__badge {
    top: -0.4rem;
    right: -0.6rem;
  }

}

/* ----- Notifications panel close + actions ----- */
.notif-panel-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.notif-close {
  min-width: 2rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  font-size: 1rem;
  line-height: 1;
}

/* ----- Hide redundant For You/Messages top links on mobile (bottom nav covers them) ----- */
@media (max-width: 640px) {
  .chrome-strip-link--desktop,
  .profile-quick-links--desktop {
    display: none !important;
  }
}

/* ----- DM edit / delete ----- */
.dm-bubble-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.35rem;
}
.dm-edit-button,
.dm-delete-button {
  border: 0;
  background: transparent;
  color: #9a9aa0;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.1rem 0.25rem;
  border-radius: 4px;
}
.dm-edit-button:hover,
.dm-delete-button:hover,
.dm-edit-button:focus-visible,
.dm-delete-button:focus-visible {
  color: var(--lime, #39ff14);
  background: rgba(57, 255, 20, 0.08);
}
.dm-delete-button:hover,
.dm-delete-button:focus-visible {
  color: #e57373;
  background: rgba(229, 115, 115, 0.1);
}
.dm-bubble-edited {
  font-size: 0.68rem;
  margin-right: 0.35rem;
}


/* ----- Themed avatar packs (Edit profile) ----- */
.avatar-themes-field {
  margin-top: 0.35rem;
}
.avatar-themes-hint {
  margin: 0.15rem 0 0.65rem;
}
.avatar-theme-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.avatar-theme-tab {
  appearance: none;
  border: 1px solid var(--panel-border);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.avatar-theme-tab:hover,
.avatar-theme-tab:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
  outline: none;
}
.avatar-theme-tab.is-active {
  border-color: var(--lime);
  color: #000;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.35);
}
.avatar-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
@media (min-width: 480px) {
  .avatar-theme-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.avatar-theme-item {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.4rem 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--input-border);
  background: #141414;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.avatar-theme-item:hover,
.avatar-theme-item:focus-visible {
  border-color: var(--lime);
  outline: none;
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.25);
}
.avatar-theme-item.is-selected {
  border-color: var(--lime);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.35);
}
.avatar-theme-item:disabled {
  opacity: 0.65;
  cursor: wait;
}
.avatar-theme-thumb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #2a2a2a;
  background: #0a0a0a;
  flex-shrink: 0;
}
.avatar-theme-item.is-selected .avatar-theme-thumb {
  border-color: var(--lime);
}
.avatar-theme-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-theme-name {
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  color: #c8c8cc;
}
.avatar-theme-item.is-selected .avatar-theme-name {
  color: var(--lime);
}
.avatar-theme-status {
  display: block;
  margin-top: 0.55rem;
  color: var(--lime);
}


/* ---- Group Messages MVP (20260923s) ---- */
.dm-heading-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.dm-inbox-item--group .dm-inbox-link {
  border-left: 3px solid rgba(50, 205, 50, 0.45);
}

.dm-group-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(50, 205, 50, 0.12);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.dm-group-avatar--sm {
  width: 2.5rem;
  height: 2.5rem;
}

.dm-new-group-form {
  margin-top: 0.75rem;
}

.dm-group-search-results,
.dm-group-picked,
.dm-group-member-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}

.dm-group-search-results {
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  border-radius: 8px;
  max-height: 12rem;
  overflow: auto;
  background: var(--panel-bg, #0f1410);
}

.dm-group-search-hit {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  font: inherit;
}

.dm-group-search-hit:hover,
.dm-group-search-hit:focus {
  background: rgba(50, 205, 50, 0.12);
}

.dm-group-picked-item,
.dm-group-member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}

.dm-group-members {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.75rem;
  margin: 0.5rem 0 0.75rem;
  background: rgba(0,0,0,0.18);
}

.dm-group-members-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.dm-group-add {
  margin-top: 0.65rem;
}

.dm-group-add input[type="search"] {
  width: 100%;
  font-size: 16px;
}

.dm-bubble-sender {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
}

.label-like {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

@media (max-width: 640px) {
  body[data-dm-page].dm-thread-open .dm-group-panel .dm-compose textarea,
  body[data-dm-page].dm-thread-open [data-dm-group-compose] textarea {
    font-size: 16px;
  }
  body[data-dm-page].dm-thread-open .dm-group-panel .dm-compose {
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 1.75rem);
  }
}

/* ----- Profile Followers / Following list panel ----- */
.follow-list-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(0, 0, 0, 0.45);
}
.follow-list-backdrop[hidden],
.follow-list-panel[hidden] {
  display: none !important;
}
.follow-list-panel {
  position: fixed;
  right: 1rem;
  top: calc(var(--header-height, 3.5rem) + 0.5rem);
  width: min(22rem, 92vw);
  max-height: min(70vh, 28rem);
  overflow: auto;
  z-index: 1100;
  background: #0d140d;
  border: 1px solid rgba(57, 255, 20, 0.28);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  padding: 0.65rem 0.75rem;
}
@media (max-width: 640px) {
  .follow-list-panel {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    top: auto;
    bottom: calc(var(--bottom-nav-height, 3.5rem) + env(safe-area-inset-bottom, 0px) + 0.75rem);
    max-height: min(65vh, 28rem);
  }
}
.follow-list-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.follow-list-panel-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--headings, #f2f2f2);
}
.follow-list-status,
.follow-list-empty {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.88rem;
}
.follow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.follow-list-item {
  margin: 0;
}
.follow-list-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  color: var(--headings);
  text-decoration: none !important;
  transition: background 0.15s ease;
}
.follow-list-link:hover,
.follow-list-link:focus {
  background: rgba(57, 255, 20, 0.08);
  outline: none;
}
.follow-list-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.1rem;
}
.follow-list-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.follow-list-handle {
  font-size: 0.8rem;
  color: #9a9aa0;
}


/* ----- Signal Catcher WWW arcade promo ----- */
.signal-catcher-promo {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 10.5rem;
  margin-top: 1.25rem;
  padding: 1.35rem 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(57, 255, 20, 0.52);
  border-radius: var(--radius);
  background:
    linear-gradient(105deg, rgba(57, 255, 20, 0.1), transparent 50%),
    linear-gradient(180deg, rgba(13, 28, 14, 0.96), rgba(8, 12, 8, 0.98));
  box-shadow: inset 0 0 28px rgba(57, 255, 20, 0.06), 0 0 22px rgba(57, 255, 20, 0.08);
}

.signal-catcher-promo::before,
.signal-catcher-promo::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.signal-catcher-promo::before {
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 5px,
    rgba(57, 255, 20, 0.035) 6px,
    transparent 7px
  );
}

.signal-catcher-promo::after {
  top: 0;
  bottom: 0;
  left: 0.85rem;
  width: 1px;
  background: linear-gradient(transparent, rgba(57, 255, 20, 0.7), transparent);
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.4);
}

.signal-catcher-promo__content {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.signal-catcher-promo__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.4rem;
  color: var(--lime);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.signal-catcher-promo__dot {
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

.signal-catcher-promo h2 {
  margin: 0;
  color: var(--headings);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.15;
}

.signal-catcher-promo__content > p:not(.signal-catcher-promo__eyebrow) {
  max-width: 31rem;
  margin: 0.45rem 0 0.85rem;
  color: #b8c6b8;
  font-size: 0.9rem;
  line-height: 1.45;
}

.signal-catcher-promo .btn {
  white-space: nowrap;
}

.signal-catcher-promo__glyph {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  color: rgba(57, 255, 20, 0.2);
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 9vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.12em;
  line-height: 1;
  text-shadow: 0 0 22px rgba(57, 255, 20, 0.18);
  user-select: none;
}

.signal-catcher-promo__glyph span {
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.42em;
  letter-spacing: 0;
  vertical-align: top;
}

@media (max-width: 480px) {
  .signal-catcher-promo {
    align-items: flex-start;
    min-height: 0;
    padding: 1.15rem 1.15rem 1.2rem;
  }

  .signal-catcher-promo__glyph {
    position: absolute;
    right: 0.8rem;
    bottom: 0.65rem;
    font-size: 3.2rem;
  }

  .signal-catcher-promo__content > p:not(.signal-catcher-promo__eyebrow) {
    max-width: 18rem;
  }
}


/* ----- WWW hamburger parity (20260926j) -----
   Match www.rrmyers.com's mobile drawer:
   - ordinary nav items are full-width links with left text;
   - Help uses the same padded summary;
   - auth controls remain intrinsic-width pills, grouped from the left;
   - Alerts is an ordinary full-width, left-aligned drawer item. */
@media (max-width: 768px) {
  .site-nav > ul {
    align-items: stretch;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 1.25rem;
    text-align: left;
  }

  .nav-help-details > summary {
    display: block;
    padding: 0.65rem 1.25rem;
    text-align: left;
  }

  .auth-slot {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.55rem;
    margin-left: 0.5rem;
    padding: 0;
    text-align: left;
  }

  .auth-slot a.btn,
  .auth-slot button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    box-sizing: border-box;
    padding: 0.45rem 1.05rem;
    text-align: center;
  }

  .auth-slot .nav-user-chip,
  .site-nav .nav-user-chip {
    display: inline-flex !important;
    justify-content: center;
    width: auto;
    max-width: 160px;
  }

  .site-nav > ul > li:not(.auth-slot),
  .site-nav .notif-wrap {
    text-align: left;
  }

  .site-nav .notif-wrap {
    display: block;
    width: 100%;
  }

  .site-nav .notif-bell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1.25rem;
    text-align: left;
  }
}


/* ----- Signed-in @user submenu (20260926m) -----
   Order: Home, Help, "Logged in as" + lime @user chip (toggles a submenu
   styled like Help: For You, Messages, Me, Alerts, Admin Tools), Log out.
   The chip is a <summary>, so Enter/Space toggle natively; auth.js keeps
   aria-expanded in sync and Escape closes the submenu. */
.nav-user-menu {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-logged-as {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa39a;
  white-space: nowrap;
}

.nav-user-details {
  position: relative;
  margin-top: 0.15rem;
}

.nav-user-details > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.nav-user-details > summary::-webkit-details-marker {
  display: none;
}

.nav-user-details > summary::marker {
  content: "";
}

.nav-user-details > summary:focus-visible {
  outline: 2px solid #39ff14;
  outline-offset: 3px;
}

.nav-user-caret {
  flex-shrink: 0;
  font-size: 0.7em;
  line-height: 1;
  opacity: 0.75;
  transition: transform 0.15s ease;
}

.nav-user-details[open] .nav-user-caret {
  transform: rotate(180deg);
}

.nav-user-links a.nav-user-alerts {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}


.nav-user-links .nav-user-alerts__badge {
  margin-left: 0.1rem;
}

.nav-user-links .nav-user-alerts__badge[hidden] {
  display: none !important;
}

.nav-user-links a[aria-current="page"] {
  color: #39ff14 !important;
}

@media (min-width: 769px) {
  .nav-user-links {
    min-width: 12rem;
  }
}

/* Hamburger drawer: WWW-matching rows — label + submenu + Log out stack
   from the left; pills keep intrinsic width; submenu flows inline. */
@media (max-width: 768px) {
  .site-nav .auth-slot.auth-slot--member {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 0.55rem;
    margin-left: 0;
    padding: 0.35rem 1.25rem 0.25rem;
  }

  .nav-user-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    width: 100%;
  }

  .nav-user-details {
    width: 100%;
    margin-top: 0.2rem;
  }

  .nav-help-links,
  .nav-user-links {
    position: static;
    min-width: 0;
  }

  .nav-user-links {
    margin: 0.45rem 0 0.1rem;
  }

  .nav-user-links a.nav-user-alerts {
    display: flex;
  }
}

/* Desktop dropdowns: opaque panel so page content never bleeds through */
@media (min-width: 769px) {
  .nav-help-links,
  .nav-user-links {
    background: rgba(8, 18, 10, 0.97);
    backdrop-filter: blur(8px);
  }
}

/* ----- 20260928e: post permalink + share ----- */
.post-time-link {
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
}

.post-time-link:hover .post-time,
.post-time-link:focus-visible .post-time {
  color: var(--link);
  text-decoration: underline;
}

.post-time-link:focus-visible {
  outline: 1px solid var(--lime);
  outline-offset: 2px;
}

.post-actions--activity .rr-share-btn + .hide-activity-button {
  margin-left: auto;
}

.post-page-cta {
  text-align: center;
}

.post-page-cta p {
  margin: 0 0 0.75rem;
}

.post-page-cta .btn-row {
  justify-content: center;
}

.post-unavailable {
  text-align: center;
}

.post-unavailable h1 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.post-page-back {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
}

.dd-share-row .rr-share-btn {
  padding: 0.38rem 0.8rem;
}

/* 20260928e: pixel wordmark in the header */
.site-logo--img {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-logo--img img {
  display: block;
  height: 18px;
  width: auto;
  max-width: 60vw;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.55));
}

.site-logo--img span {
  line-height: 1;
}


/* ----- 20261002f: Bio hashtags + clearer tag empty state ----- */
.profile-bio .hashtag-link,
.profile-bio .mention-link {
  font-weight: 600;
}
.feed-status--empty-tag {
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(57, 255, 20, 0.35);
  border-radius: 10px;
  background: rgba(57, 255, 20, 0.04);
  color: rgba(230, 255, 230, 0.9);
}

/* ----- 20261002d: Hashtags + larger profile photo gallery (Admin Preview) ----- */
.hashtag-link {
  color: #39ff14;
  text-decoration: none;
  font-weight: 600;
}
.hashtag-link:hover,
.hashtag-link:focus {
  text-decoration: underline;
}

.tag-filter-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(57, 255, 20, 0.35);
  border-radius: 10px;
  background: rgba(57, 255, 20, 0.06);
}
.tag-filter-banner[hidden] {
  display: none !important;
}
.tag-filter-banner__text {
  font-size: 0.92rem;
}
.tag-filter-banner__text strong {
  color: var(--lime);
  font-weight: 700;
}

.tag-follow-btn {
  margin-left: auto;
}
.tag-follow-btn[hidden] {
  display: none !important;
}
.tag-follow-btn.is-following {
  border-color: rgba(57, 255, 20, 0.55);
  color: var(--lime);
}

.admin-preview-pill {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border: 1px solid rgba(57, 255, 20, 0.55);
  border-radius: 999px;
  color: var(--lime);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}
.admin-preview-pill[hidden] {
  display: none !important;
}

.compose-hashtag-hint[hidden] {
  display: none !important;
}

.profile-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* Admin Preview: noticeably larger current photo */
.avatar.avatar--preview-xl {
  width: 148px;
  height: 148px;
}
@media (max-width: 640px) {
  .avatar.avatar--preview-xl {
    width: 128px;
    height: 128px;
  }
}
.avatar.avatar--clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.avatar.avatar--clickable:hover,
.avatar.avatar--clickable:focus {
  transform: scale(1.03);
  box-shadow: 0 0 22px rgba(57, 255, 20, 0.4);
  outline: none;
}
.avatar.avatar--clickable:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
.avatar-admin-preview {
  max-width: 9rem;
  text-align: center;
}

.avatar-gallery-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgba(0, 0, 0, 0.62);
}
.avatar-gallery-backdrop[hidden],
.avatar-gallery[hidden] {
  display: none !important;
}
.avatar-gallery {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1200;
  width: min(34rem, 94vw);
  max-height: min(88vh, 40rem);
  overflow: auto;
  background: #0d140d;
  border: 1px solid rgba(57, 255, 20, 0.32);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  padding: 0.85rem 1rem 1rem;
}
.avatar-gallery-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
.avatar-gallery-title {
  margin: 0;
  flex: 1;
  font-size: 1.05rem;
}
.avatar-gallery-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.9rem;
  width: min(11rem, 56vw);
  height: min(11rem, 56vw);
  border-radius: 50%;
  border: 2px solid var(--lime);
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.28);
}
.avatar-gallery-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-gallery-fallback {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--lime);
}
.avatar-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.55rem;
}
.avatar-gallery-grid[hidden] {
  display: none !important;
}
.avatar-gallery-item {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 0.4rem;
  cursor: pointer;
  color: inherit;
  text-align: center;
}
.avatar-gallery-item:hover,
.avatar-gallery-item:focus {
  border-color: rgba(57, 255, 20, 0.45);
  outline: none;
}
.avatar-gallery-item.is-selected,
.avatar-gallery-item.is-current {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.35);
}
.avatar-gallery-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 0.35rem;
  background: #111;
}
.avatar-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-gallery-name {
  display: block;
  font-size: 0.68rem;
  line-height: 1.2;
  color: #c5cfc5;
}
.avatar-gallery-hint {
  margin: 0.75rem 0 0;
}
@media (max-width: 640px) {
  .avatar-gallery {
    top: auto;
    bottom: calc(var(--bottom-nav-height, 3.5rem) + env(safe-area-inset-bottom, 0px) + 0.5rem);
    transform: translate(-50%, 0);
    max-height: min(75vh, 36rem);
  }
}


/* ----- 20261002h: Live Updates Admin Tools ----- */
.admin-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  cursor: pointer;
}
.admin-check input {
  margin-top: 0.2rem;
}

/* --- 20261002o Admin Preview social pack --- */
.visibility-toggle {
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
}
.visibility-option--only-me input:checked + span,
.post-visibility-badge--only-me {
  background: rgba(232, 93, 117, 0.18);
  border-color: rgba(232, 93, 117, 0.45);
  color: #f3a8b4;
}
.post-visibility-badge--only-me {
  display: inline-block;
  margin: 0.25rem 0 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 93, 117, 0.45);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.post-only-me-admin-note {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: #f3a8b4;
  opacity: 0.95;
}
.post-pinned-bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  margin: 0.38rem 0 0.48rem;
  padding: 0.27rem 0.68rem 0.27rem 0.52rem;
  border: 1px solid rgba(110, 231, 183, 0.62);
  border-radius: 0.72rem 0.72rem 0.72rem 0.3rem;
  background: linear-gradient(135deg, rgba(110, 231, 183, 0.2), rgba(110, 231, 183, 0.09));
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #b8f4d5;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1;
  vertical-align: middle;
}
.post-pinned-bubble::after {
  content: "";
  position: absolute;
  left: 0.58rem;
  bottom: -0.27rem;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1px solid rgba(110, 231, 183, 0.62);
  border-bottom: 1px solid rgba(110, 231, 183, 0.62);
  background: rgba(25, 104, 75, 0.88);
  transform: rotate(45deg);
  pointer-events: none;
}
.post-pinned-bubble__icon {
  display: inline-flex;
  width: 0.93rem;
  height: 0.93rem;
  align-items: center;
  justify-content: center;
  color: #6ee7b7;
}
.post-pinned-bubble__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.post-pinned-bubble__label {
  white-space: nowrap;
}
.post-card--pinned {
  box-shadow: inset 2px 0 0 rgba(110, 231, 183, 0.72), 0 0 0 1px rgba(110, 231, 183, 0.06);
}

/* Pin: owner control on Me — matches bookmark chip, sits with Edit/Delete */
.pin-post-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin-left: auto;
  padding: 0.32rem 0.7rem;
  border: 1px solid rgba(110, 231, 183, 0.4);
  border-radius: 999px;
  background: transparent;
  color: #9aecc8;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.pin-post-button__icon {
  font-size: 0.85rem;
  line-height: 1;
}
.pin-post-button:hover:not(:disabled),
.pin-post-button:focus-visible:not(:disabled) {
  color: #c8f5dc;
  border-color: rgba(110, 231, 183, 0.7);
  background: rgba(110, 231, 183, 0.1);
  outline: none;
}
.pin-post-button.is-pinned {
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.75);
  background: rgba(110, 231, 183, 0.14);
}
.pin-post-button:disabled {
  cursor: wait;
  opacity: 0.6;
}
/* Keep Edit/Delete glued after Pin (Pin owns margin-left:auto) */
.post-actions .pin-post-button + .edit-post-button {
  margin-left: 0;
}
.post-actions .pin-post-button + .edit-post-button + .delete-post-button {
  margin-left: 0;
}

.post-url-link {
  color: #7dd3fc;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.post-url-link:hover {
  color: #bae6fd;
}
.compose-link-hint {
  opacity: 0.8;
}
/* The builders are opt-in panels. Keep the hidden attribute authoritative even
   though their visible state uses display:grid. */
.compose-poll[hidden],
.compose-link[hidden] {
  display: none !important;
}
.compose-poll {
  display: grid;
  gap: 0.4rem;
  margin: 0.55rem 0 0.25rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.35);
}
.compose-poll input[type="text"] {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.45);
  color: inherit;
  font: inherit;
}
.compose-link {
  display: grid;
  gap: 0.4rem;
  margin: 0.55rem 0 0.25rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px dashed rgba(125, 211, 252, 0.4);
  background: rgba(15, 23, 42, 0.35);
}
.compose-link input[type="url"],
.compose-link input[type="text"] {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.45);
  color: inherit;
  font: inherit;
}
.compose-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.compose-link-error {
  color: #f3a8b4;
  margin: 0;
}
[data-compose-link-toggle] .admin-preview-pill {
  margin-left: 0.25rem;
  font-size: 0.55rem;
  padding: 0.06rem 0.32rem;
}
.compose-poll__title-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #cbd5e1;
}
.compose-poll__title-label .required-mark {
  color: #f9a8d4;
  margin-left: 0.15rem;
}
.compose-poll__opts-hint {
  margin: 0.35rem 0 0;
  opacity: 0.85;
}
.compose-poll input[data-poll-title] {
  font-weight: 600;
}
.post-poll {
  margin: 0.55rem 0 0.25rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.4);
}
.post-poll__title {
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: #f1f5f9;
}
.post-poll__options {
  display: grid;
  gap: 0.4rem;
}
.post-poll__option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  overflow: hidden;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(2, 6, 23, 0.35);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.post-poll__option:disabled {
  cursor: default;
  opacity: 0.95;
}
.post-poll__option.is-chosen {
  border-color: rgba(110, 231, 183, 0.55);
}
.post-poll__option:not(:disabled):hover {
  border-color: rgba(125, 211, 252, 0.55);
}
.post-poll__label {
  position: relative;
  z-index: 1;
  font-weight: 550;
}
.post-poll__meta {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  opacity: 0.85;
  white-space: nowrap;
}
.post-poll__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(110, 231, 183, 0.14);
  pointer-events: none;
}
.post-poll__foot {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
}
.feed-new-since {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.35rem 0 0.75rem;
  flex-wrap: wrap;
}
.feed-new-since__line {
  flex: 1 1 2rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(125, 211, 252, 0.45),
    transparent
  );
}
.feed-new-since__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7dd3fc;
  white-space: nowrap;
}

.admin-live-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.admin-live-feature {
  border: 1px solid rgba(0, 255, 65, 0.18);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
}

.admin-live-feature__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.admin-live-feature__head .hint {
  margin: 0.2rem 0 0;
}

.admin-live-feature__status {
  margin: 0;
  text-align: right;
}

.admin-live-feature__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  align-items: flex-end;
  margin-top: 0.65rem;
}

.admin-live-feature__controls label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
}

.admin-live-feature__controls select,
.admin-live-feature__controls input[type="datetime-local"] {
  min-height: 2.25rem;
}

/* Homepage News promo controls (Admin Tools) */
.admin-home-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  margin: 0.35rem 0 0.85rem;
}

.admin-home-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.admin-home-note,
.admin-home-card,
.admin-teaser,
.admin-home-warnings,
.admin-home-search {
  min-width: 0;
  max-width: 100%;
}

.admin-home-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #ffd54f;
}

.admin-home-card {
  background: #0b120c;
  border: 2px solid rgba(57, 255, 20, 0.75);
  border-radius: 10px;
  padding: 0.7rem 0.8rem 0.75rem;
  color: #e4e7e4;
}

.admin-home-card--lead {
  border-left-width: 6px;
}

.admin-home-card__role,
.admin-home-card__kick {
  margin: 0;
  font: 700 0.68rem/1.3 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #39ff14;
}

.admin-home-card__role {
  margin-bottom: 0.2rem;
  color: #b7d4b7;
}

.admin-home-card h3 {
  margin: 0.25rem 0 0.4rem;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.admin-home-card--lead h3 {
  font-size: 1.28rem;
}

.admin-home-card__teaser,
.admin-home-card__src {
  margin: 0.35rem 0 0;
  color: #d5ddd6;
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-home-card__src {
  color: #a3aea6;
  font-size: 0.78rem;
}

.admin-home-warnings {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 193, 7, 0.55);
  background: rgba(255, 193, 7, 0.08);
  border-radius: 8px;
}

.admin-home-warnings[hidden] {
  display: none;
}

.admin-home-warnings li {
  margin: 0.25rem 0;
  color: #ffd54f;
  font-size: 0.88rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.admin-home-skip {
  margin: 0.35rem 0;
  color: #ffd54f;
  font-size: 0.85rem;
}

.admin-home-open {
  margin: 0.35rem 0 0.2rem;
}

.admin-home-open a {
  color: #39ff14;
  font-weight: 700;
}

.admin-home-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  max-width: none;
  margin: 0.35rem 0 0.75rem;
}

.admin-home-search input[type="search"] {
  flex: 1 1 12rem;
  min-width: 0;
  width: auto;
  margin: 0;
  color: var(--headings);
  background: var(--input-bg);
  border: 1px solid rgba(57, 255, 20, 0.45);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
}

.admin-teaser {
  flex: 1 0 100%;
  margin-top: 0.45rem;
}

.admin-teaser label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 700;
  color: #39ff14;
}

.admin-teaser textarea {
  display: block;
  width: 100%;
  max-width: 40rem;
  min-height: 4.5rem;
  resize: vertical;
  color: var(--headings);
  background: #141414;
  border: 1px solid rgba(57, 255, 20, 0.45);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font: 0.92rem/1.4 var(--font-body);
}

.admin-teaser textarea:focus {
  outline: 2px solid #39ff14;
  outline-offset: 1px;
}

.admin-teaser__count.is-over {
  color: #ff8a80;
  font-weight: 700;
}

@media (max-width: 640px) {
  .admin-home-preview {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-home-card--lead h3 {
    font-size: 1.12rem;
  }

  .admin-home-search .btn {
    flex: 1 1 auto;
  }
}

/* Homepage teaser collapsed state (Oct 10, 3:35 PM) */
.admin-teaser--saved .admin-teaser__label{margin:0;font-size:.78rem;opacity:.75;text-transform:uppercase;letter-spacing:.04em}
.admin-teaser__text{margin:.2rem 0;white-space:pre-wrap;overflow-wrap:anywhere}
.admin-teaser__ok{margin:0 0 .35rem;color:#3ddc84;font-weight:600;font-size:.85rem}
.admin-teaser__err{margin:.35rem 0;color:#ff6b6b;font-weight:600;font-size:.85rem}
.admin-teaser--empty{margin-top:.5rem}

/* Timed suspension. Translucent red bubble. White text stays readable on the red. */
.suspension-banner {
  margin: 0.75rem auto;
  max-width: 40rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: rgba(153, 27, 27, 0.82);
  color: #fff;
  text-align: center;
  line-height: 1.4;
  border: 1px solid rgba(255, 220, 220, 0.4);
}

.admin-user-actions {
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-suspend {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.45rem;
  width: 100%;
  padding: 0.15rem 0.5rem 0.65rem;
}

.admin-suspend label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.78rem;
}

.admin-suspend input,
.admin-suspend select {
  min-height: 2rem;
}
