@font-face {
  font-family: SmokedDisplay;
  src: url("/assets/smoked-display.ttf") format("truetype");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
.brand {
  font-family: SmokedDisplay, Arial, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.05em;
  background: linear-gradient(
    110deg,
    #719c7b 3%,
    #bce6b0 28%,
    #e2efd0 43%,
    #97d3a0 58%,
    #649374 82%,
    #bce6b0 100%
  );
  background-size: 260% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
  -webkit-text-stroke: 0.3px #b9d7ac33;
  animation:
    title-flow 10s linear infinite,
    title-breathe 7s ease-in-out infinite;
  position: relative;
}
.brand:after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: -17px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #87ba8b88, transparent);
  transform-origin: center;
  animation: title-line 7s ease-in-out infinite;
}
@keyframes title-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 260% 50%;
  }
}
@keyframes title-breathe {
  0%,
  100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 12px #75996212);
  }
  50% {
    transform: translateY(-4px);
    filter: drop-shadow(0 0 24px #91bc7335);
  }
}
@keyframes title-line {
  0%,
  100% {
    transform: scaleX(0.55);
    opacity: 0.35;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.85;
  }
}
.role-name {
  font-weight: 700;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.role-name--member {
  color: #adbdaf;
}
.role-name:not(.role-name--member) {
  display: inline-block;
  background-image: linear-gradient(
    105deg,
    var(--role-a) 3%,
    var(--role-b) 35%,
    #edf4e9 49%,
    var(--role-b) 61%,
    var(--role-a) 95%
  );
  background-size: 260% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
  animation: staff-name-flow 7s ease-in-out infinite;
}
.role-name--owner {
  --role-a: #82b98d;
  --role-b: #dfdea2;
}
.role-name--developer {
  --role-a: #73b4cf;
  --role-b: #b0e1ed;
}
.role-name--support {
  --role-a: #5ab89e;
  --role-b: #b1e6c7;
}
.role-name--moderator {
  --role-a: #a395ce;
  --role-b: #d3c1ed;
}
.role-avatar--owner {
  border: 1px solid #a7b979;
  box-shadow:
    0 0 0 3px #30462e,
    0 0 18px #8aaa6020;
}
.role-avatar--developer {
  border: 1px solid #75b9d0;
  box-shadow: 0 0 0 2px #23414b;
}
.role-avatar--support {
  border: 1px solid #6fc6ad;
  box-shadow: 0 0 0 2px #23493b;
}
.role-avatar--moderator {
  border: 1px solid #b29bd8;
  box-shadow: 0 0 0 2px #3d304f;
}
.staff-badge {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-transform: uppercase;
  margin: 0 0 4px;
  box-shadow: inset 0 1px 0 #ffffff08;
}
.staff-badge--owner {
  color: #dae7ad;
  border-color: #718451;
  background: #263622;
}
.staff-badge--developer {
  color: #ace0f1;
  border-color: #4f8395;
  background: #182d36;
}
.staff-badge--support {
  color: #ace3cc;
  border-color: #468874;
  background: #162e25;
}
.staff-badge--moderator {
  color: #dbcaed;
  border-color: #7a6597;
  background: #2a2036;
}
.staff-badge--member {
  color: #99b09f;
  border-color: #354c3b;
  background: #152018;
}
.staff-badge svg {
  width: 13px;
  height: 13px;
}
.staff-badge:not(.staff-badge--member) {
  animation: badge-breathe 5s ease-in-out infinite;
}
@keyframes staff-name-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes badge-breathe {
  0%,
  100% {
    filter: brightness(0.95);
  }
  50% {
    filter: brightness(1.15);
  }
}
.password-group {
  display: flex;
}
.password-group input {
  border-radius: 3px 0 0 3px;
}
.password-group button {
  border-radius: 0 3px 3px 0;
  border-left: 0;
  font-size: 13px;
  min-width: 62px;
  background: #142019;
}
.account-menu {
  position: relative;
}
.account-menu > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 14px;
}
.account-menu > summary::-webkit-details-marker {
  display: none;
}
.menu-chevron {
  font-size: 17px;
  line-height: 1;
  color: #7c9984;
}
.account-menu[open] .menu-chevron {
  transform: rotate(180deg);
}
.account-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 19px);
  z-index: 80;
  width: 280px;
  background: #0e1711;
  border: 1px solid #3b5542;
  border-radius: 5px;
  box-shadow: 0 16px 40px #0009;
  overflow: hidden;
}
.account-popover-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid #283c2f;
  background: radial-gradient(ellipse at 10% 0, #31523650, transparent 80%);
}
.account-popover-head > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}
.account-popover > a {
  display: block;
  white-space: normal;
  padding: 10px 18px;
  font-size: 14px;
  color: #a6bcad;
}
.account-popover > a:hover {
  background: #1e3325;
  text-decoration: none;
  color: #cfe3d5;
}
.account-popover .menu-logout {
  border-top: 1px solid #283c2f;
  color: #92b49e;
}
.account-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 24px;
}
.account-layout > div {
  min-width: 0;
}
.account-sidebar {
  height: max-content;
}
.account-sidebar > a {
  display: block;
  padding: 12px 16px;
  border-left: 2px solid transparent;
  font-size: 14px;
  color: #92aa99;
}
.account-sidebar > a.selected {
  color: #c6e3cd;
  background: #1a2c20;
  border-left-color: #8ab78e;
}
.invite-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.metric-card {
  background: linear-gradient(145deg, #18291c, #101710);
  border: 1px solid #314837;
  border-radius: 5px;
  padding: 19px;
}
.metric-card span {
  font-size: 13px;
  color: #8ca794;
  display: block;
}
.metric-card strong {
  font-size: 28px;
  font-weight: 650;
  color: #c3d8c8;
  display: block;
  margin-top: 5px;
}
.invite-allowance {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #97b19e;
  margin: 10px 0 20px;
}
.invite-table-wrap {
  overflow: auto;
}
.invite-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
  font-size: 13px;
}
.invite-table th {
  text-align: left;
  color: #90b19a;
  font-weight: 500;
  background: #0d160f;
  padding: 13px 15px;
  border-bottom: 1px solid #2d4533;
}
.invite-table td {
  padding: 15px;
  border-bottom: 1px solid #26392b;
  vertical-align: middle;
}
.invite-table tr:last-child td {
  border: 0;
}
.invite-table code {
  font-family: Consolas, monospace;
  font-size: 12px;
  white-space: nowrap;
  color: #acc5b1;
}
.invite-table small {
  display: block;
  font-size: 12px;
  color: #6e8b77;
  margin-top: 5px;
}
.invite-status {
  padding: 3px 7px;
  border: 1px solid #3c5643;
  border-radius: 3px;
  font-size: 12px;
  white-space: nowrap;
}
.status-used {
  color: #bacbbf;
  background: #1c2c21;
}
.status-available {
  color: #add4b5;
  background: #1e3725;
  border-color: #4a7255;
}
.status-expired,
.status-revoked {
  color: #bd9696;
  background: #2c1e20;
  border-color: #57393d;
}
.small-button {
  padding: 5px 10px;
  font-size: 12px;
}
.fresh-invite {
  border-color: #698359;
  background:
    radial-gradient(ellipse at 0 0, #2d49304d, transparent 75%), #101a13;
}
.fresh-invite button {
  margin-top: 14px;
}
.fresh-invite .copy-code {
  margin-top: 18px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #91b18f;
  margin-bottom: 6px;
}
.invited-by {
  font-size: 14px;
  color: #85a28f;
  margin-top: 18px;
}
.member-admin {
  border-bottom: 1px solid #293b2f;
}
.member-admin:last-child {
  border: 0;
}
.member-admin > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 18px 20px;
  cursor: pointer;
}
.member-admin > summary::-webkit-details-marker {
  display: none;
}
.member-admin > summary .staff-badge {
  margin-left: 9px;
}
.member-admin[open] > summary {
  background: #17251b;
}
.member-admin-body {
  padding: 20px;
  border-top: 1px solid #2a4131;
  background: #0c140e;
}
.member-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-bottom: 20px;
  font-size: 13px;
  color: #8da695;
}
.member-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.member-controls label,
.member-edit label {
  display: block;
  font-size: 14px;
  margin-bottom: 7px;
}
.control-inline {
  display: flex;
  gap: 8px;
}
.control-inline select,
.control-inline input {
  min-width: 0;
  flex: 1;
}
.control-inline button {
  flex: none;
}
.member-controls small {
  display: block;
  font-size: 12px;
  color: #7d9a87;
  margin-top: 5px;
}
.member-edit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 650px;
}
.member-edit textarea {
  min-height: 85px;
}
.member-edit button {
  justify-self: start;
  margin-top: 5px;
}
.member-danger-actions {
  margin-top: 20px;
  border-top: 1px solid #293c2f;
  padding-top: 18px;
}
.member-danger-actions button {
  font-size: 13px;
}
.member-admin[hidden] {
  display: none !important;
}
.shout-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.shout-heading span {
  font-size: 11px;
  color: #79ae8a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chat-log {
  min-height: 140px;
  max-height: 300px;
}
.shout-message {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 8px 0;
}
.shout-message > .avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
  flex: none;
  margin-top: 3px;
}
.shout-message > div {
  min-width: 0;
  flex: 1;
}
.shout-byline {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
}
.shout-byline .staff-badge {
  font-size: 9px;
  padding: 1px 5px;
  margin: 0;
}
.shout-byline time {
  font-size: 11px;
  color: #698775;
  margin-left: auto;
}
.shout-body {
  font-size: 14px;
  line-height: 1.6;
  color: #b2c3b8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 850px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-sidebar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
  }
  .account-sidebar .panel-title {
    width: 100%;
  }
  .account-sidebar > a {
    border-left: 0;
    border-bottom: 2px solid transparent;
    padding: 10px 14px;
  }
  .account-sidebar > a.selected {
    border-bottom-color: #8ab78e;
  }
}
@media (max-width: 650px) {
  .account-popover {
    right: -45px;
    top: calc(100% + 14px);
    width: min(290px, 85vw);
  }
  .account-menu > summary {
    font-size: 13px;
    max-width: 125px;
  }
  .account-menu > summary > .role-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .invite-metrics {
    gap: 8px;
  }
  .metric-card {
    padding: 13px 10px;
  }
  .metric-card span {
    font-size: 11px;
  }
  .metric-card strong {
    font-size: 24px;
  }
  .member-controls {
    grid-template-columns: 1fr;
  }
  .member-admin > summary,
  .member-admin-body {
    padding: 15px;
  }
  .member-admin > summary .staff-badge {
    display: inline-flex;
    margin-left: 5px;
  }
  .member-facts {
    flex-direction: column;
    gap: 7px;
  }
  .shout-byline time {
    margin-left: 0;
  }
  .shout-message > .avatar {
    width: 25px;
    height: 25px;
  }
  .shout-body {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand,
  .brand:after,
  .role-name,
  .staff-badge {
    animation: none !important;
    transform: none !important;
  }
}

.invite-role-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
}
.invite-role-picker select {
  width: auto;
  min-width: 150px;
}
.invited-by {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin: 1.25rem 0;
}
.referrer-label {
  color: var(--muted, #8aa391);
  font-size: 0.8rem;
}
.invite-metrics {
  gap: 0;
  border: 1px solid #2b3c30;
  border-radius: 4px;
  background: #101812;
}
.invite-metrics .metric-card {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 18px 20px;
}
.invite-metrics .metric-card span {
  display: block;
  padding-bottom: 11px;
  border-bottom: 1px solid #293b2e;
  font-size: 0.75rem;
  color: #9fcea9;
}
.invite-metrics .metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 600;
}
.invite-table th {
  font-size: 0.75rem;
  color: #a3d3ad;
}
.invite-table td {
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 0.85rem;
}
.invite-table code {
  font-size: 0.8rem;
  white-space: nowrap;
  color: #9caf9f;
}
.invite-table .role-badge {
  font-size: 0.65rem;
  white-space: nowrap;
}
.invite-row-actions {
  white-space: nowrap;
  text-align: right;
}
.invite-copy-link {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-height: 0;
  padding: 7px;
  border: 0;
  background: transparent;
  color: #91b79d;
  margin-right: 9px;
}
.invite-copy-link:hover {
  background: #243d2c;
  color: #c4eacf;
}
.invite-copy-link svg {
  width: 20px;
  height: 20px;
}
.invite-actions-heading {
  color: transparent !important;
}
.invite-link-fallback {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  min-width: 230px;
}
@media (max-width: 600px) {
  .invite-metrics .metric-card {
    padding: 13px;
  }
  .invite-metrics .metric-card span {
    font-size: 0.7rem;
  }
}
