:root {
  --background: #09070d;
  --surface: #14101b;
  --surface-strong: #1b1425;
  --surface-soft: #21182d;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f8f5ff;
  --muted: #a79cb5;
  --primary: #9b4dff;
  --primary-light: #c68cff;
  --primary-dark: #6d20d1;
  --danger: #ff668c;
  --success: #68e0b4;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(122, 49, 204, 0.17), transparent 28%),
    radial-gradient(circle at 84% 15%, rgba(168, 70, 255, 0.11), transparent 22%),
    var(--background);
  color: var(--text);
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

input,
textarea {
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  transition: 0.2s ease;
}

input {
  padding: 13px 14px;
}

textarea {
  padding: 13px 14px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(155, 77, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(155, 77, 255, 0.1);
}

img {
  display: block;
}

.hidden {
  display: none !important;
}

.button-reset {
  padding: 0;
  border: 0;
  background: none;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--primary-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.brand-large {
  font-size: 1.1rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  box-shadow: 0 10px 30px rgba(155, 77, 255, 0.32);
}

.brand-combo {
  gap: 14px;
}

.brand-symbol {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-symbol-auth {
  height: 92px;
}

.brand-symbol-topbar {
  height: 64px;
}

.brand-wordmark {
  display: inline-block;
  color: #f2a4dd;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow: 0 0 18px rgba(242, 164, 221, 0.18);
  white-space: nowrap;
}

.brand-wordmark-auth {
  font-size: 2.05rem;
}

.brand-wordmark-topbar {
  font-size: 1.45rem;
}

.primary-button,
.secondary-button {
  min-height: 43px;
  padding: 10px 17px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease, background 0.16s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  box-shadow: 0 10px 28px rgba(155, 77, 255, 0.22);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.full-width {
  width: 100%;
}

.card {
  background: linear-gradient(145deg, rgba(28, 21, 39, 0.96), rgba(18, 14, 25, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-view {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 470px);
  align-items: center;
  gap: 80px;
  min-height: 100vh;
  padding: 70px max(5vw, 30px);
  overflow: hidden;
}

.auth-intro,
.auth-card {
  position: relative;
  z-index: 1;
}

.auth-intro {
  max-width: 670px;
}

.auth-intro h1 {
  max-width: 620px;
  margin: 34px 0 20px;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.auth-intro > p {
  max-width: 580px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.feature-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 500px;
  margin-top: 15px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.feature-preview div:last-child {
  display: grid;
  gap: 4px;
}

.feature-preview span {
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--primary-light);
  background: rgba(155, 77, 255, 0.12);
}

.auth-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(16, 12, 22, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 30px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 15px;
}

.auth-tab {
  padding: 11px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(198, 140, 255, 0.23), rgba(109, 32, 209, 0.32));
}

.auth-form h2 {
  margin: 0 0 8px;
  font-size: 1.65rem;
}

.auth-form > p {
  margin-top: 0;
  margin-bottom: 24px;
}

.age-requirement-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 13px 14px;
  border: 1px solid rgba(242, 164, 221, 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(242, 164, 221, 0.11), rgba(155, 77, 255, 0.09));
}

.age-requirement-banner > div {
  display: grid;
  gap: 3px;
}

.age-requirement-banner strong {
  font-size: 0.9rem;
}

.age-requirement-banner span:not(.age-requirement-icon) {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.age-requirement-icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #e56eb8, var(--primary-dark));
  box-shadow: 0 8px 22px rgba(155, 77, 255, 0.2);
  font-size: 0.92rem;
  font-weight: 900;
}

.age-confirmation {
  grid-template-columns: 21px 1fr !important;
  align-items: start;
  gap: 10px !important;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  line-height: 1.45;
  cursor: pointer;
}

.age-confirmation input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--primary);
}

.age-confirmation span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
}

.age-status {
  min-height: 1em;
  font-size: 0.7rem;
  font-weight: 700;
}

.age-status.success {
  color: var(--success);
}

.age-status.error {
  color: var(--danger);
}

.auth-form label,
.edit-profile-panel label {
  display: grid;
  gap: 8px;
  margin-bottom: 15px;
  color: #dcd3e8;
  font-size: 0.83rem;
  font-weight: 600;
}

.auth-form button + button {
  margin-top: 10px;
}

.local-note {
  margin: 20px 0 0;
  color: #7f748d;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

.auth-decoration {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.auth-decoration-one {
  top: -150px;
  right: 28%;
  width: 430px;
  height: 430px;
  background: rgba(126, 47, 215, 0.12);
}

.auth-decoration-two {
  bottom: -180px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: rgba(205, 121, 255, 0.07);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 380px minmax(260px, 560px) 1fr;
  align-items: center;
  gap: 28px;
  min-height: 92px;
  padding: 12px max(3vw, 22px);
  border-bottom: 1px solid var(--border);
  background: rgba(9, 7, 13, 0.83);
  backdrop-filter: blur(24px);
}

.topbar-search {
  position: relative;
}

.topbar-search span {
  position: absolute;
  top: 50%;
  left: 16px;
  color: var(--muted);
  transform: translateY(-50%);
}

.topbar-search input {
  padding-left: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.topbar-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--primary-light);
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.avatar {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 2px solid rgba(198, 140, 255, 0.32);
  border-radius: 50%;
  background: var(--surface-soft);
}

.avatar.small {
  width: 34px;
  height: 34px;
}

.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 860px) 260px;
  justify-content: center;
  gap: 24px;
  width: min(1520px, calc(100% - 40px));
  margin: 30px auto 100px;
}

.sidebar {
  position: sticky;
  top: 106px;
  align-self: start;
}

.left-sidebar {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 136px);
}

.side-nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.nav-item.active,
.nav-item:hover {
  color: var(--text);
  border-color: rgba(155, 77, 255, 0.16);
  background: rgba(155, 77, 255, 0.1);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  color: var(--primary-light);
  font-size: 1.15rem;
}

.sidebar-card {
  margin-top: 25px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 80% 20%, rgba(198, 140, 255, 0.15), transparent 42%),
    rgba(255, 255, 255, 0.025);
}

.sidebar-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.45;
}

.sidebar-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.logout-button {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding: 13px 14px;
  border: 0;
  background: transparent;
  color: #8d829a;
  cursor: pointer;
}

.content-column {
  min-width: 0;
  width: 100%;
}

.page {
  display: grid;
  gap: 18px;
}

.welcome-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  padding: 25px;
  border: 1px solid rgba(198, 140, 255, 0.15);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(104, 31, 181, 0.36), rgba(23, 16, 32, 0.95) 60%);
}

.welcome-card h2 {
  margin: 0 0 8px;
}

.welcome-card p {
  margin: 0;
  color: var(--muted);
}

.welcome-orb {
  position: absolute;
  top: -54px;
  right: -30px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #dab2ff, #8c3ce7 46%, transparent 67%);
  opacity: 0.42;
  filter: blur(2px);
}

.composer {
  padding: 18px;
}

.composer-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.composer textarea {
  min-height: 80px;
  border: 0;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

.composer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.media-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}

.media-button input,
.avatar-edit input {
  display: none;
}

.image-preview-wrap {
  position: relative;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 17px;
}

.image-preview-wrap img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.image-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 6, 11, 0.82);
  font-size: 1.2rem;
  cursor: pointer;
}

.feed-list {
  display: grid;
  gap: 18px;
  width: 100%;
}

.post-card {
  padding: 19px;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-author {
  min-width: 0;
  cursor: pointer;
}

.post-author strong {
  display: block;
}

.post-author span {
  color: var(--muted);
  font-size: 0.79rem;
}

.post-menu {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.post-text {
  margin: 17px 0;
  color: #eee8f5;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.post-image {
  width: 100%;
  max-height: 600px;
  margin-top: 14px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.post-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 2px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

.post-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 9px;
}

.post-action {
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
  cursor: pointer;
}

.post-action:hover,
.post-action.active {
  color: var(--primary-light);
  background: rgba(155, 77, 255, 0.08);
}

.comments {
  display: grid;
  gap: 11px;
  margin-top: 13px;
}

.comment {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.comment .avatar {
  width: 34px;
  height: 34px;
}

.comment-bubble {
  flex: 1;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.comment-bubble strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.82rem;
}

.comment-bubble p {
  margin: 0;
  color: #dcd5e5;
  font-size: 0.85rem;
  line-height: 1.55;
}

.comment-form {
  display: flex;
  gap: 9px;
  margin-top: 12px;
}

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

.comment-form button {
  flex: 0 0 auto;
}

.empty-state {
  padding: 40px 22px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.mini-profile {
  overflow: hidden;
  padding: 0 18px 18px;
  text-align: center;
}

.mini-profile-cover {
  height: 74px;
  margin: 0 -18px;
  background:
    radial-gradient(circle at 72% 20%, rgba(220, 170, 255, 0.55), transparent 27%),
    linear-gradient(130deg, #4b157d, #23122f 70%);
}

.mini-profile-avatar {
  width: 74px;
  height: 74px;
  margin: -37px auto 12px;
  border: 4px solid var(--surface);
}

.mini-profile h3 {
  margin: 0 0 4px;
}

.mini-profile p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.suggestions {
  margin-top: 18px;
  padding: 17px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
}

.card-header h3 {
  margin: 0;
  font-size: 0.98rem;
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary-light);
  font-size: 0.78rem;
  cursor: pointer;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
}

.suggestion-item:first-child {
  border-top: 0;
}

.suggestion-item .avatar {
  width: 39px;
  height: 39px;
}

.suggestion-item div {
  min-width: 0;
}

.suggestion-item strong,
.suggestion-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-item strong {
  font-size: 0.83rem;
}

.suggestion-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.footer-note {
  color: #6e6379;
  font-size: 0.72rem;
  text-align: center;
}

.profile-hero {
  overflow: hidden;
}

.profile-cover {
  position: relative;
  height: 210px;
  background:
    linear-gradient(110deg, rgba(113, 30, 192, 0.88), rgba(36, 17, 49, 0.9)),
    radial-gradient(circle at 70% 30%, #d8a8ff, transparent 25%);
}

.cover-glow {
  position: absolute;
  right: 8%;
  bottom: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(219, 167, 255, 0.2);
  filter: blur(10px);
}

.profile-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 20px;
  padding: 0 25px 25px;
}

.profile-avatar-wrap {
  position: relative;
  margin-top: -58px;
}

.profile-avatar {
  width: 126px;
  height: 126px;
  border: 5px solid var(--surface);
}

.avatar-edit {
  position: absolute;
  right: 2px;
  bottom: 3px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
}

.profile-summary h1 {
  margin: 0 0 5px;
}

.profile-summary > p {
  margin: 0;
  color: var(--muted);
}

.profile-bio {
  max-width: 520px;
  margin-top: 10px !important;
  color: #d8d0e2 !important;
  line-height: 1.6;
}

.edit-profile-panel {
  padding: 20px;
}

.edit-profile-panel h3 {
  margin-top: 0;
}

.panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.section-title,
.page-heading {
  margin-top: 12px;
}

.section-title h2,
.page-heading h1 {
  margin: 0;
}

.page-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.person-card {
  overflow: hidden;
  padding: 0 18px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(28, 21, 39, 0.95), rgba(16, 12, 22, 0.95));
}

.person-cover {
  height: 82px;
  margin: 0 -18px;
  background:
    radial-gradient(circle at 77% 18%, rgba(226, 184, 255, 0.5), transparent 28%),
    linear-gradient(130deg, #591d91, #261333 70%);
}

.person-card .avatar {
  width: 70px;
  height: 70px;
  margin-top: -35px;
  border: 4px solid var(--surface);
}

.person-card h3 {
  margin: 12px 0 4px;
}

.person-card .handle {
  color: var(--muted);
  font-size: 0.8rem;
}

.person-card .bio {
  min-height: 43px;
  margin: 12px 0 16px;
  color: #cfc5d9;
  font-size: 0.82rem;
  line-height: 1.5;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 3, 6, 0.78);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: min(460px, 100%);
  overflow: hidden;
  padding: 0 28px 28px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.modal-cover {
  height: 125px;
  margin: 0 -28px;
  background:
    radial-gradient(circle at 70% 24%, rgba(225, 180, 255, 0.55), transparent 27%),
    linear-gradient(135deg, #611da0, #21112c);
}

.modal-avatar {
  width: 104px;
  height: 104px;
  margin: -52px auto 15px;
  border: 5px solid var(--surface);
}

.modal-card h2 {
  margin: 0 0 5px;
}

.modal-card > p:last-of-type {
  color: #d7cede;
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 7, 13, 0.72);
  cursor: pointer;
}

.modal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.modal-stats div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.modal-stats strong,
.modal-stats span {
  display: block;
}

.modal-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.73rem;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: min(360px, calc(100% - 48px));
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(27, 20, 37, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.bottom-nav,
.mobile-only,
.mobile-search-panel {
  display: none;
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 200px minmax(0, 820px);
    width: min(1100px, calc(100% - 32px));
    gap: 20px;
  }

  .right-sidebar {
    display: none;
  }

  .topbar {
    grid-template-columns: 300px minmax(220px, 1fr) auto;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 76px;
  }

  .auth-view {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 42px 20px;
  }

  .auth-intro {
    text-align: center;
  }

  .auth-intro h1 {
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.7rem, 12vw, 4.4rem);
  }

  .auth-intro > p {
    margin-left: auto;
    margin-right: auto;
  }

  .feature-preview {
    display: none;
  }

  .brand-large {
    justify-content: center;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    min-height: 76px;
    padding: 10px 15px;
  }

  .topbar-search,
  .profile-chip span {
    display: none;
  }

  .mobile-only {
    display: grid;
  }

  .mobile-search-panel {
    position: sticky;
    top: 76px;
    z-index: 29;
    display: flex;
    gap: 8px;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border);
    background: rgba(9, 7, 13, 0.95);
  }

  .layout {
    display: block;
    width: min(100% - 24px, 720px);
    margin-top: 18px;
  }

  .left-sidebar {
    display: none;
  }

  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
    min-height: 66px;
    border-top: 1px solid var(--border);
    background: rgba(12, 9, 16, 0.95);
    backdrop-filter: blur(20px);
  }

  .bottom-nav-item {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.68rem;
  }

  .bottom-nav-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    min-width: 1.2rem;
    font-size: 1.1rem;
    line-height: 1;
  }

  .bottom-nav-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid rgba(12, 9, 16, 0.95);
    border-radius: 999px;
    background: #ff4c7d;
    color: white;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1;
  }

  .bottom-nav-item.active {
    color: var(--primary-light);
  }

  .profile-main {
    grid-template-columns: auto 1fr;
  }

  .profile-main .secondary-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .auth-card {
    padding: 20px;
  }

  .auth-intro h1 {
    letter-spacing: -0.05em;
  }

  .brand-symbol-topbar {
    height: 54px;
  }

  .brand-wordmark-topbar {
    font-size: 1.05rem;
    letter-spacing: 0.06em;
  }

  .welcome-card,
  .composer,
  .post-card {
    border-radius: 18px;
  }

  .welcome-card {
    padding: 21px;
  }

  .composer-head {
    gap: 9px;
  }

  .composer-actions {
    align-items: stretch;
  }

  .composer-actions .primary-button {
    min-width: 135px;
  }

  .profile-cover {
    height: 155px;
  }

  .profile-main {
    display: block;
    padding: 0 18px 20px;
    text-align: center;
  }

  .profile-avatar-wrap {
    display: inline-block;
  }

  .profile-summary {
    margin: 10px 0 18px;
  }

  .profile-bio {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .people-grid {
    grid-template-columns: 1fr;
  }

  .comment-form .primary-button {
    padding-inline: 12px;
  }
}


