/* ==========================================================================
   Enspyration - page layouts
   Home - Profile - Project - Post - Composer - FAQ - Settings
   ========================================================================== */

.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter) 72px;
}

/* ===================================================================== HOME */
.hero {
  display: flex;
  justify-content: center;
  padding: 26px var(--gutter) 30px;
  overflow: hidden;
  border-bottom: 1.5px solid var(--line-strong);
  background:
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.6px) 0 0 / 16px 16px,
    radial-gradient(60% 80% at 50% 42%, #6e6e6e 0%, #585858 48%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  width: min(660px, 92vw);
}

.hero-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28));
  animation: hero-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* tucked into the empty space left of the tail */
.hero-tag {
  position: absolute;
  left: 4%;
  bottom: 10%;
  width: 42%;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.4;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  animation: hero-in 0.6s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-tag strong {
  color: var(--yellow);
  font-weight: 600;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

.home-grid {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 256px;
  max-width: var(--page-max);
  margin: 0 auto;
}

.rail {
  min-width: 0;
}

.rail-left {
  border-right: 1.5px solid var(--line-strong);
}

.rail-right {
  border-left: 1.5px solid var(--line-strong);
}

@media (min-width: 1181px) {
  .rail-inner {
    position: sticky;
    top: var(--topbar-h);
    max-height: calc(100vh - var(--topbar-h));
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

.feed-col {
  min-width: 0;
  padding: 0 30px 56px;
}

.section {
  padding-bottom: 40px;
}

.section-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 -30px 22px;
  padding: 16px 30px 14px;
  border-bottom: 1.5px solid var(--line-strong);
}

.section + .section .section-bar {
  border-top: 1.5px solid var(--line-strong);
}

.section-bar h2 {
  margin-right: auto;
  font-size: 36px;
}

.mini-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 190px;
  height: 36px;
  padding: 0 10px;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg-sunk);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.mini-search:focus-within {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px var(--yellow-glow);
}

.mini-search .ico {
  width: 16px;
  height: 16px;
  color: var(--ink-3);
}

.mini-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 14px;
}

.following-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -6px 0 24px;
}

.following-strip .strip-label {
  flex: none;
  margin-right: 2px;
  color: var(--ink-3);
  font-size: 13px;
}

.feed-more {
  display: flex;
  margin: 28px auto 0;
}

.feed-count {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 13px;
  text-align: center;
}

.news {
  margin: 0;
  padding: 0 8px 14px;
  list-style: none;
}

.news a {
  display: flex;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  transition: background 0.15s;
}

.news a:hover {
  background: rgba(255, 255, 255, 0.07);
}

.news .ico {
  margin-top: 3px;
  color: var(--yellow);
}

.news strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.news a:hover strong {
  color: var(--yellow);
}

.news small {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.4;
}

/* ================================================== PROFILE + PROJECT shell */
.layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 270px;
  min-height: 60vh;
}

.layout.no-side {
  grid-template-columns: minmax(0, 1fr) 270px;
}

.layout.no-rail {
  grid-template-columns: 190px minmax(0, 1fr);
}

.layout.no-side.no-rail {
  grid-template-columns: minmax(0, 1fr);
}

.side-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 18px 0 0;
  border-right: 1.5px solid var(--line-strong);
}

.action {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.02em;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.action .ico {
  color: var(--yellow);
}

.action:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--yellow);
}

.content {
  min-width: 0;
  padding: 28px 32px 0;
}

.layout.no-side .content {
  padding-left: 0;
}

.layout.no-rail .content {
  padding-right: 0;
}

.content > section + section {
  margin-top: 46px;
}

.content > section[hidden] + section {
  margin-top: 0;
}

.side-rail {
  border-left: 1.5px solid var(--line-strong);
}

.side-rail .panel-head {
  padding-top: 26px;
}

/* ------------------------------------------------------------------ profile */
.profile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 40px 0 30px;
  border-bottom: 1.5px solid var(--line-strong);
}

.profile-head .avatar-xl {
  margin-top: 8px;
}

.profile-name {
  font-size: clamp(40px, 6vw, 66px);
}

.profile-handle {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 15px;
}

.profile-bio {
  max-width: 62ch;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 16px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 14px;
}

.stats strong {
  margin-right: 4px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}

.head-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: start;
  gap: 10px;
}

.head-actions .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.follow-note {
  max-width: 280px;
  color: var(--ink-3);
  font-size: 13px;
  text-align: right;
}

.follow-note a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line-mid);
}

.bday-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(238, 216, 46, 0.14);
  color: var(--yellow);
  font-size: 13px;
  font-weight: 600;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 0 12px 12px;
  border-bottom: 1px solid var(--line);
}

.tab {
  flex: 1;
  padding: 8px 4px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.tab .n {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.06);
}

.tab[aria-selected='true'] {
  background: var(--bg-sunk);
  color: var(--yellow);
  box-shadow: inset 0 -2px 0 var(--yellow);
}

.tab-panel {
  padding-top: 10px;
}

.tab-panel .panel-hint {
  padding-top: 2px;
}

