/* World Status — single-page app (design mockup) */

.ws {
  min-height: 100vh;
  background: #fff;
  color: #111827;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header */
.ws-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ws-logo img {
  height: 52px;
  width: auto;
  display: block;
}
.ws-header__acts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
#wsAuthActs {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ws-lang {
  position: relative;
}
.ws-lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ws-lang__toggle:hover { background: #f9fafb; }
.ws-lang__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #6366f1;
}
.ws-lang__menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 148px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  z-index: 50;
}
.ws-lang__menu.ws-hidden { display: none; }
.ws-lang__item {
  display: block;
  width: 100%;
  text-align: start;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}
.ws-lang__item:hover { background: #f3f4f6; }
.ws-lang__item.is-on {
  background: #eef2ff;
  color: #4338ca;
}
.ws-googleBtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.ws-googleBtn:hover { background: #f9fafb; }
.ws-userChip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f9fafb;
  font-size: 13px;
  font-weight: 700;
  max-width: 180px;
}
.ws-userChip img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
}
.ws-userChip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-logoutBtn {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  color: #64748b;
}

/* Main layout */
.ws-body {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 28px;
  align-items: start;
}
.ws-feed {
  min-width: 0;
}

.ws-h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: #111827;
}
.ws-liveDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: ws-liveBlink 1.2s ease-in-out infinite;
}
@keyframes ws-liveBlink {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  }
  50% {
    opacity: 0.25;
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
  }
}