.person-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.person-actions .primary-button,
.person-actions .secondary-button {
  min-width: 0;
  padding-inline: 10px;
}

.friend-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 700;
}

.modal-friend-button {
  margin-top: 18px;
}

.private-profile-note {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(155, 77, 255, 0.17);
  border-radius: 13px;
  background: rgba(155, 77, 255, 0.08);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

@media (max-width: 420px) {
  .person-actions {
    grid-template-columns: 1fr;
  }
}


.friend-requests-section {
  padding: 20px;
}

.friend-requests-section .card-header {
  margin-bottom: 8px;
}

.friend-requests-section h3 {
  margin: 0;
}

.request-count {
  display: grid;
  place-items: center;
  min-width: 31px;
  height: 31px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(155, 77, 255, 0.16);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 800;
}

.friend-request-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.friend-request-item:first-child {
  border-top: 0;
}

.friend-request-item .avatar {
  width: 48px;
  height: 48px;
}

.friend-request-user {
  min-width: 0;
}

.friend-request-user strong,
.friend-request-user span {
  display: block;
}

.friend-request-user span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.friend-request-actions {
  display: flex;
  gap: 8px;
}

.friend-request-actions button {
  min-height: 39px;
}

.pending-status {
  color: var(--primary-light);
}

.modal-friend-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 18px;
}

.modal-friend-actions.has-secondary {
  grid-template-columns: 1fr 1fr;
}

.modal-friend-button {
  margin-top: 0;
}

.notification-dot.hidden {
  display: none;
}

@media (max-width: 560px) {
  .friend-request-item {
    grid-template-columns: auto 1fr;
  }

  .friend-request-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .modal-friend-actions.has-secondary {
    grid-template-columns: 1fr;
  }
}


.friends-sidebar {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.friends-sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 7px 10px;
}

.friends-sidebar-head .eyebrow {
  margin-bottom: 3px;
}

.friends-sidebar-head strong {
  display: block;
  font-size: 0.92rem;
}

.friends-count {
  display: grid;
  place-items: center;
  min-width: 29px;
  height: 29px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(155, 77, 255, 0.13);
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 800;
}

.friends-sidebar-list {
  display: grid;
  gap: 4px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 3px;
}

.friend-sidebar-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  cursor: pointer;
}

.friend-sidebar-item:hover {
  border-color: rgba(155, 77, 255, 0.17);
  background: rgba(155, 77, 255, 0.08);
}

.friend-sidebar-item .avatar {
  width: 37px;
  height: 37px;
}

.friend-avatar-wrap,
.chat-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.online-status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border: 2px solid #181220;
  border-radius: 50%;
  background: #36d977;
  box-shadow: 0 0 0 2px rgba(54, 217, 119, 0.12), 0 0 10px rgba(54, 217, 119, 0.5);
}

.chat-avatar-wrap .online-status-dot {
  width: 12px;
  height: 12px;
  border-color: #1c1527;
}

.friend-sidebar-info span.online,
.chat-user-button small.online {
  color: #55e58d;
}

.friend-sidebar-info {
  min-width: 0;
  text-align: left;
}

.friend-sidebar-info strong,
.friend-sidebar-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-sidebar-info strong {
  font-size: 0.79rem;
}

.friend-sidebar-info span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.67rem;
}

.friend-chat-button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--primary-light);
  cursor: pointer;
}

.friends-empty {
  padding: 12px 8px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}


.profile-more-menu {
  position: relative;
}

.profile-more-menu > summary {
  list-style: none;
}

.profile-more-menu > summary::-webkit-details-marker {
  display: none;
}

.profile-more-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  cursor: pointer;
  user-select: none;
}

.profile-more-menu[open] .profile-more-trigger {
  border-color: rgba(190, 115, 255, 0.42);
  background: rgba(155, 77, 255, 0.13);
  color: var(--text);
}

.profile-more-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  z-index: 35;
  display: grid;
  min-width: 220px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(19, 14, 27, 0.99);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.46);
}

.profile-menu-action {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.profile-menu-action:hover,
.profile-menu-action:focus-visible {
  outline: none;
  background: rgba(155, 77, 255, 0.12);
}

.profile-menu-action.danger {
  color: #ff91ad;
}

.profile-menu-action.danger:hover,
.profile-menu-action.danger:focus-visible {
  background: rgba(255, 78, 126, 0.11);
}


.chat-dock {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 56;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 2px;
  scrollbar-width: none;
}

.chat-dock::-webkit-scrollbar {
  display: none;
}

.chat-dock-bubble,
.chat-dock-more {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(40, 34, 47, 0.98);
  color: #f4eff9;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.chat-dock-bubble:hover,
.chat-dock-bubble.active,
.chat-dock-more:hover {
  transform: translateX(-3px) scale(1.04);
  border-color: rgba(198, 140, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(155, 77, 255, 0.12), 0 14px 34px rgba(0, 0, 0, 0.42);
}

.chat-dock-bubble img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.chat-dock-bubble .online-status-dot {
  right: -1px;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-color: #17121d;
}

.chat-dock-unread {
  position: absolute;
  top: -5px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border: 2px solid #17121d;
  border-radius: 999px;
  background: #f04462;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.chat-dock-more {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(74, 70, 80, 0.96);
  font-size: 0.88rem;
  font-weight: 900;
}

.chat-window {
  position: fixed;
  right: 96px;
  bottom: 24px;
  z-index: 55;
  display: grid;
  grid-template-rows: auto minmax(220px, 380px) auto;
  width: min(370px, calc(100% - 32px));
  max-height: min(600px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(198, 140, 255, 0.21);
  border-radius: 22px;
  background: rgba(20, 16, 27, 0.98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(24px);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 15% 0%, rgba(184, 103, 255, 0.16), transparent 46%),
    rgba(255, 255, 255, 0.02);
}

.chat-user-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.chat-user-button span {
  min-width: 0;
}

.chat-user-button strong,
.chat-user-button small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-user-button small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
}

.chat-minimize,
.chat-close {
  flex: 0 0 auto;
}

.chat-minimize {
  font-size: 1.15rem;
  line-height: 1;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  padding: 16px;
  background:
    radial-gradient(circle at 90% 10%, rgba(122, 49, 204, 0.08), transparent 38%),
    rgba(8, 6, 11, 0.38);
}

.chat-empty {
  display: grid;
  place-items: center;
  flex: 1;
  padding: 30px 18px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  text-align: center;
}

.chat-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 82%;
}

.chat-message.own {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-bubble {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 15px 15px 15px 5px;
  background: rgba(255, 255, 255, 0.055);
  color: #eee8f5;
  font-size: 0.86rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chat-message.own .chat-bubble {
  border-color: rgba(198, 140, 255, 0.19);
  border-radius: 15px 15px 5px 15px;
  background: linear-gradient(135deg, rgba(155, 77, 255, 0.78), rgba(103, 31, 199, 0.88));
}

.chat-time {
  margin-top: 4px;
  padding: 0 3px;
  color: #7f748d;
  font-size: 0.62rem;
}

.chat-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}

.chat-form input {
  min-width: 0;
}

.chat-emoji-wrap {
  display: contents;
}

.chat-emoji-button {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: 0.2s ease;
}

.chat-emoji-button:hover,
.chat-emoji-button[aria-expanded="true"] {
  border-color: rgba(198, 140, 255, 0.5);
  background: rgba(155, 77, 255, 0.14);
}

.chat-emoji-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.chat-emoji-picker {
  grid-column: 1 / -1;
  order: -1;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
  max-height: 160px;
  overflow-y: auto;
  padding: 9px;
  border: 1px solid rgba(198, 140, 255, 0.2);
  border-radius: 15px;
  background: rgba(13, 10, 18, 0.98);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
}

.chat-emoji-picker button {
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1;
  padding: 3px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}

.chat-emoji-picker button:hover,
.chat-emoji-picker button:focus-visible {
  background: rgba(155, 77, 255, 0.18);
  outline: none;
}

@media (max-width: 820px) {
  .chat-window {
    right: 78px;
    bottom: 78px;
    width: min(370px, calc(100% - 94px));
    max-height: calc(100vh - 100px);
  }

  .chat-dock {
    right: 12px;
    bottom: 78px;
    max-height: calc(100vh - 100px);
  }

  .chat-dock-bubble,
  .chat-dock-more {
    width: 48px;
    height: 48px;
  }

  .profile-actions {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .profile-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .profile-actions > #profileChatButton {
    width: 100%;
  }

  .profile-actions > #editProfileButton {
    grid-column: 1 / -1;
    width: 100%;
  }

  .profile-more-trigger {
    width: 48px;
    padding-inline: 0;
  }

  .profile-more-trigger span:first-child {
    display: none;
  }

  .profile-more-panel {
    right: 0;
    min-width: min(240px, calc(100vw - 44px));
  }

  .chat-window {
    right: 12px;
    bottom: 142px;
    grid-template-rows: auto minmax(230px, 1fr) auto;
    width: calc(100% - 24px);
    height: min(540px, calc(100vh - 166px));
  }

  .chat-dock {
    right: 12px;
    bottom: 76px;
    left: 12px;
    flex-direction: row;
    justify-content: flex-end;
    max-width: calc(100% - 24px);
    max-height: none;
    overflow-x: auto;
  }

  .chat-dock-bubble:hover,
  .chat-dock-bubble.active,
  .chat-dock-more:hover {
    transform: translateY(-3px) scale(1.04);
  }

  .chat-emoji-picker {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}


.account-menu-wrap {
  position: relative;
}

.account-chevron {
  color: var(--muted);
  font-size: 0.78rem;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  width: 205px;
  overflow: hidden;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(20, 16, 27, 0.98);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.account-menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.account-menu-item:hover {
  background: rgba(155, 77, 255, 0.1);
}

.account-menu-item.danger {
  color: #ff8aa7;
}

.wall-composer {
  padding: 19px;
}

.wall-composer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.wall-composer-head h3 {
  margin: 0;
  font-size: 1rem;
}

.wall-composer textarea {
  min-height: 90px;
}

.wall-composer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.wall-composer-actions span {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.wall-post-card {
  padding: 18px;
}

.wall-post-target {
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 700;
}

.wall-post-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.wall-post-delete {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.settings-modal-card {
  width: min(520px, 100%);
  padding-top: 28px;
  text-align: left;
}

.settings-heading h2 {
  margin: 0 0 7px;
}

.settings-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.settings-list {
  display: grid;
  gap: 11px;
  margin: 24px 0;
}

.setting-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.setting-row strong,
.setting-row span {
  display: block;
}

.setting-row span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.setting-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

@media (max-width: 820px) {
  .account-menu {
    right: 0;
  }

  .wall-composer-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .account-menu {
    width: 185px;
  }
}


.input-help {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.45;
}

.danger-button {
  min-height: 43px;
  padding: 10px 17px;
  border: 1px solid rgba(255, 102, 140, 0.24);
  border-radius: 13px;
  background: rgba(255, 102, 140, 0.08);
  color: #ff8aa7;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease, background 0.16s ease;
}

.danger-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 102, 140, 0.14);
  filter: brightness(1.06);
}

.modal-block-button {
  margin-top: 9px;
}

.blocked-settings {
  margin: 0 0 22px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.blocked-settings-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 11px;
}

.blocked-settings-heading strong,
.blocked-settings-heading span {
  display: block;
}

.blocked-settings-heading > div > span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.blocked-users-list {
  display: grid;
  gap: 8px;
}

.blocked-user-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.blocked-user-item .avatar {
  width: 40px;
  height: 40px;
}

.blocked-user-info {
  min-width: 0;
}

.blocked-user-info strong,
.blocked-user-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blocked-user-info strong {
  font-size: 0.82rem;
}

.blocked-user-info span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.blocked-empty {
  padding: 12px 3px 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 470px) {
  .blocked-user-item {
    grid-template-columns: auto 1fr;
  }

  .blocked-user-item .unblock-user-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}


.menu-badge,
.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--danger);
  color: white;
  font-size: 0.66rem;
  font-weight: 800;
}

.modal-report-button {
  margin-top: 9px;
}

.report-modal-card,
.admin-action-modal-card {
  width: min(540px, 100%);
  padding-top: 28px;
  text-align: left;
}

.report-heading h2 {
  margin: 0 0 7px;
}

.report-heading p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.55;
}

.report-modal-card label,
.admin-action-modal-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 15px;
  color: #dcd3e8;
  font-size: 0.83rem;
  font-weight: 600;
}