/* ------------------------------------------------------------------ project */
.project-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 14px 0 28px;
  border-bottom: 1.5px solid var(--line-strong);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.swatch {
  --h: 48;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: hsl(var(--h) 55% 55%);
}

.project-title {
  margin-top: 8px;
  font-size: clamp(42px, 7vw, 78px);
}

.project-blurb {
  max-width: 62ch;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 16px;
}

/* --------------------------------------------------------------------- post */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  padding-top: 20px;
}

.post-media .thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
}

.post-media .cover-play {
  cursor: pointer;
}

.player {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--line-mid);
  border-radius: var(--radius);
  background: var(--bg-deep);
}

.play-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--yellow-ink);
}

.play-btn .ico {
  margin-left: 3px;
  fill: currentColor;
}

.player-track {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--line-mid);
}

.player-time {
  color: var(--ink-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.attachment-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 13px;
}

.post-kicker {
  margin-top: 26px;
}

.post-title {
  margin-top: 8px;
  font-size: clamp(34px, 4.6vw, 54px);
}

.post-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.byline-user {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
}

.byline-user strong {
  display: block;
  font-weight: 600;
}

.byline-user small {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
}

.byline-user:hover strong {
  color: var(--yellow);
}

.post-stats {
  display: flex;
  gap: 14px;
  color: var(--ink-3);
  font-size: 14px;
}

.post-stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.post-stats .ico {
  width: 17px;
  height: 17px;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.like-btn.is-on {
  border-color: #ff8fa3;
  color: #ff8fa3;
}

.like-btn.is-on .ico {
  fill: currentColor;
}

.post-body {
  max-width: 70ch;
  margin-top: 24px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.7;
  white-space: pre-line;
}

.post-body.is-text {
  padding: 28px 30px;
  border: 1.5px solid var(--line-mid);
  border-radius: var(--radius-lg);
  background: var(--bg-deep);
  color: var(--ink);
}

.event-box {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px 14px;
  max-width: 540px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-deep);
}

.event-box .ico {
  color: var(--yellow);
}

.event-box .btn {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 4px;
}

.shared-to {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--ink-3);
  font-size: 13px;
}

.post-side .panel {
  border: 1.5px solid var(--line-mid);
  border-radius: var(--radius);
  background: var(--bg-deep);
}

.post-side .panel + .panel {
  margin-top: 18px;
}

.post-side .panel-head h2 {
  font-size: 22px;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px 10px;
}

.post-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  transition: background 0.15s;
}

.post-row:hover {
  background: rgba(255, 255, 255, 0.07);
}

.post-row .mini {
  flex: none;
  width: 70px;
}

.post-row-text {
  min-width: 0;
}

.post-row strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-row:hover strong {
  color: var(--yellow);
}

.post-row small {
  color: var(--ink-3);
  font-size: 12px;
}

.follow-explainer {
  padding: 0 16px 16px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.5;
}

.follow-explainer .follow {
  margin-top: 12px;
}

/* ================================================================ COMPOSER */
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0 22px;
  border-bottom: 1.5px solid var(--line-strong);
}

.page-head h1 {
  font-size: clamp(40px, 6vw, 64px);
}

.page-head p {
  max-width: 60ch;
  margin-top: 6px;
  color: var(--ink-3);
}

.compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  padding-top: 26px;
}

.compose-main,
.compose-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.type-tab {
  position: relative;
}

.type-tab input {
  position: absolute;
  opacity: 0;
}

.type-tab span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 13px;
  border: 1.5px solid var(--line-mid);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.type-tab span .ico {
  width: 18px;
  height: 18px;
}

.type-tab:hover span {
  border-color: var(--yellow);
}

.type-tab input:checked + span {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--yellow-ink);
}

.type-tab input:focus-visible + span {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 28px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-deep);
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone:focus-within,
.dropzone.is-over {
  border-color: var(--yellow);
  background: rgba(238, 216, 46, 0.06);
}

.dropzone input[type='file'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone.has-file input[type='file'] {
  display: none;
}

.drop-empty .ico {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  color: var(--yellow);
}

.drop-empty h2 {
  font-size: 36px;
}

.drop-empty p {
  margin-top: 6px;
  color: var(--ink-3);
}

.drop-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.drop-preview img,
.drop-preview video {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--bg-sunk);
}

.drop-preview audio {
  width: 100%;
}

.file-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

.file-meta strong {
  display: block;
  overflow-wrap: anywhere;
}

.file-meta small {
  color: var(--ink-3);
}

.file-meta .row {
  display: flex;
  gap: 8px;
}

.event-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.event-fields .field:last-child {
  grid-column: 1 / -1;
}

.count-hint {
  align-self: flex-end;
  color: var(--ink-3);
  font-size: 12px;
}

.box {
  padding: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-deep);
}

.box > h2 {
  font-size: 24px;
}

.box > .hint {
  margin-top: 4px;
}

.box > .field {
  margin-top: 12px;
}

.share-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.share-item {
  padding: 10px 12px;
  border: 1.5px solid var(--line-mid);
  border-radius: 10px;
  transition: border-color 0.15s;
}

.share-item.is-on {
  border-color: var(--yellow);
}

