/* مجتمع مستشارك — social shell */
:root {
  --cm-green: #006c35;
  --cm-green-mid: #0a8a48;
  --cm-ink: #14261c;
  --cm-muted: #5a6b60;
  --cm-line: #dce8e0;
  --cm-bg: #eef3f0;
  --cm-card: #ffffff;
  --cm-radius: 14px;
  --cm-shadow: 0 8px 28px rgba(15, 40, 28, 0.08);
  --cm-font: "Cairo", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--cm-font);
  color: var(--cm-ink);
  background:
    radial-gradient(900px 400px at 90% -10%, rgba(10, 138, 72, 0.1), transparent 55%),
    var(--cm-bg);
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.cm-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cm-line);
}

.cm-top-inner {
  width: min(1180px, calc(100% - 1.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}

.cm-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.cm-brand img {
  height: 42px;
  width: auto;
  display: block;
}

.cm-brand span {
  font-weight: 800;
  color: var(--cm-green);
  font-size: 0.95rem;
}

.cm-search {
  flex: 1;
  max-width: 420px;
}

.cm-search input {
  width: 100%;
  border: 1px solid var(--cm-line);
  background: var(--cm-bg);
  border-radius: 999px;
  padding: 0.55rem 1rem;
}

.cm-top-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-inline-start: auto;
}

.cm-link-quiet {
  font-size: 0.85rem;
  color: var(--cm-muted);
  font-weight: 600;
}

.cm-lang {
  border: 1px solid var(--cm-line);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.cm-btn {
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}

.cm-btn:hover {
  transform: translateY(-1px);
}

.cm-btn-primary {
  background: linear-gradient(145deg, #0a8a48, #006c35);
  color: #fff;
}

.cm-btn-ghost {
  background: #fff;
  border: 1px solid var(--cm-line);
  color: var(--cm-ink);
}

.cm-btn-block {
  width: 100%;
}

.cm-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--cm-line);
  background: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.7rem 0.2rem 0.2rem;
  cursor: pointer;
}

.cm-avatar-btn img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cm-bg);
}

.cm-layout {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 1.15rem auto 2.5rem;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 280px;
  gap: 1rem;
  align-items: start;
}

.cm-card {
  background: var(--cm-card);
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-radius);
  box-shadow: var(--cm-shadow);
  padding: 1rem;
  margin-bottom: 0.85rem;
}

.cm-profile-hero {
  height: 56px;
  margin: -1rem -1rem 0;
  border-radius: var(--cm-radius) var(--cm-radius) 0 0;
  background: linear-gradient(120deg, #006c35, #0a8a48 55%, #c49a6c);
}

.cm-profile-body {
  margin-top: -28px;
  text-align: center;
}

.cm-profile-body h2 {
  margin: 0.45rem 0 0.2rem;
  font-size: 1.05rem;
}

.cm-muted {
  color: var(--cm-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.cm-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0a8a48, #004d26);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 auto;
  overflow: hidden;
}

.cm-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cm-avatar-lg {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  border: 3px solid #fff;
  font-size: 1.3rem;
}

.cm-nav-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.55rem;
}

.cm-nav-card a,
.cm-nav-card button {
  text-align: inherit;
  border: none;
  background: transparent;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  color: var(--cm-ink);
}

.cm-nav-card a.is-active,
.cm-nav-card a:hover,
.cm-nav-card button:hover {
  background: rgba(10, 138, 72, 0.1);
  color: var(--cm-green);
}

.cm-composer-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.cm-composer-trigger {
  flex: 1;
  text-align: inherit;
  border: 1px solid var(--cm-line);
  background: var(--cm-bg);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  color: var(--cm-muted);
  cursor: pointer;
  font-weight: 600;
}

.cm-feed {
  display: grid;
  gap: 0.85rem;
}

.cm-post {
  background: var(--cm-card);
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-radius);
  box-shadow: var(--cm-shadow);
  padding: 1rem;
}