.report-modal-card select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  background: var(--surface-strong);
  color: var(--text);
}

.report-preview {
  margin: 17px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.report-preview span {
  color: var(--primary-light);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-preview p {
  max-height: 145px;
  overflow: auto;
  margin: 8px 0 0;
  color: #dcd5e5;
  font-size: 0.84rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.inline-report-button {
  padding: 4px 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #897e96;
  font-size: 0.7rem;
  cursor: pointer;
}

.inline-report-button:hover {
  color: #ff8aa7;
  background: rgba(255, 102, 140, 0.08);
}

.post-head-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.comment-bubble-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.chat-message-report {
  margin-top: 3px;
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: #786e83;
  font-size: 0.61rem;
  cursor: pointer;
}

.chat-message-report:hover {
  color: #ff8aa7;
}

.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 25px;
}

.admin-heading h1 {
  margin: 0 0 7px;
}

.admin-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-role-chip {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(198, 140, 255, 0.23);
  border-radius: 999px;
  background: rgba(155, 77, 255, 0.11);
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.admin-stat {
  padding: 18px;
}

.admin-stat span,
.admin-stat strong {
  display: block;
}

.admin-stat span {
  color: var(--muted);
  font-size: 0.76rem;
}

.admin-stat strong {
  margin-top: 8px;
  font-size: 1.65rem;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 13px;
}

.admin-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.admin-filter {
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-filter.active {
  border-color: rgba(155, 77, 255, 0.2);
  background: rgba(155, 77, 255, 0.11);
  color: var(--primary-light);
}

.admin-toolbar input {
  max-width: 230px;
}

.admin-reports-list {
  display: grid;
  gap: 14px;
}

.admin-report-card {
  padding: 19px;
}

.admin-report-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.admin-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}

.report-type-chip,
.report-status-chip,
.report-reason-chip {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 800;
}

.report-type-chip {
  background: rgba(155, 77, 255, 0.11);
  color: var(--primary-light);
}

.report-reason-chip {
  background: rgba(255, 255, 255, 0.055);
  color: #cfc5d9;
}

.report-status-chip.open {
  background: rgba(255, 102, 140, 0.11);
  color: #ff8aa7;
}

.report-status-chip.in_review {
  background: rgba(255, 197, 92, 0.11);
  color: #ffd27f;
}

.report-status-chip.resolved {
  background: rgba(104, 224, 180, 0.11);
  color: var(--success);
}

.report-status-chip.dismissed {
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
}

.admin-report-card h3 {
  margin: 0;
  font-size: 1rem;
}

.admin-report-subline {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.admin-report-content {
  margin: 15px 0;
  padding: 14px;
  border-left: 3px solid rgba(155, 77, 255, 0.55);
  border-radius: 0 13px 13px 0;
  background: rgba(255, 255, 255, 0.025);
}

.admin-report-content strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-light);
  font-size: 0.72rem;
}

.admin-report-content p {
  margin: 0;
  color: #ded6e7;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-report-details {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.admin-report-note {
  margin-top: 11px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #cfc5d9;
  font-size: 0.77rem;
  line-height: 1.5;
}

.admin-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.admin-report-actions button {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 0.74rem;
}

.admin-user-state {
  color: #ff8aa7;
  font-size: 0.73rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-toolbar input {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

  .admin-report-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}


.notification-menu-wrap {
  position: relative;
}

.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--background);
  border-radius: 999px;
  background: var(--danger);
  color: white;
  font-size: 0.62rem;
  font-weight: 800;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 55;
  width: min(390px, calc(100vw - 28px));
  max-height: min(590px, calc(100vh - 100px));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(20, 16, 27, 0.99);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.notification-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.notification-panel-head h3 {
  margin: 0;
  font-size: 1rem;
}

.notification-list {
  display: grid;
  max-height: 490px;
  overflow-y: auto;
}

.notification-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.notification-item.unread {
  background: rgba(155, 77, 255, 0.065);
}

.notification-item-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 13px;
  background: rgba(155, 77, 255, 0.12);
  color: var(--primary-light);
  font-weight: 800;
}

.notification-item.moderation .notification-item-icon {
  background: rgba(255, 102, 140, 0.11);
  color: #ff8aa7;
}

.notification-item-content {
  min-width: 0;
}

.notification-item-content strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.83rem;
}

.notification-item-content p {
  margin: 0;
  color: #cfc5d9;
  font-size: 0.77rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.notification-item-time {
  display: block;
  margin-top: 7px;
  color: #786e83;
  font-size: 0.65rem;
}

.notification-item-action {
  margin-top: 9px;
}

.notification-empty {
  padding: 34px 18px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.moderation-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 197, 92, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 5% 50%, rgba(255, 197, 92, 0.12), transparent 30%),
    rgba(255, 197, 92, 0.045);
}

.moderation-banner-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 197, 92, 0.14);
  color: #ffd27f;
  font-size: 1.2rem;
  font-weight: 900;
}

.moderation-banner strong {
  display: block;
  margin-bottom: 4px;
}

.moderation-banner p {
  margin: 0;
  color: #d5c9b1;
  font-size: 0.78rem;
  line-height: 1.5;
}

.restriction-settings {
  border-color: rgba(255, 197, 92, 0.14);
}

.restriction-item {
  padding: 12px;
  border: 1px solid rgba(255, 197, 92, 0.14);
  border-radius: 13px;
  background: rgba(255, 197, 92, 0.04);
}

.restriction-item strong {
  display: block;
  color: #ffd27f;
  font-size: 0.82rem;
}

.restriction-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.admin-restriction-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.admin-restriction-fields label {
  min-width: 0;
}

.admin-restriction-fields select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
}

.admin-active-restrictions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.admin-restriction-chip {
  padding: 6px 9px;
  border: 1px solid rgba(255, 197, 92, 0.16);
  border-radius: 999px;
  background: rgba(255, 197, 92, 0.065);
  color: #ffd27f;
  font-size: 0.68rem;
  font-weight: 700;
}

button:disabled,
input:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

@media (max-width: 820px) {
  .notification-panel {
    position: fixed;
    top: 72px;
    right: 12px;
  }
}

@media (max-width: 560px) {
  .moderation-banner {
    grid-template-columns: auto 1fr;
  }

  .moderation-banner .secondary-button {
    grid-column: 1 / -1;
  }

  .admin-restriction-fields {
    grid-template-columns: 1fr;
  }
}


.admin-suspended-section {
  padding: 20px;
}


.admin-sensitive-queue {
  padding: 20px;
}

.admin-sensitive-queue .empty-state {
  padding: 22px 14px;
  border-radius: 14px;
  font-size: 0.8rem;
}

.admin-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.admin-section-heading h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.admin-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.admin-suspended-users-list {
  display: grid;
  gap: 10px;
}

.admin-suspended-user {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid rgba(255, 102, 140, 0.16);
  border-radius: 15px;
  background: rgba(255, 102, 140, 0.035);
}

.admin-suspended-user .avatar {
  width: 48px;
  height: 48px;
}

.admin-suspended-user-info {
  min-width: 0;
}

.admin-suspended-user-info strong,
.admin-suspended-user-info span {
  display: block;
}

.admin-suspended-user-info strong {
  font-size: 0.88rem;
}

.admin-suspended-user-info .handle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.admin-suspension-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.admin-suspension-chip {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 102, 140, 0.09);
  color: #ff9ab2;
  font-size: 0.65rem;
  font-weight: 700;
}

.admin-suspension-reason {
  margin-top: 7px;
  color: #d7cbdc;
  font-size: 0.74rem;
  line-height: 1.5;
}

.admin-unsuspend-button {
  min-width: 120px;
}

.admin-suspended-empty {
  padding: 22px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 680px) {
  .admin-suspended-user {
    grid-template-columns: auto 1fr;
  }

  .admin-unsuspend-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}


.admin-stats {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}

.admin-user-management {
  padding: 20px;
}

.admin-user-toolbar {
  margin-bottom: 14px;
}

.admin-user-toolbar input {
  max-width: 480px;
}

.admin-users-management-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 3px;
}

.admin-user-management-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-user-management-item.admin-account {
  border-color: rgba(155, 77, 255, 0.22);
  background: rgba(155, 77, 255, 0.055);
}

.admin-user-management-item .avatar {
  width: 48px;
  height: 48px;
}

.admin-user-management-info {
  min-width: 0;
}

.admin-user-management-info strong,
.admin-user-management-info span {
  display: block;
}

.admin-user-management-info strong {
  font-size: 0.88rem;
}

.admin-user-management-info .handle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.admin-user-management-info .email {
  margin-top: 4px;
  overflow: hidden;
  color: #8f849b;
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.admin-role-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
}

.admin-role-status.admin {
  background: rgba(155, 77, 255, 0.13);
  color: var(--primary-light);
}

.admin-role-status.root {
  background: rgba(255, 197, 92, 0.11);
  color: #ffd27f;
}

.admin-role-status.suspended {
  background: rgba(255, 102, 140, 0.1);
  color: #ff8aa7;
}

.admin-role-action {
  min-width: 155px;
}

.admin-role-action[disabled] {
  opacity: 0.55;
}

.admin-users-empty {
  padding: 24px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 700px) {
  .admin-user-management-item {
    grid-template-columns: auto 1fr;
  }

  .admin-role-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .admin-user-toolbar input {
    max-width: none;
  }
}

.profile-tabs {
  display: flex;
  gap: 7px;
  padding: 7px;
}

.profile-tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
  cursor: pointer;
}

.profile-tab-button:hover {
  background: rgba(155, 77, 255, 0.07);
  color: #ded5e8;
}

.profile-tab-button.active {
  border-color: rgba(155, 77, 255, 0.2);
  background: rgba(155, 77, 255, 0.12);
  color: var(--primary-light);
}

.profile-tab-panel {
  display: grid;
  gap: 18px;
}

.personal-info-card {
  padding: 23px;
}

.personal-info-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.personal-info-heading h2 {
  margin: 0 0 7px;
}

.personal-info-heading p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.personal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.personal-info-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.personal-info-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(155, 77, 255, 0.11);
  color: var(--primary-light);
  font-size: 0.9rem;
  font-weight: 850;
}

.personal-info-content {
  min-width: 0;
}

.personal-info-content span,
.personal-info-content strong {
  display: block;
}

.personal-info-content span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.personal-info-content strong {
  overflow-wrap: anywhere;
  font-size: 0.87rem;
  line-height: 1.45;
}