.share-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
}

.check input {
  position: absolute;
  opacity: 0;
}

.check .box-ui {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  transition: background 0.15s, border-color 0.15s;
}

.check .box-ui .ico {
  width: 14px;
  height: 14px;
  stroke-width: 3.2;
  opacity: 0;
}

.check input:checked + .box-ui {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--yellow-ink);
}

.check input:checked + .box-ui .ico {
  opacity: 1;
}

.check input:focus-visible + .box-ui {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.site-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--c);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.share-item .text-btn {
  font-size: 13px;
}

.schedule {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-mid);
}

.share-item.is-on .schedule {
  display: block;
}

.when {
  display: flex;
  gap: 6px;
}

.when label {
  flex: 1;
}

.when input {
  position: absolute;
  opacity: 0;
}

.when span {
  display: block;
  padding: 6px 8px;
  border: 1.5px solid var(--line-mid);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.when input:checked + span {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(238, 216, 46, 0.08);
}

.when input:focus-visible + span {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.schedule-at {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.schedule-at[hidden] {
  display: none;
}

.schedule-at .input {
  height: 38px;
  padding: 6px 8px;
  font-size: 14px;
}

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

.tpl {
  position: relative;
  display: flex;
  min-height: 116px;
  border: 1.5px solid var(--line-mid);
  border-radius: 10px;
  background: var(--bg-sunk);
  transition: border-color 0.15s;
}

.tpl:hover,
.tpl:focus-within {
  border-color: var(--yellow);
}

.tpl-apply {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  text-align: left;
}

.tpl-apply strong {
  padding-right: 26px;
  font-size: 14px;
  font-weight: 600;
}

.tpl-apply span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-line;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.tpl.is-empty {
  border-style: dashed;
}

.tpl.is-empty .tpl-apply {
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  text-align: center;
}

.tpl-save {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.tpl-save .ico {
  width: 16px;
  height: 16px;
}

.compose-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compose-actions .btn {
  height: 46px;
  font-size: 15px;
}

/* ===================================================================== FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  padding-top: 30px;
}

.toc {
  position: sticky;
  top: calc(var(--topbar-h) + 22px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.toc a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--yellow);
}

.faq-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.faq-section:last-child {
  border-bottom: 0;
}

.faq-section h2 {
  margin-bottom: 14px;
  font-size: 38px;
}

.faq-section p,
.faq-section li {
  max-width: 68ch;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}

.faq-section p + p {
  margin-top: 12px;
}

.faq-section strong {
  color: var(--ink);
}

.badge-new {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* nested creator -> project -> folder diagram */
.nest {
  margin-top: 24px;
}

.nest-box {
  position: relative;
  padding: 30px 14px 14px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.12);
}

.nest-tag {
  position: absolute;
  top: -12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 4px;
  border-radius: 999px;
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.nest-tag em {
  color: var(--ink-3);
  font-style: normal;
  font-weight: 500;
}

.nest-creator {
  border-color: var(--yellow);
}

.nest-creator > .nest-tag {
  border-color: var(--yellow);
}

.nest-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 22px 14px;
}

.nest-project {
  background: var(--bg-deep);
}

.nest-folder {
  border-style: dashed;
  border-color: var(--line-mid);
}

.nest-posts {
  display: flex;
  gap: 6px;
}

.nest-posts .mini {
  width: 42px;
}

.levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.level {
  padding: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-deep);
}

.level .ico {
  width: 26px;
  height: 26px;
  color: var(--yellow);
}

.level h3 {
  margin-top: 10px;
  font-size: 24px;
}

.level p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
}

.qa {
  border-bottom: 1px solid var(--line);
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary .ico {
  color: var(--ink-3);
  transition: transform 0.15s;
}

.qa[open] summary .ico {
  transform: rotate(180deg);
}

.qa p {
  padding-bottom: 16px;
}

/* ================================================================ SETTINGS */
.settings {
  max-width: 900px;
  margin: 0 auto;
}

.settings-section {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.settings-section h2 {
  font-size: 28px;
}

.settings-section .lede {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 14px;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.site-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-mid);
  border-radius: 10px;
}

.site-row + .site-row {
  margin-top: 10px;
}

.site-row .site-name {
  flex: 1;
  font-weight: 600;
}

.site-row .status {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 400;
}

.site-row.is-linked {
  border-color: rgba(155, 226, 155, 0.5);
}

.site-row.is-linked .status {
  color: #a6e4a6;
}

.switch-list {
  display: grid;
  gap: 18px;
}

.switch small {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
}

.settings-save {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 0;
  background: linear-gradient(transparent, var(--bg) 35%);
}

/* ============================================================== RESPONSIVE */
@media (max-width: 1180px) {
  .home-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    grid-template-rows: auto 1fr;
  }

  .feed-col {
    grid-column: 1;
    grid-row: 1 / span 2;
    padding-left: var(--gutter);
  }

  .section-bar {
    margin-left: calc(-1 * var(--gutter));
    padding-left: var(--gutter);
  }

  .rail-right {
    grid-column: 2;
    grid-row: 1;
  }

  .rail-left {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    border-right: 0;
    border-left: 1.5px solid var(--line-strong);
    border-top: 1.5px solid var(--line-strong);
  }

  .layout,
  .layout.no-side {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .layout .side-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 18px 0 0;
    border-right: 0;
  }

  .layout .side-actions .action {
    width: auto;
    border: 1.5px solid var(--line-mid);
    font-size: 18px;
    padding: 8px 14px;
  }

  .layout .content {
    padding-left: 0;
  }

  .layout.no-rail {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .post-layout,
  .compose {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout,
  .layout.no-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout .content {
    padding-right: 0;
  }

  .side-rail {
    margin-top: 40px;
    border-left: 0;
    border-top: 1.5px solid var(--line-strong);
  }

  .side-rail .panel-head {
    padding-left: 0;
  }

  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .toc a {
    border: 1px solid var(--line-mid);
    font-size: 14px;
  }
}

@media (max-width: 820px) {
  .home-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .feed-col,
  .rail-left,
  .rail-right {
    grid-column: auto;
    grid-row: auto;
  }

  .feed-col {
    order: -1;
    padding: 0 var(--gutter) 24px;
  }

  .following-strip {
    flex-wrap: nowrap;
    margin-right: calc(-1 * var(--gutter));
    padding-right: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .following-strip::-webkit-scrollbar {
    display: none;
  }

  .following-strip .chip {
    flex: none;
  }

  .section-bar {
    margin: 0 calc(-1 * var(--gutter)) 20px;
    padding: 14px var(--gutter) 12px;
  }

  .rail-left,
  .rail-right {
    border: 0;
    border-top: 1.5px solid var(--line-strong);
  }

  .rail-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .rail-inner .panel + .panel {
    border-top: 0;
  }

  .profile-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .head-actions {
    grid-column: 1 / -1;
    align-items: flex-start;
  }

  .head-actions .row {
    justify-content: flex-start;
  }

  .follow-note {
    text-align: left;
  }

  .settings-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .levels {
    grid-template-columns: minmax(0, 1fr);
  }

  .templates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 18px;
    padding-bottom: 22px;
  }

  .hero-tag {
    position: static;
    width: auto;
    margin-top: 6px;
    font-size: 15px;
    text-align: center;
  }

  .section-bar h2 {
    width: 100%;
    font-size: 30px;
  }

  .mini-search {
    flex: 1;
    width: auto;
  }

  .profile-head {
    gap: 18px;
    padding-top: 28px;
  }

  .profile-head .avatar-xl {
    --size: 84px;
  }

  .post-body.is-text {
    padding: 20px;
  }

  .event-fields,
  .two {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-save .btn {
    flex: 1;
  }
}

.post-media [data-play] {
  border-radius: var(--radius-lg);
  cursor: pointer;
}

.post-media [data-play]:hover .cover-play {
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--yellow);
}

/* ------------------------------------------------------- sign in / sign up */
.auth-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 16px;
  background:
    radial-gradient(90% 60% at 50% -10%, rgba(238, 216, 46, 0.12), transparent 70%),
    var(--bg);
}

.auth-card {
  width: min(100%, 470px);
  padding: 32px 30px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-deep);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.auth-logo {
  display: block;
  width: min(300px, 82%);
  height: auto;
  margin: 0 auto 6px;
}

.auth-logo-sm {
  width: min(170px, 50%);
  margin-bottom: 18px;
}

.auth-tag {
  margin: 0 0 26px;
  color: var(--ink-2);
  text-align: center;
}

.auth-tag strong {
  color: var(--yellow);
}

.auth-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
}

.auth-note {
  margin: 0 0 20px;
  color: var(--ink-3);
  text-align: center;
}

.auth-alert {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1.5px solid var(--line-mid);
  border-radius: 10px;
  font-size: 14.5px;
}

.auth-alert.is-error {
  border-color: rgba(255, 164, 148, 0.6);
  background: rgba(255, 164, 148, 0.1);
  color: #ffd0c7;
}

.auth-alert.is-info {
  border-color: rgba(166, 228, 166, 0.5);
  background: rgba(166, 228, 166, 0.08);
  color: #cdeccd;
}

.dev-banner {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1.5px dashed rgba(238, 216, 46, 0.55);
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 13.5px;
}

.auth-providers {
  display: grid;
  gap: 10px;
}

.auth-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1.5px solid var(--line-mid);
  border-radius: var(--radius);
  background: var(--menu);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.auth-btn:hover,
.auth-btn[aria-expanded="true"] {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, var(--menu));
}