.cm-post-head {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.cm-post-head strong {
  display: block;
  font-size: 0.95rem;
}

.cm-post-head time {
  font-size: 0.75rem;
  color: var(--cm-muted);
}

.cm-post-body {
  white-space: pre-wrap;
  line-height: 1.65;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.cm-post-images {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  overflow: hidden;
}

.cm-post-images img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.cm-post-images.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.cm-post-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--cm-muted);
  margin-bottom: 0.45rem;
}

.cm-post-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--cm-line);
  padding-top: 0.35rem;
}

.cm-post-actions button {
  border: none;
  background: transparent;
  padding: 0.55rem;
  border-radius: 8px;
  font-weight: 700;
  color: var(--cm-muted);
  cursor: pointer;
}

.cm-post-actions button:hover,
.cm-post-actions button.is-on {
  background: rgba(10, 138, 72, 0.08);
  color: var(--cm-green);
}

.cm-suggest {
  display: grid;
  gap: 0.55rem;
}

.cm-suggest-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.cm-suggest-row strong {
  font-size: 0.88rem;
  display: block;
}

.cm-suggest-row button {
  margin-inline-start: auto;
  border: 1px solid var(--cm-line);
  background: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.cm-modal[hidden] {
  display: none !important;
}

.cm-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 14, 0.45);
}

.cm-modal-dialog {
  position: relative;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  z-index: 1;
}

.cm-modal-wide {
  width: min(560px, 100%);
}

.cm-modal-messages {
  width: min(820px, 100%);
  height: min(640px, 90vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cm-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--cm-line);
}

.cm-modal-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.cm-x {
  width: 34px;
  height: 34px;
  border: 1px solid var(--cm-line);
  border-radius: 10px;
  background: var(--cm-bg);
  cursor: pointer;
  font-size: 1.2rem;
}

.cm-form {
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem;
}

.cm-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--cm-muted);
}

.cm-form input,
.cm-form textarea {
  width: 100%;
  border: 1px solid var(--cm-line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.cm-error {
  color: #b42318;
  font-size: 0.85rem;
  margin: 0;
}

.cm-switch {
  text-align: center;
  margin: 0;
}

.cm-text-btn {
  border: none;
  background: none;
  color: var(--cm-green);
  font-weight: 700;
  cursor: pointer;
}

.cm-file-label {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}

.cm-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cm-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.cm-comments {
  max-height: 360px;
  overflow: auto;
  padding: 0.85rem 1.1rem;
  display: grid;
  gap: 0.75rem;
}

.cm-comment {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.5rem;
}

.cm-comment p {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cm-comment-form {
  display: flex;
  gap: 0.45rem;
  padding: 0.85rem 1.1rem 1.1rem;
  border-top: 1px solid var(--cm-line);
}

.cm-comment-form input {
  flex: 1;
  border: 1px solid var(--cm-line);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
}

.cm-msg-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 240px 1fr;
}

.cm-inbox {
  border-inline-end: 1px solid var(--cm-line);
  overflow: auto;
}

.cm-inbox button {
  width: 100%;
  text-align: inherit;
  border: none;
  background: transparent;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--cm-line);
  cursor: pointer;
}

.cm-inbox button.is-active {
  background: rgba(10, 138, 72, 0.08);
}

.cm-thread-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cm-thread {
  flex: 1;
  overflow: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cm-bubble {
  max-width: 78%;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.cm-bubble-me {
  align-self: flex-end;
  background: var(--cm-green);
  color: #fff;
}

.cm-bubble-them {
  align-self: flex-start;
  background: var(--cm-bg);
}

.cm-pad {
  padding: 1rem;
}

.cm-empty {
  text-align: center;
  color: var(--cm-muted);
  padding: 2rem 1rem;
}

/* —— App shell / icons —— */
.cm-app {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

.cm-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--cm-line);
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  color: var(--cm-ink);
}

.cm-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cm-badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.cm-btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
}

.cm-guest-actions {
  display: inline-flex;
  gap: 0.35rem;
}

.cm-live-bar {
  width: min(1180px, calc(100% - 1rem));
  margin: 0.55rem auto 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(90deg, #006c35, #0a8a48);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 108, 53, 0.28);
  animation: cm-slide-in 0.35s ease;
}

.cm-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: cm-pulse 1.4s infinite;
}

.cm-live-bar button {
  margin-inline-start: auto;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

@keyframes cm-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes cm-slide-in {
  from { transform: translateY(-8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cm-mobile-search {
  display: none;
  margin-bottom: 0.65rem;
}

.cm-mobile-search input {
  width: 100%;
  border: 1px solid var(--cm-line);
  background: #fff;
  border-radius: 999px;
  padding: 0.65rem 1rem;
}

.cm-tabbar {
  display: none;
}

.cm-post-media video {
  width: 100%;
  max-height: 420px;
  border-radius: 12px;
  background: #000;
  display: block;
}

.cm-post-actions button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -3px;
  margin-inline-end: 0.2rem;
}

.cm-media-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cm-chip-file {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--cm-line);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  background: var(--cm-bg);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cm-ink);
}

.cm-chip-file svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.cm-sheet[hidden],
.cm-install[hidden] {
  display: none !important;
}

.cm-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.cm-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 20, 14, 0.45);
}