.personal-info-content strong.empty {
  color: #756b80;
  font-weight: 550;
}

.personal-info-editor {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.personal-info-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.personal-info-form-grid label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #dcd3e8;
  font-size: 0.82rem;
  font-weight: 650;
}

.personal-info-form-grid select {
  width: 100%;
  min-height: 45px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  outline: none;
  background: var(--surface-strong);
  color: var(--text);
}

.personal-info-form-grid select:focus {
  border-color: rgba(174, 100, 255, 0.52);
  box-shadow: 0 0 0 3px rgba(155, 77, 255, 0.1);
}

.personal-info-editor .panel-actions {
  margin-top: 18px;
}

@media (max-width: 700px) {
  .profile-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .profile-tab-button {
    padding-inline: 9px;
    font-size: 0.75rem;
  }

  .personal-info-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .personal-info-heading .secondary-button {
    width: 100%;
  }

  .personal-info-grid,
  .personal-info-form-grid {
    grid-template-columns: 1fr;
  }
}


.photo-section-card {
  padding: 23px;
}

.photo-section-heading,
.photo-album-view-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.photo-section-heading h2,
.photo-album-view-heading h2 {
  margin: 0 0 7px;
}

.photo-section-heading p,
.photo-album-view-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.create-photo-album-panel {
  margin-top: 18px;
  padding: 17px;
  border: 1px solid rgba(155, 77, 255, 0.18);
  border-radius: 15px;
  background: rgba(155, 77, 255, 0.045);
}

.create-photo-album-panel label {
  display: grid;
  gap: 8px;
  color: #ddd4e7;
  font-size: 0.82rem;
  font-weight: 650;
}

.create-photo-album-panel .panel-actions {
  margin-top: 13px;
}

.photo-collection-section {
  margin-top: 25px;
}

.photo-collection-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.photo-collection-title h3 {
  margin: 0;
  font-size: 1rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.photo-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.photo-tile:hover img {
  transform: scale(1.045);
}

.photo-tile-overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  padding: 25px 9px 8px;
  background: linear-gradient(transparent, rgba(8, 6, 12, 0.84));
  color: white;
  font-size: 0.65rem;
}

.photo-delete-button {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 10px;
  background: rgba(13, 9, 17, 0.78);
  color: #ff9ab2;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.photo-empty {
  grid-column: 1 / -1;
  padding: 26px 15px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: center;
}

.photo-albums-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.photo-album-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  cursor: pointer;
}

.photo-album-cover {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(155, 77, 255, 0.18), transparent 45%),
    rgba(255, 255, 255, 0.035);
}

.photo-album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.photo-album-card:hover .photo-album-cover img {
  transform: scale(1.04);
}

.photo-album-placeholder {
  color: var(--primary-light);
  font-size: 2rem;
}

.photo-album-card-info {
  padding: 13px;
}

.photo-album-card-info strong,
.photo-album-card-info span {
  display: block;
}

.photo-album-card-info strong {
  overflow: hidden;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-album-card-info span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.7rem;
}

.photo-album-view-heading {
  align-items: center;
}

.photo-album-view-title {
  flex: 1;
  min-width: 0;
}

.photo-album-owner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.album-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.album-upload-button input {
  display: none;
}

.album-upload-progress {
  margin: 18px 0 4px;
  padding: 12px;
  border: 1px solid rgba(155, 77, 255, 0.17);
  border-radius: 13px;
  background: rgba(155, 77, 255, 0.055);
  color: var(--primary-light);
  font-size: 0.78rem;
  text-align: center;
}

.album-photo-grid {
  margin-top: 20px;
}

.photo-lightbox-card {
  position: relative;
  width: min(900px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: #100d15;
  box-shadow: var(--shadow);
}

.photo-lightbox-card img {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: #08060b;
}

.photo-lightbox-caption {
  padding: 15px 18px 18px;
}

.photo-lightbox-caption strong {
  display: block;
  font-size: 0.9rem;
}

.photo-lightbox-caption p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .photo-album-view-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .photo-album-owner-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .profile-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .photo-section-heading .primary-button {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-albums-grid {
    grid-template-columns: 1fr;
  }

  .photo-album-owner-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .photo-album-owner-actions > * {
    width: 100%;
  }
}


.post-options {
  position: relative;
  margin-left: auto;
}

.post-options .post-menu {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: 0;
  border-radius: 10px;
}

.post-options .post-menu:hover,
.post-options .post-menu.active {
  background: rgba(155, 77, 255, 0.09);
  color: var(--primary-light);
}

.post-options-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  width: 180px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(20, 16, 27, 0.99);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.post-options-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
}

.post-options-item:hover {
  background: rgba(155, 77, 255, 0.09);
}

.post-options-item.danger {
  color: #ff8aa7;
}

.reaction-control {
  position: relative;
  min-width: 0;
}

.reaction-main-button {
  width: 100%;
}

.reaction-main-button.active {
  color: var(--primary-light);
  background: rgba(155, 77, 255, 0.08);
}

.reaction-picker {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  z-index: 18;
  display: flex;
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(20, 16, 27, 0.99);
  box-shadow: 0 17px 45px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px) scale(0.94);
  transition: opacity 0.16s ease, transform 0.16s ease;
  backdrop-filter: blur(18px);
}

.reaction-control:hover .reaction-picker,
.reaction-control:focus-within .reaction-picker,
.reaction-control.open .reaction-picker {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.reaction-option {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.35rem;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease;
}

.reaction-option:hover,
.reaction-option.selected {
  background: rgba(155, 77, 255, 0.12);
  transform: translateY(-4px) scale(1.12);
}

.reaction-summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.reaction-summary-icons {
  display: inline-flex;
  align-items: center;
}

.reaction-summary-icons span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: -4px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: rgba(31, 24, 40, 0.98);
  font-size: 0.72rem;
}

.reaction-summary-icons span:first-child {
  margin-left: 0;
}

.edit-post-modal-card {
  width: min(610px, 100%);
  padding-top: 28px;
  text-align: left;
}

.edit-post-heading h2 {
  margin: 0 0 7px;
}

.edit-post-heading p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.edit-post-modal-card > label {
  display: grid;
  gap: 8px;
  color: #dcd3e8;
  font-size: 0.83rem;
  font-weight: 650;
}

.edit-post-image-preview {
  position: relative;
  overflow: hidden;
  max-height: 420px;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #08060b;
}

.edit-post-image-preview img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.edit-post-media-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 13px;
  margin-top: 14px;
}

.edit-post-media-row > span {
  color: var(--muted);
  font-size: 0.72rem;
}

@media (max-width: 560px) {
  .reaction-picker {
    left: 0;
    transform: translate(0, 8px) scale(0.94);
  }

  .reaction-control:hover .reaction-picker,
  .reaction-control:focus-within .reaction-picker,
  .reaction-control.open .reaction-picker {
    transform: translate(0, 0) scale(1);
  }

  .reaction-option {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }

  .edit-post-media-row {
    align-items: stretch;
    flex-direction: column;
  }
}


.forgot-password-row {
  display: flex;
  justify-content: flex-end;
  margin: -5px 0 15px;
}

.auth-link-button,
.auth-back-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-link-button:hover,
.auth-back-button:hover {
  text-decoration: underline;
}

.auth-back-button {
  margin-bottom: 19px;
  color: var(--muted);
}

.auth-back-button:hover {
  color: var(--primary-light);
}

#resetPasswordForm .input-help {
  margin-top: -2px;
}


.profile-cover-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-cover.has-image::after,
.mini-profile-cover.has-image::after,
.person-cover.has-image::after,
.modal-cover.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 5, 12, 0.32), rgba(8, 5, 12, 0.04));
  pointer-events: none;
}

.profile-cover {
  background-size: cover;
  background-position: center;
}

.profile-cover .cover-glow {
  z-index: 1;
}

.profile-cover-actions {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cover-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  background: rgba(14, 9, 20, 0.75);
  color: white;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.cover-action-button:hover {
  background: rgba(35, 20, 48, 0.88);
}

.cover-action-button.danger {
  color: #ff9ab2;
}

.cover-action-button input {
  display: none;
}

.private-username-display {
  color: #85798f !important;
  font-size: 0.73rem !important;
}

.private-username-display::before {
  content: "Privater Benutzername: ";
}

.private-account-hint {
  color: #82768c !important;
  font-size: 0.72rem !important;
}

.mini-profile-cover,
.person-cover,
.modal-cover {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

@media (max-width: 600px) {
  .profile-cover-actions {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .cover-action-button {
    flex: 1;
  }
}


.positionable-image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #08060b;
}

.positionable-image-frame > .positionable-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.positionable-image-frame > .positionable-image:active,
.image-position-editor-frame .positionable-image:active {
  cursor: grabbing;
}

.image-position-hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 2;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(10, 7, 14, .74);
  color: rgba(255,255,255,.86);
  font-size: .65rem;
  pointer-events: none;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.post-image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #08060b;
}

.post-image-frame .post-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}

.avatar-position-button {
  position: absolute;
  left: 2px;
  bottom: 3px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: rgba(27, 20, 37, .96);
  color: var(--primary-light);
  cursor: pointer;
}

.image-position-modal-card {
  width: min(720px, 100%);
  padding-top: 28px;
}

.image-position-heading h2 {
  margin: 0 0 7px;
}

.image-position-heading p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.55;
}

.image-position-editor-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 6;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #08060b;
}

.image-position-editor-frame.avatar-mode {
  width: min(360px, 80vw);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  border-radius: 50%;
}

.image-position-editor-frame .positionable-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.relationship-partner-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-light);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-align: left;
}

.relationship-partner-link:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .image-position-hint {
    width: max-content;
    max-width: calc(100% - 70px);
    text-align: center;
  }
}



@media (max-width: 640px) {
  #imagePositionModal {
    padding: 8px;
  }

  .image-position-modal-card {
    width: min(100%, calc(100vw - 16px));
    max-height: calc(100dvh - 16px);
    padding: 22px 16px 0;
    border-radius: 20px;
  }

  .image-position-modal-card .image-position-heading {
    padding-right: 38px;
  }

  .image-position-modal-card .panel-actions {
    position: sticky;
    bottom: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 18px -16px 0;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border);
    background:
      linear-gradient(
        to top,
        rgba(20, 16, 27, 1) 72%,
        rgba(20, 16, 27, 0.94) 88%,
        rgba(20, 16, 27, 0)
      );
    backdrop-filter: blur(12px);
  }

  .image-position-modal-card .panel-actions button {
    width: 100%;
    min-width: 0;
  }

  .image-position-editor-frame.avatar-mode {
    width: min(320px, calc(100vw - 96px));
  }
}

/* Profilbilder liegen sichtbar vor dem Titelbild */
.mini-profile {
  position: relative;
}

.mini-profile-cover {
  position: relative;
  z-index: 0;
  height: 88px;
}

.mini-profile-cover.has-image::after {
  z-index: 1;
}

.mini-profile-avatar {
  position: relative;
  z-index: 5;
  display: block;
  width: 78px;
  height: 78px;
  margin: -46px auto 12px;
  border: 4px solid var(--surface);
  box-shadow:
    0 0 0 2px rgba(155, 77, 255, 0.16),
    0 10px 24px rgba(0, 0, 0, 0.38);
  background: var(--surface);
}

.person-card {
  position: relative;
  text-align: center;
}

.person-cover {
  position: relative;
  z-index: 0;
}

.person-cover.has-image::after {
  z-index: 1;
}

.person-card .avatar {
  position: relative;
  z-index: 5;
  display: block;
  margin: -37px auto 0;
  background: var(--surface);
  box-shadow:
    0 0 0 2px rgba(155, 77, 255, 0.13),
    0 9px 22px rgba(0, 0, 0, 0.34);
}

.modal-profile-card {
  overflow: hidden;
}

.modal-cover {
  position: relative;
  z-index: 0;
}

.modal-cover.has-image::after {
  z-index: 1;
}

.modal-avatar {
  position: relative;
  z-index: 5;
  background: var(--surface);
  box-shadow:
    0 0 0 2px rgba(155, 77, 255, 0.13),
    0 9px 22px rgba(0, 0, 0, 0.34);
}

.brand-mark {
  min-width: 38px;
  padding-inline: 6px;
  font-size: 0.72rem;
  letter-spacing: -0.03em;
}

.admin-account-actions,
.admin-suspended-actions {
  display: grid;
  gap: 8px;
  min-width: 165px;
}

.admin-account-actions .admin-role-action,
.admin-account-actions .admin-delete-account-button,
.admin-suspended-actions button {
  width: 100%;
}

.admin-delete-account-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (max-width: 700px) {
  .admin-account-actions,
  .admin-suspended-actions {
    grid-column: 1 / -1;
    width: 100%;
  }
}


