.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(6, 55, 79, 0.16);
}

.session-avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #0b6e8a, #118ab2);
  box-shadow: 0 10px 24px rgba(6, 55, 79, 0.16);
}

.btn-iconic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-emoji {
  line-height: 1;
  font-size: 16px;
}

.post-top-side {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.post-menu-shell {
  position: relative;
}

.post-menu-trigger {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(17, 138, 178, 0.14);
  border-radius: 14px;
  background: #fff;
  display: grid;
  gap: 3px;
  place-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(6, 55, 79, 0.06);
}

.post-menu-trigger span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sea);
  display: block;
}

.post-menu-trigger.is-open {
  background: rgba(11, 110, 138, 0.08);
}

.post-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 138, 178, 0.14);
  box-shadow: 0 18px 34px rgba(6, 55, 79, 0.18);
  display: grid;
  gap: 6px;
  z-index: 5;
}

.post-menu-item {
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  padding: 11px 12px;
  font-weight: 800;
  color: var(--sea);
  cursor: pointer;
}

.post-menu-item:hover {
  background: #eef9fc;
}

.post-menu-item.is-danger {
  color: #b92a39;
}

.post-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill-danger {
  color: #b92a39;
  border-color: rgba(230, 57, 70, 0.22);
  background: rgba(230, 57, 70, 0.08);
}

.participants-line {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.mutirao-chat {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 138, 178, 0.1);
  display: grid;
  gap: 12px;
}

.mutirao-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.mutirao-chat-list {
  display: grid;
  gap: 10px;
  max-height: 300px;
  overflow: auto;
  padding-right: 4px;
}

.mutirao-chat-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(240, 250, 253, 0.9);
}

.mutirao-chat-item.is-own {
  background: rgba(11, 110, 138, 0.08);
}

.mutirao-chat-form {
  display: grid;
  gap: 10px;
}

.mutirao-chat-form textarea {
  min-height: 88px;
}

.chat-lock-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f6fbfd;
  border: 1px dashed rgba(17, 138, 178, 0.24);
  color: #456377;
}

.mobile-dock {
  display: none;
}

@media (max-width: 1220px) {
  .center-col {
    order: 1;
    display: grid;
    gap: 18px;
  }

  .right-col {
    order: 2;
  }

  .left-col {
    order: 3;
  }

  #feedCard {
    order: 1;
    margin-top: 0 !important;
  }

  #mapCard {
    order: 2;
  }

  #mutiraoCard {
    order: 1;
  }

  #themesCard {
    order: 2;
  }

  #pollCard {
    order: 3;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 92px;
  }

  .app-shell {
    padding: 12px;
  }

  .masthead {
    position: sticky;
    top: 0;
    z-index: 900;
    margin: -12px -12px 10px;
    padding: 5px 10px;
    min-height: 52px;
    border-radius: 0 0 18px 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
  }

  .eyebrow,
  .session-label,
  .session-copy small,
  .hero small,
  .hero p,
  .summary-card .empty-note,
  .card-title .muted:not(#feedSummary) {
    display: none;
  }

  .brand-block strong {
    font-size: 17px;
  }

  .session-panel {
    margin-left: auto;
    gap: 6px;
  }

  .session-copy {
    display: none;
  }

  .brand-logo,
  .session-avatar {
    width: 30px;
    height: 30px;
    border-radius: 11px;
    box-shadow: none;
  }

  .session-actions {
    gap: 6px;
  }

  .session-actions .btn-iconic {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 11px;
  }

  .session-actions .btn-emoji {
    font-size: 13px;
  }

  .session-actions .btn-label {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: 18px;
  }

  .hero h1 {
    margin-bottom: 10px;
    font-size: 28px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-actions .btn {
    min-height: 74px;
    padding: 12px 8px;
    display: grid;
    gap: 6px;
    justify-items: center;
    text-align: center;
  }

  .hero-actions .btn-label {
    font-size: 11px;
    line-height: 1.2;
  }

  .summary-card {
    padding: 14px;
  }

  .summary-card h2 {
    font-size: 18px;
  }

  .mini-stats {
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 1fr);
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .mini-stats::-webkit-scrollbar {
    display: none;
  }

  .mini-stat {
    min-height: 110px;
  }

  .mini-stat .value {
    font-size: 24px;
  }

  .layout {
    gap: 14px;
  }

  .right-col,
  .left-col {
    display: grid;
    gap: 14px;
  }

  .left-col .mt-18,
  .right-col .card {
    margin-top: 0 !important;
  }

  .card,
  .summary-card,
  .hero,
  .modal-panel {
    border-radius: 20px;
  }

  .card-title {
    margin-bottom: 12px;
  }

  .post {
    padding: 14px;
  }

  .post-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .post-user {
    gap: 10px;
  }

  .post-user strong {
    font-size: 14px;
  }

  .post-user span {
    font-size: 12px;
  }

  .post-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .engagement,
  .post-tools {
    width: 100%;
  }

  .engagement .pill,
  .post-tools .pill {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
    justify-content: center;
  }

  .post-top-side {
    gap: 8px;
  }

  .post-menu-trigger {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .comment-form .toolbar .btn,
  .mutirao-chat-form .toolbar .btn {
    width: 100%;
  }

  #map {
    height: 340px;
  }

  .mobile-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1100;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 22px;
    border: 1px solid rgba(17, 138, 178, 0.16);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 34px rgba(6, 55, 79, 0.18);
    backdrop-filter: blur(14px);
  }

  .dock-btn {
    border: 0;
    background: transparent;
    display: grid;
    gap: 4px;
    place-items: center;
    color: var(--sea);
    font-weight: 800;
    cursor: pointer;
  }

  .dock-icon {
    font-size: 18px;
    line-height: 1;
  }

  .dock-label {
    font-size: 11px;
    line-height: 1;
  }
}

@media (max-width: 540px) {
  .hero-actions {
    gap: 8px;
  }

  .upload-preview {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .post-image {
    height: 138px;
  }

  .ranking-item {
    grid-template-columns: 38px 1fr;
  }

  .post-user {
    min-width: 0;
  }

  .post-user > div:last-child {
    min-width: 0;
  }

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

  .severity {
    grid-column: 2;
    justify-self: start;
  }
}
