*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Segoe UI", Tahoma, Verdana, sans-serif;
  background: #dbe9ff;
  color: #102030;
}

body {
  -webkit-font-smoothing: antialiased;
}

#app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95) 0%, rgba(220, 235, 255, 0.9) 40%, rgba(190, 210, 245, 0.95) 100%),
    linear-gradient(to bottom right, #c1d6ff, #95b5ff);
}

/* Header */

.sx-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: linear-gradient(to bottom, #f5f8ff 0%, #d2e1ff 50%, #b7ccff 100%);
  border-bottom: 1px solid #7f98d5;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
  position: relative;
}

.sx-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sx-logo {
  height: 28px;
  width: auto;
  border-radius: 0;
  box-shadow: 0 0 6px rgba(0, 50, 120, 0.35);
  background: transparent;
}

.sx-header-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.sx-brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #102a5a;
  text-shadow: 0 1px 0 #ffffff;
}

.sx-tagline {
  font-size: 10px;
  color: #4a6494;
}

/* User pill */

.sx-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px 2px 2px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #ffffff 0%, #dde8ff 100%);
  border: 1px solid #a3b5d6;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.sx-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: #c7d4f0;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.35);
}

#sx-username-label {
  font-size: 11px;
  color: #1a3366;
}

.sx-user-pill-tooltip {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 6px);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 32, 64, 0.92);
  color: #f5f7ff;
  font-size: 10px;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s ease-out,
    transform 0.15s ease-out;
  z-index: 50;
}

.sx-user-pill:hover .sx-user-pill-tooltip {
  opacity: 1;
  transform: translate(-50%, 2px);
}

/* Layout */

.sx-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 6px;
  align-items: center;
}

/* Sidebar (leave grey aesthetic as-is) */