.cm-sheet-panel {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  max-height: 78vh;
  background: #fff;
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0);
  animation: cm-sheet-up 0.28s ease;
}

@keyframes cm-sheet-up {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.cm-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--cm-line);
}

.cm-sheet-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.cm-notify-list {
  overflow: auto;
  padding: 0.5rem;
}

.cm-notify-item {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 0.75rem;
  border-radius: 12px;
  border: 1px solid transparent;
}

.cm-notify-item:hover {
  background: rgba(10, 138, 72, 0.08);
}

.cm-notify-item strong {
  font-size: 0.9rem;
}

.cm-notify-item span {
  font-size: 0.78rem;
  color: var(--cm-muted);
}

.cm-install {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: end center;
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(10, 138, 72, 0.35), transparent 60%),
    rgba(4, 16, 10, 0.72);
  backdrop-filter: blur(10px);
}

.cm-install-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 154, 108, 0.35), transparent 70%);
  top: 12%;
  animation: cm-float 4s ease-in-out infinite;
}

@keyframes cm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

.cm-install-card {
  position: relative;
  width: min(420px, 100%);
  background: linear-gradient(180deg, #0b1f15, #082016 40%, #06140e);
  color: #f4faf6;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 1.35rem 1.2rem 1.2rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  text-align: center;
  animation: cm-sheet-up 0.4s ease;
}

.cm-install-skip {
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.75rem;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #d7e8dc;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.cm-install-logo {
  width: 92px;
  height: 92px;
  margin: 0.4rem auto 0.8rem;
  border-radius: 24px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.cm-install-logo img {
  width: 72px;
  height: auto;
}

.cm-install-eyebrow {
  margin: 0;
  color: #c49a6c;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

.cm-install-card h2 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.35rem;
  line-height: 1.35;
}

.cm-install-sub {
  margin: 0;
  color: rgba(244, 250, 246, 0.78);
  font-size: 0.9rem;
  line-height: 1.6;
}

.cm-install-perks {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.45rem;
  text-align: start;
}

.cm-install-perks li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.cm-install-cta {
  margin-top: 0.35rem;
}

.cm-ios-steps {
  text-align: start;
  margin: 0.75rem 0;
  font-size: 0.86rem;
  color: rgba(244, 250, 246, 0.85);
}

.cm-ios-steps ol {
  margin: 0.4rem 0 0;
  padding-inline-start: 1.2rem;
}

.cm-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--cm-line);
  font-size: 0.88rem;
}