.upload-rules,
.cover-upload-note {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.cover-upload-note {
  align-self: center;
  max-width: 180px;
  padding: 5px 8px;
  border-radius: 9px;
  background: rgba(10, 7, 14, 0.62);
  color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

.image-processing-info {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  max-width: calc(100% - 24px);
  padding: 6px 9px;
  border: 1px solid rgba(104, 224, 180, 0.18);
  border-radius: 999px;
  background: rgba(9, 15, 14, 0.78);
  color: var(--success);
  font-size: 0.64rem;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.image-position-hint + .image-processing-info:not(:empty) {
  bottom: 44px;
}

.post-image-frame.is-clickable {
  cursor: zoom-in;
}

.post-image-frame.is-clickable::after {
  content: "Vergrößern";
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(8, 6, 11, 0.72);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.62rem;
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.post-image-frame.is-clickable:hover::after {
  opacity: 1;
}

.image-optimization-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: var(--success);
  font-size: 0.67rem;
}

@media (max-width: 680px) {
  .composer-actions {
    flex-wrap: wrap;
  }

  .upload-rules {
    order: 3;
    width: 100%;
  }

  .cover-upload-note {
    display: none;
  }
}


/* Vollständige Beitragsbilder ohne festen 16:9 Zuschnitt */
.full-post-image-frame,
.post-image-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: min(780px, 82vh);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(155, 77, 255, 0.055), transparent 58%),
    #08060b;
}

.full-post-image-frame {
  margin-top: 14px;
}

.full-post-image-frame > .full-post-image,
.post-image-frame .post-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: min(780px, 82vh);
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  cursor: default;
  touch-action: auto;
  user-select: auto;
}

.full-image-hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 90px);
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(10, 7, 14, 0.74);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.65rem;
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.full-image-hint + .image-processing-info:not(:empty) {
  bottom: 44px;
}

.post-image-frame.is-clickable,
.post-image-frame.is-clickable .post-image {
  cursor: zoom-in;
}

@media (max-width: 600px) {
  .full-post-image-frame,
  .post-image-frame,
  .full-post-image-frame > .full-post-image,
  .post-image-frame .post-image {
    max-height: 72vh;
  }
}


.sensitive-composer-section {
  display: grid;
  gap: 11px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(255, 197, 92, 0.15);
  border-radius: 15px;
  background: rgba(255, 197, 92, 0.035);
}

.sensitive-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--text);
  cursor: pointer;
}

.sensitive-toggle-row input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.sensitive-toggle-row span,
.sensitive-toggle-row strong,
.sensitive-toggle-row small {
  display: block;
}

.sensitive-toggle-row strong {
  font-size: 0.82rem;
}

.sensitive-toggle-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.45;
}

.sensitive-category-field,
.sensitive-setting-select {
  display: grid;
  gap: 8px;
  color: #dcd3e8;
  font-size: 0.78rem;
  font-weight: 650;
}

.sensitive-category-field select,
.sensitive-setting-select select {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--text);
}

.sensitive-settings-section {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(255, 197, 92, 0.15);
  border-radius: 15px;
  background: rgba(255, 197, 92, 0.025);
}

.sensitive-hidden-categories {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.sensitive-hidden-categories > strong {
  color: #ded4e8;
  font-size: 0.78rem;
}

.sensitive-hidden-categories label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.76rem;
  cursor: pointer;
}

.sensitive-content-shell {
  position: relative;
  min-height: 155px;
  overflow: hidden;
  margin-top: 2px;
  border-radius: 16px;
  background: rgba(10, 7, 14, 0.72);
}

.sensitive-content-blurred {
  min-height: 155px;
  filter: blur(22px);
  transform: scale(1.035);
  pointer-events: none;
  user-select: none;
}

.sensitive-content-blurred .post-text {
  padding: 13px;
}

.sensitive-content-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 8, 17, 0.42);
  backdrop-filter: blur(3px);
}

.sensitive-warning-card {
  width: min(390px, 94%);
  padding: 17px;
  border: 1px solid rgba(255, 197, 92, 0.24);
  border-radius: 16px;
  background: rgba(18, 13, 23, 0.93);
  text-align: center;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
}

.sensitive-warning-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin: 0 auto 10px;
  border-radius: 14px;
  background: rgba(255, 197, 92, 0.13);
  color: #ffd27f;
  font-weight: 900;
}

.sensitive-warning-card strong {
  display: block;
  font-size: 0.88rem;
}

.sensitive-warning-card p {
  margin: 7px 0 13px;
  color: #d4c9b6;
  font-size: 0.75rem;
  line-height: 1.5;
}

.sensitive-post-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 197, 92, 0.1);
  color: #ffd27f;
  font-size: 0.64rem;
  font-weight: 800;
}

.photo-tile.sensitive-photo-hidden img {
  filter: blur(16px);
  transform: scale(1.08);
}

.photo-tile.sensitive-photo-hidden::after {
  content: "Sensibler Inhalt, zum Anzeigen anklicken";
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(11, 8, 15, 0.48);
  color: white;
  font-size: 0.68rem;
  font-weight: 750;
  text-align: center;
  pointer-events: none;
}

@media (max-width: 560px) {
  .sensitive-warning-card {
    padding: 14px;
  }

  .sensitive-content-shell,
  .sensitive-content-blurred {
    min-height: 180px;
  }
}


/* Kompakte Kennzeichnung sensibler Inhalte direkt unter dem Bild */
.sensitive-compact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 10px 0 3px;
}

.sensitive-compact-toggle {
  display: inline-flex;
  cursor: pointer;
}

.sensitive-compact-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.sensitive-compact-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 750;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.sensitive-compact-toggle:hover .sensitive-compact-pill {
  border-color: rgba(255, 197, 92, 0.26);
  color: #e3d8c3;
}

.sensitive-compact-toggle input:checked + .sensitive-compact-pill {
  border-color: rgba(255, 197, 92, 0.34);
  background: rgba(255, 197, 92, 0.105);
  color: #ffd27f;
}

.sensitive-compact-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: rgba(255, 197, 92, 0.12);
  color: #ffd27f;
  font-size: 0.7rem;
  font-weight: 900;
}

.sensitive-compact-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 5px 4px 10px;
  border: 1px solid rgba(255, 197, 92, 0.18);
  border-radius: 999px;
  background: rgba(255, 197, 92, 0.035);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.sensitive-compact-category select {
  max-width: 265px;
  min-height: 28px;
  padding: 4px 27px 4px 8px;
  border: 0;
  border-radius: 999px;
  outline: none;
  background: rgba(24, 18, 31, 0.96);
  color: var(--text);
  font-size: 0.7rem;
}

.sensitive-preview-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 70px);
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 197, 92, 0.3);
  border-radius: 999px;
  background: rgba(16, 11, 21, 0.84);
  color: #ffd27f;
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1.25;
  backdrop-filter: blur(10px);
}

.edit-sensitive-compact-row {
  margin-top: 11px;
}

@media (max-width: 620px) {
  .sensitive-compact-row {
    align-items: stretch;
    flex-direction: column;
  }

  .sensitive-compact-toggle,
  .sensitive-compact-pill,
  .sensitive-compact-category {
    width: 100%;
  }

  .sensitive-compact-pill {
    justify-content: center;
  }

  .sensitive-compact-category {
    justify-content: space-between;
    border-radius: 13px;
  }

  .sensitive-compact-category select {
    flex: 1;
    max-width: none;
  }
}


/* Beitragsbearbeitung bleibt vollständig innerhalb des sichtbaren Bildschirms */
#editPostModal {
  place-items: start center;
  overflow-y: auto;
  padding: 16px;
  overscroll-behavior: contain;
}

.edit-post-modal-card {
  width: min(680px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 28px 28px 0;
  scroll-padding-bottom: 92px;
  scrollbar-gutter: stable;
  text-align: left;
}

.edit-post-modal-card .edit-post-heading {
  padding-right: 42px;
}

.edit-post-modal-card .edit-post-image-preview,
.edit-post-modal-card .full-post-image-frame {
  width: 100%;
  max-height: 48dvh;
  min-height: 180px;
  aspect-ratio: auto !important;
}

.edit-post-modal-card .edit-post-image-preview img,
.edit-post-modal-card .full-post-image-frame > .full-post-image {
  width: 100%;
  height: auto;
  max-height: 48dvh;
  object-fit: contain;
  object-position: center;
}

.edit-post-modal-card .panel-actions {
  position: sticky;
  bottom: 0;
  z-index: 12;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 18px -28px 0;
  padding: 15px 28px 18px;
  border-top: 1px solid var(--border);
  background:
    linear-gradient(
      to top,
      rgba(20, 16, 27, 1) 72%,
      rgba(20, 16, 27, 0.94) 88%,
      rgba(20, 16, 27, 0)
    );
  backdrop-filter: blur(12px);
}

.edit-post-modal-card .panel-actions button {
  min-width: 150px;
}

.edit-post-modal-card .modal-close {
  position: sticky;
  top: 10px;
  z-index: 20;
  float: right;
  margin: -16px -16px -36px 0;
}

@media (max-width: 640px) {
  #editPostModal {
    padding: 8px;
  }

  .edit-post-modal-card {
    max-height: calc(100dvh - 16px);
    padding: 22px 16px 0;
    border-radius: 18px;
    scroll-padding-bottom: 130px;
  }

  .edit-post-modal-card .edit-post-heading {
    padding-right: 38px;
  }

  .edit-post-modal-card .edit-post-image-preview,
  .edit-post-modal-card .full-post-image-frame,
  .edit-post-modal-card .edit-post-image-preview img,
  .edit-post-modal-card .full-post-image-frame > .full-post-image {
    max-height: 42dvh;
  }

  .edit-post-modal-card .panel-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-inline: -16px;
    padding: 12px 16px 16px;
  }

  .edit-post-modal-card .panel-actions button {
    width: 100%;
    min-width: 0;
  }

  .edit-post-modal-card .modal-close {
    margin-right: -5px;
  }
}


/* Scrollen bleibt möglich, die sichtbare weiße Scrollleiste wird ausgeblendet */
#editPostModal,
.edit-post-modal-card {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#editPostModal::-webkit-scrollbar,
.edit-post-modal-card::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.edit-post-modal-card {
  scrollbar-gutter: auto;
}


/* Kompakte und vollständig sichtbare Warnansicht für sensible Beiträge */
.sensitive-content-shell {
  min-height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #0b0810;
}

.sensitive-content-blurred {
  min-height: 210px;
}

.sensitive-content-overlay {
  padding: 14px;
}

.sensitive-warning-card {
  width: min(340px, calc(100% - 12px));
  padding: 14px 16px;
  border-radius: 15px;
}

.sensitive-warning-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.sensitive-warning-card strong {
  font-size: 0.84rem;
  line-height: 1.35;
}

.sensitive-warning-card p {
  margin: 5px 0 11px;
  font-size: 0.72rem;
  line-height: 1.4;
}

.sensitive-warning-card .primary-button {
  min-width: 150px;
  min-height: 39px;
  padding: 8px 14px;
  font-size: 0.77rem;
}

@media (max-width: 560px) {
  .sensitive-content-blurred {
    min-height: 190px;
  }

  .sensitive-content-overlay {
    padding: 10px;
  }

  .sensitive-warning-card {
    width: min(310px, calc(100% - 4px));
    padding: 12px 13px;
  }

  .sensitive-warning-card .primary-button {
    width: auto;
    min-width: 140px;
  }
}


.admin-sensitive-queue-list {
  display: grid;
  gap: 16px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 3px;
}

.admin-sensitive-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 197, 92, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-sensitive-preview {
  display: grid;
  gap: 12px;
}

.admin-sensitive-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-wrap;
}

.admin-sensitive-image {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(10, 7, 14, 0.88);
}

.admin-sensitive-image img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  object-position: center;
}

.admin-sensitive-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.admin-sensitive-meta-item {
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-sensitive-meta-item strong,
.admin-sensitive-category-field strong {
  display: block;
  margin-bottom: 5px;
  color: #ece5f6;
  font-size: 0.75rem;
}

.admin-sensitive-meta-item span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.admin-sensitive-category-field {
  display: grid;
  gap: 8px;
}

.admin-sensitive-category-field select {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--text);
}

.post-state-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.post-state-chip.pending {
  background: rgba(255, 197, 92, 0.11);
  color: #ffd27f;
}

.post-state-chip.approved {
  background: rgba(88, 220, 160, 0.12);
  color: #7af0bc;
}

.pending-post-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 197, 92, 0.14);
  border-radius: 14px;
  background: rgba(255, 197, 92, 0.04);
  color: #d9c8a2;
  font-size: 0.74rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .admin-sensitive-card {
    padding: 15px;
  }

  .admin-sensitive-image img {
    max-height: 240px;
  }
}

/* Layout mit Profilwechsel, Kontakten und Gruppen */
.left-mini-profile {
  margin-bottom: 18px;
}