.sx-sidebar {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  gap: 6px;
  padding: 6px 4px;
  border-radius: 12px;
  border: 1px solid #9a9fa5;
  background:
    linear-gradient(to top, rgba(80, 80, 80, 0.82), rgba(140, 140, 140, 0.72)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.2), transparent 60%);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  margin-top: auto;
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.sx-nav-item {
  flex: 1 1 0;
  border-radius: 8px;
  border: 1px solid #b0b4ba;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background:
    linear-gradient(to bottom, rgba(245, 245, 245, 0.95) 0%, rgba(215, 215, 215, 0.95) 50%, rgba(190, 190, 190, 0.95) 100%);
  color: #1f252c;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7),
    0 2px 3px rgba(0, 0, 0, 0.35);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.sx-nav-item:active {
  box-shadow:
    0 0 0 rgba(0, 0, 0, 0),
    inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.sx-nav-active {
  background: linear-gradient(to bottom, #f7faff 0%, #d3e0ff 45%, #9fb6f5 100%);
  border-color: #6d86ce;
  color: #102144;
}

.sx-nav-label {
  display: block;
  text-align: center;
}

/* Content area */

.sx-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  gap: 6px;
  width: 100%;
  max-width: 640px;
}

/* Post panel overlay */

.sx-post-panel {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: radial-gradient(circle at top, rgba(240, 246, 255, 0.9), rgba(90, 120, 185, 0.6));
  z-index: 40;
}

.sx-post-panel[aria-hidden="true"] {
  display: none;
}

.sx-post-panel-inner {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  border: 1px solid #8faadf;
  background: linear-gradient(to bottom, #f9fbff 0%, #e1ecff 45%, #ccdfff 100%);
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 6px;
}

/* Comment panel overlay */

.sx-comment-panel {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: radial-gradient(circle at top, rgba(240, 246, 255, 0.95), rgba(70, 105, 170, 0.65));
  z-index: 45;
}

.sx-comment-panel[aria-hidden="true"] {
  display: none;
}

.sx-comment-panel-inner {
  width: 100%;
  max-width: 380px;
  border-radius: 12px;
  border: 1px solid #8faadf;
  background: linear-gradient(to bottom, #f9fbff 0%, #e1ecff 45%, #ccdfff 100%);
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 6px;
}

/* Notifications panel overlay */

.sx-notification-panel {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: radial-gradient(circle at top, rgba(240, 246, 255, 0.96), rgba(60, 95, 150, 0.7));
  z-index: 46;
}

.sx-notification-panel[aria-hidden="true"] {
  display: none;
}

.sx-notification-panel-inner {
  width: 100%;
  max-width: 380px;
  max-height: 80vh;
  border-radius: 12px;
  border: 1px solid #8faadf;
  background: linear-gradient(to bottom, #f9fbff 0%, #e1ecff 45%, #ccdfff 100%);
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 6px;
  display: flex;
  flex-direction: column;
}

/* Account details panel overlay */

.sx-account-panel {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: radial-gradient(circle at top, rgba(240, 246, 255, 0.96), rgba(60, 95, 150, 0.7));
  z-index: 47;
}

.sx-account-panel[aria-hidden="true"] {
  display: none;
}

.sx-account-panel-inner {
  width: 100%;
  max-width: 380px;
  border-radius: 12px;
  border: 1px solid #8faadf;
  background: linear-gradient(to bottom, #f9fbff 0%, #e1ecff 45%, #ccdfff 100%);
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 6px;
  display: flex;
  flex-direction: column;
}

.sx-account-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.sx-account-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: #163354;
  text-shadow: 0 1px 0 #ffffff;
}

.sx-account-body {
  padding: 6px;
  border-radius: 10px;
  background: linear-gradient(to bottom, #f7fbff 0%, #e4f0ff 50%, #c8ddff 100%);
  border: 1px solid #9ab7e1;
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.sx-account-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 6px;
}

.sx-account-label {
  font-size: 11px;
  color: #294571;
}

.sx-account-avatar-row {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.sx-account-avatar-preview {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #c7d4f0;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.sx-account-avatar-controls {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sx-account-avatar-hint {
  font-size: 9px;
  color: #3a5780;
}

/* Profile background controls */

.sx-account-bg-row {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.sx-account-bg-preview {
  width: 72px;
  height: 40px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: #c7d4f0;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.sx-account-bg-controls {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Profile header background */

.sx-profile-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 8px 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: linear-gradient(to bottom, #ffffff 0%, #eef3ff 50%, #dde7ff 100%);
  border: 1px solid #b1c5e3;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.18);
}

.sx-profile-header.sx-profile-header-has-bg {
  background-image: var(--sx-profile-bg-image),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #f5f7ff;
  border-color: #7f96c8;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.sx-profile-header.sx-profile-header-has-bg .sx-profile-header-name {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.sx-profile-header.sx-profile-header-has-bg .sx-profile-header-handle {
  color: #dde5ff;
}

.sx-profile-header.sx-profile-header-has-bg .sx-profile-header-meta {
  color: #e5ecff;
}

.sx-profile-header.sx-profile-header-has-bg .sx-follow-pill {
  background: linear-gradient(to bottom, #ffffff 0%, #dbe6ff 100%);
  color: #163354;
}

/* Profile tabs & sections */

.sx-profile-tabs {
  margin: 4px 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.sx-profile-tab {
  flex: 1 1 0;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #8ea6cc;
  background: linear-gradient(to bottom, #ffffff 0%, #dde8ff 100%);
  font-size: 10px;
  font-weight: 600;
  color: #214369;
  cursor: pointer;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 2px rgba(0, 0, 0, 0.18);
}

.sx-profile-tab[data-active="true"] {
  border-color: #6d86ce;
  background: linear-gradient(to bottom, #f7faff 0%, #d3e0ff 45%, #9fb6f5 100%);
  color: #102144;
}

.sx-profile-section {
  width: 100%;
  max-width: 420px;
  margin: 4px auto 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 0.25s ease,
    opacity 0.18s ease-out,
    transform 0.18s ease-out;
}

.sx-profile-section-open {
  max-height: 4000px;
  opacity: 1;
  transform: translateY(0);
}

.sx-profile-activity-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sx-activity-heading {
  margin: 2px 0;
  font-size: 10px;
  font-weight: 700;
  color: #1b325f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sx-activity-item {
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid #bfd0ee;
  background: linear-gradient(to bottom, #ffffff 0%, #f0f4ff 50%, #dde7ff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.18);
}

.sx-activity-meta {
  font-size: 9px;
  color: #7088aa;
  margin-bottom: 1px;
}

.sx-activity-text {
  font-size: 11px;
  color: #1f3246;
}

.sx-profile-empty {
  padding: 8px 6px;
  font-size: 11px;
  color: #4c6888;
}

.sx-account-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.sx-notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.sx-notification-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: #163354;
  text-shadow: 0 1px 0 #ffffff;
}

.sx-notification-list {
  flex: 1;
  margin-top: 2px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid #9ab7e1;
  background: linear-gradient(to bottom, #f7fbff 0%, #e4f0ff 50%, #c8ddff 100%);
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  overflow-y: auto;
}

.sx-notification-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 4px 0;
  border-bottom: 1px dotted rgba(140, 160, 190, 0.7);
  font-size: 10px;
  color: #1d2f45;
}

.sx-notification-item:last-child {
  border-bottom: none;
}

.sx-notification-avatar {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: #c7d4f0;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.35);
}

.sx-notification-body {
  flex: 1;
  min-width: 0;
}

.sx-notification-meta {
  font-size: 9px;
  color: #5b7194;
}

.sx-notification-username {
  font-weight: 600;
  color: #203555;
}

.sx-notification-text {
  margin-top: 1px;
  font-size: 10px;
  color: #1d2f45;
}

/* end notifications */

.sx-comment-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.sx-comment-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: #163354;
  text-shadow: 0 1px 0 #ffffff;
}

.sx-comment-composer {
  padding: 6px;
  border-radius: 10px;
  background: linear-gradient(to bottom, #f7fbff 0%, #e4f0ff 50%, #c8ddff 100%);
  border: 1px solid #9ab7e1;
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.sx-comment-input {
  width: 100%;
  min-height: 70px;
  max-height: 90px;
  resize: none;
  border-radius: 8px;
  border: 1px solid #a3b7e2;
  padding: 6px 8px;
  font-size: 12px;
  background: linear-gradient(to bottom, #ffffff 0%, #f3f7ff 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.sx-comment-input:focus {
  outline: none;
  border-color: #6c8ed8;
  box-shadow:
    0 0 0 1px #bfd0f3,
    inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.sx-comment-composer-actions {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
}

.sx-post-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.sx-post-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: #163354;
  text-shadow: 0 1px 0 #ffffff;
}

/* Composer */

.sx-composer {
  padding: 6px;
  border-radius: 10px;
  background: linear-gradient(to bottom, #f7fbff 0%, #e4f0ff 50%, #c8ddff 100%);
  border: 1px solid #9ab7e1;
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.sx-composer-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sx-title-input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #a3b7e2;
  padding: 6px 8px;
  font-size: 13px;
  background: linear-gradient(to bottom, #ffffff 0%, #f3f7ff 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.sx-title-input:focus {
  outline: none;
  border-color: #6c8ed8;
  box-shadow:
    0 0 0 1px #bfd0f3,
    inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.sx-text-input {
  width: 100%;
  min-height: 56px;
  max-height: 64px;
  resize: none;
  border-radius: 8px;
  border: 1px solid #a3b7e2;
  padding: 6px 8px;
  font-size: 13px;
  background: linear-gradient(to bottom, #ffffff 0%, #f3f7ff 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.sx-text-input:focus {
  outline: none;
  border-color: #6c8ed8;
  box-shadow:
    0 0 0 1px #bfd0f3,
    inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.sx-composer-controls {
  margin-top: 4px;
  justify-content: space-between;
}

.sx-video-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-size: 10px;
  color: #294571;
}

#sx-video-duration {
  font-weight: 600;
}

/* Buttons */

.sx-btn {
  border-radius: 999px;
  border: 1px solid #8ea6cc;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.sx-btn-soft {
  background: linear-gradient(to bottom, #ffffff 0%, #dde8ff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 2px rgba(0, 0, 0, 0.18);
  color: #214369;
}

.sx-btn-primary {
  background: linear-gradient(to bottom, #ffffff 0%, #c8e0ff 40%, #8bb6ff 100%);
  border-color: #4f7cc5;
  color: #103256;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 3px rgba(0, 0, 0, 0.3);
}

.sx-btn:active {
  box-shadow:
    0 0 0 rgba(0, 0, 0, 0),
    inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.sx-btn:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 1px rgba(0, 0, 0, 0.12);
}

/* Clip note */

.sx-clip-note {
  margin-top: 3px;
  font-size: 9px;
  color: #3a5780;
  opacity: 0.8;
}

.sx-discussion-note {
  margin-top: 3px;
  font-size: 9px;
  color: #3a5780;
  opacity: 0.8;
}

.sx-image-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-size: 10px;
  color: #294571;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Feed */

.sx-feed {
  flex: 2 1 auto;
  margin-top: 2px;
  border-radius: 10px;
  border: 1px solid #8eaee0;
  background-image:
    linear-gradient(to bottom, #f7fbff 0%, #e1ecff 40%, #c7dafc 100%),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.4) 0px,
      rgba(255, 255, 255, 0.4) 2px,
      rgba(255, 255, 255, 0) 2px,
      rgba(255, 255, 255, 0) 4px
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 3px rgba(0, 0, 0, 0.26);
  padding: 8px 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Trending panel */

.sx-trending-panel {
  flex: 1 1 160px;
  margin-top: 2px;
  align-self: stretch;
  border-radius: 10px;
  border: 1px solid #8eaee0;
  background: linear-gradient(to bottom, #f9fbff 0%, #e4efff 45%, #d1e0ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 3px rgba(0, 0, 0, 0.26);
  padding: 6px;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  max-width: 220px;
}

.sx-trending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.sx-trending-title {
  font-size: 11px;
  font-weight: 700;
  color: #163354;
  text-shadow: 0 1px 0 #ffffff;
}

.sx-trending-list {
  flex: 1;
  border-radius: 8px;
  border: 1px solid #a1b7d6;
  background: linear-gradient(to bottom, #ffffff 0%, #eef3ff 45%, #dde7ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 1px rgba(0, 0, 0, 0.12);
  padding: 4px 6px;
  overflow-y: auto;
}

.sx-trending-item {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 10px;
  color: #1f3246;
  padding: 2px 0;
  border-bottom: 1px dotted rgba(150, 170, 200, 0.7);
}

.sx-trending-item:last-child {
  border-bottom: none;
}

.sx-trending-rank {
  font-weight: 700;
  color: #203555;
  min-width: 20px;
}

.sx-trending-tag {
  font-weight: 600;
  color: #163b74;
}

.sx-trending-count {
  margin-left: auto;
  font-size: 9px;
  color: #5b7194;
}

/* Post item */

.sx-profile-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 8px 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: linear-gradient(to bottom, #ffffff 0%, #eef3ff 50%, #dde7ff 100%);
  border: 1px solid #b1c5e3;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.18);
}

.sx-profile-header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background-size: cover;
  background-position: center;
  background-color: #c7d4f0;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.sx-profile-header-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.sx-profile-header-name-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.sx-profile-header-name {
  font-size: 13px;
  font-weight: 700;
  color: #1b325f;
}

.sx-profile-header-handle {
  font-size: 11px;
  color: #4f6b92;
}

.sx-profile-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #476689;
}

.sx-profile-header-follow {
  margin-left: auto;
}

/* Post item */
.sx-post {
  display: flex;
  gap: 6px;
  padding: 5px 6px;
  margin: 0 auto 6px;
  width: 100%;
  max-width: 420px;
  border-radius: 8px;
  background: linear-gradient(to bottom, #ffffff 0%, #f0f4ff 50%, #dde7ff 100%);
  border: 1px solid #bfd0ee;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.18);
}

.sx-post-avatar {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: #c7d4f0;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  cursor: pointer;
}

.sx-post-main {
  flex: 1;
  min-width: 0;
}

.sx-post-header {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 11px;
}

.sx-post-username {
  font-weight: 700;
  color: #1b325f;
}

.sx-post-handle {
  color: #4f6b92;
  font-size: 10px;
}

.sx-post-time {
  margin-left: auto;
  font-size: 9px;
  color: #7088aa;
}

.sx-post-text {
  margin-top: 2px;
  font-size: 12px;
  color: #1f3246;
  word-wrap: break-word;
}

/* Hashtags inside post text */
.sx-post-text .sx-hashtag {
  color: #0a66c2;
  font-weight: 600;
}

.sx-post-video-wrapper {
  margin-top: 4px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #8ea6d8;
  background: linear-gradient(to bottom, #283a5c 0%, #0c1524 100%);
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.sx-video-shell {
  border-radius: 9px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(to bottom, #111827, #050910);
  display: flex;
  flex-direction: column;
  position: relative;
}

.sx-post-video {
  width: 100%;
  max-height: 320px;
  display: block;
  background: #000;
}

.sx-video-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-top: 1px solid rgba(35, 52, 92, 0.9);
  background:
    linear-gradient(to bottom, #f9fbff 0%, #d8e4ff 45%, #becff6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 -1px 0 rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 0.18s ease-out,
    transform 0.18s ease-out;
}

.sx-video-shell:hover .sx-video-controls {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sx-video-play-btn {
  border-radius: 999px;
  border: 1px solid #7d96c4;
  width: 22px;
  height: 22px;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #ffffff 0%, #dde7ff 50%, #c3d2f6 100%);
  color: #1b315a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.35);
}

.sx-video-play-btn:active {
  box-shadow:
    0 0 0 rgba(0, 0, 0, 0),
    inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.sx-video-time {
  margin-left: 2px;
  font-size: 10px;
  font-weight: 600;
  color: #2a4168;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.sx-video-download-btn {
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid #7d96c4;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(to bottom, #ffffff 0%, #dde7ff 50%, #c3d2f6 100%);
  color: #1b315a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.35);
  -webkit-tap-highlight-color: transparent;
}

.sx-video-download-btn:active {
  box-shadow:
    0 0 0 rgba(0, 0, 0, 0),
    inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.sx-post-images {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.sx-post-image {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #a1b7d6;
  object-fit: cover;
  max-height: 120px;
  background: #000;
}

/* Post footer/meta */

.sx-post-footer {
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #476689;
}

.sx-duration-pill {
  padding: 1px 6px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #e1eeff 0%, #bed5ff 100%);
  border: 1px solid #7d9ed6;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.sx-loops-pill {
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #fdfcff 0%, #ebe5ff 100%);
  border: 1px solid #9b8add;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  font-size: 9px;
  color: #362a72;
}

.sx-trimmed-flag {
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid #d19a3a;
  background: linear-gradient(to bottom, #fff7df 0%, #ffe2a5 100%);
  color: #7a4a00;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Actions row */

.sx-post-actions {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: space-between;
  font-size: 10px;
}

.sx-post-actions-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sx-post-actions-right {
  margin-left: auto;
}

.sx-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid #8da6c6;
  background: linear-gradient(to bottom, #ffffff 0%, #dde7fb 50%, #c4d3f7 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  cursor: pointer;
  color: #223a5a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sx-action-btn:active {
  box-shadow:
    0 0 0 rgba(0, 0, 0, 0),
    inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.sx-action-btn[data-active="true"] {
  background: linear-gradient(to bottom, #ffffff 0%, #d3e4ff 45%, #9ebcf2 100%);
  border-color: #557eaf;
}

.sx-action-icon {
  font-size: 11px;
}

.sx-action-count {
  font-size: 10px;
}

/* Follow pill */

.sx-follow-pill {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #7da0d6;
  background: linear-gradient(to bottom, #ffffff 0%, #d9e6ff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  font-size: 10px;
  color: #17416b;
  cursor: pointer;
}

.sx-follow-pill[data-following="true"] {
  border-color: #5b8fdf;
  background: linear-gradient(to bottom, #ffffff 0%, #d8e6ff 100%);
  color: #254c80;
}

/* Comments drawer */

.sx-comments-toggle {
  margin-top: 4px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 0 0 8px 8px;
  border: 1px solid #a1b7d6;
  border-top-color: #d9e4ff;
  background: linear-gradient(to bottom, #ffffff 0%, #e3ecff 45%, #cbd8f7 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  color: #234066;
  font-size: 10px;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.sx-comments-toggle:active {
  box-shadow:
    0 0 0 rgba(0, 0, 0, 0),
    inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.sx-comments-toggle-chevron {
  font-size: 9px;
  opacity: 0.85;
}

.sx-comments {
  margin-top: 0;
  padding: 4px 6px;
  border-radius: 0 0 8px 8px;
  border: 1px solid #b1c5e3;
  border-top: none;
  background: linear-gradient(to bottom, #fefeff 0%, #edf3ff 45%, #dde7ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 1px rgba(0, 0, 0, 0.12);
  max-height: 120px;
  overflow-y: auto;
}

.sx-comments::-webkit-scrollbar {
  width: 6px;
}

.sx-comments::-webkit-scrollbar-track {
  background: #d8e3ff;
  border-radius: 999px;
}

.sx-comments::-webkit-scrollbar-thumb {
  background: #9ab3df;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.sx-comment {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 3px 0;
  border-bottom: 1px dotted rgba(140, 160, 190, 0.7);
}

.sx-comment:last-child {
  border-bottom: none;
}

.sx-comment--empty {
  justify-content: center;
  font-size: 9px;
  color: #5b7194;
}

.sx-comment-avatar {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: #c7d4f0;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.35);
}

.sx-comment-body {
  flex: 1;
  min-width: 0;
}

.sx-comment-meta {
  font-size: 9px;
  color: #5b7194;
}

.sx-comment-meta-username {
  font-weight: 600;
  color: #203555;
}

.sx-comment-text {
  margin-top: 1px;
  font-size: 10px;
  color: #1d2f45;
  word-wrap: break-word;
}

.sx-comment-delete {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid #c4909a;
  background: linear-gradient(to bottom, #fff7f7 0%, #f9d6dc 100%);
  font-size: 9px;
  color: #7b2233;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sx-comment-delete:active {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.sx-comment-reply-btn {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid #8da6c6;
  background: linear-gradient(to bottom, #ffffff 0%, #dde7fb 100%);
  font-size: 9px;
  color: #223a5a;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sx-comment-reply-btn:active {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Replies */

.sx-replies-toggle {
  margin-top: 3px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid #a1b7d6;
  background: linear-gradient(to bottom, #ffffff 0%, #e3ecff 45%, #cbd8f7 100%);
  font-size: 9px;
  color: #234066;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sx-replies-toggle:active {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}

.sx-replies {
  margin-top: 3px;
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid #c1d1ee;
  background: linear-gradient(to bottom, #fefeff 0%, #edf3ff 45%, #dde7ff 100%);
}

.sx-reply {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 2px 0;
  border-bottom: 1px dotted rgba(150, 170, 200, 0.7);
}

.sx-reply:last-child {
  border-bottom: none;
}

.sx-reply-avatar {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: #c7d4f0;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.sx-reply-body {
  flex: 1;
  min-width: 0;
}

.sx-reply-meta {
  font-size: 8px;
  color: #5b7194;
}

.sx-reply-meta-username {
  font-weight: 600;
  color: #203555;
}

.sx-reply-text {
  margin-top: 1px;
  font-size: 9px;
  color: #1d2f45;
  word-wrap: break-word;
}

.sx-reply-delete {
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 999px;
  border: 1px solid #c4909a;
  background: linear-gradient(to bottom, #fff7f7 0%, #f9d6dc 100%);
  font-size: 8px;
  color: #7b2233;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sx-reply-delete:active {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.sx-reply-composer {
  margin-top: 3px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.sx-reply-input {
  flex: 1;
  resize: none;
  border-radius: 6px;
  border: 1px solid #a3b7e2;
  padding: 3px 6px;
  font-size: 9px;
  background: linear-gradient(to bottom, #ffffff 0%, #f3f7ff 100%);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
}

.sx-reply-input:focus {
  outline: none;
  border-color: #6c8ed8;
  box-shadow:
    0 0 0 1px #bfd0f3,
    inset 0 1px 1px rgba(0, 0, 0, 0.1);
}

.sx-reply-submit {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #8ea6cc;
  background: linear-gradient(to bottom, #ffffff 0%, #c8e0ff 40%, #8bb6ff 100%);
  font-size: 9px;
  font-weight: 600;
  color: #103256;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sx-reply-submit:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
}

.sx-reply-submit:active {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Slight post hover to feel more tactile */

.sx-post:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 3px 4px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

/* Mobile tweaks */

@media (max-width: 480px) {
  .sx-post-panel-inner {
    max-width: 360px;
    padding: 6px;
  }

  .sx-account-panel-inner {
    max-width: 360px;
  }

  .sx-header {
    padding-inline: 6px;
  }

  .sx-main {
    padding: 6px;
  }

  .sx-sidebar {
    justify-content: space-between;
    align-items: stretch;
    gap: 4px;
    padding-inline: 4px;
  }

  .sx-nav-item {
    padding: 6px 0;
  }

  .sx-content {
    flex: 1 1 auto;
    flex-direction: column;
    max-width: 440px;
  }

  .sx-trending-panel {
    order: -1;
    max-width: 100%;
    min-width: 0;
  }

  .sx-composer {
    padding: 5px;
  }

  .sx-post-video {
    max-height: 240px;
  }
}