.auth-btn .auth-btn-end {
  margin-left: auto;
  color: var(--ink-3);
}

.auth-btn[aria-expanded="true"] .auth-btn-end {
  transform: rotate(180deg);
}

.auth-bsky {
  display: grid;
  gap: 8px;
}

.bsky-form {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1.5px solid var(--line-mid);
  border-radius: var(--radius);
  background: var(--bg-sunk);
}

.bsky-row {
  display: flex;
  gap: 8px;
}

.bsky-row .input {
  flex: 1;
  min-width: 0;
}

.bsky-row .btn {
  flex: none;
  height: 44px;
}

.auth-resume {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--yellow);
  border-radius: var(--radius);
  background: rgba(238, 216, 46, 0.08);
}

.auth-resume strong {
  color: var(--yellow);
}

.auth-fine {
  margin: 22px 0 0;
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.55;
  text-align: center;
}

.auth-provider-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.auth-provider-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
}

.auth-card .lede {
  margin: 0 0 18px;
  color: var(--ink-3);
}

.auth-card code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--bg-sunk);
}

.auth-card .row,
.setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* sign-in page: wide two-column card that fits one screen */
.auth-card.auth-wide {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  width: min(100%, 1060px);
  padding: 0;
  overflow: hidden;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
  border-right: 1.5px solid var(--line-mid);
  background: radial-gradient(120% 80% at 0% 0%, rgba(238, 216, 46, 0.1), transparent 60%), var(--bg-sunk);
}

