/* Клуб землевладельцев */
.section__title--sm {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.section__desc {
  color: var(--text-muted, #5a6b62);
  margin: -0.5rem 0 1rem;
  font-size: 0.9375rem;
}

.club-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  align-items: center;
}

.club-tabs--club-page {
  gap: 0.65rem 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.club-tabs__group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.club-tabs__group--meta {
  margin-left: auto;
}

@media (max-width: 720px) {
  .club-tabs__group--meta {
    margin-left: 0;
    width: 100%;
  }
}

.club-tabs__link--outline {
  background: transparent;
  border-style: dashed;
}

.club-tabs__link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

button.club-tabs__link {
  cursor: pointer;
  font-family: inherit;
}

.club-tabs__link:hover {
  color: var(--text);
  border-color: rgba(45, 155, 74, 0.35);
}

.club-tabs__link.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark, #1e7a34));
  border-color: transparent;
}

.club-tabs__link--cabinet.is-active {
  background: linear-gradient(135deg, #1e7a34, #145a28);
}

.member-name {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.member-name__text {
  min-width: 0;
}

.member-name--title .member-name__text {
  display: inline;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: #1d9bf0;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.verified-badge--admin {
  width: 1.2rem;
  height: 1.2rem;
  font-size: 0.7rem;
}

.chat-msg__author--link .verified-badge,
.chat-msg__author .verified-badge,
.chat-panel__partner .verified-badge,
.chat-sidebar__name .verified-badge {
  vertical-align: middle;
  margin-left: 0.05rem;
}

a.chat-msg__author--link,
.chat-msg__author {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

a.chat-msg__author--link .member-name,
.chat-msg__author .member-name {
  gap: 0.5rem;
}

.chat-mode-tabs {
  margin-bottom: 1rem;
}

.page--club-chat .club-chat-top {
  margin-bottom: 0.75rem;
}

.page__title--compact {
  margin-bottom: 0.65rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.club-chat-section--focused {
  margin-top: 0;
}

.page--club-chat .chat-panel {
  min-height: min(72vh, 640px);
}

.page--club-chat .chat-messages {
  max-height: min(58vh, 520px);
}

.page--club-chat .chat-sidebar__list {
  max-height: min(58vh, 520px);
}

.page--cabinet-chat .cabinet-profile {
  display: none;
}

.page--cabinet-chat .cabinet-tabs {
  margin-bottom: 0.75rem;
}

.page--cabinet-chat .chat-panel {
  min-height: min(72vh, 640px);
}

.page--cabinet-chat .chat-messages {
  max-height: min(58vh, 520px);
}

.page--cabinet-chat .chat-sidebar__list {
  max-height: min(58vh, 520px);
}

.club-hero {
  padding: 2rem 0 1.5rem;
  text-align: center;
}

.club-hero .page__title,
.club-hero .page__subtitle {
  margin-inline: auto;
  text-align: center;
  max-width: 40rem;
}

.club-hero #clubGuestCta,
.club-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.club-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(45, 155, 74, 0.12);
  color: var(--green, #2d9b4a);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.club-features {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin: 1.25rem 0 0.5rem;
}

.club-features__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  text-decoration: none;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

button.club-features__card {
  width: 100%;
}

.club-features__card:hover {
  border-color: rgba(45, 155, 74, 0.35);
  box-shadow: 0 6px 20px rgba(45, 155, 74, 0.08);
  transform: translateY(-1px);
}

.club-features__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.club-features__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.club-features__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted, #5a6b62);
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(45, 155, 74, 0.1);
  color: var(--green, #2d9b4a);
}

.tier-badge--large {
  font-size: 1rem;
  padding: 0.45rem 1rem;
}

.tier-progress {
  margin-top: 0.75rem;
  max-width: 320px;
}

.tier-progress__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-top: 0.35rem;
}

.tier-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #2d9b4a, #c9a227);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.cabinet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 0.75rem;
}

.cabinet-tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
  color: var(--text-muted, #5a6b62);
  transition: background 0.2s, color 0.2s;
}

.cabinet-tabs__btn.is-active {
  background: rgba(45, 155, 74, 0.12);
  color: var(--green, #2d9b4a);
  font-weight: 600;
}

.cabinet-unread-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(45, 155, 74, 0.1);
  border: 1px solid rgba(45, 155, 74, 0.22);
  color: var(--text, #1a2e24);
  font-size: 0.9375rem;
}

.unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}

.unread-badge--header {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.1rem;
  height: 1.1rem;
  font-size: 0.625rem;
  box-shadow: 0 0 0 2px var(--bg, #f4faf6);
}

.header-auth__chip {
  position: relative;
}

.chat-sidebar__name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cabinet-panel[hidden] {
  display: none !important;
}

.parcel-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  margin-bottom: 1.5rem;
}

.parcel-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.parcel-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.parcel-card__title {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

.parcel-card__meta {
  font-size: 0.8125rem;
  color: var(--text-muted, #5a6b62);
  display: grid;
  gap: 0.25rem;
}

.parcel-card__meta strong {
  color: var(--text, #1a2e24);
  font-weight: 500;
}

.exchange-seek-block {
  margin: 1rem 0 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.form-toggle--sm .form-toggle__btn {
  font-size: 0.8125rem;
  padding: 0.45rem 0.75rem;
}

.exchange-browse-list {
  display: grid;
  gap: 0.5rem;
  max-height: 240px;
  overflow-y: auto;
  padding: 0.35rem 0;
}

.exchange-browse-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
}

.exchange-browse-item__meta {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted, #5a6b62);
}

.lot-parcel-summary {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.exchange-proposals-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.exchange-proposal-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.exchange-proposal-card__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.exchange-proposal-card__note {
  font-size: 0.875rem;
  color: var(--text-muted, #5a6b62);
  margin: 0;
}

.exchange-proposal-card__meta {
  font-size: 0.8125rem;
  color: var(--text-muted, #5a6b62);
}

.exchange-proposal-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.parcel-card--public .parcel-card__meta--brief {
  margin-bottom: 0.15rem;
}

.parcel-card__details {
  margin-top: 0.15rem;
}

.parcel-card__details-toggle {
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent, #2d6a4f);
  list-style: none;
  user-select: none;
}

.parcel-card__details-toggle::-webkit-details-marker {
  display: none;
}

.parcel-card__details-toggle::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.15s ease;
}

.parcel-card__details[open] .parcel-card__details-toggle::before {
  transform: rotate(90deg);
}

.parcel-card__details[open] .parcel-card__details-toggle {
  margin-bottom: 0.45rem;
}

.parcel-card__meta--full {
  padding-top: 0.35rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.parcel-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.tenure-tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}

.tenure-tag--ownership {
  background: rgba(201, 162, 39, 0.15);
  color: #8a6d10;
}

.tenure-tag--lease {
  background: rgba(45, 155, 74, 0.12);
  color: #248f42;
}

.payment-due--soon {
  color: #c0392b;
  font-weight: 600;
}

.application-deadline--warning {
  color: #d35400;
  font-weight: 600;
}

.application-deadline--overdue {
  color: #c0392b;
  font-weight: 700;
}

.application-row--overdue td {
  background: rgba(192, 57, 43, 0.06);
}

.application-row--warning td {
  background: rgba(211, 84, 0, 0.05);
}

.application-notes-cell {
  max-width: 14rem;
  vertical-align: top;
}

.application-notes-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text, #1a2e1f);
}

.cabinet-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cabinet-subtabs__btn {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.86rem;
  cursor: pointer;
}

.cabinet-subtabs__btn.is-active {
  background: rgba(45, 155, 74, 0.12);
  border-color: rgba(45, 155, 74, 0.35);
  color: #248f42;
  font-weight: 600;
}

.document-upload-form {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px dashed rgba(45, 155, 74, 0.35);
  border-radius: 10px;
  background: rgba(45, 155, 74, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.document-upload-form .application-form__grid {
  width: 100%;
}

.document-upload-form .form-field input,
.document-upload-form .form-field textarea {
  width: 100%;
  box-sizing: border-box;
}

.parcel-docs-block {
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #fff;
}

.parcel-docs-list {
  list-style: none;
  margin: 0.5rem 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.parcel-docs-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.parcel-docs-list__comment {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.parcel-docs-list__empty {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.parcel-docs-block__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.fortune-wheel {
  margin: 2rem 0;
  padding: 1.25rem;
  border: 1px solid rgba(45, 155, 74, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(45, 155, 74, 0.06), #fff 55%);
}

.fortune-wheel__layout {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 720px) {
  .fortune-wheel__layout {
    grid-template-columns: auto 1fr;
  }
}

.fortune-wheel__stage {
  position: relative;
  width: min(78vw, 300px);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
}

.fortune-wheel__pointer {
  position: absolute;
  top: -0.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 0.55rem solid transparent;
  border-right: 0.55rem solid transparent;
  border-top: 1rem solid #c0392b;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.fortune-wheel__svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.15));
}

.fortune-wheel__rotor {
  transform-origin: 100px 100px;
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.fortune-wheel__svg-text {
  fill: #fff;
  font-weight: 700;
  font-family: inherit;
  paint-order: stroke fill;
  stroke: rgba(0, 0, 0, 0.35);
  stroke-width: 0.35px;
  pointer-events: none;
}

.fortune-wheel__ring {
  pointer-events: none;
}

.fortune-wheel__result {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(45, 155, 74, 0.1);
  margin-bottom: 0.75rem;
}

.fortune-wheel__result-prize {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.25rem 0 0;
}

.fortune-wheel__hint {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.fortune-wheel__bonus-note {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

.fortune-wheel__history {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(45, 155, 74, 0.15);
}

.fortune-wheel__history-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.fortune-wheel__history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}

.fortune-wheel__history-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.88rem;
}

.fortune-wheel__history-item:last-child {
  border-bottom: none;
}

.fortune-wheel__history-date {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.fortune-wheel__history-prize {
  font-weight: 600;
}

.fortune-wheel__history-more {
  margin-top: 0.35rem;
  padding-inline: 0.25rem;
}

.fortune-wheel__history-empty {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.application-form {
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
}

.application-form__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.application-form__grid > .form-field {
  grid-column: span 12;
}

@media (min-width: 560px) {
  .application-form__grid > .form-field:not(.form-field--wide) {
    grid-column: span 6;
  }
}

.application-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.parcel-form {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
}

.parcel-form__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.parcel-form__grid > .form-field:not(.form-field--wide) {
  grid-column: span 12;
}

@media (min-width: 560px) {
  .parcel-form__grid > .form-field:not(.form-field--wide) {
    grid-column: span 6;
  }
}

@media (min-width: 900px) {
  .parcel-form__grid > .form-field:not(.form-field--wide) {
    grid-column: span 4;
  }
}

.parcel-form__grid > .form-field--wide,
.parcel-form__grid > .form-hint {
  grid-column: 1 / -1;
}

.parcel-form__notes {
  margin-top: 0.25rem;
}

.parcel-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.members-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.member-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.member-card:hover {
  border-color: rgba(45, 155, 74, 0.35);
  box-shadow: 0 4px 16px rgba(45, 155, 74, 0.08);
}

.member-card__name {
  font-weight: 600;
  margin: 0.35rem 0 0.15rem;
}

.member-card__stats {
  font-size: 0.8125rem;
  color: var(--text-muted, #5a6b62);
}

.member-card__presence {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim, #8a9a92);
}

.member-card__presence--online {
  color: var(--green, #2d9b4a);
}

.member-card__presence-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(45, 155, 74, 0.18);
  flex-shrink: 0;
}

.members-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  max-width: 28rem;
}

.members-search__input {
  flex: 1;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  font: inherit;
}

.members-search__hint {
  font-size: 0.8125rem;
  color: var(--text-muted, #5a6b62);
}

.member-card__ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.35rem 0 0.5rem;
  font-size: 0.8125rem;
}

.member-rating {
  font-weight: 600;
}

.member-rating--reviews {
  color: #c9a227;
}

.member-rating--rep {
  color: var(--green, #2d9b4a);
}

.member-rating--neg {
  color: #b33;
}

.member-rating--muted {
  font-weight: 400;
  color: var(--text-muted, #5a6b62);
}

.member-rating__n {
  font-weight: 400;
  color: var(--text-muted, #5a6b62);
}

.member-public-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.member-feedback-panel {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

.member-feedback-panel--prominent {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem 1.35rem;
  border: 2px solid rgba(45, 155, 74, 0.25);
  box-shadow: 0 6px 24px rgba(45, 155, 74, 0.08);
  scroll-margin-top: 5rem;
}

.member-feedback-panel__lead {
  margin-top: -0.25rem;
  margin-bottom: 1rem;
}

.reputation-vote__hint {
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.reputation-vote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.reputation-vote__label {
  font-size: 0.875rem;
  color: var(--text-muted, #5a6b62);
}

.reputation-vote__btn.is-active {
  background: rgba(45, 155, 74, 0.15);
  border-color: var(--green, #2d9b4a);
  color: var(--green, #2d9b4a);
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  max-width: 36rem;
}

.review-form__hint {
  font-size: 0.875rem;
  margin: 0;
  color: var(--text-muted, #5a6b62);
}

.review-form__text {
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.star-picker {
  display: flex;
  gap: 0.15rem;
}

.star-picker__btn {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.2);
  padding: 0.1rem;
}

.star-picker__btn.is-on {
  color: #c9a227;
}

.star-picker__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.review-list__empty {
  padding: 0;
}

.review-item {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(45, 155, 74, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.review-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
}

.review-item__stars {
  color: #c9a227;
  letter-spacing: 0.05em;
}

.review-item__time {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted, #5a6b62);
}

.review-item__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.tiers-list {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin: 1.5rem 0;
}

.tier-chip {
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.8125rem;
}

.tier-chip__emoji {
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.25rem;
}

.tier-chip__count {
  font-size: 0.75rem;
  color: var(--text-muted, #5a6b62);
}

/* Chat */
.club-layout {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .club-layout--chat {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }
}

.chat-sidebar {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.chat-sidebar__title {
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(244, 250, 246, 0.8);
}

.chat-sidebar__list {
  max-height: 420px;
  overflow-y: auto;
}

.chat-sidebar__row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.chat-sidebar__row.is-active .chat-sidebar__item,
.chat-sidebar__row:hover .chat-sidebar__item {
  background: rgba(45, 155, 74, 0.08);
}

.chat-sidebar__item {
  display: block;
  flex: 1;
  min-width: 0;
  width: 100%;
  text-align: left;
  padding: 0.65rem 1rem;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.chat-sidebar__item.is-active,
.chat-sidebar__item:hover {
  background: rgba(45, 155, 74, 0.08);
}

.chat-sidebar__name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.chat-sidebar__date {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted, #5a6b62);
  white-space: nowrap;
}

.chat-sidebar__delete {
  flex: 0 0 auto;
  align-self: center;
  border: none;
  background: transparent;
  color: #c62828;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.75;
}

.chat-sidebar__delete:hover {
  opacity: 1;
  background: rgba(198, 40, 40, 0.08);
}

.chat-sidebar__preview {
  font-size: 0.75rem;
  color: var(--text-muted, #5a6b62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-sidebar__create {
  padding: 0.65rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(244, 250, 246, 0.5);
}

.chat-sidebar__create-form {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.chat-sidebar__create-form input {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  font: inherit;
  font-size: 0.8125rem;
}

.chat-sidebar__create-form .btn {
  flex: 0 0 auto;
  min-width: 2.25rem !important;
  width: 2.25rem;
  height: 2.25rem;
  min-height: 2.25rem !important;
  padding: 0;
}

.chat-sidebar__meta {
  font-size: 0.6875rem;
  color: var(--text-muted, #5a6b62);
  margin-top: 0.15rem;
}

.chat-sidebar__item .chat-sidebar__name {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
}

.chat-panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.chat-panel__head {
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.chat-panel__head-main {
  flex: 1 1 auto;
  min-width: 0;
}

.chat-panel__search {
  flex: 1 1 160px;
  max-width: 240px;
  min-width: 120px;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 400;
  background: #fff;
}

.chat-panel__search:focus {
  outline: none;
  border-color: rgba(45, 155, 74, 0.45);
  box-shadow: 0 0 0 2px rgba(45, 155, 74, 0.12);
}

.chat-messages__load-hint {
  margin: 0;
  padding: 0.25rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted, #5a6b62);
}

.chat-blocked-notice {
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  color: #c0392b;
  background: rgba(192, 57, 43, 0.08);
  border-bottom: 1px solid rgba(192, 57, 43, 0.15);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 340px;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 85%;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.chat-msg--other {
  align-self: flex-start;
  background: rgba(0, 0, 0, 0.05);
}

.chat-msg--own {
  align-self: flex-end;
  background: rgba(45, 155, 74, 0.15);
}

.chat-msg__author {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green, #2d9b4a);
  margin-bottom: 0.15rem;
}

a.chat-msg__author--link {
  text-decoration: none;
  cursor: pointer;
}

a.chat-msg__author--link:hover {
  text-decoration: underline;
  color: var(--accent, #248f42);
}

.chat-sidebar__name {
  font-weight: 700;
  color: var(--text, #1a2e1f);
  text-decoration: none;
}

.chat-sidebar__name:hover {
  text-decoration: underline;
  color: var(--green, #2d9b4a);
}

.chat-panel__partner {
  font-weight: 700;
  color: var(--text, #1a2e1f);
  text-decoration: none;
}

.chat-panel__partner:hover {
  text-decoration: underline;
  color: var(--green, #2d9b4a);
}

.chat-msg__time {
  font-size: 0.6875rem;
  color: var(--text-muted, #5a6b62);
}

.chat-msg__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
  min-height: 1rem;
}

.chat-msg__meta .chat-msg__time {
  margin-top: 0;
}

.chat-msg__edited {
  font-size: 0.6875rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.chat-msg__ticks {
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: -0.12em;
  color: var(--text-dim, #8a9a92);
  font-weight: 700;
}

.chat-msg__ticks--read {
  color: #4a9fd4;
}

.chat-msg--own .chat-msg__ticks--read {
  color: #7ec8f0;
}

.chat-msg__reads {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dim, #8a9a92);
  background: rgba(0, 0, 0, 0.05);
}

.chat-msg--own .chat-msg__reads {
  color: rgba(26, 92, 46, 0.75);
  background: rgba(255, 255, 255, 0.35);
}

.chat-msg__body {
  line-height: 1.45;
}

.chat-msg__lot-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 600;
  color: var(--green, #2d9b4a);
  text-decoration: none;
}

.chat-msg__lot-link:hover {
  text-decoration: underline;
}

.chat-msg--own .chat-msg__lot-link {
  color: #1a5c2e;
}

.chat-compose {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.chat-compose__row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.chat-compose__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex: 0 0 auto;
  width: 2.75rem;
}

.chat-compose__attach-wrap {
  position: relative;
  width: 2.75rem;
}

.chat-compose__attach {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.75rem !important;
  min-width: 2.75rem !important;
  height: 2.75rem !important;
  min-height: 2.75rem !important;
  padding: 0 !important;
  border-radius: 10px !important;
  color: var(--text-muted, #5a6b62);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #f8faf8;
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.1s;
}

.chat-compose__attach:hover:not(:disabled),
.chat-compose__attach.is-open:not(:disabled) {
  color: var(--green, #2d9b4a);
  border-color: rgba(45, 155, 74, 0.35);
  background: rgba(45, 155, 74, 0.08);
}

.chat-compose__attach:active:not(:disabled) {
  transform: scale(0.96);
}

.chat-compose__attach svg {
  display: block;
}

.chat-compose__attach-menu {
  position: absolute;
  bottom: calc(100% + 0.4rem);
  right: 0;
  z-index: 8;
  min-width: 10.5rem;
  padding: 0.35rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.chat-compose__attach-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.55rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--text, #1a2e1f);
  cursor: pointer;
}

.chat-compose__attach-menu-item:hover {
  background: rgba(45, 155, 74, 0.08);
}

.chat-compose__attach-menu-icon {
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.chat-compose__send {
  width: 2.75rem !important;
  min-width: 2.75rem !important;
  max-width: 2.75rem !important;
  height: 2.75rem !important;
  min-height: 2.75rem !important;
}

.chat-compose__pending-name {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.chat-compose__pending-icon {
  flex-shrink: 0;
  color: var(--green, #2d9b4a);
}

.chat-compose__poll {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: rgba(45, 155, 74, 0.06);
  border: 1px solid rgba(45, 155, 74, 0.15);
}

.chat-compose__poll-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.chat-compose__poll-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--green, #2d9b4a);
}

.chat-compose__poll-question,
.chat-compose__poll-option {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.chat-compose__poll-option-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chat-compose__poll-option-row .chat-compose__poll-option {
  flex: 1 1 auto;
  min-width: 0;
}

.chat-compose__poll-remove {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #fff;
  color: var(--text-muted, #5a6b62);
  cursor: pointer;
  line-height: 1;
}

.chat-compose__poll-remove:hover {
  color: #b33;
  border-color: rgba(179, 51, 51, 0.35);
  background: rgba(179, 51, 51, 0.06);
}

.chat-compose__poll-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.15rem;
}

.chat-compose__poll-foot-spacer {
  flex: 1 1 auto;
}

.chat-compose__poll-add,
.chat-compose__poll-cancel {
  min-height: 2.35rem !important;
  padding: 0.5rem 0.95rem !important;
}

.chat-compose__poll-spacer {
  flex: 1 1 auto;
  min-height: 2.75rem;
}

.chat-compose__reply {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(45, 155, 74, 0.08);
  border-left: 3px solid var(--green, #2d9b4a);
}

.chat-compose__reply-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.chat-compose__reply-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green, #2d9b4a);
}

.chat-compose__reply-text {
  font-size: 0.8125rem;
  color: var(--text-muted, #5a6b62);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-msg__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.chat-msg__top .chat-msg__author,
.chat-msg__top a.chat-msg__author--link {
  margin-bottom: 0;
  min-width: 0;
}

.chat-msg__top-spacer {
  flex: 1 1 auto;
}

.chat-msg-menu {
  position: relative;
  flex: 0 0 auto;
  margin-top: -0.1rem;
}

.chat-msg-menu__btn {
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted, #5a6b62);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.15s, background 0.15s;
}

@media (hover: none) {
  .chat-msg-menu__btn {
    opacity: 0.55;
  }
}

.chat-msg:hover .chat-msg-menu__btn,
.chat-msg-menu__btn[aria-expanded="true"] {
  opacity: 1;
}

.chat-msg-menu__btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.chat-msg-menu__panel {
  position: absolute;
  top: calc(100% + 0.2rem);
  right: 0;
  z-index: 6;
  min-width: 10.5rem;
  width: max-content;
  max-width: min(18rem, calc(100vw - 1.5rem));
  padding: 0.35rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.chat-msg-menu__panel--floating {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  z-index: 10050;
}

.chat-msg--own .chat-msg-menu__panel {
  right: 0;
  left: auto;
}

.chat-msg-menu__action {
  display: block;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}

.chat-msg-menu__action:hover {
  background: rgba(45, 155, 74, 0.08);
}

.chat-msg-menu__reactions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.1rem;
  padding: 0.25rem 0.2rem 0.15rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 0.15rem;
  justify-content: flex-start;
  width: max-content;
  max-width: none;
}

.chat-msg-menu__emoji {
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.chat-msg-menu__emoji:hover {
  background: rgba(0, 0, 0, 0.06);
}

.chat-msg__quote {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.4rem;
  padding: 0.35rem 0.5rem;
  border-left: 3px solid rgba(45, 155, 74, 0.55);
  border-radius: 0 6px 6px 0;
  background: rgba(0, 0, 0, 0.04);
}

.chat-msg--own .chat-msg__quote {
  background: rgba(255, 255, 255, 0.35);
  border-left-color: rgba(26, 92, 46, 0.55);
}

.chat-msg__quote-author {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--green, #2d9b4a);
}

.chat-msg__quote-text {
  font-size: 0.8125rem;
  color: var(--text-muted, #5a6b62);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.chat-msg__reactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.15rem;
  max-width: 85%;
}

.chat-msg--own .chat-msg__reactions {
  align-self: flex-end;
}

.chat-msg--other .chat-msg__reactions {
  align-self: flex-start;
}

.chat-reaction {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  font-size: 0.8125rem;
  cursor: pointer;
  line-height: 1.2;
}

.chat-reaction.is-mine {
  border-color: rgba(45, 155, 74, 0.45);
  background: rgba(45, 155, 74, 0.1);
}

.chat-reaction__count {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted, #5a6b62);
}

.chat-poll {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: min(100%, 260px);
}

.chat-poll__question {
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.chat-poll__options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.chat-poll__option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.chat-poll__option.is-voted {
  border-color: rgba(45, 155, 74, 0.5);
}

.chat-poll__bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(45, 155, 74, 0.14);
  border-radius: 7px;
  transition: width 0.25s ease;
  pointer-events: none;
}

.chat-poll__option-text,
.chat-poll__option-meta {
  position: relative;
  z-index: 1;
}

.chat-poll__option-text {
  font-size: 0.875rem;
  line-height: 1.3;
  padding-right: 0.25rem;
}

.chat-poll__option-meta {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted, #5a6b62);
}

.chat-poll__footer {
  font-size: 0.75rem;
  color: var(--text-muted, #5a6b62);
}

.chat-compose__pending {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
  padding: 0.35rem 0.5rem;
  background: rgba(45, 155, 74, 0.08);
  border-radius: 8px;
}

.chat-compose__error {
  margin: 0;
  font-size: 0.8125rem;
  color: #b33;
}

.chat-compose__hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted, #5a6b62);
}

.chat-attachment-wrap {
  margin-top: 0.35rem;
}

.chat-attachment__img-btn {
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
}

.chat-attachment__img-btn:hover .chat-attachment__img {
  opacity: 0.92;
}

.chat-attachment__img {
  display: block;
  max-width: min(280px, 100%);
  max-height: 200px;
  border-radius: 8px;
  margin-bottom: 0.35rem;
}

.chat-attachment__link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--green, #2d9b4a);
  cursor: pointer;
  text-decoration: underline;
}

.chat-attachment__size {
  color: var(--text-muted, #5a6b62);
  text-decoration: none;
}

.chat-file-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(12, 18, 14, 0.78);
  backdrop-filter: blur(2px);
}

.chat-file-viewer__panel {
  position: relative;
  width: min(94vw, 960px);
  max-height: 92vh;
  padding: 2.5rem 1rem 1rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  overflow: auto;
}

.chat-file-viewer__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text, #1a2e1f);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.chat-file-viewer__close:hover {
  background: rgba(0, 0, 0, 0.12);
}

.chat-file-viewer__title {
  margin: 0 2rem 0.75rem 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted, #5a6b62);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-file-viewer__loading,
.chat-file-viewer__fallback {
  margin: 1rem 0.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted, #5a6b62);
}

.chat-file-viewer__img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 5rem);
  margin: 0 auto;
  border-radius: 8px;
}

.chat-file-viewer__frame {
  display: block;
  width: 100%;
  height: min(78vh, 720px);
  border: none;
  border-radius: 8px;
  background: #f5f5f5;
}

.chat-compose input,
.chat-compose textarea {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  font: inherit;
  line-height: 1.45;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-compose textarea {
  min-height: 3.25rem;
  max-height: 7.5rem;
  resize: vertical;
}

.chat-compose input:focus,
.chat-compose textarea:focus {
  outline: none;
  border-color: rgba(45, 155, 74, 0.45);
  box-shadow: 0 0 0 3px rgba(45, 155, 74, 0.1);
}

.chat-compose .btn {
  flex: 0 0 auto;
  align-self: center;
  width: 2.75rem;
  min-width: 2.75rem !important;
  max-width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem !important;
  padding: 0;
  font-size: 1.15rem;
  line-height: 1;
  border-radius: 10px;
}

.chat-compose .chat-compose__poll-add,
.chat-compose .chat-compose__poll-cancel {
  width: auto !important;
  min-width: 5.5rem !important;
  max-width: none !important;
  height: auto !important;
  min-height: 2.35rem !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.8125rem !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  border-radius: 8px !important;
}

.listing-mode-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  margin-bottom: 1rem;
}

.auction-step-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}

.form-hint {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted, #5a6b62);
  line-height: 1.45;
}

.lot-detail__bid-hint {
  font-size: 0.875rem;
  color: var(--text-muted, #5a6b62);
}

@media (max-width: 480px) {
  .auction-step-grid {
    grid-template-columns: 1fr;
  }
}

.listing-mode-btn {
  padding: 0.75rem;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s;
}

.listing-mode-btn.is-active {
  border-color: var(--green, #2d9b4a);
  background: rgba(45, 155, 74, 0.06);
}

#exchangeNoteField[hidden] {
  display: none !important;
}

.listing-field--parcel[hidden] {
  display: none !important;
}

.cabinet-profile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.portfolio-add {
  margin-bottom: 1.25rem;
}

.portfolio-privacy {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(45, 155, 74, 0.06);
  border: 1px solid rgba(45, 155, 74, 0.15);
}

.portfolio-privacy__hint {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted, #666);
  line-height: 1.45;
}

.portfolio-privacy__link {
  word-break: break-all;
}

.portfolio-privacy__toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
  font-size: 0.9375rem;
  cursor: pointer;
}

.portfolio-privacy__toggle input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--green, #2d9b4a);
}

.parcel-card--hidden {
  opacity: 0.72;
  border-style: dashed;
}

.parcel-card__visibility-note {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted, #666);
}

.parcel-visibility-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-muted, #666);
  cursor: pointer;
  margin-right: auto;
}

.parcel-visibility-toggle input {
  accent-color: var(--green, #2d9b4a);
}

.parcel-visibility-toggle input:disabled {
  cursor: not-allowed;
}

.address-suggest-block {
  display: grid;
  gap: 0.75rem;
  grid-column: 1 / -1;
  width: 100%;
}

@media (min-width: 640px) {
  .address-suggest-block {
    grid-template-columns: minmax(11rem, 1fr) minmax(0, 2fr);
    align-items: start;
  }

  .address-suggest-block > .address-suggest-wrap {
    grid-column: 2;
  }
}

.address-suggest-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.address-suggest-field .address-suggest-wrap,
.form-field .address-suggest-wrap {
  margin-top: 0.25rem;
}

.address-suggest-list {
  position: absolute;
  z-index: 40;
  top: calc(100% - 0.15rem);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  max-height: min(240px, 40vh);
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.address-suggest-item {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.35;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
}

.address-suggest-item:hover,
.address-suggest-item.is-active {
  background: rgba(45, 155, 74, 0.1);
  color: var(--text);
}

.address-suggest-status {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.address-suggest-status--err {
  color: var(--danger);
}

.lot-location-block {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-muted);
}

.cadastral-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  align-items: flex-end;
  grid-column: 1 / -1;
}

.cadastral-row .form-field {
  flex: 1 1 12rem;
  min-width: min(100%, 14rem);
  margin: 0;
}

.cadastral-row .btn {
  flex: 0 0 auto;
  align-self: flex-end;
  margin-bottom: 0.1rem;
}

.lot-location-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}

.lot-location-coord {
  flex: 1 1 7rem;
  min-width: 0;
}

.lot-location-row .btn {
  flex: 0 0 auto;
  margin-bottom: 0.15rem;
}

.parcel-location-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: end;
}

@media (max-width: 480px) {
  .parcel-location-row {
    grid-template-columns: 1fr;
  }
}

.parcel-location-row .form-field {
  min-width: 0;
  margin: 0;
}

.map-point-picker {
  grid-column: 1 / -1;
}

.map-point-picker__hint {
  margin: 0 0 0.5rem;
}

.map-point-picker__map {
  width: 100%;
  min-height: 320px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: #e8ecef;
  z-index: 0;
}

.parcel-card__locked {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--warning);
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 8px;
}

.member-cabinet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.portfolio-hidden-notice {
  padding: 1.25rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-muted, #666);
}

.member-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

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

.member-lots-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.member-lots-list__meta {
  font-size: 0.875rem;
  color: var(--text-muted, #666);
}

@media (max-width: 480px) {
  .header__actions .btn--primary.btn--sm {
    font-size: 0.75rem;
    padding: 0.35rem 0.55rem;
  }
}

/* ——— Club articles ——— */
.club-articles-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.club-articles-head__hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted, #666);
  max-width: 280px;
  text-align: right;
}

.club-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.club-article-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface, #fff);
  box-shadow: 0 4px 24px rgba(45, 155, 74, 0.08);
  border: 1px solid rgba(45, 155, 74, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.club-article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(45, 155, 74, 0.14);
}

.club-article-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.club-article-card__cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f3ec, #d4eadc);
}

.club-article-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.club-article-card__cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.club-article-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.club-article-card__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.club-article-card__excerpt {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted, #555);
  line-height: 1.5;
  flex: 1;
}

.club-article-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted, #777);
  margin-top: 0.5rem;
}

.club-articles-empty {
  text-align: center;
  color: var(--text-muted, #666);
  padding: 2rem 0;
}

.club-articles-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 2rem;
}

.club-articles-pagination .is-active {
  pointer-events: none;
  font-weight: 600;
}

.club-article {
  margin-top: 1rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page--club-article .container--narrow,
.page--club-article-editor .container--narrow {
  width: min(720px, 100% - 2rem);
}

.club-article__header {
  margin-bottom: 1.5rem;
}

.club-article__meta-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.club-article__meta-footer .club-article__byline {
  padding-top: 0;
  border-top: none;
}

.club-article__badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-muted, #666);
  margin-bottom: 0.75rem;
}

.club-article__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
}

.club-article__lead {
  font-size: 1.1rem;
  color: var(--text-muted, #555);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.club-article__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.club-article__author-name {
  font-weight: 600;
}

.club-article__date {
  color: var(--text-muted, #777);
  font-size: 0.9rem;
}

.club-article__edit {
  margin-top: 0.75rem;
}

.club-article__gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 100%;
}

.club-article__cover {
  margin: 0 0 2rem;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.03);
  text-align: center;
}

.club-article__cover-open {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
}

.club-article__cover-open:hover img {
  opacity: 0.92;
}

.club-article__cover-open img {
  width: 100%;
  max-height: min(360px, 46vh);
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: opacity 0.15s;
}

.club-article__cover-caption {
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted, #666);
  background: rgba(0, 0, 0, 0.03);
  margin: 0;
}

.club-article__gallery--row {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.club-article__gallery--row .club-article__figure {
  flex: 1 1 0;
  min-width: 140px;
  scroll-snap-align: start;
}

.club-article__figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.03);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.club-article__figure-open {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
}

.club-article__figure-open:hover img {
  opacity: 0.92;
}

.club-article__figure img {
  width: 100%;
  max-height: min(320px, 42vh);
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: opacity 0.15s;
}

.club-article__gallery--row .club-article__figure img {
  max-height: min(220px, 32vh);
  object-fit: cover;
  width: 100%;
}

.club-article__figure figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted, #666);
  background: rgba(0, 0, 0, 0.03);
}

.club-article__body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text, #222);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: auto;
}

.club-article__body img,
.club-article-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  cursor: zoom-in;
}

.club-article__body video,
.club-article__body iframe {
  max-width: 100%;
  height: auto;
}

.club-article__body img.club-article__zoomable,
.club-article__figure-open img {
  cursor: zoom-in;
}

.club-article__body img.club-article__zoomable:hover {
  opacity: 0.92;
}

.club-article-img--center,
.club-article__body img[data-align="center"] {
  display: block;
  margin: 1.25rem auto;
  max-width: 100%;
}

.club-article-img--wide,
.club-article__body img[data-align="wide"] {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.25rem 0;
}

.club-article-img--left,
.club-article__body img[data-align="left"] {
  float: left;
  width: auto;
  max-width: min(48%, 320px);
  margin: 0.35rem 1.25rem 1rem 0;
}

.club-article-img--right,
.club-article__body img[data-align="right"] {
  float: right;
  width: auto;
  max-width: min(48%, 320px);
  margin: 0.35rem 0 1rem 1.25rem;
}

.club-article__body::after {
  content: "";
  display: table;
  clear: both;
}

.club-article__body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.club-article__body pre,
.club-article__body code {
  white-space: pre-wrap;
  word-break: break-word;
}

.club-article__body a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.club-article__body p {
  margin: 0 0 1.25rem;
}

.club-article__footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.article-tools-cta {
  margin: 2rem 0 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(45, 155, 74, 0.22);
  border-radius: 14px;
  background: rgba(45, 155, 74, 0.06);
}

.article-tools-cta__title {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.article-tools-cta__text {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-muted, #5a6b5e);
}

.article-tools-cta__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.article-tools-cta__card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0.85rem;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card, #fff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.article-tools-cta__card:hover {
  border-color: rgba(45, 155, 74, 0.35);
  transform: translateY(-2px);
}

.article-tools-cta__card strong {
  font-size: 0.92rem;
}

.article-tools-cta__card span {
  font-size: 0.8rem;
  color: var(--text-muted, #5a6b5e);
  line-height: 1.35;
}

.article-tools-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 720px) {
  .article-tools-cta__grid {
    grid-template-columns: 1fr;
  }
}

.club-article-editor {
  margin-top: 1rem;
}

.club-article-editor__body {
  min-height: 280px;
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
}

/* Встроенный редактор статей (TipTap, без CDN) */
.article-rich-editor {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-input, #fff);
  box-sizing: border-box;
}

.article-rich-editor.is-disabled {
  opacity: 0.75;
  pointer-events: none;
}

.article-rich-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

.article-rich-editor__btn {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text, #222);
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1;
}

.article-rich-editor__btn:hover:not(:disabled) {
  background: rgba(45, 155, 74, 0.1);
  border-color: rgba(45, 155, 74, 0.2);
}

.article-rich-editor__btn.is-active {
  background: rgba(45, 155, 74, 0.18);
  border-color: rgba(45, 155, 74, 0.35);
  font-weight: 700;
}

.article-rich-editor__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.article-rich-editor__sep {
  width: 1px;
  height: 1.25rem;
  margin: 0 0.15rem;
  background: rgba(0, 0, 0, 0.12);
}

.article-rich-editor__u {
  text-decoration: underline;
}

.article-rich-editor__content,
.article-rich-editor .ProseMirror {
  width: 100%;
  max-width: 100%;
  min-height: 400px;
  padding: 1rem 1.1rem;
  box-sizing: border-box;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text, #222);
  outline: none;
}

.article-rich-editor__content p,
.article-rich-editor .ProseMirror p {
  margin: 0 0 1rem;
}

.article-rich-editor__content h2,
.article-rich-editor .ProseMirror h2 {
  font-size: 1.35rem;
  margin: 1.25rem 0 0.65rem;
}

.article-rich-editor__content h3,
.article-rich-editor .ProseMirror h3 {
  font-size: 1.15rem;
  margin: 1rem 0 0.5rem;
}

.article-rich-editor__content blockquote,
.article-rich-editor .ProseMirror blockquote {
  margin: 1rem 0;
  padding: 0.65rem 1rem;
  border-left: 3px solid rgba(45, 155, 74, 0.45);
  background: rgba(45, 155, 74, 0.06);
  border-radius: 0 8px 8px 0;
}

.article-rich-editor__content img,
.article-rich-editor .ProseMirror img {
  border-radius: 10px;
  min-height: 48px;
  background: rgba(0, 0, 0, 0.04);
}

.article-rich-editor__content img[data-align="left"],
.article-rich-editor .ProseMirror img[data-align="left"] {
  float: left;
  max-width: min(48%, 280px);
  margin: 0.35rem 1rem 0.75rem 0;
}

.article-rich-editor__content img[data-align="right"],
.article-rich-editor .ProseMirror img[data-align="right"] {
  float: right;
  max-width: min(48%, 280px);
  margin: 0.35rem 0 0.75rem 1rem;
}

.article-rich-editor__content img[data-align="center"],
.article-rich-editor .ProseMirror img[data-align="center"] {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
}

.article-rich-editor__content img[data-align="wide"],
.article-rich-editor .ProseMirror img[data-align="wide"] {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1rem 0;
}

.article-rich-editor__toolbar-label {
  font-size: 0.75rem;
  color: var(--text-muted, #666);
  margin-right: 0.15rem;
}

.article-rich-editor__content .ProseMirror-selectednode,
.article-rich-editor .ProseMirror-selectednode {
  outline: 2px solid rgba(45, 155, 74, 0.5);
}

.article-rich-editor__content p.is-editor-empty:first-child::before,
.article-rich-editor .ProseMirror p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  float: left;
  color: var(--text-muted, #888);
  pointer-events: none;
  height: 0;
}

.club-article-editor__ckeditor {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box;
}

.club-article-editor__ckeditor-holder {
  display: block;
  width: 100% !important;
  max-width: 100%;
  min-height: 420px;
  box-sizing: border-box;
}

.club-article-editor__ckeditor-holder .cke,
.club-article-editor__ckeditor-holder .cke_inner,
.club-article-editor__ckeditor-holder .cke_wysiwyg_frame,
.club-article-editor__ckeditor-holder .cke_reset {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.club-article-editor__ckeditor-holder .cke {
  border: 0 !important;
  box-shadow: none !important;
}

.club-article-editor__ckeditor-holder .cke_contents {
  min-height: 400px !important;
}

.club-article-editor__ckeditor-loading {
  margin: 0 0 0.5rem;
}

.page--club-article-editor .form-field > .club-article-editor__ckeditor,
.page--club-article-editor .form-field > .club-article-editor__body {
  width: 100%;
  max-width: 100%;
}

.club-article-editor__ckeditor-error {
  color: #b42318;
  margin-top: 0.35rem;
}

.club-article-editor__images {
  margin: 1.5rem 0;
}

.club-article-editor__cover {
  margin: 1.5rem 0;
}

.club-article-editor__cover-preview {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.03);
  margin-top: 0.75rem;
}

.club-article-editor__cover-thumb {
  width: 160px;
  height: 108px;
  object-fit: cover;
  border-radius: 8px;
}

.club-article-editor__cover-fields {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.club-article-editor__cover-upload {
  margin-top: 0.5rem;
}

.club-article-editor__images-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.club-article-editor__image-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.club-article-editor__image-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.03);
}

.club-article-editor__thumb {
  width: 100px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.club-article-editor__images-empty {
  font-size: 0.9rem;
  color: var(--text-muted, #666);
  margin: 0;
}

.club-article-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.club-article-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.club-article-editor__preview {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px dashed rgba(45, 155, 74, 0.35);
  background: rgba(232, 243, 236, 0.35);
}

.club-article-editor__preview-cover {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 10px;
  margin: 1rem 0;
}

@media (max-width: 600px) {
  .club-article-editor__image-item {
    grid-template-columns: 1fr;
  }

  .club-article-editor__cover-preview {
    grid-template-columns: 1fr;
  }

  .club-article-editor__thumb {
    width: 100%;
    height: auto;
    max-height: 160px;
  }
}

.club-article-card__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.club-article-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.75rem;
  color: var(--text-muted, #777);
}

.club-article__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(232, 243, 236, 0.45);
  font-size: 0.9rem;
}

.club-article__stat {
  color: var(--text-muted, #666);
}

.club-article__votes {
  display: flex;
  gap: 0.35rem;
}

.club-article__vote {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 155, 74, 0.25);
  background: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.club-article__vote:hover {
  border-color: rgba(45, 155, 74, 0.5);
}

.club-article__vote.is-active {
  background: rgba(45, 155, 74, 0.12);
  border-color: rgba(45, 155, 74, 0.55);
  font-weight: 600;
}

.club-article__vote--down.is-active {
  background: rgba(180, 60, 50, 0.1);
  border-color: rgba(180, 60, 50, 0.45);
}

.club-article-comments {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(45, 155, 74, 0.15);
  width: 100%;
}

.club-article-comments__title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.club-article-comments__list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.club-article-comments__item {
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(45, 155, 74, 0.12);
}

.club-article-comments__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted, #777);
}

.club-article-comments__head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.chat-msg-menu__action--danger {
  color: #b42318;
}

.chat-msg-menu__action--danger:hover {
  background: rgba(180, 35, 24, 0.08);
}

.club-article-comments__author {
  font-weight: 600;
  color: var(--text, #1a2e1f);
}

.club-article-comments__text {
  margin: 0;
  line-height: 1.55;
  white-space: pre-wrap;
}

.club-article-comments__empty,
.club-article-comments__login {
  color: var(--text-muted, #666);
  margin-bottom: 1rem;
}

.club-article-comments__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}

.club-article-comments__field {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
  align-self: stretch;
}

.club-article-comments__textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 11rem;
  resize: vertical;
  box-sizing: border-box;
  border-radius: 10px;
}

.club-article-comments__form .btn {
  align-self: flex-start;
}

.club-article-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 3.5rem;
  background: rgba(10, 20, 12, 0.88);
  backdrop-filter: blur(4px);
}

.club-article-lightbox__img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.club-article-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.club-article-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.club-article-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.club-article-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.club-article-lightbox__nav--prev {
  left: 1rem;
}

.club-article-lightbox__nav--next {
  right: 1rem;
}

.club-article-lightbox__caption {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(90vw, 640px);
  margin: 0;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
}