.cm-mini-stats h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .cm-app {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .cm-layout {
    grid-template-columns: 1fr;
    width: min(100%, calc(100% - 0.75rem));
    margin-top: 0.65rem;
  }

  .cm-desktop-only,
  .cm-col-left,
  .cm-col-right,
  .cm-search--desktop,
  .cm-me-name,
  .cm-link-quiet {
    display: none !important;
  }

  .cm-top-inner {
    min-height: 56px;
    width: min(100%, calc(100% - 0.75rem));
    gap: 0.45rem;
  }

  .cm-brand span {
    font-size: 0.82rem;
  }

  .cm-brand img {
    height: 34px;
  }

  .cm-mobile-search.is-open {
    display: block;
  }

  .cm-card,
  .cm-post {
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 40, 28, 0.06);
  }

  .cm-composer {
    position: sticky;
    top: 56px;
    z-index: 20;
  }

  .cm-post-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .cm-post-actions button {
    font-size: 0;
    gap: 0;
  }

  .cm-post-actions button svg {
    margin: 0;
    width: 22px;
    height: 22px;
  }

  .cm-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--cm-line);
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  }

  .cm-tab {
    border: none;
    background: transparent;
    display: grid;
    place-items: center;
    gap: 0.1rem;
    color: var(--cm-muted);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.25rem;
  }

  .cm-tab svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .cm-tab.is-active {
    color: var(--cm-green);
  }

  .cm-tab-fab {
    transform: translateY(-10px);
  }

  .cm-fab-plus {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(145deg, #0a8a48, #006c35);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(0, 108, 53, 0.35);
  }

  .cm-fab-plus svg {
    stroke: #fff;
    width: 24px;
    height: 24px;
  }

  .cm-modal-dialog,
  .cm-modal-wide,
  .cm-modal-messages {
    width: 100%;
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    margin-top: auto;
    max-height: 92vh;
  }

  .cm-modal {
    place-items: end center;
    padding: 0;
  }

  .cm-msg-layout {
    grid-template-columns: 1fr;
  }

  /* Professional mobile shell polish */
  .cm-top {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 18px rgba(15, 40, 28, 0.05);
  }

  .cm-top-actions {
    gap: 0.3rem;
  }

  .cm-guest-actions .cm-btn {
    min-height: 36px;
    padding: 0.35rem 0.7rem;
  }

  .cm-mobile-search {
    display: block;
    margin: 0 0 0.75rem;
  }

  .cm-mobile-search input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--cm-line);
    background: #fff;
    border-radius: 14px;
    padding: 0.65rem 0.95rem;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(15, 40, 28, 0.04);
  }

  .cm-composer {
    border-radius: 18px;
    border: 1px solid var(--cm-line);
    box-shadow: 0 8px 22px rgba(15, 40, 28, 0.06);
  }

  .cm-composer-trigger {
    min-height: 44px;
    font-size: 0.92rem;
  }

  .cm-feed {
    display: grid;
    gap: 0.75rem;
  }

  .cm-post {
    padding: 0.85rem;
  }

  .cm-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.1rem;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -10px 28px rgba(15, 40, 28, 0.08);
  }

  .cm-tab {
    min-height: 52px;
    border-radius: 12px;
  }

  .cm-tab.is-active {
    color: var(--cm-green);
    background: rgba(0, 108, 53, 0.08);
  }

  .cm-tab span {
    font-size: 0.64rem;
    letter-spacing: 0;
  }

  .cm-sheet-panel {
    border-radius: 20px 20px 0 0;
    max-height: min(88svh, 720px);
  }

  .cm-live-bar {
    width: min(100%, calc(100% - 0.75rem));
    border-radius: 14px;
    font-size: 0.8rem;
  }

  @media (max-width: 420px) {
    .cm-brand span {
      display: none;
    }

    .cm-guest-actions .cm-btn-ghost {
      display: none;
    }
  }
}

@supports (padding: max(0px)) {
  .cm-top {
    padding-top: env(safe-area-inset-top, 0px);
  }
}