.auth-brand .auth-logo {
  width: min(330px, 100%);
  margin: 0 auto 10px;
}

.auth-brand .auth-tag {
  margin-bottom: 28px;
  font-size: 16px;
}

.auth-points {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.45;
}

.auth-points .ico {
  margin-top: 1px;
  color: var(--yellow);
}

.auth-points strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.auth-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 40px;
}

.auth-wide .auth-title,
.auth-wide .auth-note {
  text-align: left;
}

.auth-wide .auth-providers {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-wide .auth-btn {
  gap: 10px;
}

.auth-wide .auth-bsky {
  display: contents;
}

.auth-wide .bsky-form,
.auth-wide .auth-resume,
.auth-wide .auth-providers > p {
  grid-column: 1 / -1;
}

.auth-btn-label {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-btn-label {
  line-height: 1.2;
}

.auth-sim {
  display: block;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dev-banner .auth-sim {
  display: inline;
}

.auth-wide .auth-fine {
  margin-top: 18px;
  text-align: left;
}

@media (max-width: 1000px) {
  .auth-wide .auth-btn .auth-btn-end {
    display: none;
  }
}

@media (max-width: 820px) {
  .auth-card.auth-wide {
    grid-template-columns: 1fr;
    width: min(100%, 520px);
  }

  .auth-brand {
    padding: 24px 24px 20px;
    border-right: 0;
    border-bottom: 1.5px solid var(--line-mid);
  }

  .auth-brand .auth-logo {
    width: min(220px, 70%);
  }

  .auth-brand .auth-tag {
    margin-bottom: 0;
  }

  .auth-points {
    display: none;
  }

  .auth-main {
    padding: 24px;
  }
}

@media (max-width: 340px) {
  .auth-wide .auth-providers {
    grid-template-columns: 1fr;
  }
}

/* welcome / finish setup */
.setup {
  display: grid;
  gap: 18px;
}

.setup .auth-title,
.setup .auth-note {
  margin: 0;
}

.setup-who {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  color: var(--ink-2);
  font-weight: 600;
}

.setup-avatar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1.5px solid var(--line-mid);
  border-radius: var(--radius);
}

.setup-avatar .avatar-xl {
  --size: 84px;
}

.setup-avatar .hint {
  margin: 6px 0 0;
}

.choice {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice legend {
  margin-bottom: 8px;
  padding: 0;
}

.choice-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-mid);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.choice-opt:has(input:checked) {
  border-color: var(--yellow);
  background: rgba(238, 216, 46, 0.07);
}

.choice-opt:has(input:focus-visible) {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.choice-opt.is-disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.choice-opt input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--yellow);
}

.choice-opt strong {
  display: block;
  overflow-wrap: anywhere;
}

.choice-opt small {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 13.5px;
}

.input-at {
  position: relative;
}

.input-at > span {
  position: absolute;
  top: 50%;
  left: 13px;
  color: var(--ink-3);
  transform: translateY(-50%);
  pointer-events: none;
}

.input-at .input {
  padding-left: 30px;
}

.username-status {
  min-height: 1.2em;
  font-size: 13.5px;
}

.username-status.is-ok {
  color: #a6e4a6;
}

.username-status.is-bad {
  color: #ffa494;
}

.suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.suggest .chip {
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
}

/* welcome page: same wide card as sign-in */
.auth-setup.auth-wide {
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  width: min(100%, 980px);
}

.setup-form {
  display: contents;
}

.setup-side {
  align-items: center;
  gap: 14px;
  text-align: center;
}

.setup-side .auth-logo {
  width: min(200px, 75%);
  margin: 0 0 6px;
}

.setup-side .avatar-xl {
  --size: 132px;
}

.setup-side .check {
  flex: none;
}

.setup-side .hint {
  max-width: 240px;
  margin: -6px 0 0;
}

.auth-setup .setup {
  align-content: center;
  gap: 16px;
}

.auth-setup .choice {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-setup .choice-opt {
  height: 100%;
}

@media (max-width: 820px) {
  .auth-setup.auth-wide {
    grid-template-columns: 1fr;
  }

  .setup-side {
    gap: 10px;
  }

  .setup-side .auth-logo {
    width: min(150px, 50%);
  }

  .setup-side .avatar-xl {
    --size: 88px;
  }
}

@media (max-width: 560px) {
  .auth-setup .choice {
    grid-template-columns: 1fr;
  }
}

/* settings: picture + connected accounts */
.avatar-field {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar-field .avatar-xl {
  --size: 96px;
}

.avatar-field .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 6px;
}

.file-btn {
  position: relative;
  cursor: pointer;
}

.file-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file-btn:focus-within {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

#sites .hint {
  margin: 10px 0 0;
}

.site-row .btn[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

/* post page: real uploads */
.post-img {
  display: block;
}

.post-img img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1.5px solid var(--line-mid);
  border-radius: var(--radius-lg);
  background: var(--bg-sunk);
}

.post-video {
  display: block;
  width: 100%;
  max-height: 78vh;
  border: 1.5px solid var(--line-mid);
  border-radius: var(--radius-lg);
  background: #000;
}

.post-audio {
  display: block;
  width: 100%;
  margin-top: 12px;
}

.site-badge-sm {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
}

.shared-to .hint {
  flex-basis: 100%;
  margin: 4px 0 0;
}

.dropzone.is-invalid {
  border-color: #ff8a7a;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 26px 18px;
  }

  .auth-title {
    font-size: 24px;
  }

  .avatar-field {
    align-items: flex-start;
  }

  .avatar-field .avatar-xl {
    --size: 72px;
  }
}

/* ======================================================= ROLES, EDITING, STAFF */

/* staff badges: Owner / Co-Owner / Site Moderator */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  padding: 2px 10px 2px 7px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: rgba(124, 196, 255, 0.12);
  color: #8fcdff;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  vertical-align: middle;
  white-space: nowrap;
}

