* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #000;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #f1f1f1;
}

a {
  color: #45dd92;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: 100%;
  max-width: 770px;
  margin: 0 auto;
  padding: 0 12px;
}

.wrap.narrow {
  max-width: 520px;
  padding-top: 40px;
}

.columns {
  padding: 20px 0;
}

.main-col {
  width: 100%;
}

.box {
  background: #020603;
  border: 1px solid #303030;
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 12px;
}

.box > h1:first-child,
.box > h2:first-child,
.box > h3:first-child {
  margin-top: 0;
}

.section-title {
  color: #f1f1f1;
  margin: 0 0 10px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #d4d4d4;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-weight: normal;
}

.checkbox-label input {
  margin-top: 4px;
  flex-shrink: 0;
}

.checkbox-label.radio-inline {
  align-items: center;
  flex-wrap: wrap;
}

.checkbox-label.radio-inline input[type="radio"] {
  margin-top: 0;
}

.rules-list {
  padding-left: 20px;
  margin: 10px 0 16px;
}

.rules-list li {
  margin-bottom: 8px;
  line-height: 1.4;
}

.meta-page-rules .box ol {
  padding-left: 20px;
  margin: 10px 0 16px;
}

.meta-page-rules .box li {
  margin-bottom: 8px;
  line-height: 1.4;
}

.meta-page-about .box:first-of-type > h2:first-child {
  font-size: 28px;
  font-style: italic;
  color: #fff;
}

.meta-page blockquote {
  background: #161100;
  border: 1px solid #e0a64a;
  border-left: 4px solid #e0a64a;
  border-radius: 4px;
  padding: 12px 14px;
  margin: 8px 0;
  color: #f0d9a6;
  font-size: 13px;
  line-height: 1.5;
}

.meta-page blockquote p { margin: 0; }

.stats-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.stats-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #222;
}

.stats-list li:last-child {
  border-bottom: none;
}

.stats-list span {
  color: #a3a3a3;
  text-align: right;
}

.stats-list li > div {
  min-width: 0;
}

.stats-detail {
  display: block;
  color: #737373;
  font-size: 12px;
  margin-top: 2px;
  line-height: 1.4;
}

