.post-card{
  margin-top:0;
}

.post-card .section-head{
  margin-bottom:14px;
}

.post-editor-panel{
  margin-bottom:16px;
  padding:14px 14px 10px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--surface);
}

.post-editor-panel[hidden]{
  display:none;
}

.post-editor-panel .form-note{
  margin:4px 0 0;
  min-height:0;
}

.post-editor-panel .form-note:empty{
  display:none;
}

.post-editor-panel input,
.post-editor-panel textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid var(--line);
  background:var(--surface-strong);
  color:var(--text);
  outline:none;
}

.post-editor-panel input{
  height:44px;
  padding:0 14px;
  border-radius:16px;
  font-size:12px;
  font-weight:800;
}

.post-editor-panel textarea{
  min-height:150px;
  margin-top:8px;
  margin-bottom:0;
  padding:13px 14px;
  border-radius:18px;
  resize:vertical;
  font:inherit;
  font-size:12px;
  line-height:1.6;
}

.post-editor-panel input:focus,
.post-editor-panel textarea:focus{
  border-color:rgba(114,87,246,.35);
  box-shadow:0 0 0 4px rgba(114,87,246,.07);
}

.post-editor-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:8px;
}

#post-submit{
  min-width:72px;
}

.post-list{
  display:grid;
  gap:10px;
}

.post-item{
  position:relative;
  padding:14px 15px;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--surface-strong);
  box-shadow:0 5px 18px rgba(43,48,67,.045);
}

.post-item-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

.post-item-head h3{
  margin:0;
  color:var(--text);
  font-size:13px;
  line-height:1.45;
  font-weight:900;
}

.post-item-head time{
  flex:0 0 auto;
  color:var(--muted);
  font-size:9px;
  font-weight:700;
  white-space:nowrap;
}

.post-item-body{
  max-height:170px;
  overflow:hidden;
  color:var(--text);
  font-size:12px;
  line-height:1.65;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  -webkit-mask-image:linear-gradient(
    to bottom,
    #000 0,
    #000 calc(100% - 56px),
    transparent 100%
  );
  mask-image:linear-gradient(
    to bottom,
    #000 0,
    #000 calc(100% - 56px),
    transparent 100%
  );
}

.post-item.is-expanded .post-item-body{
  max-height:none;
  -webkit-mask-image:none;
  mask-image:none;
}

.post-expand{
  position:absolute;
  right:15px;
  bottom:14px;
  z-index:2;
  display:flex;
  align-items:center;
  gap:5px;
  width:auto;
  min-width:0;
  min-height:0;
  margin:0;
  padding:6px 10px;
  border:0;
  border-radius:999px;
  background:rgba(114,87,246,.10);
  color:var(--purple);
  font-size:10px;
  line-height:1;
  font-weight:900;
  box-shadow:none;
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}

.post-item.is-expanded .post-expand{
  position:static;
  display:block;
  width:max-content;
  margin:10px 0 0 auto;
}

#post-role-chip{
  color:var(--muted);
  background:transparent;
  border:1px solid var(--line);
}

@media(max-width:759px){
  .post-item-head{
    display:block;
  }

  .post-item-head time{
    display:block;
    margin-top:4px;
  }
}

/* v552 post delete */
.post-item-meta{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:8px;
}

.post-delete{
  padding:5px 8px;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  color:var(--muted);
  font-size:9px;
  font-weight:800;
  cursor:pointer;
}

.post-delete:active{
  transform:scale(.96);
}

.post-delete:disabled{
  opacity:.45;
  pointer-events:none;
}

/* v552 post empty state */
.post-list > .empty-state{
  min-height:170px;
  display:grid;
  place-items:center;
  box-sizing:border-box;
  padding:14px;
  border:1px solid var(--line);
  border-radius:24px;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.84),
      rgba(246,244,255,.94)
    );
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  text-align:center;
}

/* v552 post signal delete */
.post-delete-panel{
  width:min(420px,calc(100vw - 24px));
  height:auto;
  min-height:0;
  max-height:none;
  border-radius:28px;
  overflow:hidden;
}

.post-delete-dialog-body{
  padding:4px 20px 18px;
}

.post-delete-dialog-body strong{
  display:block;
  margin-bottom:6px;
  color:var(--text);
  font-size:13px;
  font-weight:900;
  line-height:1.45;
}

.post-delete-dialog-body p{
  margin:0;
  color:var(--muted);
  font-size:11px;
  font-weight:600;
  line-height:1.55;
}

.post-delete-dialog-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding:0 20px 20px;
}

.post-delete-dialog-actions button{
  min-width:68px;
}

@media(max-width:520px){
  .post-delete-panel{
    width:calc(100vw - 24px);
    border-radius:26px;
  }
}