.left-sidebar .side-nav {
  margin-top: 0;
}

.contacts-card.friends-sidebar {
  margin-top: 0;
  padding: 17px;
  border-top: 1px solid var(--border);
}

.contacts-card .friends-sidebar-head {
  padding: 0 0 12px;
}

.contacts-card .friends-sidebar-list {
  max-height: 390px;
}

.friends-page-section {
  display: grid;
  gap: 14px;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px;
}

.section-heading-row h2 {
  margin: 3px 0 0;
  font-size: 1.25rem;
}

.subaccounts-modal-card {
  width: min(620px, calc(100vw - 30px));
}

.subaccounts-heading h2,
.subaccount-form-heading h3 {
  margin: 4px 0 8px;
}

.subaccounts-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.owned-accounts-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.owned-account-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.owned-account-item.active {
  border-color: rgba(180, 102, 255, 0.45);
  background: rgba(155, 77, 255, 0.1);
}

.owned-account-info {
  min-width: 0;
}

.owned-account-info strong,
.owned-account-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owned-account-info span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.owned-account-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.owned-account-actions .primary-button,
.owned-account-actions .danger-button {
  padding: 9px 12px;
  font-size: 0.78rem;
}

.active-account-badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(155, 77, 255, 0.16);
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 800;
}

.subaccount-create-form {
  display: grid;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.subaccount-create-form.limit-reached label,
.subaccount-create-form.limit-reached .primary-button {
  opacity: 0.48;
  pointer-events: none;
}

.subaccount-form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.group-create-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.group-create-card h2 {
  margin: 4px 0 0;
}

.groups-grid {
  display: grid;
  gap: 13px;
}

.group-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.group-card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: rgba(155, 77, 255, 0.13);
  color: var(--primary-light);
  font-size: 1.5rem;
}

.group-card-content h3 {
  margin: 3px 0 7px;
}

.group-card-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.group-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 12px;
  color: #94899f;
  font-size: 0.77rem;
}

.group-card-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .bottom-nav {
    grid-template-columns: repeat(5, 1fr);
  }

  .owned-account-item,
  .group-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .owned-account-actions,
  .group-card-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .owned-account-actions button,
  .group-card-actions button {
    flex: 1;
  }
}

.notification-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.notification-request-actions .primary-button,
.notification-request-actions .secondary-button {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 0.74rem;
}

.subaccount-connection-note {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(155, 77, 255, 0.06);
  line-height: 1.5;
}


/* Kompakte Registrierung, alle Felder auf einem Desktopbildschirm */
.auth-view.register-mode {
  grid-template-columns: minmax(0, 0.9fr) minmax(560px, 650px);
  gap: clamp(34px, 5vw, 70px);
  padding-top: 28px;
  padding-bottom: 28px;
}

.auth-view.register-mode .auth-intro h1 {
  margin-top: 24px;
  margin-bottom: 14px;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
}

.auth-view.register-mode .auth-intro > p {
  margin-bottom: 24px;
  line-height: 1.55;
}

.auth-view.register-mode .feature-preview {
  padding: 11px 13px;
  margin-top: 10px;
}

.auth-view.register-mode .feature-icon {
  flex-basis: 38px;
  height: 38px;
}

.auth-view.register-mode .auth-card {
  padding: 20px 22px;
}

.auth-view.register-mode .auth-tabs {
  margin-bottom: 16px;
}

#registerForm:not(.hidden) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 10px;
}

#registerForm .age-requirement-banner,
#registerForm > h2,
#registerForm > p,
#registerForm .age-confirmation,
#registerForm > button {
  grid-column: 1 / -1;
}

#registerForm .age-requirement-banner {
  margin-bottom: 0;
  padding: 9px 12px;
}

#registerForm .age-requirement-icon {
  flex-basis: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 0.82rem;
}

#registerForm > h2 {
  margin: 0;
  font-size: 1.42rem;
}

#registerForm > p {
  margin: -4px 0 1px;
  font-size: 0.82rem;
}

#registerForm label {
  gap: 5px;
  margin-bottom: 0;
  font-size: 0.76rem;
}

#registerForm input:not([type="checkbox"]) {
  padding: 10px 11px;
  border-radius: 11px;
}

#registerForm .input-help {
  font-size: 0.64rem;
  line-height: 1.28;
}

#registerForm .age-status {
  min-height: 0.82em;
  font-size: 0.63rem;
}

#registerForm .age-confirmation {
  padding: 9px 11px;
  line-height: 1.3;
}

#registerForm .age-confirmation span {
  font-size: 0.68rem;
}

#registerForm > .primary-button {
  min-height: 40px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.auth-view.register-mode .local-note {
  margin-top: 12px;
  font-size: 0.67rem;
  line-height: 1.35;
}

@media (max-height: 760px) and (min-width: 981px) {
  .auth-view.register-mode .auth-intro .feature-preview:last-child {
    display: none;
  }

  .auth-view.register-mode .auth-intro h1 {
    margin-top: 18px;
    font-size: clamp(2.45rem, 4.4vw, 4rem);
  }

  .auth-view.register-mode .brand-symbol-auth {
    height: 68px;
  }

  .auth-view.register-mode .auth-card {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

@media (max-width: 980px) {
  .auth-view.register-mode {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 100svh;
    padding: 20px;
    overflow: visible;
  }

  .auth-view.register-mode .auth-intro {
    display: none;
  }

  .auth-view.register-mode .auth-card {
    width: min(100%, 650px);
    margin: auto;
  }
}

@media (max-width: 620px) {
  .auth-view.register-mode {
    padding: 12px;
  }

  #registerForm:not(.hidden) {
    grid-template-columns: 1fr;
  }

  #registerForm .age-requirement-banner,
  #registerForm > h2,
  #registerForm > p,
  #registerForm .age-confirmation,
  #registerForm > button {
    grid-column: 1;
  }
}

#registerForm label {
  align-self: start;
}

@media (min-width: 621px) and (max-width: 980px) {
  .auth-view.register-mode {
    overflow: hidden;
  }
}


/* AniCircle, Rechtliches und Kontakt */
.auth-legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 11px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.auth-legal-footer button,
.inline-legal-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--primary-light);
  font: inherit;
  cursor: pointer;
}

.auth-legal-footer button {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
}

.auth-legal-footer button:hover,
.inline-legal-link:hover {
  color: #fff;
  text-decoration: underline;
}

.registration-legal-confirmations {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#registerForm .legal-confirmation {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  line-height: 1.3;
  cursor: pointer;
}

#registerForm .legal-confirmation input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--primary);
}

#registerForm .legal-confirmation span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 500;
}

#registerForm .inline-legal-link {
  font-size: inherit;
  font-weight: 800;
}

.auth-view.register-mode .auth-legal-footer {
  margin-top: 10px;
  padding-top: 9px;
}

.legal-settings-section {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.legal-settings-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.legal-settings-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(155, 77, 255, 0.045);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.legal-settings-button:hover {
  border-color: rgba(198, 140, 255, 0.32);
  background: rgba(155, 77, 255, 0.085);
}

.legal-settings-button > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(155, 77, 255, 0.14);
  color: var(--primary-light);
  font-weight: 900;
}

.legal-settings-button div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.legal-settings-button strong,
.legal-settings-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legal-settings-button strong {
  font-size: 0.76rem;
}

.legal-settings-button small {
  color: var(--muted);
  font-size: 0.64rem;
}

.legal-settings-button-wide {
  grid-column: 1 / -1;
}

.legal-modal-card {
  width: min(1080px, 100%);
  max-height: min(90vh, 900px);
  padding: 0;
  text-align: left;
  overflow: hidden;
}

.legal-modal-heading {
  padding: 24px 72px 20px 26px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(155, 77, 255, 0.09), rgba(242, 164, 221, 0.045));
}

.legal-modal-heading h2 {
  margin: 3px 0 5px;
  font-size: 1.4rem;
}

.legal-modal-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.legal-modal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 0;
  height: min(72vh, 690px);
}

.legal-modal-tabs {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 18px 14px;
  border-right: 1px solid var(--border);
  background: rgba(8, 6, 11, 0.34);
}

.legal-tab {
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.legal-tab:hover,
.legal-tab.active {
  border-color: rgba(155, 77, 255, 0.18);
  background: rgba(155, 77, 255, 0.1);
  color: #fff;
}

.legal-document-area {
  min-width: 0;
  overflow-y: auto;
  padding: 26px 30px 34px;
  scrollbar-width: thin;
}

.legal-document {
  max-width: 760px;
  margin: 0 auto;
  color: #d9d0e4;
  font-size: 0.83rem;
  line-height: 1.72;
}

.legal-document-intro {
  margin-bottom: 25px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.legal-kicker {
  color: var(--primary-light);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.legal-document h3 {
  margin: 5px 0 9px;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.25;
}

.legal-document h4 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 0.96rem;
}

.legal-document section {
  margin-top: 24px;
}

.legal-document p {
  margin: 8px 0 0;
}

.legal-document ul,
.legal-document ol {
  margin: 9px 0 0;
  padding-left: 21px;
}

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

.legal-document a {
  color: var(--primary-light);
  font-weight: 800;
}

.legal-notice-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 14px 16px;
  border: 1px solid rgba(155, 77, 255, 0.2);
  border-radius: 14px;
  background: rgba(155, 77, 255, 0.07);
}

.contact-support-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(155, 77, 255, 0.2);
  border-radius: 17px;
  background: rgba(155, 77, 255, 0.065);
}

.contact-support-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: rgba(155, 77, 255, 0.14);
  color: var(--primary-light);
  font-size: 1.2rem;
}

.contact-support-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.contact-support-card .primary-button {
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .registration-legal-confirmations {
    grid-template-columns: 1fr;
  }

  .legal-modal-card {
    max-height: calc(100svh - 16px);
    border-radius: 20px;
  }

  .legal-modal-heading {
    padding: 19px 58px 15px 18px;
  }

  .legal-modal-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    height: calc(100svh - 104px);
  }

  .legal-modal-tabs {
    display: flex;
    overflow-x: auto;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .legal-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .legal-document-area {
    padding: 20px 17px 28px;
  }

  .contact-support-card {
    grid-template-columns: 42px 1fr;
  }

  .contact-support-card .primary-button {
    grid-column: 1 / -1;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .legal-settings-actions {
    grid-template-columns: 1fr;
  }

  .legal-settings-button-wide {
    grid-column: 1;
  }

  .auth-legal-footer {
    gap: 6px 9px;
  }
}

.settings-modal-card {
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
}


/* Profilart und Herkunftskennzeichnung */
.profile-name-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.profile-name-line h1 {
  margin: 0;
}

.identity-badge,
.content-origin-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid rgba(204, 133, 255, 0.24);
  border-radius: 999px;
  background: rgba(155, 77, 255, 0.11);
  color: #e3b8ff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.identity-badge.compact {
  min-height: 22px;
  padding: 3px 8px;
  font-size: 0.64rem;
}

.content-origin-chip.ai {
  border-color: rgba(100, 190, 255, 0.25);
  background: rgba(100, 190, 255, 0.1);
  color: #a9dcff;
}

.content-origin-chip.external {
  border-color: rgba(255, 197, 92, 0.25);
  background: rgba(255, 197, 92, 0.09);
  color: #ffd98c;
}


.content-origin-compact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 10px 0 3px;
}

.content-origin-compact-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 4px 5px 4px 10px;
  border: 1px solid rgba(155, 77, 255, 0.26);
  border-radius: 999px;
  background: rgba(155, 77, 255, 0.055);
  color: var(--muted);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.content-origin-compact-select:hover,
.content-origin-compact-select:focus-within {
  border-color: rgba(198, 140, 255, 0.46);
  background: rgba(155, 77, 255, 0.1);
}


.content-origin-label {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.content-origin-compact-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: rgba(155, 77, 255, 0.15);
  color: var(--primary-light);
  font-size: 0.7rem;
  font-weight: 900;
}

.content-origin-compact-select select {
  min-width: 125px;
  min-height: 28px;
  padding: 4px 29px 4px 8px;
  border: 0;
  border-radius: 999px;
  outline: none;
  background: rgba(24, 18, 31, 0.96);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}