.stats-list span.stats-value {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.stats-missing {
  color: #c2704f;
}

.pronoun-picker {
  margin: 6px 0 14px;
}

.pronoun-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.pronoun-chip {
  background: #050505;
  border: 1px solid #222;
  color: #e5e5e5;
  border-radius: 999px;
  padding: 5px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.pronoun-chip:hover:not(:disabled) {
  border-color: #525252;
}

.pronoun-chip.selected {
  background: #071d10;
  border-color: #2a6d46;
  color: #d8f0e2;
}

.pronoun-chip:disabled {
  opacity: 0.35;
  cursor: default;
}

.pronoun-order:not(:empty) {
  display: inline-block;
  margin-left: 6px;
  min-width: 14px;
  padding: 0 4px;
  border-radius: 999px;
  background: #2fe28a;
  color: #000;
  font-size: 11px;
  line-height: 15px;
  text-align: center;
}

.pronoun-and {
  color: #737373;
  font-size: 12px;
  margin: 2px 0 6px;
}

.pronoun-preview {
  color: #a3a3a3;
  font-size: 13px;
  margin: 8px 0 0;
}

.yellow-card {
  background: #161100;
  border: 1px solid #e0a64a;
  border-left: 4px solid #e0a64a;
  border-radius: 4px;
  padding: 12px 14px;
  margin: 8px 0;
  color: #f0d9a6;
  font-size: 13px;
  line-height: 1.5;
}

.about-headline {
  font-size: 28px;
  font-style: italic;
  color: #fff;
  margin: 0 0 8px;
}

.about-subhead {
  font-size: 15px;
  color: #d4d4d4;
  margin: 0;
}

input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea {
  width: 100%;
  padding: 7px;
  border: 1px solid #262626;
  background: #000;
  color: #f1f1f1;
  border-radius: 3px;
  font-family: inherit;
  font-size: 14px;
  margin-top: 4px;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="number"]:focus, textarea:focus {
  outline: none;
  border-color: #2fe28a;
}

input[type="number"].input-inline {
  display: inline-block;
  width: 70px;
  margin: 0 4px;
}

select {
  width: 100%;
  padding: 7px;
  border: 1px solid #262626;
  background: #000;
  color: #f1f1f1;
  border-radius: 3px;
  font-family: inherit;
  font-size: 14px;
  margin-top: 4px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%237e8d97' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
  padding-right: 28px;
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: #2fe28a;
}

select.input-inline {
  display: inline-block;
  width: auto;
  margin: 0 4px;
}

.birthday-fields {
  margin-bottom: 10px;
}

.birthday-fields select.input-inline {
  margin: 0 8px 0 0;
}

textarea {
  resize: vertical;
  min-height: 50px;
}

small {
  display: block;
  color: #8a8a8a;
  margin: -6px 0 10px;
}

.btn-primary {
  background: #2fe28a;
  color: #062919;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}

.btn-primary:hover {
  background: #5eebab;
}

button:disabled,
.btn-primary:disabled,
.btn-danger:disabled {
  opacity: 0.55;
  cursor: default;
}

.btn-primary:disabled:hover {
  background: #2fe28a;
}

.btn-link {
  display: inline-block;
}

.btn-following {
  background: #050505;
  color: #45dd92;
  border: 1px solid #2fe28a;
}

.btn-following:hover {
  background: #101010;
  color: #45dd92;
}

.btn-danger {
  background: #e0444d;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}

.btn-danger:hover {
  background: #ff6b6b;
}

.box.danger-zone {
  border-color: #5c2026;
}

.box.settings-suspension-banner {
  border-color: #5c2026;
  color: #ff9aa2;
}

.settings-section p {
  color: #a3a3a3;
  font-size: 13px;
  margin: 0 0 10px;
}

.error {
  color: #ff6b6b;
  font-weight: bold;
}

.notice {
  color: #6bd48f;
  font-weight: bold;
}

.wrap > .error,
.wrap > .notice {
  margin-top: 0;
}

.pagination {
  text-align: center;
  margin: 12px 0 30px;
}

.error-details {
  text-align: left;
  margin-top: 20px;
  padding: 12px;
  background: #020603;
  border: 1px solid #303030;
  border-radius: 4px;
  color: #ff6b6b;
  font-size: 12px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.empty-state {
  color: #8a8a8a;
  text-align: center;
}

.session-entry {
  margin-bottom: 8px;
}

.session-entry--current {
  border-color: #2a6d46;
}

.session-entry__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.session-entry__header h3 {
  margin: 0;
  overflow-wrap: anywhere;
}

.session-entry__header form {
  flex-shrink: 0;
}

.session-current {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 7px;
  border: 1px solid #2a6d46;
  border-radius: 999px;
  color: #6bd48f;
  font-size: 11px;
  font-weight: normal;
  vertical-align: middle;
}

.session-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 0;
}

.session-details dt {
  color: #8a8a8a;
  font-size: 12px;
}

.session-details dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

@media (max-width: 600px) {
  .session-entry__header {
    flex-direction: column;
  }

  .session-details {
    grid-template-columns: 1fr;
    gap: 9px;
  }
}

@media (max-width: 600px) {
  body {
    -webkit-text-size-adjust: 100%;
  }

  .columns {
    padding: 12px 0;
  }

  .box {
    padding: 12px;
  }

  .about-headline {
    font-size: 23px;
  }

  .btn-primary,
  .btn-danger {
    padding: 10px 16px;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px;
  }
}

.rules-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rules-modal[hidden] {
  display: none;
}

.rules-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.rules-modal-box {
  position: relative;
  background: #000;
  border: 1px solid #262626;
  border-radius: 8px;
  width: 640px;
  max-width: 95vw;
  height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.rules-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid #262626;
  flex-shrink: 0;
}

.rules-modal-title {
  font-size: 14px;
  font-weight: bold;
  color: #f1f1f1;
}

.rules-modal-close {
  background: none;
  border: none;
  color: #8a8a8a;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  font-family: inherit;
}

.rules-modal-close:hover {
  color: #f1f1f1;
}

.rules-modal-iframe {
  flex: 1;
  width: 100%;
  border: none;
  background: #000;
}

.rules-modal-agree {
  padding: 12px;
  border-top: 1px solid #262626;
  flex-shrink: 0;
}
