.postactions .action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #b9c9e9;
  font-size: 13px;
  line-height: 1;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.postactions .action svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.postactions .action:hover {
  color: #ffffff;
  background: #10264b;
  border-color: #22518e;
}
.postactions .action.like.liked {
  color: #ff5b91;
}
.postactions .action.like.liked svg {
  fill: #ff5b9130;
}
.post[id] {
  scroll-margin-top: 86px;
}
.wall-comments-overlay {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(1, 5, 18, .64);
  backdrop-filter: blur(6px);
}
.wall-comments-panel {
  width: min(560px, 100%);
  max-height: min(78vh, 680px);
  max-height: min(78dvh, 680px);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid #285393;
  border-radius: 18px;
  background: linear-gradient(150deg, #0a1834, #040b1e 78%);
  box-shadow: 0 24px 80px #000b, 0 0 32px #087ad02a;
}
.wall-comments-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #17345f;
}
.wall-comments-title {
  min-width: 0;
  flex: 1;
  margin: 0;
  color: #f5f7ff;
  font-size: 17px;
  font-weight: 750;
}
.wall-comments-subtitle {
  display: block;
  margin-top: 2px;
  color: #9dadd2;
  font-size: 12px;
  font-weight: 450;
}
.wall-comments-close,
.wall-comment-delete {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid #264777;
  border-radius: 10px;
  background: #091a37;
  color: #e7efff;
  font-size: 21px;
  line-height: 1;
}
.wall-comments-close:hover,
.wall-comment-delete:hover {
  border-color: #16caff;
  background: #102a52;
}
.wall-comments-status {
  min-height: 18px;
  padding: 8px 18px 0;
  color: #9dadd2;
  font-size: 12px;
}
.wall-comments-auth {
  padding: 12px 18px;
  border-bottom: 1px solid #17345f;
}
.wall-comments-auth p {
  margin: 0 0 10px;
  color: #c6d3ef;
  font-size: 13px;
}
.wall-google-signin {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.wall-comments-auth form,
.wall-comment-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.wall-comments-auth input,
.wall-comment-form textarea {
  min-width: 0;
  flex: 1;
  border: 1px solid #254775;
  border-radius: 10px;
  outline: none;
  background: #04112a;
  color: #f5f7ff;
}
.wall-comments-auth input {
  min-height: 42px;
  padding: 9px 12px;
}
.wall-comments-auth input:focus,
.wall-comment-form textarea:focus {
  border-color: #16caff;
  box-shadow: 0 0 0 3px #16caff20;
}
.wall-comments-auth button,
.wall-comment-form button,
.wall-comments-more {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid #2375bd;
  border-radius: 10px;
  background: linear-gradient(115deg, #0759b8, #7015d6);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.wall-comments-auth button:hover,
.wall-comment-form button:hover,
.wall-comments-more:hover {
  filter: brightness(1.14);
}
.wall-comments-code-back {
  margin-top: 8px;
  border: 0 !important;
  background: transparent !important;
  color: #9ddfff !important;
  font-size: 12px;
  font-weight: 500 !important;
}
.wall-comments-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 18px;
  scrollbar-width: thin;
  scrollbar-color: #285797 #07132b;
}
.wall-comments-list::-webkit-scrollbar { width: 7px; }
.wall-comments-list::-webkit-scrollbar-track { background: #07132b; }
.wall-comments-list::-webkit-scrollbar-thumb { border-radius: 7px; background: #285797; }
.wall-comment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  padding: 12px 0;
  border-bottom: 1px solid #142c50;
}
.wall-comment-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.wall-comment-name {
  overflow: hidden;
  color: #eaf2ff;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wall-comment-date {
  flex: 0 0 auto;
  color: #8296bd;
  font-size: 11px;
}
.wall-comment-text {
  grid-column: 1 / -1;
  margin: 0;
  color: #d3def4;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wall-comment-delete {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 8px;
  color: #ff9caf;
  font-size: 18px;
}
.wall-comments-empty {
  padding: 28px 12px;
  color: #9dadd2;
  font-size: 13px;
  text-align: center;
}
.wall-comments-more {
  justify-self: center;
  min-height: 34px;
  margin: 4px 0 10px;
  padding: 6px 14px;
  background: #0a1a38;
  border-color: #244878;
  font-size: 12px;
}
.wall-comment-form {
  align-items: end;
  padding: 12px 18px 16px;
  border-top: 1px solid #17345f;
}
.wall-comment-form textarea {
  min-height: 44px;
  max-height: 112px;
  resize: vertical;
  padding: 11px 12px;
  font-size: 13px;
}
.wall-comment-form button {
  min-height: 44px;
}
@media (max-width: 600px) {
  .postactions { gap: 5px; }
  .postactions .action { min-height: 36px; padding: 6px 7px; font-size: 12px; }
  .wall-comments-overlay { align-items: end; padding: 0; }
  .wall-comments-panel {
    width: 100%;
    max-height: min(88vh, 760px);
    max-height: min(88dvh, 760px);
    border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .wall-comments-header { padding: 14px 14px 10px; }
  .wall-comments-status { padding-right: 14px; padding-left: 14px; }
  .wall-comments-auth { padding: 10px 14px; }
  .wall-comments-auth form,
  .wall-comment-form { gap: 6px; }
  .wall-comments-auth button,
  .wall-comment-form button { padding-right: 10px; padding-left: 10px; font-size: 12px; }
  .wall-comments-list { padding: 8px 14px; }
  .wall-comment-form { padding: 10px 14px 12px; }
}