.content-origin-source {
  display: inline-flex;
  align-items: center;
  flex: 1 1 320px;
  gap: 8px;
  min-height: 36px;
  padding: 4px 5px 4px 11px;
  border: 1px solid rgba(255, 197, 92, 0.2);
  border-radius: 999px;
  background: rgba(255, 197, 92, 0.035);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.content-origin-source input {
  flex: 1;
  min-width: 160px;
  min-height: 28px;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  outline: none;
  background: rgba(24, 18, 31, 0.96);
  color: var(--text);
  font-size: 0.7rem;
}

.content-origin-help {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.edit-content-origin-compact-row {
  margin-top: 12px;
}

.post-source-line {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
  padding: 9px 11px;
  border-left: 3px solid rgba(255, 197, 92, 0.45);
  border-radius: 8px;
  background: rgba(255, 197, 92, 0.055);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.post-source-line strong {
  color: #ffd98c;
}

.post-source-line a {
  color: var(--primary-light);
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .content-origin-compact-row {
    align-items: stretch;
  }

  .content-origin-compact-select,
  .content-origin-source {
    width: 100%;
  }

  .content-origin-compact-select select,
  .content-origin-source input {
    width: 100%;
  }
}


/* Konto und Sicherheit */
.account-security-section {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.account-email-summary {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.account-email-summary span,
.account-email-summary small {
  color: var(--muted);
  font-size: 0.72rem;
}

.account-email-summary strong {
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}

.account-email-summary small {
  color: #ffd27f;
  line-height: 1.45;
}

.account-security-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.account-security-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(155, 77, 255, 0.045);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.account-security-button:hover {
  border-color: rgba(198, 140, 255, 0.32);
  background: rgba(155, 77, 255, 0.085);
}

.account-security-button > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(155, 77, 255, 0.14);
  color: var(--primary-light);
  font-weight: 900;
}

.account-security-button div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-security-button strong,
.account-security-button small {
  display: block;
}

.account-security-button small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.account-security-button.danger {
  grid-column: 1 / -1;
  border-color: rgba(255, 102, 140, 0.22);
  background: rgba(255, 102, 140, 0.055);
}

.account-security-button.danger:hover {
  border-color: rgba(255, 102, 140, 0.45);
  background: rgba(255, 102, 140, 0.1);
}

.account-security-button.danger > span {
  background: rgba(255, 102, 140, 0.14);
  color: #ff9ab2;
}

.account-security-note {
  display: block;
  margin: 11px 1px 0;
  line-height: 1.45;
}

.account-action-modal-card {
  width: min(560px, calc(100vw - 30px));
  text-align: left;
}

.account-action-heading h2 {
  margin: 4px 0 8px;
}

.account-action-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.account-action-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.account-action-form > label,
.account-password-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.account-password-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.delete-account-modal-card {
  border-color: rgba(255, 102, 140, 0.28);
}

.danger-eyebrow {
  color: #ff8aa7;
}

.delete-account-warning {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 102, 140, 0.22);
  border-radius: 14px;
  background: rgba(255, 102, 140, 0.06);
}

.delete-account-warning strong {
  color: #ff9ab2;
}

.delete-account-warning p {
  margin: 6px 0 0;
  color: #d7cbdc;
  font-size: 0.76rem;
  line-height: 1.55;
}

.delete-account-confirmation-row {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px !important;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.delete-account-confirmation-row input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #ff668c;
}

.delete-account-confirmation-row span {
  color: #d7cbdc;
  font-size: 0.75rem;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .account-security-actions,
  .account-password-grid {
    grid-template-columns: 1fr;
  }

  .account-security-button.danger {
    grid-column: 1;
  }

  .account-action-modal-card .panel-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .account-action-modal-card .panel-actions button {
    width: 100%;
  }
}

/* Mobile Profilverwaltung, zuverlässige Datei-Auswahl */
.profile-avatar-wrap {
  z-index: 5;
}

.avatar-edit,
.avatar-position-button {
  z-index: 8;
  touch-action: manipulation;
}

.avatar-edit {
  overflow: hidden;
}

.avatar-edit input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.cover-action-button {
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
}

.cover-action-button input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

@media (max-width: 600px) {
  .profile-cover {
    height: 220px;
  }

  .profile-cover-actions {
    top: 10px;
    right: 10px;
    bottom: auto;
    left: auto;
    display: flex;
    width: min(188px, calc(100% - 20px));
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 7px;
  }

  .profile-cover-actions .cover-action-button {
    flex: none;
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    justify-content: flex-start;
    text-align: left;
    font-size: 0.72rem;
  }

  .avatar-edit,
  .avatar-position-button {
    width: 42px;
    height: 42px;
  }

  .avatar-edit {
    right: -1px;
    bottom: 1px;
  }

  .avatar-position-button {
    left: -1px;
    bottom: 1px;
  }
}

/* Profilaktionsmenü muss über der Profilkarte liegen */
.profile-hero {
  overflow: visible;
  position: relative;
  z-index: 3;
}

.profile-cover {
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.profile-main {
  position: relative;
  z-index: 6;
}

.profile-actions,
.profile-more-menu {
  position: relative;
  z-index: 80;
}

.profile-more-menu[open] {
  z-index: 120;
}

.profile-more-panel {
  z-index: 130;
}

.admin-role-status.pending {
  border-color: rgba(255, 197, 92, 0.28);
  background: rgba(255, 197, 92, 0.1);
  color: #ffd98c;
}


/* Ausgebaute Gruppenseiten */
.group-back-button {
  justify-self: start;
  padding: 8px 2px;
  color: var(--primary-light);
  font-weight: 800;
  cursor: pointer;
}

.group-card-open {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.group-card-open:hover h3 {
  color: var(--primary-light);
}

.group-card-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.group-detail-hero {
  overflow: hidden;
}

.group-detail-cover {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  background:
    radial-gradient(circle at 74% 25%, rgba(220, 170, 255, 0.32), transparent 30%),
    radial-gradient(circle at 20% 75%, rgba(120, 43, 218, 0.42), transparent 36%),
    linear-gradient(135deg, #30104d, #120b1d 70%);
}

.group-detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 7, 18, 0.72), transparent 62%);
}

.group-detail-cover-symbol {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: rgba(13, 8, 20, 0.62);
  color: var(--primary-light);
  font-size: 3rem;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

.group-detail-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}

.group-detail-copy h1 {
  margin: 5px 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.group-detail-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.group-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 13px;
  color: #9d91aa;
  font-size: 0.8rem;
}

.group-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.group-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 7px;
}

.group-tab-button {
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.group-tab-button.active,
.group-tab-button:hover {
  background: rgba(155, 77, 255, 0.13);
  color: var(--primary-light);
}

.group-tab-panel {
  display: grid;
  gap: 18px;
}

.group-join-notice {
  padding: 22px;
  text-align: center;
}

.group-join-notice p {
  margin: 7px 0 0;
  color: var(--muted);
}

.group-members-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.group-member-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
}

.group-member-profile {
  cursor: pointer;
}

.group-member-copy strong,
.group-member-copy span {
  display: block;
}

.group-member-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.group-owner-chip {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(155, 77, 255, 0.13);
  color: var(--primary-light);
  font-size: 0.68rem;
  font-weight: 800;
}

.group-info-card {
  padding: 24px;
}

.group-info-card h2 {
  margin: 5px 0 10px;
}

.group-info-card > p {
  color: var(--muted);
  line-height: 1.65;
}

.group-info-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
}

.group-info-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.group-info-list dt {
  color: var(--muted);
}

.group-info-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

@media (max-width: 820px) {
  .group-detail-cover {
    min-height: 170px;
  }

  .group-detail-main {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .group-detail-actions,
  .group-detail-actions button {
    width: 100%;
  }

  .group-members-grid {
    grid-template-columns: 1fr;
  }

  .group-card-open {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .group-tabs {
    grid-template-columns: 1fr;
  }

  .group-tab-button {
    min-height: 42px;
  }

  .group-info-list > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .group-info-list dd {
    text-align: left;
  }
}

/* Gruppenkarten mit klickbarem Hauptbereich */
.group-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

@media (max-width: 820px) {
  .group-card {
    grid-template-columns: 1fr;
  }

  .group-card-open,
  .group-card-actions {
    grid-column: 1;
  }
}


/* Dauerhafte Reaktionsauswahl und Personenliste */
.reaction-picker::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 12px;
}

.reaction-summary-button {
  padding: 2px 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.reaction-summary-button:hover,
.reaction-summary-button[aria-expanded="true"] {
  background: rgba(155, 77, 255, 0.09);
  color: var(--primary-light);
}

.reaction-details-wrap {
  position: relative;
}

.reaction-details-panel {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(20, 16, 27, 0.99);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

.reaction-details-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 10px;
  border-bottom: 1px solid var(--border);
}

.reaction-details-heading > div {
  display: grid;
  gap: 2px;
}

.reaction-details-heading strong {
  font-size: 0.86rem;
}

.reaction-details-heading span {
  color: var(--muted);
  font-size: 0.7rem;
}

.reaction-details-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 1.15rem;
  cursor: pointer;
}

.reaction-details-close:hover {
  color: var(--text);
  background: rgba(155, 77, 255, 0.1);
}

.reaction-people-list {
  display: grid;
  gap: 5px;
  max-height: 260px;
  padding-top: 8px;
  overflow-y: auto;
}

.reaction-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.reaction-person:hover {
  background: rgba(155, 77, 255, 0.08);
}

.reaction-person .avatar {
  width: 36px;
  height: 36px;
}

.reaction-person-info {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.reaction-person-info strong,
.reaction-person-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reaction-person-info strong {
  font-size: 0.78rem;
}

.reaction-person-info span {
  color: var(--muted);
  font-size: 0.68rem;
}

.reaction-person-emoji {
  font-size: 1.2rem;
}

.reaction-details-empty {
  padding: 14px;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}


/* Verifizierte Mitglieder */
.verified-name::after {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border: 1px solid rgba(225, 179, 255, 0.52);
  border-radius: 50%;
  background: linear-gradient(145deg, #b84cff, #6f32e8);
  box-shadow: 0 0 0 2px rgba(155, 77, 255, 0.08), 0 4px 12px rgba(88, 34, 164, 0.28);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  vertical-align: 0.08em;
}

h1.verified-name::after,
h2.verified-name::after,
h3.verified-name::after {
  width: 18px;
  height: 18px;
  font-size: 11px;
  vertical-align: 0.12em;
}

.admin-role-status.verified {
  background: rgba(102, 185, 255, 0.12);
  color: #9bd6ff;
}

.admin-verified-action.is-verified {
  border-color: rgba(102, 185, 255, 0.28);
  color: #a8ddff;
}

.admin-account-actions .admin-verified-action {
  width: 100%;
}


/* Eigenständige Verwaltung verifizierter Mitglieder */
.admin-verification-management {
  padding: 20px;
}

.admin-verification-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 3px;
}

.admin-verification-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-verification-item.is-verified {
  border-color: rgba(155, 77, 255, 0.28);
  background: rgba(155, 77, 255, 0.065);
}

.admin-verification-item .avatar {
  width: 48px;
  height: 48px;
}

.admin-verification-info {
  min-width: 0;
}

.admin-verification-info strong,
.admin-verification-info span,
.admin-verification-info small {
  display: block;
}

.admin-verification-info strong {
  font-size: 0.88rem;
}

.admin-verification-info span {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-verification-info small {
  margin-top: 6px;
  color: #9b8da8;
  font-size: 0.66rem;
}

.admin-verification-toggle {
  min-width: 145px;
}

@media (max-width: 700px) {
  .admin-verification-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-verification-toggle {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* RP Kompatibilitätskarte */
.rp-card {
  padding: 23px;
}

.rp-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.rp-card-heading h2 {
  margin: 0 0 7px;
}

.rp-card-heading p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.rp-card-display {
  display: grid;
  gap: 14px;
}

.rp-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rp-availability {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
}

.rp-availability.open {
  border-color: rgba(80, 210, 145, 0.3);
  background: rgba(80, 210, 145, 0.1);
  color: #8de6b8;
}

.rp-availability.ask {
  border-color: rgba(255, 197, 92, 0.28);
  background: rgba(255, 197, 92, 0.09);
  color: #ffd98c;
}

.rp-availability.closed {
  border-color: rgba(255, 102, 140, 0.25);
  background: rgba(255, 102, 140, 0.08);
  color: #ff9ab2;
}

.rp-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.rp-info-item,
.rp-text-block {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.rp-info-item span,
.rp-text-block > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rp-info-item strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.45;
}

.rp-text-block p {
  margin: 0;
  color: #ddd4e8;
  font-size: 0.84rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.rp-private-notice {
  padding: 12px 14px;
  border: 1px solid rgba(255, 197, 92, 0.2);
  border-radius: 13px;
  background: rgba(255, 197, 92, 0.06);
  color: #ddcaa6;
  font-size: 0.78rem;
  line-height: 1.5;
}

.rp-compatibility-summary {
  margin-bottom: 16px;
  padding: 15px;
  border: 1px solid rgba(155, 77, 255, 0.22);
  border-radius: 16px;
  background: rgba(155, 77, 255, 0.07);
}

.rp-compatibility-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.rp-compatibility-score strong {
  color: var(--primary-light);
  font-size: 1.45rem;
}

.rp-compatibility-score span {
  color: #ddd4e8;
  font-size: 0.82rem;
  font-weight: 750;
}

.rp-compatibility-bar {
  height: 8px;
  margin: 10px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.rp-compatibility-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8c45df, #d280ff);
}

.rp-compatibility-summary small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.rp-card-editor {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.rp-card-visibility {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 15px;
  padding: 13px;
  border: 1px solid rgba(155, 77, 255, 0.16);
  border-radius: 14px;
  background: rgba(155, 77, 255, 0.05);
  cursor: pointer;
}

.rp-card-visibility input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.rp-card-visibility strong,
.rp-card-visibility small {
  display: block;
}

.rp-card-visibility strong {
  margin-bottom: 4px;
  font-size: 0.84rem;
}

.rp-card-visibility small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.rp-card-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rp-card-form-grid label,
.rp-card-wide-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #dcd3e8;
  font-size: 0.82rem;
  font-weight: 650;
}

.rp-card-wide-field {
  margin-top: 14px;
}

.rp-card-editor .panel-actions {
  margin-top: 18px;
}

@media (max-width: 700px) {
  .profile-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rp-card-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .rp-card-heading .secondary-button {
    width: 100%;
  }

  .rp-info-grid,
  .rp-card-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Nachrichtenübersicht */
.chat-inbox-heading {
  margin-bottom: 18px;
}

.chat-inbox-card {
  overflow: hidden;
  padding: 0;
}

.chat-inbox-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
}

.chat-inbox-card-head h2 {
  margin: 2px 0 0;
}

.chat-inbox-list {
  display: grid;
}

.chat-inbox-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 82px;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.chat-inbox-item:last-child {
  border-bottom: 0;
}

.chat-inbox-item:hover,
.chat-inbox-item:focus-visible,
.chat-inbox-item.active {
  outline: none;
  background: rgba(155, 77, 255, 0.09);
}

.chat-inbox-item.unread {
  background:
    linear-gradient(90deg, rgba(155, 77, 255, 0.19), rgba(155, 77, 255, 0.055));
  box-shadow: inset 4px 0 0 var(--primary-light);
}

.chat-inbox-item.unread:hover,
.chat-inbox-item.unread:focus-visible {
  background:
    linear-gradient(90deg, rgba(155, 77, 255, 0.25), rgba(155, 77, 255, 0.085));
}

.chat-inbox-avatar-wrap {
  position: relative;
  display: inline-flex;
}

.chat-inbox-avatar-wrap .avatar {
  width: 54px;
  height: 54px;
}

.chat-inbox-avatar-wrap .online-status-dot {
  width: 13px;
  height: 13px;
}

.chat-inbox-content {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.chat-inbox-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.chat-inbox-topline strong {
  overflow: hidden;
  font-size: 0.94rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-inbox-item.unread .chat-inbox-topline strong {
  color: #f6eaff;
  font-weight: 850;
}

.chat-inbox-topline time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
}

.chat-inbox-item.unread .chat-inbox-topline time {
  color: var(--primary-light);
  font-weight: 800;
}

.chat-inbox-preview {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-inbox-item.unread .chat-inbox-preview {
  color: #ddd1e9;
  font-weight: 700;
}

.chat-inbox-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #bd72ff, #7c20df);
  color: white;
  box-shadow: 0 7px 20px rgba(125, 32, 223, 0.32);
  font-size: 0.7rem;
  font-weight: 850;
}

.chat-inbox-arrow {
  color: #8f839d;
  font-size: 1.55rem;
  line-height: 1;
}

.chat-inbox-empty {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 46px 24px;
  text-align: center;
}

.chat-inbox-empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 4px;
  border: 1px solid rgba(198, 140, 255, 0.22);
  border-radius: 19px;
  background: rgba(155, 77, 255, 0.11);
  color: var(--primary-light);
  font-size: 1.55rem;
}

.chat-inbox-empty p {
  max-width: 420px;
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 560px) {
  .chat-inbox-card-head {
    padding: 17px 16px 14px;
  }

  .chat-inbox-item {
    min-height: 76px;
    gap: 11px;
    padding: 12px 14px;
  }

  .chat-inbox-avatar-wrap .avatar {
    width: 49px;
    height: 49px;
  }

  .chat-inbox-topline {
    gap: 8px;
  }

  .chat-inbox-topline strong {
    font-size: 0.88rem;
  }

  .chat-inbox-preview {
    font-size: 0.76rem;
  }
}

/* Getrennter Nachrichten und RP Bereich */
.chat-section-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(20, 15, 27, 0.88);
}

.chat-section-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.chat-section-tab.active {
  border-color: rgba(190, 124, 255, 0.3);
  background: linear-gradient(135deg, rgba(174, 92, 255, 0.24), rgba(111, 41, 196, 0.16));
  color: #f4e8ff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}

.chat-section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff4c7d;
  color: #fff;
  font-size: .68rem;
  font-weight: 900;
}

.rp-scenes-intro-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 20px 22px;
}

.rp-scenes-intro-card h2,
.rp-scene-create-card h2,
.rp-scene-list-heading h2 {
  margin: 3px 0 7px;
}

.rp-scenes-intro-card p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.rp-scene-create-card {
  margin-bottom: 16px;
  padding: 20px 22px;
}

.rp-scene-create-heading,
.rp-scene-list-heading,
.rp-scene-detail-heading,
.rp-scene-detail-meta,
.rp-scene-entry-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.rp-scene-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.rp-scene-create-actions {
  margin-top: 18px;
}

.rp-scenes-layout {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.45fr);
  gap: 16px;
  align-items: start;
}

.rp-scene-list-card,
.rp-scene-detail-card {
  overflow: hidden;
  padding: 0;
}

.rp-scene-list-heading {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.rp-scene-list {
  display: grid;
}

.rp-scene-list-item {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.055);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.rp-scene-list-item:last-child {
  border-bottom: 0;
}

.rp-scene-list-item:hover,
.rp-scene-list-item.active {
  background: rgba(155, 77, 255, .1);
  box-shadow: inset 4px 0 0 var(--primary-light);
}

.rp-scene-list-title,
.rp-scene-list-meta,
.rp-scene-list-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.rp-scene-list-title {
  justify-content: space-between;
}

.rp-scene-list-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-scene-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(104, 224, 180, .11);
  color: #7ce7bf;
  font-size: .65rem;
  font-weight: 850;
}

.rp-scene-status.paused {
  background: rgba(255, 197, 92, .11);
  color: #ffd27f;
}

.rp-scene-status.completed {
  background: rgba(255,255,255,.07);
  color: var(--muted);
}

.rp-scene-list-meta,
.rp-scene-list-preview {
  color: var(--muted);
  font-size: .75rem;
}

.rp-scene-list-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-scene-empty,
.rp-scene-detail-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 230px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.rp-scene-empty strong,
.rp-scene-detail-empty strong {
  color: var(--text);
}

.rp-scene-detail-heading {
  align-items: flex-start;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border);
}

.rp-scene-detail-heading h2 {
  margin: 3px 0 7px;
}

.rp-scene-detail-heading p {
  margin: 0;
  color: var(--muted);
}

.rp-scene-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.rp-scene-detail-actions select {
  min-width: 130px;
  width: auto;
}

.rp-scene-detail-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 12px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.018);
  color: var(--muted);
  font-size: .76rem;
}

.rp-scene-detail-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(155,77,255,.08);
}

