/* DropX Forum topic detail – v1.36 */
.dx-forum-shell .dx-forum-topic-head {
  position: sticky;
  top: 108px;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 20px;
  margin: 12px 0 18px;
  border: 1px solid rgba(211,174,82,.42);
  border-radius: 13px;
  background: linear-gradient(115deg,rgba(22,29,36,.97),rgba(13,19,25,.97));
  box-shadow: 0 12px 34px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(14px);
}
.dx-forum-shell .dx-forum-topic-heading { display:flex; align-items:center; gap:14px; flex:1 1 320px; min-width:0; }
.dx-forum-shell .dx-forum-topic-heading-icon { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; flex:0 0 54px; }
.dx-forum-shell .dx-forum-topic-heading-copy { display:flex; flex-direction:column; gap:5px; min-width:0; }
.dx-forum-shell .dx-forum-topic-head h2 { margin:0; line-height:1.16; }
.dx-forum-shell .dx-forum-topic-intro { margin:0; color:#9ba8b4; font-size:12px; line-height:1.45; }
.dx-forum-shell .dx-forum-topic-starter { display:flex; align-items:center; gap:10px; flex:0 0 auto; margin-left:auto; }
.dx-forum-shell .dx-forum-topic-starter img { width:42px; height:42px; border-radius:50%; object-fit:cover; border:1px solid #cba54f; box-shadow:0 0 12px rgba(211,174,82,.25); }
.dx-forum-shell .dx-forum-topic-actions { display:flex; align-items:center; justify-content:flex-end; gap:7px; flex-wrap:wrap; }
.dx-forum-shell .dx-forum-discussion { display:flex; flex-direction:column; gap:13px; margin:0 0 20px; }
.dx-forum-shell .dx-forum-post-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 14px; border:1px solid rgba(194,160,81,.2); border-radius:10px; background:#111920; color:#9aa7b2; font-size:11px; }
.dx-forum-shell .dx-forum-post-pagination > div { display:flex; align-items:center; gap:12px; }
.dx-forum-shell .dx-forum-post-pagination a { color:#e1bd5e; text-decoration:none; font-weight:700; }
.dx-forum-shell .dx-forum-post-pagination strong { color:#edf0f2; }
.dx-forum-shell .dx-forum-post { display:grid; grid-template-columns:190px minmax(0,1fr); gap:0; overflow:visible; border:1px solid rgba(174,190,202,.16); border-radius:12px; background:linear-gradient(120deg,#121a21,#10171d); box-shadow:0 8px 22px rgba(0,0,0,.16); }
.dx-forum-shell .dx-forum-post-author { display:flex; flex-direction:column; align-items:center; gap:6px; min-width:0; padding:18px 13px; border-right:1px solid rgba(174,190,202,.13); background:rgba(255,255,255,.018); text-align:center; }
.dx-forum-shell .dx-forum-post-avatar { width:76px; height:76px; padding:0; overflow:hidden; border:1px solid #c9a34c; border-radius:50%; background:#0a1015; box-shadow:0 0 15px rgba(213,174,77,.18); cursor:pointer; }
.dx-forum-shell .dx-forum-post-avatar img { display:block; width:100%; height:100%; object-fit:cover; }
.dx-forum-shell .dx-forum-post-username { color:#f0f2f4; font-size:13px; overflow-wrap:anywhere; }
.dx-forum-shell .dx-forum-post-role { color:#e3bd5b; font-size:10px; font-weight:800; }
.dx-forum-shell .dx-forum-post-points { color:#9ca9b4; font-size:10px; }
.dx-forum-shell .dx-forum-post-user-stats { display:grid; grid-template-columns:1fr; width:100%; gap:4px; margin:8px 0 0; }
.dx-forum-shell .dx-forum-post-user-stats div { display:flex; justify-content:space-between; gap:8px; padding-top:4px; border-top:1px solid rgba(174,190,202,.1); text-align:left; }
.dx-forum-shell .dx-forum-post-user-stats dt { color:#788793; font-size:9px; }
.dx-forum-shell .dx-forum-post-user-stats dd { margin:0; color:#cbd2d8; font-size:9px; font-weight:700; text-align:right; }
.dx-forum-shell .dx-forum-post-content { min-width:0; padding:14px 17px 12px; }
.dx-forum-shell .dx-forum-post-meta { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:12px; padding-bottom:9px; border-bottom:1px solid rgba(174,190,202,.12); color:#7e8c98; font-size:10px; }
.dx-forum-shell .dx-forum-post-body { min-height:54px; color:#d8dee3; font-size:13px; line-height:1.75; overflow-wrap:anywhere; }
.dx-forum-shell .dx-forum-post-body p:first-child { margin-top:0; }
.dx-forum-shell .dx-forum-post-body p:last-child { margin-bottom:0; }
.dx-forum-shell .dx-forum-post-body img { max-width:100%; height:auto; }
.dx-forum-shell .dx-forum-post-reactions { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-top:15px; padding-top:10px; border-top:1px solid rgba(174,190,202,.12); }
.dx-forum-shell .dx-forum-reaction-summary,.dx-forum-shell .dx-forum-reaction-picker { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.dx-forum-shell .dx-forum-reaction-detail { position:relative; }
.dx-forum-shell .dx-forum-reaction-detail summary,.dx-forum-shell .dx-forum-reaction-picker button { display:flex; align-items:center; gap:4px; min-height:30px; padding:4px 8px; border:1px solid rgba(198,165,85,.24); border-radius:18px; background:#18222b; color:#e5e9ec; font-size:12px; cursor:pointer; list-style:none; }
.dx-forum-shell .dx-forum-reaction-picker button.is-selected { border-color:#d7ae4d; background:rgba(215,174,77,.16); }
.dx-forum-shell .dx-forum-reaction-detail > div { position:absolute; bottom:calc(100% + 7px); left:0; z-index:25; display:grid; min-width:160px; max-height:220px; overflow:auto; padding:8px; border:1px solid rgba(205,171,88,.35); border-radius:9px; background:#111920; box-shadow:0 12px 28px rgba(0,0,0,.4); }
.dx-forum-shell .dx-forum-reaction-detail > div span { display:flex; align-items:center; gap:7px; padding:4px; }
.dx-forum-shell .dx-forum-reaction-detail img { width:23px; height:23px; border-radius:50%; object-fit:cover; }
.dx-forum-shell .dx-forum-reaction-detail small { color:#dbe0e4; font-size:10px; }
.dx-forum-shell .dx-forum-post-actions { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin:12px 0 9px; padding:8px 10px; border:1px solid rgba(174,190,202,.13); border-radius:9px; background:linear-gradient(100deg,rgba(8,13,18,.78),rgba(20,28,36,.88)); }
.dx-forum-shell .dx-forum-post-action { display:inline-flex; align-items:center; justify-content:center; min-height:28px; padding:5px 9px; border:1px solid rgba(198,165,85,.18); border-radius:6px; background:rgba(255,255,255,.025); color:#d5b35e; font-size:10px; font-weight:800; line-height:1.2; cursor:pointer; text-decoration:none; transition:background .16s ease,border-color .16s ease,color .16s ease; }
.dx-forum-shell .dx-forum-post-action:hover { border-color:rgba(215,174,77,.5); background:rgba(215,174,77,.1); }
.dx-forum-shell .dx-forum-post-action:hover { color:#fff0bc; }
.dx-forum-shell .dx-forum-post-action.is-danger { color:#f07878; }
.dx-forum-shell .dx-forum-post-action.is-moderator { color:#a9b9d8; }
.dx-forum-shell .dx-forum-post-actions details { position:relative; }
.dx-forum-shell .dx-forum-post-actions details > form { display:grid; gap:8px; width:min(440px,calc(100vw - 48px)); margin-top:7px; padding:12px; border:1px solid rgba(202,169,87,.28); border-radius:9px; background:#151e26; }
.dx-forum-shell .dx-forum-post-actions textarea { width:100%; min-height:68px; padding:9px; border:1px solid #303c46; border-radius:7px; background:#0c1218; color:#e8edf0; resize:vertical; }
.dx-forum-shell .dx-forum-post-actions details[open] { z-index:20; }
.dx-forum-shell .dx-forum-post-actions form { margin:0; }
.dx-forum-shell .dx-forum-post-mod-state { color:#e6bd59; font-size:9px; letter-spacing:.04em; }
.dx-forum-shell .dx-forum-post-mod-state.is-deleted { color:#ff8585; }
.dx-forum-shell .dx-forum-post.is-moderated-hidden { opacity:.5; border-color:rgba(226,178,73,.42); }
.dx-forum-shell .dx-forum-post.is-moderated-hidden:hover { opacity:.72; }
.dx-forum-shell .dx-forum-post.is-moderated-deleted { opacity:.68; border-color:rgba(239,94,94,.25); }
.dx-forum-shell .dx-forum-post-moderation-note { margin:0 0 10px; padding:8px 10px; border-left:3px solid #d6aa4d; background:rgba(214,170,77,.08); color:#d8c28d; font-size:11px; }
.dx-forum-shell .dx-forum-post-deleted-copy { padding:12px; border:1px dashed rgba(239,94,94,.25); border-radius:8px; color:#a9b1b8; font-size:12px; }
.dx-forum-shell .dx-forum-post-deleted-copy small { display:block; margin-top:6px; color:#d7a1a1; }
.dx-forum-shell .dx-forum-reply-context { padding:8px 11px; border-left:3px solid #d9b24f; border-radius:5px; background:rgba(217,178,79,.09); color:#e6cb86; font-size:11px; }
.dx-forum-shell .dx-forum-topic-head + .dx-forum-discussion { scroll-margin-top:125px; }
.dx-forum-shell .dx-forum-hero { align-items:center; }
.dx-forum-shell .dx-forum-hero-brand { align-items:center; }
@media (max-width:850px) {
  .dx-forum-shell .dx-forum-topic-head { top:72px; align-items:flex-start; }
  .dx-forum-shell .dx-forum-topic-actions { justify-content:flex-start; width:100%; }
  .dx-forum-shell .dx-forum-post { grid-template-columns:132px minmax(0,1fr); }
  .dx-forum-shell .dx-forum-post-author { padding:13px 8px; }
  .dx-forum-shell .dx-forum-post-avatar { width:58px; height:58px; }
}
@media (max-width:600px) {
  .dx-forum-shell .dx-forum-topic-head { position:relative; top:auto; padding:13px; }
  .dx-forum-shell .dx-forum-topic-heading { flex-basis:100%; }
  .dx-forum-shell .dx-forum-topic-starter { margin-left:0; }
  .dx-forum-shell .dx-forum-post { grid-template-columns:1fr; }
  .dx-forum-shell .dx-forum-post-author { display:grid; grid-template-columns:48px minmax(0,1fr); grid-template-rows:auto auto auto; justify-items:start; align-items:center; column-gap:10px; padding:10px 12px; border-right:0; border-bottom:1px solid rgba(174,190,202,.13); text-align:left; }
  .dx-forum-shell .dx-forum-post-avatar { grid-row:1/4; width:46px; height:46px; }
  .dx-forum-shell .dx-forum-post-user-stats { grid-column:1/-1; grid-template-columns:1fr 1fr; }
  .dx-forum-shell .dx-forum-post-content { padding:12px; }
  .dx-forum-shell .dx-forum-post-pagination { align-items:flex-start; flex-direction:column; }
  .dx-forum-shell .dx-forum-post-pagination > div { width:100%; justify-content:space-between; }
}


/* v1.34 – 80/20 topic workspace, contextual quote card and split reply composer. */
.dx-forum-shell .dx-forum-topic-page-layout {
  display:grid;
  grid-template-columns:minmax(0,4fr) minmax(250px,1fr);
  gap:18px;
  align-items:stretch;
  width:100%;
  min-width:0;
}
.dx-forum-shell .dx-forum-topic-main { min-width:0; grid-column:1; align-self:start; }
.dx-forum-shell .dx-forum-topic-sidebar { min-width:0; grid-column:2; grid-row:1; align-self:stretch; min-height:100%; }
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-head {
  position:sticky;
  top:108px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:15px;
  max-height:calc(100dvh - 126px);
  overflow-y:auto;
  overscroll-behavior:contain;
  width:100%;
  box-sizing:border-box;
  margin:0 0 16px;
  padding:15px;
}
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-heading { flex:0 0 auto; align-items:flex-start; gap:10px; }
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-heading-icon { flex:0 0 42px; }
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-head h2 { font-size:clamp(18px,1.7vw,24px); overflow-wrap:anywhere; }
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-intro { font-size:11px; }
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-starter { margin:0; align-items:center; min-width:0; }
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-starter span { display:flex; flex-direction:column; min-width:0; gap:3px; }
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-starter strong { overflow-wrap:anywhere; font-size:11px; }
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-starter small { color:#8f9ba6; font-size:9px; }
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions { display:grid; grid-template-columns:minmax(0,1fr); justify-content:stretch; gap:7px; }
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions form,
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions details { min-width:0; width:100%; }
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions .dx-forum-btn,
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions summary { display:flex; align-items:center; justify-content:center; width:100%; min-height:36px; box-sizing:border-box; padding:8px 9px; white-space:normal; text-align:center; font-size:10px; }
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions textarea { width:100%; box-sizing:border-box; }
.dx-forum-shell .dx-forum-composer { margin:0; padding:15px; border:1px solid rgba(205,171,88,.3); border-radius:12px; background:linear-gradient(145deg,rgba(24,31,38,.98),rgba(13,19,25,.98)); }
.dx-forum-shell .dx-forum-composer-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; align-items:stretch; }
.dx-forum-shell .dx-forum-composer-left,
.dx-forum-shell .dx-forum-composer-right { display:flex; flex-direction:column; gap:11px; min-width:0; }
.dx-forum-shell .dx-forum-composer-left { padding-right:14px; border-right:1px solid rgba(174,190,202,.13); }
.dx-forum-shell .dx-forum-composer-left textarea[name="body"] { width:100%; min-height:190px; box-sizing:border-box; resize:vertical; }
.dx-forum-shell .dx-forum-composer-right { min-height:100%; }
.dx-forum-shell .dx-forum-composer .dx-forum-emoji-panel { display:flex; flex-direction:column; gap:10px; width:100%; min-height:300px; max-height:470px; box-sizing:border-box; padding:12px; overflow-y:auto; overscroll-behavior:contain; border:1px solid rgba(205,171,88,.25); border-radius:10px; background:linear-gradient(150deg,rgba(7,12,17,.72),rgba(20,28,36,.96)); scrollbar-width:thin; scrollbar-color:#b88d31 rgba(255,255,255,.06); }
.dx-forum-shell .dx-forum-composer .dx-forum-emoji-panel h3 { position:sticky; top:-12px; z-index:1; margin:-12px -12px 0; padding:11px 12px 9px; border-bottom:1px solid rgba(174,190,202,.13); background:#151d25; color:#e5bd5c; font-size:10px; font-weight:900; letter-spacing:.1em; }
.dx-forum-shell .dx-forum-composer .dx-forum-emoji-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(32px,1fr)); align-content:start; gap:5px; }
.dx-forum-shell .dx-forum-composer .dx-forum-emoji-item { display:grid; place-items:center; min-width:0; width:100%; aspect-ratio:1; padding:2px; border:1px solid rgba(174,190,202,.12); border-radius:7px; background:rgba(255,255,255,.035); font-size:19px; line-height:1; cursor:pointer; transition:background .15s ease,border-color .15s ease,transform .15s ease; }
.dx-forum-shell .dx-forum-composer .dx-forum-emoji-item:hover { transform:translateY(-1px); border-color:rgba(222,181,76,.55); background:rgba(222,181,76,.13); }
.dx-forum-shell .dx-forum-composer .dx-forum-emoji-unavailable { margin:0; color:#9aa6b2; font-size:10px; }
.dx-forum-shell .dx-forum-emoji-panel[hidden] { display:none; }
.dx-forum-shell .dx-forum-response-fields { display:grid; grid-template-columns:minmax(0,1fr); gap:9px; margin:0; }
.dx-forum-shell .dx-forum-response-fields h3 { grid-column:1/-1; margin:0 0 2px; color:#e2bd60; font-size:12px; }
.dx-forum-shell .dx-forum-response-fields label { display:grid; gap:6px; color:#cbd3dc; font-size:10px; font-weight:800; }
.dx-forum-shell .dx-forum-response-fields select { width:100%; min-height:40px; box-sizing:border-box; }
.dx-forum-shell .dx-forum-composer .dx-forum-attachment-input { display:grid; gap:8px; padding:12px; border:1px dashed rgba(205,171,88,.35); border-radius:10px; background:rgba(0,0,0,.14); color:#e0bd65; font-size:10px; font-weight:800; }
.dx-forum-shell .dx-forum-composer .dx-forum-attachment-input input[type=file] { width:100%; max-width:100%; box-sizing:border-box; color:#cbd3dc; font-size:10px; }
.dx-forum-shell .dx-forum-composer .dx-forum-privacy-note { color:#84919d; font-size:9px; line-height:1.45; }
.dx-forum-shell .dx-forum-composer .dx-forum-attachment-preview { display:flex; flex-wrap:wrap; gap:8px; }
.dx-forum-shell .dx-forum-composer .dx-forum-toolbar { display:flex; flex-wrap:wrap; gap:6px; margin:0; }
.dx-forum-shell .dx-forum-composer .dx-forum-toolbar button { min-width:34px; height:34px; border:1px solid rgba(174,190,202,.18); border-radius:7px; background:#1a232c; color:#e7c15f; }
.dx-forum-shell .dx-forum-composer .dx-forum-compose-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-top:auto; padding-top:8px; }
.dx-forum-shell .dx-forum-composer .dx-forum-compose-foot small { color:#84919d; font-size:9px; }
.dx-forum-shell .dx-forum-reply-context { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; padding:11px 12px; border:1px solid rgba(214,174,75,.34); border-left:3px solid #d7ad4f; border-radius:9px; background:linear-gradient(120deg,rgba(204,157,48,.13),rgba(16,24,31,.88)); color:#dce2e7; }
.dx-forum-shell .dx-forum-reply-context[hidden] { display:none; }
.dx-forum-shell .dx-forum-reply-context-author { display:flex; align-items:center; gap:9px; min-width:0; }
.dx-forum-shell .dx-forum-reply-context-author> a { display:flex; flex:0 0 34px; }
.dx-forum-shell .dx-forum-reply-context-author>img,
.dx-forum-shell .dx-forum-reply-context-author> a img { width:34px; height:34px; flex:0 0 34px; border:1px solid #caa64e; border-radius:50%; object-fit:cover; }
.dx-forum-shell .dx-forum-reply-context-author>span { display:flex; flex-direction:column; gap:3px; min-width:0; }
.dx-forum-shell .dx-forum-reply-context-author small { color:#929eaa; font-size:9px; }
.dx-forum-shell .dx-forum-reply-context-author a { color:#e8c568; text-decoration:none; font-size:11px; font-weight:800; }
.dx-forum-shell .dx-forum-reply-context blockquote { grid-column:1/-1; max-height:92px; overflow:auto; margin:0; padding:8px 10px; border-radius:6px; background:rgba(0,0,0,.2); color:#cbd4dc; font-size:10px; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; }
.dx-forum-shell .dx-forum-reply-context-clear { justify-self:end; align-self:center; padding:5px 8px; border:1px solid rgba(174,190,202,.2); border-radius:6px; background:rgba(0,0,0,.18); color:#aeb9c3; font-size:9px; cursor:pointer; }
.dx-forum-shell .dx-forum-post-meta { justify-content:flex-start; gap:9px; }
.dx-forum-shell .dx-forum-post-number { color:#d7b35d; font-weight:800; }
.dx-forum-shell .dx-forum-post-time { color:#8795a1; font-variant-numeric:tabular-nums; letter-spacing:.02em; }
.dx-forum-shell .dx-forum-post-edited { color:#b2a06c; font-size:9px; }
@media(max-width:1050px) {
  .dx-forum-shell .dx-forum-topic-page-layout { grid-template-columns:minmax(0,1fr); }
  .dx-forum-shell .dx-forum-topic-main,
  .dx-forum-shell .dx-forum-topic-sidebar { grid-column:1; }
  .dx-forum-shell .dx-forum-topic-sidebar { grid-row:1; }
  .dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-head { position:relative; top:auto; }
  .dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
  .dx-forum-shell .dx-forum-composer-layout { grid-template-columns:minmax(0,1fr); }
  .dx-forum-shell .dx-forum-composer-left { padding:0 0 13px; border-right:0; border-bottom:1px solid rgba(174,190,202,.13); }
  .dx-forum-shell .dx-forum-composer-left textarea[name="body"] { min-height:150px; }
  .dx-forum-shell .dx-forum-composer .dx-forum-emoji-panel { max-height:300px; min-height:220px; }
  .dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions { grid-template-columns:minmax(0,1fr); }
}


/* v1.37 – responsive full-width emoji grid and consistent post action controls. */
.dx-forum-shell .dx-forum-composer-right {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  min-width:0;
  width:100%;
}
.dx-forum-shell .dx-forum-composer .dx-forum-emoji-panel {
  align-items:stretch;
  width:100%;
  min-width:0;
  max-width:none;
  max-height:470px;
  min-height:300px;
  overflow-x:hidden;
  overflow-y:auto;
  flex:1 1 auto;
  box-sizing:border-box;
}
.dx-forum-shell .dx-forum-composer .dx-forum-emoji-list {
  display:grid;
  width:100%;
  min-width:0;
  max-width:none;
  flex:1 1 auto;
  align-self:stretch;
  justify-self:stretch;
  grid-template-columns:repeat(auto-fit,minmax(min(36px,100%),1fr));
  grid-auto-rows:minmax(36px,auto);
  align-content:start;
  justify-content:stretch;
  gap:5px;
  box-sizing:border-box;
}
.dx-forum-shell .dx-forum-composer .dx-forum-emoji-item {
  width:100%;
  min-width:0;
  min-height:36px;
  aspect-ratio:1;
  font-size:clamp(17px,1.5vw,21px);
}
.dx-forum-shell .dx-forum-post-actions {
  align-items:center;
  gap:7px;
}
.dx-forum-shell .dx-forum-post-actions > form,
.dx-forum-shell .dx-forum-post-actions > details {
  display:inline-block;
  position:relative;
  vertical-align:middle;
  margin:0;
}
.dx-forum-shell .dx-forum-post-action,
.dx-forum-shell .dx-forum-post-actions summary.dx-forum-post-action,
.dx-forum-shell .dx-forum-post-actions button.dx-forum-post-action {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  box-sizing:border-box;
  min-width:88px;
  min-height:36px;
  height:36px;
  padding:0 11px;
  border:1px solid rgba(198,165,85,.24);
  border-radius:7px;
  background:linear-gradient(180deg,rgba(30,39,48,.96),rgba(17,24,31,.96));
  color:#dfbd66;
  font-family:inherit;
  font-size:10px;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
  text-decoration:none;
  cursor:pointer;
  list-style:none;
}
.dx-forum-shell .dx-forum-post-actions summary.dx-forum-post-action::-webkit-details-marker {
  display:none;
}
.dx-forum-shell .dx-forum-post-actions .dx-forum-action-icon {
  display:inline-grid;
  place-items:center;
  flex:0 0 14px;
  width:14px;
  height:14px;
  font-size:13px;
  line-height:1;
}
.dx-forum-shell .dx-forum-post-actions .is-danger {
  color:#f07878;
  border-color:rgba(220,83,83,.28);
}
.dx-forum-shell .dx-forum-post-actions .is-moderator {
  color:#b8c7e0;
  border-color:rgba(135,160,205,.26);
}
.dx-forum-shell .dx-forum-post-actions .dx-forum-post-edit[open],
.dx-forum-shell .dx-forum-post-actions .dx-forum-post-report[open],
.dx-forum-shell .dx-forum-post-actions .dx-forum-post-moderate[open] {
  align-items:flex-start;
}
.dx-forum-shell .dx-forum-post-actions .dx-forum-post-edit[open] > summary,
.dx-forum-shell .dx-forum-post-actions .dx-forum-post-report[open] > summary,
.dx-forum-shell .dx-forum-post-actions .dx-forum-post-moderate[open] > summary {
  flex:0 0 auto;
}
.dx-forum-shell .dx-forum-post-actions .dx-forum-post-edit > form,
.dx-forum-shell .dx-forum-post-actions .dx-forum-post-report > form,
.dx-forum-shell .dx-forum-post-actions .dx-forum-post-moderate > form {
  z-index:30;
}
@media(max-width:700px) {
  .dx-forum-shell .dx-forum-composer .dx-forum-emoji-panel {
    max-height:330px;
    min-height:220px;
  }
  .dx-forum-shell .dx-forum-composer .dx-forum-emoji-list {
    grid-template-columns:repeat(auto-fit,minmax(34px,1fr));
  }
  .dx-forum-shell .dx-forum-post-action,
  .dx-forum-shell .dx-forum-post-actions summary.dx-forum-post-action,
  .dx-forum-shell .dx-forum-post-actions button.dx-forum-post-action {
    min-width:0;
    flex:1 1 auto;
  }
}

.dx-forum-shell .dx-forum-post-actions details > form {
  position:absolute;
  top:calc(100% + 7px);
  left:0;
  margin:0;
  z-index:40;
}


/* v1.38 – profile badges in forum topic identity lines only. */
.dx-forum-shell .dx-forum-post-identity,
.dx-forum-shell .dx-forum-topic-starter-identity {
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:5px; min-width:0;
}
.dx-forum-shell .dx-forum-post-username {
  color:#f0f2f4; font-size:13px; font-weight:800; overflow-wrap:anywhere; text-decoration:none;
}
.dx-forum-shell .dx-forum-post-username:hover { color:#e7c15f; text-decoration:underline; }
.dx-forum-shell .dx-forum-user-badges { display:inline-flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:3px; vertical-align:middle; }
.dx-forum-shell .dx-forum-user-badge { display:inline-grid; place-items:center; width:17px; height:17px; flex:0 0 17px; overflow:hidden; border-radius:50%; background:rgba(255,255,255,.045); font-size:12px; line-height:1; }
.dx-forum-shell .dx-forum-user-badge img { display:block; width:100%; height:100%; object-fit:contain; }
.dx-forum-shell .dx-forum-user-badge.is-warning { color:#f0b34d; border:1px solid rgba(240,179,77,.35); }
.dx-forum-shell .dx-forum-user-badge.is-banned { color:#ff6262; border:1px solid rgba(255,98,98,.35); font-size:11px; }
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-starter .dx-forum-topic-starter-identity { display:flex; flex-direction:row; align-items:center; justify-content:flex-start; flex-wrap:wrap; gap:5px; }
.dx-forum-shell .dx-forum-topic-starter-identity strong { min-width:0; }

/* Native select popup must follow the DropX dark palette (including its options). */
.dx-forum-shell .dx-forum-response-fields select {
  color-scheme:dark; color:#e8edf2; background-color:#101820; border:1px solid rgba(174,190,202,.22); border-radius:9px;
}
.dx-forum-shell .dx-forum-response-fields select option { color:#e8edf2; background:#101820; }
.dx-forum-shell .dx-forum-response-fields select option:checked { color:#fff; background:#80601f; }
.dx-forum-shell .dx-forum-response-fields select:focus-visible { outline:2px solid rgba(221,181,79,.7); outline-offset:2px; }


/* v1.39 – keep topic-starter badges on one horizontal line in the sidebar. */
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-starter span.dx-forum-topic-starter-identity {
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:nowrap;
  gap:4px;
  white-space:nowrap;
}
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-starter-identity > strong {
  flex:0 1 auto;
  min-width:0;
}
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-starter-identity .dx-forum-user-badges {
  display:inline-flex;
  flex:0 0 auto;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  gap:2px;
  white-space:nowrap;
}
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-starter-identity .dx-forum-user-badge {
  flex:0 0 16px;
  width:16px;
  height:16px;
}


/* v1.40 – force the topic-starter badge group into one horizontal row.
   The stylesheet URL is version-busted in forum.php so cached v1.38 CSS
   cannot override this layout. */
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-starter .dx-forum-topic-starter-identity .dx-forum-user-badges {
  display:inline-flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-start;
  gap:3px;
  width:auto;
  min-width:max-content;
  white-space:nowrap;
  vertical-align:middle;
}
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-starter .dx-forum-topic-starter-identity .dx-forum-user-badges > .dx-forum-user-badge {
  display:inline-grid;
  flex:0 0 16px;
  width:16px;
  height:16px;
  margin:0;
}
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-starter .dx-forum-topic-starter-identity {
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-start;
  gap:4px;
}

/* DROPX PWA FORUM — compact full-width discussion cards and icon-first actions. */
@media (max-width: 700px) {
  .dx-forum-shell { width:100%; max-width:none; margin:0; padding:0 10px 24px; box-sizing:border-box; }
  .dx-forum-shell .dx-forum-topic-page-layout,
  .dx-forum-shell .dx-forum-topic-main,
  .dx-forum-shell .dx-forum-discussion { width:100%; min-width:0; }
  .dx-forum-shell .dx-forum-post { display:block; width:100%; min-width:0; margin:0; border-radius:12px; overflow:hidden; }
  .dx-forum-shell .dx-forum-post-author {
    display:flex; flex-direction:row; align-items:center; justify-content:flex-start;
    gap:9px; padding:9px 11px; border:0; border-bottom:1px solid rgba(190,164,94,.14);
    text-align:left;
  }
  .dx-forum-shell .dx-forum-post-avatar { flex:0 0 38px; width:38px; height:38px; }
  .dx-forum-shell .dx-forum-post-identity { display:flex; flex-wrap:wrap; align-items:center; gap:5px; min-width:0; }
  .dx-forum-shell .dx-forum-post-username { font-size:11px; }
  .dx-forum-shell .dx-forum-post-role,
  .dx-forum-shell .dx-forum-post-points,
  .dx-forum-shell .dx-forum-post-user-stats { display:none !important; }
  .dx-forum-shell .dx-forum-post-content { padding:10px 11px 11px; }
  .dx-forum-shell .dx-forum-post-meta { gap:7px; margin:0 0 8px; padding-bottom:7px; font-size:9px; }
  .dx-forum-shell .dx-forum-post-body { min-height:0; font-size:12px; line-height:1.62; }
  .dx-forum-shell .dx-forum-post-actions {
    display:flex; align-items:stretch; justify-content:flex-start; gap:5px;
    margin:10px 0 7px; padding:6px; border-radius:10px;
  }
  .dx-forum-shell .dx-forum-post-actions > form,
  .dx-forum-shell .dx-forum-post-actions > details { display:flex; flex:0 0 auto; min-width:0; }
  .dx-forum-shell .dx-forum-post-action,
  .dx-forum-shell .dx-forum-post-actions summary.dx-forum-post-action,
  .dx-forum-shell .dx-forum-post-actions button.dx-forum-post-action {
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:3px; min-width:54px; min-height:48px; padding:5px 7px;
    border:1px solid rgba(198,165,85,.15); border-radius:8px;
    background:rgba(255,255,255,.025); font-size:8px; line-height:1.1;
  }
  .dx-forum-shell .dx-forum-post-actions .dx-forum-action-icon { font-size:0; line-height:0; width:18px; height:18px; display:block; }
  .dx-forum-shell .dx-forum-post-actions .dx-forum-action-icon::before {
    content:""; display:block; width:18px; height:18px; background:currentColor;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
    mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
  }
  .dx-forum-shell [data-forum-reply] .dx-forum-action-icon::before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 17-5-5 5-5M4 12h10a6 6 0 0 1 6 6v1'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 17-5-5 5-5M4 12h10a6 6 0 0 1 6 6v1'/%3E%3C/svg%3E"); }
  .dx-forum-shell .dx-forum-post-edit .dx-forum-action-icon::before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14 5 5 5M4 20l4-.8L19 8a2.1 2.1 0 0 0-3-3L5 16z'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14 5 5 5M4 20l4-.8L19 8a2.1 2.1 0 0 0-3-3L5 16z'/%3E%3C/svg%3E"); }
  .dx-forum-shell .dx-forum-post-report .dx-forum-action-icon::before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4m0 1h13l-2 4 2 4H5'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4m0 1h13l-2 4 2 4H5'/%3E%3C/svg%3E"); }
  .dx-forum-shell .dx-forum-post-actions .is-danger .dx-forum-action-icon::before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6m4-6v6M6 7l1 14h10l1-14M9 7V4h6v3'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6m4-6v6M6 7l1 14h10l1-14M9 7V4h6v3'/%3E%3C/svg%3E"); }
  .dx-forum-shell .dx-forum-post-actions details > form { position:absolute; left:0; right:0; width:auto; max-width:calc(100vw - 28px); box-sizing:border-box; z-index:30; }
  .dx-forum-shell .dx-forum-post-pagination { flex-direction:row; align-items:center; gap:8px; padding:8px 10px; font-size:9px; }
  .dx-forum-shell .dx-forum-post-pagination > div { width:auto; gap:8px; }
  .dx-forum-shell .dx-forum-topic-sidebar { display:block; }
  .dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-head { max-height:none; padding:11px; }
  .dx-forum-shell .dx-forum-composer { padding:10px; }
  .dx-forum-shell .dx-forum-composer .dx-forum-emoji-panel { min-height:150px; max-height:220px; }
}

/* DropX Prime forum controls: compact SVG actions in a clear multi-column grid. */
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  justify-content: stretch;
  gap: 8px;
  width: 100%;
}
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions > form,
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions > details {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions .dx-forum-btn,
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  padding: 8px 9px;
  white-space: nowrap;
  text-align: center;
  font-size: 10px;
  line-height: 1.2;
}
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions .dx-forum-btn > svg,
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions summary > svg {
  display: block;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
}
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions .dx-forum-label-full { display: none; }
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions .dx-forum-label-short { display: inline; }
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions textarea {
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
}
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions .dx-forum-topic-delete-form {
  grid-column: 1 / -1;
}
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions details[open] {
  position: relative;
  z-index: 25;
}
.dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions details[open] > form {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 26;
  width: min(420px, calc(100vw - 36px));
  max-height: min(65vh, 560px);
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(205,171,88,.32);
  border-radius: 10px;
  background: #111820;
  box-shadow: 0 16px 38px rgba(0,0,0,.48);
}
body.light-mode .dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions details[open] > form {
  background: #f5f1e9;
  border-color: rgba(139,102,36,.3);
  box-shadow: 0 16px 38px rgba(65,51,31,.18);
}
@media (max-width: 600px) {
  .dx-forum-shell .dx-forum-topic-sidebar .dx-forum-topic-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* DropX Style: author information panel owns its natural height. */
.dx-forum-shell .dx-forum-post { align-items:start; }
.dx-forum-shell .dx-forum-post-author { align-self:start; height:fit-content; min-height:0; }