.ws-filter {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.ws-inp {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  outline: none;
  background: #f3f4f6;
  font-size: 14px;
}
.ws-inp:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 4px rgba(99,102,241,.1);
  background: #fff;
}
.ws-or {
  font-weight: 800;
  font-size: 12px;
  color: #9ca3af;
  letter-spacing: .06em;
}
.ws-mapPick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}
.ws-mapPick svg { width: 28px; height: 28px; color: #6366f1; }

.ws-meta { margin-bottom: 12px; }
.ws-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}
.ws-pill svg { width: 18px; height: 18px; color: #6366f1; }

.ws-trending {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.ws-trending__label { color: #6b7280; font-size: 13px; font-weight: 800; }
.ws-trending__row { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-emojiChip {
  padding: 4px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-size: 14px;
}
.ws-emojiChip button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}
.ws-emojiChip:hover { background: #f9fafb; }
.ws-emojiChip.is-active {
  border-color: #a5b4fc;
  background: #eef2ff;
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.ws-tagChip {
  padding: 4px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-size: 13px;
}
.ws-tagChip button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: #4f46e5;
}
.ws-tagChip.is-active {
  border-color: #a5b4fc;
  background: #eef2ff;
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.ws-tagChip__count { color: #9ca3af; font-size: 11px; font-weight: 800; }

.ws-hashtag {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0 1px;
  font: inherit;
  font-weight: 800;
  color: #4f46e5;
  cursor: pointer;
  text-decoration: none;
}
.ws-hashtag:hover { text-decoration: underline; }

.ws-card__text .ws-hashtag,
.ws-card__caption .ws-hashtag {
  display: inline;
}
.ws-emojiChip__count { color: #9ca3af; font-size: 11px; font-weight: 800; }

.ws-banner {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}
.ws-banner--err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.ws-onboard {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f9fafb;
}
.ws-onboard__greet { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.ws-onboard__sub { margin: 0 0 14px; color: #64748b; font-size: 13px; }
.ws-onboard__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ws-onboard__ava {
  border: 2px dashed #cbd5e1;
  border-radius: 999px;
  padding: 0;
  width: 72px;
  height: 72px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}
.ws-onboard__ava img { width: 100%; height: 100%; object-fit: cover; }

/* Post cards — responsive grid */
.ws-cards {
  display: grid;
  gap: 14px;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .ws-cards {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}
@media (min-width: 1100px) {
  .ws-cards {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}
.ws-empty {
  grid-column: 1 / -1;
  padding: 32px 12px;
  text-align: center;
  color: #9ca3af;
  font-weight: 600;
}

.ws-card {
  position: relative;
  border-radius: 18px;
  background: #e8eaed;
  overflow: hidden;
  min-height: 300px;
}
.ws-card--preview {
  cursor: pointer;
  min-height: 0;
  aspect-ratio: 3 / 4;
  height: auto;
  border-radius: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ws-card--preview:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15,23,42,.1);
}
.ws-card--preview .ws-card__time {
  top: 10px;
  left: 10px;
  padding: 6px 8px;
  gap: 7px;
  border-radius: 10px;
  max-width: calc(100% - 20px);
}
.ws-card--preview .ws-card__flag {
  width: 22px;
  height: 16px;
}
.ws-card--preview .ws-clock__day { font-size: 9px; margin-bottom: 1px; }
.ws-card--preview .ws-clock__row--meta { margin-top: 1px; }
.ws-card--preview .ws-clock__main { font-size: 24px; }
.ws-card--preview .ws-clock__ampm { font-size: 10px; }
.ws-card--preview .ws-clock__ago { font-size: 8px; }
.ws-card--preview .ws-card__country { font-size: 7px; max-width: 40px; }
.ws-card--preview .ws-card__body {
  flex: 1;
  min-height: 0;
  height: 100%;
}
.ws-card--preview .ws-card__body--media {
  min-height: 0;
  height: 100%;
}
.ws-card--preview .ws-card__text { font-size: 13px; }
.ws-card--preview .ws-card__emojiOnly { font-size: 40px; }
.ws-card--preview .ws-card__bottom {
  padding: 28px 10px 8px;
}
.ws-card--preview .ws-card__caption { font-size: 12px; }
.ws-card--preview .ws-card__ava {
  width: 26px;
  height: 26px;
}
.ws-card--preview .ws-card__name { font-size: 11px; }
.ws-card--preview .ws-card__mood { font-size: 13px; }
.ws-card--preview .ws-card__likes { font-size: 9px; }
.ws-card--preview .ws-icoBtn {
  width: 28px;
  height: 28px;
  border-radius: 10px;
}
.ws-card--preview .ws-icoBtn svg { width: 15px; height: 15px; }
.ws-card--detail {
  min-height: 360px;
}

.ws-card__time {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  background: rgba(0, 0, 0, 0.48);
  border: none;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
  max-width: calc(100% - 28px);
}
.ws-card__locale {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.ws-card__country {
  display: block;
  max-width: 52px;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-card__flag {
  width: 28px;
  height: 21px;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2);
}
.ws-card__flagImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ws-clock { min-width: 0; flex: 1; }
.ws-clock__day {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ws-clock__row--meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}
.ws-clock__main {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;
}
.ws-clock__side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}
.ws-clock__ampm {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
}
.ws-clock__ago {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.ws-card__body {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  padding: 56px 16px 0;
  box-sizing: border-box;
}
.ws-card--preview .ws-card__body {
  padding-top: 48px;
}
.ws-card__body--media {
  padding: 0;
  min-height: 280px;
}
.ws-card--preview .ws-card__body--media {
  min-height: 0;
}
.ws-card__body--media .ws-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.ws-card__caption {
  margin: 0 0 8px;
  padding: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  word-break: break-word;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.ws-card__caption .ws-hashtag {
  color: #bfdbfe;
}
.ws-card__text {
  margin: 0 0 auto;
  padding: 48px 8px 16px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: #111827;
  word-break: break-word;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ws-card__text--ph { color: #9ca3af; }
.ws-card__emojiOnly {
  margin: 0 0 auto;
  padding: 48px 8px 16px;
  font-size: 56px;
  line-height: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ws-card__bottom {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 36px 12px 12px;
  box-sizing: border-box;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.55) 38%, rgba(15, 23, 42, 0.82) 100%);
}
.ws-card__body:not(.ws-card__body--media) .ws-card__bottom {
  margin: 0 -16px;
  width: calc(100% + 32px);
  background: linear-gradient(180deg, transparent 0%, rgba(232, 234, 237, 0.2) 30%, rgba(15, 23, 42, 0.12) 100%);
}
.ws-card__footRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  background: none;
  border: none;
}
.ws-card__user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  max-width: 68%;
  min-width: 0;
}
.ws-card__body--media .ws-card__name,
.ws-card__body--media .ws-card__likes {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.ws-card__body--media .ws-card__ava {
  box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 2px 8px rgba(0,0,0,.35);
}
.ws-card__body--media .ws-icoBtn {
  border: none;
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.ws-card__body--media .ws-icoBtn svg {
  color: #fff;
}
.ws-card__body--media .ws-icoBtn.is-on {
  background: rgba(254, 202, 202, 0.35);
}
.ws-card__body--media .ws-icoBtn.is-on svg {
  color: #fecaca;
}
.ws-card__ava {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #9ca3af;
  object-fit: cover;
  flex-shrink: 0;
}
.ws-card__name {
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-card__mood { font-size: 15px; flex-shrink: 0; }
.ws-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ws-card__likes {
  font-size: 10px;
  font-weight: 800;
  color: #6b7280;
  margin-right: 2px;
}
.ws-icoBtn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: rgba(255,255,255,.95);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ws-icoBtn.is-on { border-color: #fecaca; background: #fff1f2; }
.ws-icoBtn svg { width: 18px; height: 18px; }
.ws-icoBtn.is-on svg { color: #dc2626; }
.ws-icoBtn.ws-reply svg { color: #6366f1; }
.ws-card__body--media .ws-icoBtn.ws-reply {
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
}
.ws-card__body--media .ws-icoBtn.ws-reply svg { color: #fff; }

.ws-postDetail__place {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 8px;
  margin: 0;
  background: none;
  border: none;
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.ws-card__body:not(.ws-card__body--media) .ws-postDetail__place {
  color: #64748b;
  text-shadow: none;
}
.ws-postDetail__place svg { width: 14px; height: 14px; flex-shrink: 0; color: #93c5fd; }
.ws-card__body:not(.ws-card__body--media) .ws-postDetail__place svg { color: #6366f1; }
.ws-postDetail .ws-card { border-radius: 14px; }

/* Compose stub removed — posting via FAB popup only */

/* FAB */
.ws-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  border: 0;
  background: #4f46e5;
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(79,70,229,.45);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ws-fab svg { width: 20px; height: 20px; }
.ws-fab:hover { background: #4338ca; }

/* Status compose modal (social-style) */
.ws-modal--compose { align-items: flex-end; padding: 0; }
.ws-modal--compose.is-open .ws-compose {
  transform: translateY(0);
}
.ws-compose {
  width: 100%;
  max-width: 560px;
  max-height: min(92vh, 720px);
  display: flex;
  flex-direction: column;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  transform: translateY(8px);
  transition: transform .22s ease;
}
@media (min-width: 640px) {
  .ws-modal--compose { align-items: center; padding: 16px; }
  .ws-compose { border-radius: 16px; transform: none; }
}
.ws-compose__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  flex-shrink: 0;
}
.ws-compose__cancel {
  border: 0;
  background: transparent;
  color: #64748b;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 4px;
}
.ws-compose__cancel:hover { color: #111827; }
.ws-compose__post {
  border: 0;
  background: #c7d2fe;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: not-allowed;
  min-width: 72px;
  transition: background .15s;
}
.ws-compose__post:not(:disabled) {
  background: #4f46e5;
  cursor: pointer;
}
.ws-compose__post:not(:disabled):hover { background: #4338ca; }
.ws-compose__post.is-loading { opacity: .85; cursor: wait; }

.ws-compose__body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

/* Unified post card editor — matches feed card layout */
.ws-compose__postCard {
  position: relative;
  border-radius: 18px;
  background: #e8eaed;
  overflow: hidden;
  margin-bottom: 16px;
}
.ws-compose__postBody {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 20px;
  position: relative;
}
.ws-compose__postBody.has-media {
  padding: 0;
  min-height: 280px;
}
.ws-compose__postBody.is-drag {
  outline: 2px dashed #a5b4fc;
  outline-offset: -4px;
  background: #eef2ff;
}

.ws-compose__postMedia {
  display: none;
}
.ws-compose__postMedia.has-image,
.ws-compose__postBody.has-media .ws-compose__postMedia {
  display: block;
}
.ws-compose__postMediaAdd {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 120px;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  background: rgba(255,255,255,.55);
  color: #64748b;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.ws-compose__postBody.has-media .ws-compose__postMediaAdd { display: none; }
.ws-compose__postMediaAdd svg { width: 28px; height: 28px; color: #6366f1; }

.ws-compose__postMediaIn {
  position: relative;
  width: 100%;
  min-height: 220px;
  background: #f3f4f6;
}
.ws-compose__postMediaIn img {
  width: 100%;
  min-height: 220px;
  max-height: 320px;
  object-fit: cover;
  display: block;
}
.ws-compose__postMediaRm {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(15,23,42,.65);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.ws-compose__postText {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: #111827;
  min-height: 72px;
  text-align: center;
  word-break: break-word;
  white-space: pre-wrap;
}
.ws-compose__postText:empty::before {
  content: attr(data-placeholder);
  color: #9ca3af;
  pointer-events: none;
}
.ws-compose__postBody.has-media .ws-compose__postText {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 0;
  padding: 14px 16px;
  text-align: left;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: #fff;
}
.ws-compose__postBody.has-media .ws-compose__postText:empty::before {
  color: rgba(255,255,255,.75);
}

.ws-compose__postFoot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,.92);
  border-top: 1px solid rgba(229,231,235,.9);
}
.ws-compose__postAva {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}
.ws-compose__postName {
  flex: 1;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-compose__postMood {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  flex-shrink: 0;
}
.ws-compose__postMood.has-emoji {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
  font-size: 20px;
  line-height: 1;
  padding: 4px 10px;
}
.ws-compose__postMoodVal { display: inline-block; }

/* Feeling picker popup */
.ws-modal--feeling { z-index: 120; }
.ws-modal__panel--feeling {
  max-width: 360px;
  width: calc(100% - 32px);
}
.ws-feelingPick__bd {
  padding: 12px 16px 18px;
}
.ws-feelingPick__bd .ws-emojiPick__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.ws-feelingPick__bd .ws-emojiPick__grid button {
  width: 100%;
  aspect-ratio: 1;
  font-size: 22px;
}

/* Inbox */
.ws-inboxBtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #4f46e5;
  cursor: pointer;
}
.ws-inboxBtn:hover { background: #eef2ff; }
.ws-inboxBtn svg { width: 20px; height: 20px; }
.ws-inboxBtn__badge {
  position: absolute;
  top: -2px;
  inset-inline-end: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
.ws-modal__panel--inbox {
  max-width: 480px;
  width: calc(100% - 24px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.ws-inbox__bd {
  padding: 0;
  flex: 1;
  min-height: 280px;
  max-height: 60vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ws-inboxList {
  overflow-y: auto;
  flex: 1;
}
.ws-inboxItem {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #f3f4f6;
  background: #fff;
  text-align: start;
  cursor: pointer;
}
.ws-inboxItem:hover { background: #f9fafb; }
.ws-inboxItem--unread { background: #eef2ff; }
.ws-inboxItem--unread:hover { background: #e0e7ff; }
.ws-inboxItem__ava {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}
.ws-inboxItem__body { flex: 1; min-width: 0; }
.ws-inboxItem__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}
.ws-inboxItem__name {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
}
.ws-inboxItem__time {
  font-size: 11px;
  color: #9ca3af;
  flex-shrink: 0;
}
.ws-inboxItem__preview {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-inboxThread {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.ws-inboxThread__msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ws-inboxMsg {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
}
.ws-inboxMsg--mine {
  align-self: flex-end;
  background: #4f46e5;
  color: #fff;
  border-end-end-radius: 4px;
}
.ws-inboxMsg--theirs {
  align-self: flex-start;
  background: #f3f4f6;
  color: #111827;
  border-end-start-radius: 4px;
}
.ws-inboxMsg__ref {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 4px;
}
.ws-inboxMsg__text { margin: 0; word-break: break-word; }
.ws-inboxMsg__time {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  opacity: 0.75;
}
.ws-inboxThread__form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.ws-inboxThread__inp {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
}
.ws-inboxThread__inp:focus {
  outline: none;
  border-color: #a5b4fc;
}
.ws-inboxEmpty,
.ws-inboxLoading,
.ws-inboxErr,
.ws-inboxThreadEmpty {
  padding: 24px 16px;
  text-align: center;
  color: #9ca3af;
  font-weight: 600;
  font-size: 14px;
}
.ws-inboxBack {
  border: 0;
  background: transparent;
  color: #4f46e5;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 8px;
  margin-inline-end: 4px;
}
.ws-modal__hd .ws-inboxBack + h2 { flex: 1; }
.ws-compose__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 14px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  flex-shrink: 0;
}
.ws-compose__tools {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ws-compose__tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #4f46e5;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.ws-compose__tool:hover { background: #eef2ff; }
.ws-compose__tool svg { width: 22px; height: 22px; }
.ws-compose__count {
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
}
.ws-compose__count.is-warn { color: #dc2626; }

.ws-emojiPick__grid button {
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  font-size: 20px;
  cursor: pointer;
}
.ws-emojiPick__grid button:hover { background: #eef2ff; border-color: #c7d2fe; }

/* Map */
.ws-mapCol { position: sticky; top: 16px; }
.ws-mapWrap {
  position: relative;
  height: calc(100vh - 120px);
  min-height: 320px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #dbeafe;
}
#wsMap { height: 100%; width: 100%; }

.ws-mapLegend {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 20px);
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(229,231,235,.95);
  box-shadow: 0 4px 14px rgba(15,23,42,.08);
  pointer-events: none;
}
.ws-mapLegend__title {
  width: 100%;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ws-mapLegend__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #475569;
}
.ws-mapLegend__item::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex-shrink: 0;
}
.ws-mapLegend__item--1::before { background: rgba(56,189,248,.65); box-shadow: 0 0 0 4px rgba(186,230,253,.35); }
.ws-mapLegend__item--2::before { background: rgba(167,139,250,.65); box-shadow: 0 0 0 4px rgba(221,214,254,.35); }
.ws-mapLegend__item--3::before { background: rgba(244,114,182,.65); box-shadow: 0 0 0 4px rgba(251,207,232,.35); }
.ws-mapLegend__item--4::before { background: rgba(251,191,36,.7); box-shadow: 0 0 0 4px rgba(253,230,138,.35); }

.ws-map__hint {
  margin-top: 10px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
}

/* Buttons */
.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #4f46e5;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.ws-btn:hover { background: #4338ca; }
.ws-btn:disabled { opacity: .65; cursor: default; }
.ws-btn--sec {
  background: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
}
.ws-linkBtn {
  border: 0;
  background: transparent;
  color: #4f46e5;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  padding: 8px;
}

/* Modal (reply + shared) */
.ws-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.ws-modal.is-open { opacity: 1; visibility: visible; }
.ws-modal.ws-hidden { opacity: 0; visibility: hidden; }
.ws-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.45);
  backdrop-filter: blur(4px);
}
.ws-modal__panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15,23,42,.2);
}
.ws-modal__panel--wide { max-width: 520px; }
.ws-emojiPick__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ws-modal__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.ws-modal__hd h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-modal__close {
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: #64748b;
  padding: 4px 8px;
}
.ws-modal__bd { padding: 18px; }
.ws-modal__to { margin: 0 0 10px; color: #64748b; font-weight: 700; font-size: 13px; }
.ws-ta {
  width: 100%;
  min-height: 88px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  resize: vertical;
  font: inherit;
  line-height: 1.5;
  box-sizing: border-box;
}
.ws-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Site footer */
.ws-footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 20px 96px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}
.ws-footer__lang { margin-bottom: 12px; }
.ws-footer__langLabel {
  font-weight: 700;
  color: #64748b;
  margin-inline-end: 4px;
}
.ws-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 12px;
}
.ws-footer__links a {
  color: #4f46e5;
  font-weight: 700;
  text-decoration: none;
}
.ws-footer__links a:hover { text-decoration: underline; }
.ws-footer__copy {
  font-size: 12px;
  color: #9ca3af;
}
#wsFootLang a,
.ws-footer .vk-foot__lang-link {
  color: #4f46e5;
  font-weight: 700;
  text-decoration: none;
}
#wsFootLang a:hover { text-decoration: underline; }
#wsFootLang a.is-on { color: #111827; }
#wsFootLang .vk-foot__lang-sep { color: #9ca3af; }

/* RTL (Arabic) */
.ws-rtl .ws-filter { direction: rtl; }
.ws-rtl .ws-onboard,
.ws-rtl .ws-map__hint { text-align: right; }
.ws-rtl .ws-card__time {
  left: auto;
  right: 14px;
}
.ws-rtl .ws-card--preview .ws-card__time {
  right: 10px;
  left: auto;
}
.ws-rtl .ws-clock__side { align-items: flex-end; }
.ws-rtl .ws-compose__hd {
  flex-direction: row-reverse;
}
.ws-rtl .ws-compose__postFoot {
  flex-direction: row-reverse;
}
.ws-rtl .ws-card__caption,
.ws-rtl .ws-card__text { text-align: right; }
.ws-rtl .ws-footer__links { direction: rtl; }

@media (max-width: 900px) {
  .ws-body { grid-template-columns: 1fr; }
  .ws-mapCol { display: none !important; }
  .ws-filter { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .ws-cards {
    grid-template-columns: 1fr;
  }
}

.ws-modal--map { align-items: flex-end; padding: 0; z-index: 110; }
@media (min-width: 901px) {
  .ws-modal--map { display: none !important; }
}
.ws-modal__panel--map {
  max-width: none;
  width: 100%;
  max-height: 92vh;
  border-radius: 16px 16px 0 0;
}
@media (min-width: 640px) and (max-width: 900px) {
  .ws-modal--map { align-items: center; padding: 16px; }
  .ws-modal__panel--map { max-width: 560px; border-radius: 16px; }
}
.ws-mapPicker__bd { padding: 0 0 16px; }
#wsMapHostPicker .ws-mapWrap {
  height: min(62vh, 520px);
  min-height: 280px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
}
.ws-map__hint--picker {
  margin: 12px 16px 0;
}

@media (max-width: 520px) {
  .ws-googleBtn span { display: none; }
  .ws-compose__tool span { display: none; }
  .ws-fab {
    left: 16px;
    right: 16px;
    justify-content: center;
  }
}