.rp-scene-entries {
  display: grid;
  gap: 14px;
  max-height: 520px;
  min-height: 300px;
  overflow-y: auto;
  padding: 18px 20px;
}

.rp-scene-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.rp-scene-entry .avatar {
  width: 42px;
  height: 42px;
}

.rp-scene-entry-body {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}

.rp-scene-entry.own .rp-scene-entry-body {
  border-color: rgba(174,92,255,.19);
  background: rgba(132,62,211,.085);
}

.rp-scene-entry.ooc .rp-scene-entry-body {
  border-style: dashed;
  background: rgba(255,197,92,.065);
}

.rp-scene-entry-topline strong {
  color: var(--primary-light);
  font-size: .84rem;
}

.rp-scene-entry-topline time {
  color: var(--muted);
  font-size: .68rem;
}

.rp-scene-entry-text {
  margin-top: 8px;
  white-space: pre-wrap;
  line-height: 1.65;
}

.rp-scene-ooc-label {
  display: inline-flex;
  margin-left: 7px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255,197,92,.14);
  color: #ffd27f;
  font-size: .58rem;
  font-weight: 900;
}

.rp-scene-entry-form {
  display: grid;
  gap: 10px;
  padding: 15px 20px 20px;
  border-top: 1px solid var(--border);
  background: rgba(10,7,14,.4);
}

.rp-scene-entry-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.rp-scene-entry-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rp-scene-mode-button {
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}

.rp-scene-mode-button.active {
  border-color: rgba(174,92,255,.35);
  background: rgba(155,77,255,.13);
  color: var(--primary-light);
}

.rp-scene-turn-note {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
}

@media (max-width: 820px) {
  .rp-scenes-layout {
    grid-template-columns: 1fr;
  }

  .rp-scene-form-grid {
    grid-template-columns: 1fr;
  }

  .rp-scenes-intro-card {
    align-items: stretch;
    flex-direction: column;
  }

  .rp-scenes-intro-card .primary-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .chat-section-tab {
    padding-inline: 8px;
    font-size: .78rem;
  }

  .rp-scene-detail-heading {
    flex-direction: column;
  }

  .rp-scene-detail-actions,
  .rp-scene-detail-actions select {
    width: 100%;
  }

  .rp-scene-entry-controls {
    grid-template-columns: 1fr;
  }

  .rp-scene-entry-controls .primary-button {
    width: 100%;
  }
}

/* v45, Chat auch am Desktop und kompaktere Profilnamen */
.profile-name-line h1,
#profileName {
  max-width: 100%;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

#sideName,
#topUsername {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#sideName {
  width: 100%;
  font-size: 1rem;
  line-height: 1.25;
}

.profile-chip #topUsername {
  max-width: 190px;
  font-size: 0.86rem;
}

@media (max-width: 560px) {
  .profile-name-line {
    justify-content: center;
  }

  .profile-name-line h1,
  #profileName {
    font-size: clamp(1.22rem, 5.2vw, 1.55rem);
    line-height: 1.2;
  }
}

/* Verfügbarkeitsstatus für Freunde und Chats */
.online-status-dot.away {
  background: #ff5d6c;
  box-shadow: 0 0 0 2px rgba(255, 93, 108, 0.12), 0 0 10px rgba(255, 93, 108, 0.5);
}

.friend-sidebar-info span.away,
.chat-user-button small.away {
  color: #ff7a87;
}

.friends-sidebar-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}

.presence-settings-button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(155, 77, 255, 0.2);
  border-radius: 10px;
  background: rgba(155, 77, 255, 0.08);
  color: var(--primary-light);
  font-size: 0.94rem;
  line-height: 1;
  cursor: pointer;
  transition: 0.18s ease;
}

.presence-settings-button:hover,
.presence-settings-button:focus-visible {
  border-color: rgba(190, 132, 255, 0.5);
  background: rgba(155, 77, 255, 0.16);
  transform: rotate(20deg);
}

.mobile-presence-button {
  display: none;
  flex: 0 0 auto;
}

.page-heading-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-heading-title-row h1 {
  margin-block: 0;
}

.presence-settings-modal-card {
  width: min(470px, 100%);
  padding-top: 28px;
  text-align: left;
}

.presence-settings-modal-card > .eyebrow,
.presence-settings-modal-card > h2,
.presence-settings-modal-card > p {
  padding-right: 34px;
}

.presence-settings-modal-card h2 {
  margin: 5px 0 8px;
}

.presence-settings-modal-card > p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.presence-options {
  display: grid;
  gap: 10px;
}

.presence-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
}

.presence-option:hover,
.presence-option:focus-visible,
.presence-option.selected {
  border-color: rgba(172, 103, 255, 0.45);
  background: rgba(155, 77, 255, 0.1);
}

.presence-option span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.presence-option strong,
.presence-option small {
  display: block;
}

.presence-option small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.presence-option-dot {
  width: 13px;
  height: 13px;
  border: 2px solid #181220;
  border-radius: 50%;
}

.presence-option-dot.online {
  background: #36d977;
  box-shadow: 0 0 0 2px rgba(54, 217, 119, 0.14);
}

.presence-option-dot.away {
  background: #ff5d6c;
  box-shadow: 0 0 0 2px rgba(255, 93, 108, 0.14);
}

.presence-option-dot.offline {
  background: #6f6579;
  box-shadow: 0 0 0 2px rgba(111, 101, 121, 0.14);
}

.presence-option-check {
  color: var(--primary-light);
  font-weight: 900;
  opacity: 0;
}

.presence-option.selected .presence-option-check {
  opacity: 1;
}

@media (max-width: 1100px) {
  .mobile-presence-button {
    display: inline-grid;
  }
}

@media (max-width: 560px) {
  .presence-settings-modal-card {
    width: calc(100vw - 24px);
    padding: 24px 16px 18px;
    border-radius: 20px;
  }
}