.role-badge .ico {
  width: 14px;
  height: 14px;
}

.role-badge.role-owner {
  background: rgba(238, 216, 46, 0.12);
  color: var(--yellow);
}

.role-badge.role-coowner {
  background: rgba(255, 179, 107, 0.12);
  color: #ffb86e;
}

.role-badge-sm {
  margin-left: 6px;
  padding: 0 7px 0 5px;
  font-size: 11px;
}

.role-badge-sm .ico {
  width: 12px;
  height: 12px;
}

/* destructive buttons */
.btn-danger {
  border-color: rgba(255, 138, 122, 0.7);
  color: #ffb3a8;
}

.btn-danger:hover {
  border-color: #ff8a7a;
  background: rgba(255, 138, 122, 0.12);
}

.btn-danger-solid {
  border-color: #cf3d29;
  background: #cf3d29;
  color: #fff;
}

.btn-danger-solid:hover {
  border-color: #dc4a35;
  background: #dc4a35;
}

.menu-item.is-danger {
  color: #ffb3a8;
}

.modal-text {
  color: var(--ink-2);
  font-size: 14.5px;
}

.modal .field .hint {
  margin-top: 2px;
}

/* sign-in options that are switched off */
.auth-btn.is-off {
  cursor: not-allowed;
  opacity: 0.6;
}

.auth-btn.is-off:hover {
  border-color: var(--line-mid);
  background: var(--menu);
}

.auth-btn.is-off .site-badge {
  filter: grayscale(1);
}

.auth-off {
  display: block;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-row.is-off {
  border-style: dashed;
}

.site-row.is-off .site-badge {
  filter: grayscale(1);
  opacity: 0.6;
}

.share-off {
  color: var(--ink-3);
  font-size: 13px;
  white-space: nowrap;
}

/* composer in edit mode */
.type-tab.is-locked span {
  cursor: not-allowed;
  opacity: 0.4;
}

.type-tab.is-locked:hover span {
  border-color: var(--line-mid);
}

.type-lock {
  margin-top: -8px;
}

/* settings: account */
.inline-form {
  display: flex;
  gap: 10px;
}

.inline-form .input-at {
  flex: 1;
  min-width: 0;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--line-mid);
  border-radius: 10px;
}

.account-row strong {
  display: block;
  font-weight: 600;
}

.account-row small {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 13px;
}

.account-row .role-badge {
  margin: 6px 0 4px;
}

.account-row .btn {
  flex: none;
}

.account-row.is-danger {
  border-color: rgba(255, 138, 122, 0.45);
}

/* suspended accounts */
.suspended-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 14px;
  border: 1.5px solid rgba(255, 138, 122, 0.6);
  border-radius: 10px;
  background: rgba(255, 138, 122, 0.1);
  color: #ffc4bb;
  font-size: 14px;
}

.suspended-banner .ico {
  width: 18px;
  height: 18px;
  flex: none;
}

.suspended-note {
  color: #ffc4bb;
}

/* the staff page */
.staff-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 24px;
  padding: 28px 0 48px;
}

.staff-main,
.staff-side {
  display: grid;
  gap: 22px;
}

.staff-panel,
.staff-side .panel {
  border: 1.5px solid var(--line-mid);
  border-radius: var(--radius);
  background: var(--bg-deep);
}

.staff-main .panel + .panel,
.staff-side .panel + .panel {
  border-top: 1.5px solid var(--line-mid);
}

