.publish-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 0 16px 0 11px;
  background: linear-gradient(135deg, #ff2d55, #ff9500);
  color: #fff;
  font-weight: 820;
  box-shadow: 0 14px 28px rgba(255, 45, 85, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: box-shadow 0.2s, transform 0.2s;
  white-space: nowrap;
}

.publish-button span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  font-size: 17px;
  line-height: 1;
}

.publish-button:hover {
  box-shadow: 0 18px 34px rgba(255, 45, 85, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.48);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .publish-button {
    min-height: 38px;
    padding-inline: 12px;
  }

  .publish-button span {
    width: 20px;
    height: 20px;
  }
}

.post-photos img {
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-photos img:hover {
  box-shadow: 0 12px 26px rgba(35, 48, 68, 0.16);
  transform: translateY(-2px);
}

.image-dialog {
  width: auto;
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 28px);
  border: 0;
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(22px) saturate(1.25);
}

.image-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
}

.image-dialog img {
  display: block;
  max-width: calc(100vw - 64px);
  max-height: calc(100vh - 84px);
  border-radius: 8px;
  object-fit: contain;
  cursor: zoom-out;
}

.image-dialog .icon-only {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.82);
}

.emoji-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--accent-strong);
  font-weight: 780;
  box-shadow: 0 8px 18px rgba(35, 48, 68, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
}

.emoji-toggle::before {
  margin-right: 6px;
  content: "😀";
}

.emoji-toggle[aria-expanded="true"] {
  border-color: rgba(255, 149, 0, 0.28);
  background: rgba(255, 149, 0, 0.14);
  color: #b45309;
}

.emoji-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -6px;
}

.emoji-tray button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 18px rgba(35, 48, 68, 0.06);
  font-size: 20px;
  backdrop-filter: blur(14px) saturate(1.2);
  transition: transform 0.2s, background 0.2s;
}

.emoji-tray button:hover {
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.emoji-tray.hidden {
  display: none !important;
}
