/* TSM Wall Conversation v1.1 — one layout owner.
   Permanent panels, coin transactions, Sazan v5 stack and game controls untouched. */
body.tsm-dialogue-home [data-wall-feed]>.ns-post-group{
  --tsm-wall-sazan-size:clamp(38px,10vw,54px);
  display:flex!important;flex-direction:column!important;
  gap:0!important;width:100%!important;min-width:0!important;max-width:100%!important;
}
body.tsm-dialogue-home [data-wall-feed] .tsm-wall-preview{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:var(--tsm-wall-sazan-size) minmax(0,1fr) var(--tsm-wall-sazan-size)!important;
  gap:clamp(4px,1.2vw,10px)!important;
  box-sizing:border-box!important;
  width:100%!important;max-width:100%!important;height:auto!important;
  aspect-ratio:2/1!important;min-height:0!important;
  padding:clamp(8px,1.8vw,14px)!important;
  border:3px solid var(--tsm-section,#f6c933)!important;
  border-radius:var(--tsm-panel-radius,18px)!important;
  background:linear-gradient(140deg,#211b08,#080808 80%)!important;
  color:#f5f5f5!important;cursor:pointer!important;overflow:hidden!important;
}
body.tsm-dialogue-home .tsm-wall-preview:focus-visible{
  outline:3px solid #fff!important;outline-offset:3px!important;
}
body.tsm-dialogue-home .tsm-wall-preview-head,
body.tsm-dialogue-home .tsm-wall-preview-footer{
  display:grid!important;grid-template-columns:var(--tsm-wall-sazan-size) minmax(0,1fr) var(--tsm-wall-sazan-size)!important;
  align-items:center!important;gap:6px!important;min-width:0!important;min-height:0!important;
}
body.tsm-dialogue-home .tsm-wall-preview-avatar-link,
body.tsm-dialogue-home .tsm-wall-preview-delete-slot,
body.tsm-dialogue-home .tsm-wall-preview-reaction-slot{
  width:var(--tsm-wall-sazan-size)!important;height:var(--tsm-wall-sazan-size)!important;
  min-width:0!important;min-height:0!important;
  display:grid!important;place-items:center!important;position:relative!important;
}
body.tsm-dialogue-home .tsm-wall-preview-avatar-link .ns-avatar{
  display:block!important;width:100%!important;height:100%!important;
  min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;
  box-sizing:border-box!important;object-fit:cover!important;
}
body.tsm-dialogue-home .tsm-wall-preview-identity{
  display:flex!important;flex-direction:column!important;
  min-width:0!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;text-decoration:none!important;color:#f6c933!important;
  gap:2px!important;overflow:hidden!important;
}
body.tsm-dialogue-home .tsm-wall-preview-identity b,
body.tsm-dialogue-home .tsm-wall-preview-identity .ns-meta{
  display:block!important;width:100%!important;max-width:100%!important;
  min-width:0!important;margin:0!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  text-align:center!important;
}
body.tsm-dialogue-home .tsm-wall-preview-identity b{
  font-size:clamp(12px,3vw,19px)!important;
}
body.tsm-dialogue-home .tsm-wall-preview-identity .ns-meta{
  font-size:clamp(9px,2.3vw,12px)!important;color:#bbb5a1!important;
}
/* Control geometry, star icon and role colours are owned by the shared Sazan Slider component. */
body.tsm-dialogue-home .tsm-wall-preview-message{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;
  line-clamp:3!important;
  align-self:center!important;justify-self:center!important;
  min-width:0!important;max-width:100%!important;min-height:0!important;
  margin:0!important;overflow:hidden!important;
  white-space:pre-wrap!important;overflow-wrap:anywhere!important;
  text-align:center!important;
  font-size:clamp(13px,3.4vw,18px)!important;line-height:1.3!important;
}
body.tsm-dialogue-home .tsm-wall-preview-footer{
  border-top:1px solid #f6c93355!important;padding-top:4px!important;
}
body.tsm-dialogue-home .tsm-wall-preview-footer>a{
  justify-self:start!important;display:grid!important;place-items:center!important;
  box-sizing:border-box!important;min-width:0!important;min-height:0!important;
  max-width:var(--tsm-wall-sazan-size)!important;
  width:100%!important;height:calc(var(--tsm-wall-sazan-size) - 4px)!important;
  border:1px solid #a8872a!important;border-radius:9px!important;
  background:#191308!important;color:#f6c933!important;
  font-size:clamp(10px,2.5vw,13px)!important;font-weight:850!important;text-decoration:none!important;
}
body.tsm-dialogue-home .tsm-wall-preview-footer>span{
  display:block!important;min-width:0!important;max-width:100%!important;
  text-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  font-size:clamp(9px,2.3vw,12px)!important;
}
/* The full Card is the dialogue and the original reply composer, not a
   second post-panel framing. The retained hidden post owns legacy reactions/deletion. */
/* Content/visual skin only. Shared Sazan Core v4 owns fixed geometry,
   dimensions, radius and viewport position; v5 owns modal stacking. */
body.tsm-dialogue-home .tsm-wall-conversation-card{
  display:none!important;
  transform:translateX(-50%)!important;
  padding:0!important;
  border:3px solid var(--tsm-section,#f6c933)!important;
  background:#0c0b09!important;color:#f5f5f5!important;
  box-shadow:0 0 0 100vmax #000a,0 12px 35px #000b!important;
}
body.tsm-dialogue-home .tsm-wall-conversation-card.open{
  display:flex!important;flex-direction:column!important;overflow:hidden!important;
}
body.tsm-dialogue-home .tsm-wall-conversation-heading{
  display:flex!important;flex:none!important;justify-content:space-between!important;
  align-items:center!important;gap:10px!important;padding:12px 14px!important;
  border-bottom:2px solid var(--tsm-section,#f6c933)!important;
  font-weight:900!important;letter-spacing:.12em!important;
}
/* Conversation close uses the same shared red Sazan Slider as Wall Delete. */
body.tsm-dialogue-home .tsm-wall-conversation-content{
  display:flex!important;flex-direction:column!important;
  flex:1 1 auto!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;
  overscroll-behavior:contain!important;padding:12px!important;
}
body.tsm-dialogue-home .tsm-wall-conversation-card .tsm-wall-original-post-hidden{
  display:none!important;visibility:hidden!important;pointer-events:none!important;
}
body.tsm-dialogue-home .tsm-wall-dialogue{
  display:flex!important;flex-direction:column!important;gap:12px!important;
  width:100%!important;min-width:0!important;
}
body.tsm-dialogue-home .tsm-wall-dialogue-original,
body.tsm-dialogue-home .tsm-wall-dialogue-replies{
  display:block!important;box-sizing:border-box!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  padding:10px 6px!important;margin:0!important;overflow:visible!important;
  background:transparent!important;border:0!important;
}
body.tsm-dialogue-home .tsm-wall-dialogue-original{
  border-bottom:1px solid #f6c93355!important;
  text-align:center!important;font-size:clamp(15px,3.8vw,19px)!important;
}
body.tsm-dialogue-home .tsm-wall-dialogue-original [data-thread-post-body]{
  padding:10px!important;overflow-wrap:anywhere!important;text-align:center!important;cursor:pointer!important;
}
body.tsm-dialogue-home .tsm-wall-dialogue-replies .tsm-thread{
  display:block!important;overflow:visible!important;max-height:none!important;
}
body.tsm-dialogue-home .tsm-wall-conversation-composer{
  flex:none!important;display:flex!important;flex-direction:column!important;gap:8px!important;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))!important;
  border-top:2px solid var(--tsm-section,#f6c933)!important;background:#151008!important;
}
body.tsm-dialogue-home .tsm-wall-conversation-composer .ns-post-reply-input,
body.tsm-dialogue-home .tsm-wall-conversation-composer .ns-post-reply-button{
  display:flex!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;
  max-width:100%!important;margin:0!important;position:relative!important;
}
body.tsm-dialogue-home .tsm-wall-conversation-composer .ns-post-reply-input .ns-input{
  width:100%!important;min-width:0!important;
}
body.tsm-dialogue-home .tsm-wall-conversation-composer .ns-post-reply-button{
  align-items:center!important;justify-content:center!important;gap:10px!important;
}
body.tsm-dialogue-home .tsm-wall-conversation-composer .tsm-reply-fee{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:5px!important;white-space:nowrap!important;visibility:visible!important;opacity:1!important;
}
body.tsm-dialogue-home .tsm-wall-conversation-composer .tsm-reply-fee img{
  display:inline-block!important;visibility:visible!important;opacity:1!important;
  width:24px!important;height:24px!important;min-width:24px!important;max-width:24px!important;
  object-fit:contain!important;image-rendering:pixelated!important;
}
body.tsm-dialogue-home .tsm-wall-new-posts{
  display:block!important;width:100%!important;box-sizing:border-box!important;
  padding:12px!important;margin:0 auto 16px!important;
  border:2px solid var(--tsm-section,#f6c933)!important;border-radius:16px!important;
  background:#f6c933!important;color:#080808!important;font-weight:900!important;cursor:pointer!important;
}
body.tsm-dialogue-home .tsm-wall-new-posts[hidden]{display:none!important}
@media(max-width:380px){
 body.tsm-dialogue-home [data-wall-feed]>.ns-post-group{--tsm-wall-sazan-size:38px}
 body.tsm-dialogue-home .tsm-wall-preview-message{-webkit-line-clamp:2!important;line-clamp:2!important}
}