#staff-intro .role-badge {
  margin: 0 2px;
}

.staff-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0 16px 12px;
}

.staff-search {
  display: flex;
  flex: 1 1 240px;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-sunk);
}

.staff-search:focus-within {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px var(--yellow-glow);
}

.staff-search .ico {
  width: 18px;
  height: 18px;
  color: var(--ink-3);
}

.staff-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: none;
  color: inherit;
  font-size: 15px;
}

.seg {
  display: inline-flex;
  padding: 3px;
  border: 1.5px solid var(--line-mid);
  border-radius: 999px;
}

.seg label {
  position: relative;
}

.seg input {
  position: absolute;
  opacity: 0;
}

.seg span {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.seg input:checked + span {
  background: var(--yellow);
  color: var(--yellow-ink);
}

.seg input:focus-visible + span {
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
}

.member-list {
  margin: 0;
  padding: 0 8px 8px;
  list-style: none;
}

.member {
  display: grid;
  /* fixed last column so rows without an Actions button still line up */
  grid-template-columns: minmax(170px, 1fr) minmax(0, 1.3fr) 108px;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 8px;
}

.member + .member {
  border-top: 1px solid var(--line);
}

.member.is-suspended .member-who {
  opacity: 0.7;
}

.member-who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-radius: 10px;
}

.member-who:hover .person-name {
  color: var(--yellow);
}

.member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.member-tags:empty {
  display: none;
}

.member-tags .role-badge {
  margin-left: 0;
}

.member-meta {
  color: var(--ink-3);
  font-size: 13px;
}

.member-why {
  color: #ffc4bb;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border: 1.5px solid var(--line-mid);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
}

.status-pill .ico {
  width: 12px;
  height: 12px;
}

.status-pill.is-bad {
  border-color: rgba(255, 138, 122, 0.7);
  color: #ffb3a8;
}

.member-menu {
  justify-self: end;
}

.member-menu .menu {
  min-width: 250px;
}

.more-btn {
  margin: 4px 16px 16px;
}

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

.log-item {
  padding: 10px 0;
}

.log-item + .log-item {
  border-top: 1px solid var(--line);
}

.log-item p {
  font-size: 14.5px;
}

.log-item small {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.log-list > .panel-hint {
  padding: 0 0 8px;
}

.team-group {
  padding: 0 8px 4px;
}

.team-title {
  padding: 6px 8px 2px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-group .panel-hint {
  padding: 2px 8px 8px;
}

.team-group .people {
  padding: 0 0 6px;
}

.perm-wrap {
  padding: 0 12px 6px;
  overflow-x: auto;
}

.perm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.perm-table th,
.perm-table td {
  padding: 7px 4px;
  border-bottom: 1px solid var(--line);
}

.perm-table thead th {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.perm-table tbody th {
  color: var(--ink-2);
  font-weight: 400;
  text-align: left;
}

.perm-table td {
  text-align: center;
}

.perm-yes {
  width: 16px;
  height: 16px;
  color: #a6e4a6;
  vertical-align: middle;
}

.perm-no {
  color: var(--ink-3);
}

.staff-side .panel-hint:last-child {
  padding-bottom: 14px;
}

@media (max-width: 1080px) {
  .staff-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .member-info {
    grid-row: 2;
    grid-column: 1 / -1;
    padding-left: 50px;
  }

  .account-row {
    flex-direction: column;
    align-items: stretch;
  }

  .account-row .btn {
    align-self: flex-start;
  }
}

/* ============================================================ DISCORD NEWS */
.btn-discord {
  border-color: #5865f2;
  background: #5865f2;
  color: #fff;
}

.btn-discord:hover {
  border-color: #4752c4;
  background: #4752c4;
}

/* home: News rail entry with its own join button */
.news-feature {
  display: grid;
  gap: 10px;
  margin: 2px 0 6px;
  padding: 12px;
  border: 1.5px solid rgba(88, 101, 242, 0.55);
  border-radius: var(--radius);
  background: rgba(88, 101, 242, 0.1);
}

.news-feature-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.news-feature-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.news .news-feature a.btn-discord {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  border-radius: 10px;
  background: #5865f2;
}

.news .news-feature a.btn-discord:hover {
  background: #4752c4;
}

.news .btn-discord .ico {
  margin-top: 0;
  color: inherit;
}

/* FAQ: the Discord announcement */
.discord-card {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 14px;
  padding: 20px;
  border: 1.5px solid rgba(88, 101, 242, 0.55);
  border-radius: var(--radius-lg);
  background: rgba(88, 101, 242, 0.1);
}

.discord-card img {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
}

.discord-card p {
  margin: 0 0 14px;
}

@media (max-width: 560px) {
  .discord-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .discord-card img {
    width: 72px;
    height: 72px;
  }
}

/* ----------------------------------------------------- NSFW on post pages */
.nsfw-gate {
  position: relative;
}

.nsfw-gate.is-veiled {
  min-height: 120px;
  overflow: hidden;
  border-radius: var(--radius);
}

.nsfw-gate.is-veiled > :not(.nsfw-reveal) {
  filter: blur(28px) saturate(0.7);
  pointer-events: none;
  user-select: none;
}

.nsfw-reveal {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 120px;
  padding: 16px;
  border: 1.5px dashed rgba(255, 138, 122, 0.6);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.nsfw-reveal .ico {
  width: 30px;
  height: 30px;
}

.nsfw-reveal strong {
  letter-spacing: 0.14em;
}

.nsfw-reveal span {
  color: var(--ink-2);
  font-size: 14px;
}

.nsfw-reveal:hover,
.nsfw-reveal:focus-visible {
  background: rgba(0, 0, 0, 0.3);
  outline: none;
}

.nsfw-reveal:focus-visible {
  border-color: var(--yellow);
}

.post-kicker .nsfw-tag {
  letter-spacing: 0.08em;
}

.nsfw-locked-note {
  margin: 6px 0 0;
}

.post-row small .nsfw-tag {
  font-size: 9.5px;
}

/* ------------------------------------------- sign-up: birthday and terms */
.dob {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.dob legend {
  margin-bottom: 7px;
  padding: 0;
}

.dob-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 10px;
}

.dob .hint {
  margin-top: 7px;
}

.dob .error-text:not([hidden]) {
  display: block;
  margin-top: 4px;
}

.terms-check {
  align-items: flex-start;
  font-weight: 500;
  line-height: 1.45;
}

.terms-check .box-ui {
  margin-top: 1px;
}

.terms-check a,
.auth-legal a,
.legal a,
.faq-section a:not(.btn) {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terms-check input[aria-invalid='true'] + .box-ui {
  border-color: #ff8a7a;
}

.auth-legal {
  margin-top: 10px;
}

/* agree.html: existing accounts accepting the terms */
.auth-card.auth-agree {
  width: min(100%, 560px);
}

.auth-agree .setup {
  margin-top: 8px;
}

.agree-docs {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agree-docs a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-mid);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
}

.agree-docs a:hover {
  border-color: var(--yellow);
  background: var(--bg-sunk);
}

.agree-docs .ico {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--yellow);
}

.agree-docs strong,
.agree-docs small {
  display: block;
}

.agree-docs small {
  color: var(--ink-3);
  font-size: 13px;
}

.auth-agree #logout small {
  color: var(--ink-3);
  font-weight: 400;
}

/* settings: a plain notice inside a section */
.notice {
  margin: 0;
  padding: 12px 14px;
  border: 1.5px solid var(--line-mid);
  border-radius: var(--radius);
  background: var(--bg-sunk);
  color: var(--ink-2);
  font-size: 14px;
}

/* ------------------------------------------- Terms of Service / Privacy */
.legal-body {
  background:
    radial-gradient(90% 40% at 50% -10%, rgba(238, 216, 46, 0.1), transparent 70%),
    var(--bg);
}

.legal-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px var(--gutter);
  border-bottom: 1.5px solid var(--line-strong);
}

.legal-logo img {
  display: block;
  width: 150px;
  height: auto;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14px;
  font-weight: 600;
}

.legal-nav a {
  color: var(--ink-2);
}

.legal-nav a:hover,
.legal-nav a[aria-current='page'] {
  color: var(--yellow);
}

.legal {
  max-width: 920px;
  margin: 0 auto;
  padding: 36px var(--gutter) 56px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
}

.legal h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 400;
  line-height: 1.1;
}

.legal h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
}

.legal h3 {
  margin: 18px 0 6px;
  color: var(--ink);
  font-size: 16px;
}

.legal strong {
  color: var(--ink);
}

.legal p {
  margin: 0 0 12px;
}

.legal ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.legal li + li {
  margin-top: 6px;
}

.legal section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}

.legal-date {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 14px;
}

.legal-summary {
  margin: 24px 0;
  padding: 20px 22px 8px;
  border: 1.5px solid rgba(238, 216, 46, 0.5);
  border-radius: var(--radius-lg);
  background: rgba(238, 216, 46, 0.06);
}

.legal-summary h2 {
  font-size: 22px;
}

.legal-summary > p {
  color: var(--ink-3);
  font-size: 14px;
}

.legal-toc {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 4px 24px;
  margin: 0 0 24px;
  font-size: 14.5px;
}

.legal .legal-toc a {
  color: var(--ink-2);
  text-decoration: none;
}

.legal .legal-toc a:hover {
  color: var(--yellow);
  text-decoration: underline;
}

.legal-table {
  width: 100%;
  margin: 4px 0 14px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.legal-table th,
.legal-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--bg-sunk);
  color: var(--ink);
  font-size: 13.5px;
}

.legal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  max-width: 920px;
  margin: 0 auto;
  padding: 22px var(--gutter) 40px;
  border-top: 1.5px solid var(--line-strong);
  font-size: 14px;
}

.legal-foot a {
  color: var(--ink-3);
}

.legal-foot a:hover {
  color: var(--yellow);
}

@media (max-width: 560px) {
  .legal-table thead {
    display: none;
  }

  .legal-table tr {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }

  .legal-table td {
    display: block;
    padding: 2px 0;
    border: 0;
  }
}
