/* OEMT.Club — app shell & layout (replaces classic PunBB placement) */

:root {
    --oemt-sidebar-w: 15.5rem;
    --oemt-bg-app: #0a0a0c;
    --oemt-bg-sidebar: #111114;
    --oemt-bg-main: #141418;
    --oemt-bg-card: #1a1a1f;
    --oemt-bg-card-hover: #222228;
    --oemt-border: #2a2a32;
    --oemt-text: #ececf1;
    --oemt-muted: #9494a0;
    --oemt-dim: #656570;
    --oemt-accent: #8b5cf6;
    --oemt-accent-soft: #a78bfa;
    --oemt-link: #7eb6ff;
    --oemt-role-admin: #c4b5fd;
    --oemt-role-mod: #93c5fd;
    --oemt-role-member: #e61515;
    --oemt-role-premium: #f0a0c0;
    --oemt-radius: 12px;
    --oemt-radius-sm: 8px;
}

html {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    background: var(--oemt-bg-app);
}

body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    background: var(--oemt-bg-app) !important;
}

#ace-wrap.pun.oemt-app,
.pun.oemt-app {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: clip;
    color: var(--oemt-text);
    font-family: "IBM Plex Sans", "DM Sans", Verdana, sans-serif;
    box-sizing: border-box;
}

.oemt-shell {
    display: grid;
    grid-template-columns: var(--oemt-sidebar-w) minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: clip;
}

/* —— Sidebar —— */
.oemt-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: var(--oemt-sidebar-w);
    height: 100vh;
    height: 100dvh;
    padding: 1.25rem 0.9rem 1.75rem;
    background: var(--oemt-bg-sidebar);
    border-right: 1px solid var(--oemt-border);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: transform 0.25s ease;
}

/* —— Sidebar collapse toggle (tab on the sidebar edge, vertically centered) —— */
.oemt-sidebar-toggle {
    position: fixed;
    top: 50%;
    left: var(--oemt-sidebar-w);
    transform: translateY(-50%);
    z-index: 130;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 3.75rem;
    padding: 0;
    border: 1px solid var(--oemt-border);
    border-left: none;
    border-radius: 0 0.5rem 0.5rem 0;
    background: var(--oemt-bg-sidebar);
    color: #9ca3af;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: left 0.25s ease, background 0.15s ease, color 0.15s ease;
}

.oemt-sidebar-toggle:hover {
    background: #1c1c22;
    color: #f5f5f5;
}

#ace-wrap.oemt-sidebar-hidden .oemt-sidebar {
    transform: translateX(-100%);
}

#ace-wrap.oemt-sidebar-hidden .oemt-sidebar-toggle {
    left: 0;
}

#ace-wrap.oemt-sidebar-hidden .oemt-shell {
    grid-template-columns: 0 minmax(0, 1fr);
}

@media (max-width: 860px) {
    .oemt-sidebar-toggle {
        display: none;
    }

    #ace-wrap.oemt-sidebar-hidden .oemt-sidebar {
        transform: none;
    }
}

.oemt-sidebar-brand h1 {
    margin: 0 0 1.35rem;
    padding: 0 !important;
    line-height: 1.1;
}

.oemt-sidebar-brand a {
    display: block;
    font-family: Outfit, Syne, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-decoration: none !important;
    color: var(--oemt-text) !important;
}

.oemt-sidebar-brand a span {
    color: var(--oemt-accent-soft);
}

.oemt-sidebar-nav {
    flex: 1 1 auto;
    padding: 0 !important;
    background: transparent !important;
}

.oemt-sidebar-nav .oemt-nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.oemt-sidebar-nav .oemt-nav-list > li {
    display: block;
    margin: 0 !important;
}

.oemt-sidebar-nav .oemt-nav-list > li > a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.75rem !important;
    border-radius: var(--oemt-radius-sm) !important;
    border: none !important;
    background: transparent !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    text-align: left;
    text-decoration: none !important;
    color: var(--oemt-muted) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.oemt-sidebar-nav .oemt-nav-list > li > a:hover,
.oemt-sidebar-nav .oemt-nav-list > li.isactive > a,
.oemt-sidebar-nav #brdmenu li.isactive a {
    background: rgba(139, 92, 246, 0.14) !important;
    color: var(--oemt-text) !important;
}

.oemt-sidebar-nav .oemt-nav-bell {
    padding: 0.55rem 0.75rem;
    border-radius: var(--oemt-radius-sm);
    color: var(--oemt-dim);
}

.pun.oemt-app .oemt-sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: auto;
    width: 100%;
    min-width: 0;
    padding-bottom: 1.15rem;
}

.pun.oemt-app .oemt-sidebar-stats {
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0;
}

.pun.oemt-app .oemt-sidebar-foot {
    margin: 0 !important;
    padding: 0 !important;
    border-top: none !important;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--oemt-dim);
}

/* Forum statistics — legend-on-border bubble box */
.ace-forum-stats-bubble {
    margin: 0;
    padding: 0.35rem 0.65rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
    min-width: 0;
}

.ace-forum-stats-bubble legend {
    padding: 0 0.3rem;
    margin-left: 0.3rem;
    font-family: Outfit, "IBM Plex Sans", sans-serif;
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--oemt-muted) !important;
    border: none;
    background: var(--oemt-bg-sidebar);
}

.oemt-sidebar-stats-bubble legend {
    background: var(--oemt-bg-sidebar);
}

.ace-brdstats-stats-bubble legend {
    background: var(--oemt-bg-card);
}

.ace-forum-stats-rows {
    margin: 0;
    padding: 0.1rem 0 0;
    list-style: none;
}

.ace-forum-stats-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0;
    padding: 0.2rem 0;
    font-size: 0.75rem;
    line-height: 1.4;
}

.ace-forum-stats-row + .ace-forum-stats-row {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ace-forum-stats-label {
    flex: 1 1 auto;
    color: var(--oemt-muted);
    font-weight: 500;
}

.ace-forum-stats-value {
    flex: 0 1 auto;
    text-align: right;
    color: var(--oemt-text);
    font-weight: 600;
}

.ace-forum-stats-value a {
    font-weight: inherit;
}

.oemt-sidebar-stats-bubble {
    margin-bottom: 0;
}

.oemt-sidebar-stats-bubble .ace-forum-stats-row {
    font-size: 0.6875rem;
}

.ace-brdstats-stats-bubble {
    margin-bottom: 0.75rem;
}

.ace-brdstats-stats-bubble .ace-forum-stats-row {
    font-size: 0.75rem;
}

@media (min-width: 861px) {
    .pun.oemt-app .ace-brdstats-stats-bubble {
        display: none;
    }
}

.oemt-sidebar-foot ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.oemt-sidebar-foot li {
    margin: 0 0 0.35rem;
}

.oemt-sidebar-foot a {
    color: var(--oemt-link) !important;
}

.oemt-sidebar-session {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0;
}

.oemt-sidebar-session-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none !important;
    color: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.oemt-sidebar-session-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.oemt-sidebar-session-avatar,
.oemt-sidebar-session-avatar-fallback {
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
}

.oemt-sidebar-session-avatar .ace-avatar {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
}

.oemt-sidebar-session-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.35), rgba(99, 102, 241, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--oemt-text);
    line-height: 1;
}

.oemt-sidebar-session-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1 1 auto;
}

.oemt-sidebar-session-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--oemt-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oemt-sidebar-session-name .usergroup-admin,
.oemt-sidebar-session-name .usergroup-member,
.oemt-sidebar-session-name .usergroup-player,
.oemt-sidebar-session-name .usergroup-5 {
    font-weight: 600;
}

.oemt-sidebar-session-role {
    display: block;
    font-size: 0.6875rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--oemt-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oemt-sidebar-logout-form {
    margin: 0;
    padding: 0;
    width: 100%;
}

.oemt-sidebar-logout-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--oemt-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    color: var(--oemt-muted) !important;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.oemt-sidebar-logout-btn:hover,
.oemt-sidebar-logout-btn:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--oemt-text) !important;
    outline: none;
}

.oemt-sidebar-foot-links {
    margin: 0;
    font-size: 0.6875rem;
    line-height: 1.5;
    color: var(--oemt-dim);
}

/* —— Main column —— */
.oemt-main {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    grid-column: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    margin-left: 0;
    background: var(--oemt-bg-main);
    overflow-x: clip;
}

#brdmain {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1.25rem 1.5rem 1.75rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-x: clip;
}

.pun.oemt-app #ace-index-top-banners {
    width: 100%;
    flex-shrink: 0;
}

.pun.oemt-app #brdmain > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.pun.oemt-app #brdfooter.ace-brdfooter .oemt-footer-meta {
    margin: 0;
    padding: 0.85rem 0.75rem;
    border: 1px solid var(--oemt-border);
    border-radius: var(--oemt-radius);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.pun.oemt-app #brdfooter.ace-brdfooter .oemt-footer-copy,
.pun.oemt-app #brdfooter.ace-brdfooter .oemt-footer-credit {
    margin: 0 !important;
}

.pun.oemt-app #brdfooter.ace-brdfooter .oemt-footer-credit {
    font-size: 0.6875rem;
    line-height: 1.4;
    color: var(--oemt-dim);
}

.pun.oemt-app #brdfooter.ace-brdfooter .oemt-footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* —— Kill classic PunBB “block + h2 bar + inset box” —— */
.pun.oemt-app .block,
.pun.oemt-app .blocktable,
.pun.oemt-app .blockform,
.pun.oemt-app .blockpost {
    float: none !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 0 !important;
    box-sizing: border-box;
}

.pun.oemt-app h2 {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 0 0.65rem !important;
    margin: 0 !important;
    font-family: Outfit, sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: var(--oemt-dim) !important;
}

.pun.oemt-app .box {
    background: var(--oemt-bg-card) !important;
    border: 1px solid var(--oemt-border) !important;
    border-radius: var(--oemt-radius) !important;
    box-shadow: none !important;
}

.pun.oemt-app a:link,
.pun.oemt-app a:visited {
    color: var(--oemt-link) !important;
}

.pun.oemt-app a:hover {
    color: #a8ccff !important;
}

/* Role-coloured usernames on links must match span placements (posts, online, etc.) */
.pun.oemt-app a.usergroup-admin,
.pun.oemt-app a.usergroup-admin:link,
.pun.oemt-app a.usergroup-admin:visited {
    color: #c8e650 !important;
    font-weight: 700 !important;
}

.pun.oemt-app a.usergroup-admin:hover {
    color: #d8f060 !important;
}

.pun.oemt-app .usergroup-member,
.pun.oemt-app a.usergroup-member,
.pun.oemt-app a.usergroup-member:link,
.pun.oemt-app a.usergroup-member:visited,
.pun.oemt-app span.usergroup-member,
.pun.oemt-app #punviewtopic .postleft dt a.usergroup-member,
.pun.oemt-app #onlinelist.ace-online-list dd.ace-online-names a.usergroup-member {
    color: var(--oemt-role-member) !important;
    font-weight: 700 !important;
}

.pun.oemt-app a.usergroup-member:hover {
    color: #ff4545 !important;
}

.pun.oemt-app a.usergroup-6,
.pun.oemt-app a.usergroup-6:link,
.pun.oemt-app a.usergroup-6:visited {
    color: var(--oemt-link) !important;
    font-weight: 700 !important;
}

/* Index page layout */
.pun.oemt-app #punindex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

/* Category sections → grouped panels + even card grid */
.pun.oemt-app .ace-idx-cat {
    margin: 0;
    padding: 0.75rem 0.85rem 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--oemt-border);
    border-radius: var(--oemt-radius);
}

.pun.oemt-app .ace-idx-cat > h2 {
    margin: 0 0 0.6rem !important;
    padding: 0 0 0.45rem !important;
    border-bottom: 1px solid var(--oemt-border);
    font-size: 0.6875rem !important;
    letter-spacing: 0.1em !important;
    color: var(--oemt-muted) !important;
}

.pun.oemt-app .ace-idx-cat > .box,
.pun.oemt-app #vf.blocktable > .box {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.pun.oemt-app .ace-idx-cat .inbox,
.pun.oemt-app #vf .inbox {
    padding: 0 !important;
}

.pun.oemt-app .ace-idx-cat table.ace-forum-table,
.pun.oemt-app #vf table.ace-forum-table {
    display: block;
    width: 100%;
}

.pun.oemt-app .ace-idx-cat table.ace-forum-table thead,
.pun.oemt-app #vf table.ace-forum-table thead {
    display: none;
}

.pun.oemt-app .ace-idx-cat table.ace-forum-table tbody {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
    gap: 0.55rem;
    width: 100%;
}

.pun.oemt-app .ace-idx-cat table.ace-forum-table tr.ace-forum-card-row {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-height: 0;
    padding: 0.6rem 0.7rem 0.55rem;
    background: var(--oemt-bg-card);
    border: 1px solid var(--oemt-border);
    border-radius: var(--oemt-radius-sm);
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.pun.oemt-app .ace-idx-cat table.ace-forum-table tr.ace-forum-card-row:hover,
.pun.oemt-app .ace-idx-cat table.ace-forum-table tr.ace-forum-card-row:focus-within {
    background: var(--oemt-bg-card-hover);
    border-color: rgba(139, 92, 246, 0.38);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.12);
}

.pun.oemt-app .ace-idx-cat .ace-forum-card-hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    text-decoration: none;
}

.pun.oemt-app .ace-idx-cat .ace-forum-card-hit:focus-visible {
    outline: 2px solid rgba(139, 92, 246, 0.55);
    outline-offset: 2px;
}

.pun.oemt-app .ace-idx-cat table.ace-forum-table td {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    text-align: left !important;
}

.pun.oemt-app .ace-idx-cat td.ace-forum-newcol {
    position: static;
    order: -1;
    width: auto !important;
    margin-bottom: 0.1rem;
}

.pun.oemt-app .ace-idx-cat td.ace-forum-newcol .ace-new-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.pun.oemt-app .ace-idx-cat td.tcl h3 {
    margin: 0 0 0.15rem;
    font-size: 0.8125rem;
    line-height: 1.3;
}

.pun.oemt-app .ace-idx-cat td.tcl h3 .ace-forum-card-title {
    color: var(--oemt-text);
    font-weight: 600;
}

.pun.oemt-app .ace-idx-cat tr.ace-forum-card-row:hover .ace-forum-card-title,
.pun.oemt-app .ace-idx-cat tr.ace-forum-card-row:focus-within .ace-forum-card-title {
    color: #f0f0f5;
}

.pun.oemt-app .ace-idx-cat .forumdesc {
    font-size: 0.6875rem;
    color: var(--oemt-dim);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pun.oemt-app .ace-idx-cat td.tcr {
    margin-top: auto;
    padding-top: 0.35rem !important;
    border-top: none !important;
    font-size: 0.625rem;
    color: var(--oemt-dim);
}

.pun.oemt-app .ace-idx-cat td.tcr .byuser {
    color: var(--oemt-dim) !important;
}

.pun.oemt-app .ace-idx-cat td.tcr a {
    display: none;
}

.pun.oemt-app .ace-index-mark-read-bottom {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.pun.oemt-app .ace-index-mark-read-bottom .ace-mark-all-read-form .buttons {
    margin: 0;
    padding: 0;
}

.pun.oemt-app .ace-mark-all-read-form .button.ace-btn-mark-read,
.pun.oemt-app .ace-shout-block > h2.ace-shout-head .button.ace-btn-mark-read.ace-shout-clear-btn {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.6875rem !important;
    font-weight: 500 !important;
    color: var(--oemt-muted) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--oemt-border) !important;
    border-radius: var(--oemt-radius-sm) !important;
    box-shadow: none !important;
    cursor: pointer;
}

.pun.oemt-app .ace-mark-all-read-form .button.ace-btn-mark-read:hover,
.pun.oemt-app .ace-shout-block > h2.ace-shout-head .button.ace-btn-mark-read.ace-shout-clear-btn:hover,
.pun.oemt-app .ace-shout-block > h2.ace-shout-head .button.ace-btn-mark-read.ace-shout-clear-btn:focus {
    color: var(--oemt-text) !important;
    border-color: rgba(139, 92, 246, 0.35) !important;
    background: rgba(139, 92, 246, 0.08) !important;
    text-decoration: none !important;
}

.pun.oemt-app .ace-idx-cat td.tcr a {
    display: block;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.pun.oemt-app h3 .ace-new-posts-tag {
    font-size: 0.7rem;
    color: var(--oemt-accent-soft);
}

/* Topic list → stacked rows (not table) */
.pun.oemt-app #vf table.ace-forum-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pun.oemt-app #vf table.ace-forum-table tr {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas:
        "dot title replies last"
        "dot meta meta meta";
    align-items: center;
    gap: 0.35rem 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--oemt-bg-card);
    border: 1px solid var(--oemt-border);
    border-radius: var(--oemt-radius-sm);
}

.pun.oemt-app #vf table.ace-forum-table tr:hover {
    background: var(--oemt-bg-card-hover);
}

.pun.oemt-app #vf table.ace-forum-table td {
    display: block;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.pun.oemt-app #vf td.ace-forum-newcol {
    grid-area: dot;
}

.pun.oemt-app #vf td.tcl {
    grid-area: title;
}

.pun.oemt-app #vf td.tc2 {
    grid-area: replies;
    font-size: 0.75rem;
    color: var(--oemt-dim);
    white-space: nowrap;
}

.pun.oemt-app #vf td.tcr {
    grid-area: last;
    font-size: 0.72rem;
    color: var(--oemt-muted);
    text-align: right;
    max-width: 14rem;
}

.pun.oemt-app #vf td.tcl h3 {
    margin: 0;
    font-size: 0.9rem;
}

/* Posts → chat-style cards */
#punviewtopic .blockpost,
.pun.oemt-app .blockpost {
    border: 1px solid var(--oemt-border) !important;
    border-radius: var(--oemt-radius) !important;
    overflow: hidden;
    margin-bottom: 0.75rem !important;
}

#punviewtopic .blockpost h2,
.pun.oemt-app .blockpost h2 {
    padding: 0.5rem 1rem !important;
    font-size: 0.7rem !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid var(--oemt-border) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

#punviewtopic .blockpost .postbody,
.pun.oemt-app .blockpost .postbody {
    display: block;
}

#punviewtopic .blockpost .postleft,
.pun.oemt-app .blockpost .postleft {
    float: none !important;
    width: 100% !important;
    padding: 0.85rem 1rem 0.5rem !important;
    border-bottom: 1px solid var(--oemt-border);
    background: transparent !important;
}

#punviewtopic .blockpost .postleft dl,
.pun.oemt-app .blockpost .postleft dl {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.85rem;
    padding: 0 !important;
    margin: 0;
}

#punviewtopic .postleft dt,
.pun.oemt-app .postleft dt {
    margin: 0;
    font-size: 0.9rem;
}

#punviewtopic .postleft dd,
.pun.oemt-app .postleft dd {
    margin: 0;
    font-size: 0.72rem;
    color: var(--oemt-dim);
}

#punviewtopic .postleft dd.postavatar,
.pun.oemt-app .postleft dd.postavatar {
    order: -1;
    width: 2.5rem;
    margin-right: 0.25rem;
}

#punviewtopic .postleft dd.postavatar img,
.pun.oemt-app .postleft dd.postavatar img {
    max-width: 2.5rem !important;
    border-radius: 50%;
}

#punviewtopic .postleft dd.usertitle,
#punviewtopic .postleft dd:not(.postavatar):not(.usercontacts):not(.ace-post-status),
.pun.oemt-app .postleft dd.usertitle,
.pun.oemt-app .postleft dd:not(.postavatar):not(.usercontacts):not(.ace-post-status) {
    display: none;
}

#punviewtopic .postleft dd.usercontacts,
#punviewtopic .postleft dd.ace-post-status,
.pun.oemt-app .postleft dd.usercontacts,
.pun.oemt-app .postleft dd.ace-post-status {
    display: inline-block;
}

#punviewtopic .blockpost .postright,
.pun.oemt-app .blockpost .postright {
    float: none !important;
    width: 100% !important;
    padding: 1rem 1.1rem 0.75rem !important;
    border-left: none !important;
    background: transparent !important;
}

#punviewtopic .blockpost .postright h3,
.pun.oemt-app .blockpost .postright h3 {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    color: var(--oemt-dim);
    font-weight: 500;
}

#punviewtopic .blockpost .postfootleft,
#punviewtopic .blockpost .postfootright,
.pun.oemt-app .blockpost .postfootleft,
.pun.oemt-app .blockpost .postfootright {
    float: none !important;
    width: 100% !important;
    padding: 0.5rem 1rem 0.65rem !important;
    border-top: 1px solid var(--oemt-border);
    background: transparent !important;
    font-size: 0.75rem;
}

#punviewtopic .blockpost .box,
.pun.oemt-app .blockpost .box {
    background: transparent !important;
    border: none !important;
}

/* Breadcrumbs / toolbars */
.pun.oemt-app .linkst,
.pun.oemt-app .linksb,
.pun.oemt-app .postlinksb {
    margin: 0 !important;
    padding: 0 0 0.5rem !important;
}

.pun.oemt-app .postlink {
    font-size: 0.8rem;
}

.pun.oemt-app .crumbs {
    font-size: 0.78rem;
    color: var(--oemt-dim);
}

.pun.oemt-app .crumbs a {
    color: var(--oemt-muted) !important;
}

/* Auth pages — centered login / register / forgot password */
.pun.oemt-app .oemt-auth-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    min-height: min(70vh, 42rem);
    padding: 1.5rem 1rem 2.5rem;
    box-sizing: border-box;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-card {
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
    background: var(--oemt-bg-card);
    border: 1px solid var(--oemt-border);
    border-radius: var(--oemt-radius);
    overflow: hidden;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-card--register {
    max-width: 30rem;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-card > h2 {
    display: none;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-head {
    padding: 1.35rem 1.35rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--oemt-border);
    background: rgba(255, 255, 255, 0.02);
}

.pun.oemt-app .oemt-auth-page .oemt-auth-title {
    margin: 0 0 0.35rem !important;
    padding: 0 !important;
    font-family: Outfit, Syne, sans-serif !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
    color: var(--oemt-text) !important;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-lead {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--oemt-muted);
}

.pun.oemt-app .oemt-auth-page .oemt-auth-card > .box {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 1.25rem 1.35rem 1.35rem !important;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-body {
    text-align: center;
}

.pun.oemt-app .oemt-auth-page .ace-login-flash {
    margin: 0 0 1rem !important;
    text-align: center;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-form {
    padding: 0 !important;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-fields {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--oemt-muted);
    letter-spacing: 0.02em;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-optional {
    font-weight: 400;
    color: var(--oemt-dim);
}

.pun.oemt-app .oemt-auth-page .oemt-auth-field input[type="text"],
.pun.oemt-app .oemt-auth-page .oemt-auth-field input[type="password"],
.pun.oemt-app .oemt-auth-page .oemt-auth-field input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.7rem;
    font-size: 0.875rem;
    color: var(--oemt-text);
    background: var(--oemt-bg-main);
    border: 1px solid var(--oemt-border);
    border-radius: var(--oemt-radius-sm);
}

.pun.oemt-app .oemt-auth-page .oemt-auth-field input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.12);
}

.pun.oemt-app .oemt-auth-page .oemt-auth-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--oemt-muted);
    cursor: pointer;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-check input {
    margin-top: 0.15rem;
    flex: 0 0 auto;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-section {
    padding: 1rem 0 0;
    margin-top: 1rem;
    border-top: 1px solid var(--oemt-border);
    text-align: center;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-section-title {
    margin: 0 0 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--oemt-dim);
}

.pun.oemt-app .oemt-auth-page .oemt-auth-hint {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--oemt-dim);
}

.pun.oemt-app .oemt-auth-page .g-recaptcha {
    display: inline-block;
    margin: 0 auto;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-section--2fa .oemt-auth-field {
    text-align: left;
}

.pun.oemt-app .oemt-auth-page .ace-login-2fa-hint {
    margin: 0.35rem 0 0;
    text-align: left;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-submit {
    margin: 1.25rem 0 0;
    padding: 0;
    text-align: center;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-btn.button {
    min-width: 9rem;
    padding: 0.55rem 1.35rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: var(--oemt-text) !important;
    background: rgba(139, 92, 246, 0.18) !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    border-radius: var(--oemt-radius-sm) !important;
    cursor: pointer;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-btn.button:hover {
    background: rgba(139, 92, 246, 0.28) !important;
    border-color: rgba(139, 92, 246, 0.55) !important;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-links {
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--oemt-border);
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-links a {
    color: var(--oemt-link) !important;
    text-decoration: none;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-links a:hover {
    color: #a8ccff !important;
    text-decoration: underline;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-links-sep {
    margin: 0 0.4rem;
    color: var(--oemt-dim);
}

.pun.oemt-app .oemt-auth-page .oemt-auth-hint--field {
    margin: -0.45rem 0 0;
    text-align: left;
    font-size: 0.6875rem;
}

.pun.oemt-app .oemt-auth-page .oemt-auth-invite {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
}

/* Forms & login/register */
.pun.oemt-app .blockform form {
    padding: 1.25rem !important;
}

.pun.oemt-app .oemt-auth-page .blockform form {
    padding: 0 !important;
}

.pun.oemt-app .blockform .box {
    overflow: hidden;
}

.pun.oemt-app .blockform h2 {
    padding: 1rem 1.25rem 0 !important;
}

/* Profile: horizontal tab nav above settings */
.pun.oemt-app #profile.ace-profile.block2col {
    display: block;
}

.pun.oemt-app #profile.ace-profile.block2col > .clearer {
    display: none;
}

.pun.oemt-app #profile.ace-profile.block2col .blockmenu {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 1.25rem !important;
}

.pun.oemt-app #profile.ace-profile.block2col .blockform {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    overflow: visible;
    background: var(--oemt-bg-card);
    border: 1px solid var(--oemt-border);
    border-radius: var(--oemt-radius);
}

.pun.oemt-app #profile.ace-profile.block2col .blockmenu h2 {
    padding: 0 0 0.5rem !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--oemt-muted) !important;
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
}

.pun.oemt-app #profile.ace-profile.block2col .blockmenu .box,
.pun.oemt-app #profile.ace-profile.block2col .blockmenu .inbox {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.pun.oemt-app #profile.ace-profile.block2col .blockmenu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pun.oemt-app #profile.ace-profile.block2col .blockmenu li {
    margin: 0;
    padding: 0;
}

.pun.oemt-app #profile.ace-profile.block2col .blockmenu a {
    display: inline-block;
    padding: 0.5rem 0.85rem;
    border-radius: var(--oemt-radius-sm);
    background: var(--oemt-bg-card);
    border: 1px solid var(--oemt-border);
    color: var(--oemt-link) !important;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.pun.oemt-app #profile.ace-profile.block2col .blockmenu a:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: var(--oemt-bg-card-hover);
    color: var(--oemt-text) !important;
}

.pun.oemt-app #profile.ace-profile.block2col .blockmenu li.isactive a {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.35);
    color: var(--oemt-text) !important;
    font-weight: 600;
}

/* Profile settings — dark section boxes */
.pun.oemt-app #profile.ace-profile .blockform > h2 {
    padding: 0.85rem 1rem !important;
    margin: 0 !important;
    border-bottom: 1px solid var(--oemt-border);
    font-family: Outfit, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: var(--oemt-text) !important;
}

.pun.oemt-app #profile.ace-profile .blockform > .box {
    background: transparent !important;
    border: none !important;
    padding: 0.75rem 1rem 1rem !important;
}

.pun.oemt-app #profile.ace-profile .blockform .inbox {
    padding: 0 !important;
}

.pun.oemt-app #profile.ace-profile-personal-page .blockform.ace-profile-personal-page .ace-profile-personal-form-stack,
.pun.oemt-app #profile.ace-profile .blockform.ace-profile-personal-page .ace-profile-personal-form-stack {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

.pun.oemt-app #profile.ace-profile-personal-page .blockform.ace-profile-personal-page .ace-profile-personal-media-col,
.pun.oemt-app #profile.ace-profile .blockform.ace-profile-personal-page .ace-profile-personal-media-col {
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.pun.oemt-app #profile.ace-profile-personal-page .blockform.ace-profile-personal-page .ace-profile-connections-fieldset,
.pun.oemt-app #profile.ace-profile .blockform.ace-profile-personal-page .ace-profile-connections-fieldset,
.pun.oemt-app #profile.ace-profile-personal-page .blockform.ace-profile-personal-page .ace-profile-custom-tags-fieldset,
.pun.oemt-app #profile.ace-profile .blockform.ace-profile-personal-page .ace-profile-custom-tags-fieldset,
.pun.oemt-app #profile.ace-profile-personal-page .blockform.ace-profile-personal-page .ace-profile-personal-full-row,
.pun.oemt-app #profile.ace-profile .blockform.ace-profile-personal-page .ace-profile-personal-full-row {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
}

@media (max-width: 760px) {
    .pun.oemt-app #profile.ace-profile-personal-page .blockform.ace-profile-personal-page .ace-profile-personal-form-stack,
    .pun.oemt-app #profile.ace-profile .blockform.ace-profile-personal-page .ace-profile-personal-form-stack {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

.pun.oemt-app #profile.ace-profile .ace-profile-connections-list-wrap {
    margin: 0 0 0.75rem !important;
    border: 1px solid var(--oemt-border) !important;
    border-radius: var(--oemt-radius-sm) !important;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.02) !important;
}

.pun.oemt-app #profile.ace-profile table.ace-profile-connections-table {
    width: 100%;
    min-width: 32rem;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.pun.oemt-app #profile.ace-profile table.ace-profile-connections-table th,
.pun.oemt-app #profile.ace-profile table.ace-profile-connections-table td {
    border: none !important;
    border-bottom: 1px solid var(--oemt-border) !important;
    padding: 0.55rem 0.7rem !important;
    text-align: left;
    vertical-align: middle;
}

.pun.oemt-app #profile.ace-profile table.ace-profile-connections-table th {
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--oemt-dim) !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

.pun.oemt-app #profile.ace-profile table.ace-profile-connections-table tbody tr:nth-child(even):not(.ace-profile-connections-row--empty) {
    background: rgba(255, 255, 255, 0.015) !important;
}

.pun.oemt-app #profile.ace-profile table.ace-profile-connections-table tbody tr:last-child td {
    border-bottom: none !important;
}

.pun.oemt-app #profile.ace-profile .ace-profile-connections-row--empty td {
    color: var(--oemt-muted) !important;
    font-style: italic;
    text-align: center !important;
}

.pun.oemt-app #profile.ace-profile .ace-profile-connections-actions-cell {
    white-space: nowrap;
}

.pun.oemt-app #profile.ace-profile .blockform .inbox fieldset,
.pun.oemt-app #profile.ace-profile .blockform form .inform fieldset,
.pun.oemt-app #profile.ace-profile .blockform form#profile1 fieldset,
.pun.oemt-app #profile.ace-profile .blockform form#profile2 fieldset,
.pun.oemt-app #profile.ace-profile .blockform form#profile5 fieldset {
    border: 1px solid var(--oemt-border) !important;
    border-radius: var(--oemt-radius-sm) !important;
    background: var(--oemt-bg-main) !important;
    box-shadow: none !important;
    padding: 0.75rem 0.85rem 0.85rem !important;
    margin: 0 0 0.65rem !important;
}

.pun.oemt-app #profile.ace-profile .blockform .inbox fieldset legend,
.pun.oemt-app #profile.ace-profile .blockform form .inform fieldset legend,
.pun.oemt-app #profile.ace-profile .blockform form#profile1 fieldset legend,
.pun.oemt-app #profile.ace-profile .blockform form#profile2 fieldset legend,
.pun.oemt-app #profile.ace-profile .blockform form#profile5 fieldset legend {
    padding: 0 0.35rem !important;
    margin: 0 0 0 0.15rem !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: var(--oemt-muted) !important;
    text-shadow: none !important;
    filter: none !important;
    animation: none !important;
}

.pun.oemt-app #profile.ace-profile .blockform .buttons {
    padding-top: 0.5rem;
    margin: 0;
}

.pun.oemt-app #profile.ace-profile label.ace-prof-field input[type="text"],
.pun.oemt-app #profile.ace-profile label.ace-prof-field input[type="email"],
.pun.oemt-app #profile.ace-profile label.ace-prof-field input[type="url"],
.pun.oemt-app #profile.ace-profile label.ace-prof-field select,
.pun.oemt-app #profile.ace-profile label.ace-prof-field textarea,
.pun.oemt-app #profile.ace-profile #discord_reset_reason,
.pun.oemt-app #profile.ace-profile #discord_id_link {
    background: var(--oemt-bg-app) !important;
    border: 1px solid var(--oemt-border) !important;
    border-radius: var(--oemt-radius-sm) !important;
    color: var(--oemt-text) !important;
}

/* ==========================================================================
   Private messages (#punpmsnew)
   ========================================================================== */

.pun.oemt-app #punpmsnew .linkst {
    padding-bottom: 0.75rem !important;
}

.pun.oemt-app #pms.ace-pm.block2col {
    display: grid;
    grid-template-columns: 12.5rem minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.pun.oemt-app #pms.ace-pm.block2col > .clearer {
    display: none;
}

.pun.oemt-app #pms.ace-pm.block2col .blockmenu {
    float: none;
    width: auto;
    grid-column: 1;
}

.pun.oemt-app #pms.ace-pm.block2col .ace-pm-main {
    float: none;
    width: auto;
    min-width: 0;
    grid-column: 2;
}

.pun.oemt-app #pms .blockmenu h2 {
    padding: 0.55rem 0.75rem 0.3rem !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--oemt-muted) !important;
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
}

.pun.oemt-app #pms .blockmenu h2.block2 {
    margin-top: 0.5rem !important;
}

.pun.oemt-app #pms .blockmenu br {
    display: none;
}

.pun.oemt-app #pms .blockmenu .box {
    background: var(--oemt-bg-card) !important;
    border: 1px solid var(--oemt-border) !important;
    border-radius: var(--oemt-radius-sm) !important;
    margin-bottom: 0.5rem;
}

.pun.oemt-app #pms .blockmenu ul {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
}

.pun.oemt-app #pms .blockmenu li {
    margin: 0;
    padding: 0;
}

.pun.oemt-app #pms .blockmenu li a,
.pun.oemt-app #pms .blockmenu li.isactive {
    display: block;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    color: var(--oemt-dim);
    text-decoration: none;
}

.pun.oemt-app #pms .blockmenu li a:hover {
    color: var(--oemt-text);
    background: rgba(139, 92, 246, 0.08);
}

.pun.oemt-app #pms .blockmenu li.isactive {
    color: var(--oemt-text);
    font-weight: 600;
    background: rgba(139, 92, 246, 0.1);
}

.pun.oemt-app #pms .ace-pm-main > .block:not(.ace-pm-topic-block),
.pun.oemt-app #pms .ace-pm-main > .blockform {
    background: var(--oemt-bg-card);
    border: 1px solid var(--oemt-border);
    border-radius: var(--oemt-radius);
    overflow: hidden;
}

.pun.oemt-app #pms .ace-pm-main form > h2,
.pun.oemt-app #pms .ace-pm-main > .blockform > h2,
.pun.oemt-app #pms #postform > h2 {
    padding: 0.85rem 1rem !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    border-bottom: 1px solid var(--oemt-border);
    background: transparent !important;
}

.pun.oemt-app #pms .pagepost {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem 0.75rem;
    padding: 0.65rem 1rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    border-bottom: 1px solid var(--oemt-border);
}

.pun.oemt-app #pms .pagepost .clearer {
    display: none !important;
}

.pun.oemt-app #pms .pagepost .conl,
.pun.oemt-app #pms .pagepost .conr,
.pun.oemt-app #pms .pagepost .postlink {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.pun.oemt-app #pms .pagepost .ace-pm-new-dialogue {
    margin-left: auto;
    text-align: right;
}

.pun.oemt-app #pms .pagepost .postlink.actions span,
.pun.oemt-app #pms .pagepost .postlink.ace-pm-topic-actions span {
    display: inline-flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.pun.oemt-app #pms #vf.blocktable > .box,
.pun.oemt-app #pms #vf.blocktable .inbox {
    padding: 0.65rem 1rem 1rem !important;
    border: none !important;
    background: transparent !important;
}

.pun.oemt-app #pms table.pms-tbl:not(.ace-pm-blocked-tbl) {
    display: block;
    width: 100%;
}

.pun.oemt-app #pms table.pms-tbl:not(.ace-pm-blocked-tbl) thead {
    display: none;
}

.pun.oemt-app #pms table.pms-tbl:not(.ace-pm-blocked-tbl) tbody {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pun.oemt-app #pms table.pms-tbl:not(.ace-pm-blocked-tbl) tr {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 0.15rem 0.65rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
    background: var(--oemt-bg-main) !important;
    border: 1px solid var(--oemt-border) !important;
    border-radius: var(--oemt-radius-sm) !important;
}

.pun.oemt-app #pms table.pms-tbl:not(.ace-pm-blocked-tbl) tr:hover {
    border-color: rgba(139, 92, 246, 0.35) !important;
    background: var(--oemt-bg-card-hover) !important;
}

.pun.oemt-app #pms table.pms-tbl:not(.ace-pm-blocked-tbl) tr.inew,
.pun.oemt-app #pms table.pms-tbl:not(.ace-pm-blocked-tbl) tr.ace-pm-unread {
    border-left: 3px solid var(--oemt-accent) !important;
    padding-left: calc(0.85rem - 2px);
}

.pun.oemt-app #pms table.pms-tbl:not(.ace-pm-blocked-tbl) td {
    display: block;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
}

.pun.oemt-app #pms table.pms-tbl:not(.ace-pm-blocked-tbl) td.tce {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    text-align: center;
}

.pun.oemt-app #pms table.pms-tbl:not(.ace-pm-blocked-tbl) td.tcl {
    grid-column: 2 / 4;
    grid-row: 1;
    min-width: 0;
}

.pun.oemt-app #pms table.pms-tbl:not(.ace-pm-blocked-tbl) td.tcl .icon {
    display: none !important;
}

.pun.oemt-app #pms table.pms-tbl:not(.ace-pm-blocked-tbl) td.tcl .tclcon {
    padding: 0;
}

.pun.oemt-app #pms table.pms-tbl:not(.ace-pm-blocked-tbl) td.tcl a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--oemt-text);
}

.pun.oemt-app #pms tr.inew td.tcl a,
.pun.oemt-app #pms tr.ace-pm-unread td.tcl a {
    font-weight: 700;
}

.pun.oemt-app #pms table.pms-tbl:not(.ace-pm-blocked-tbl) td.tc2 {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.75rem;
    color: var(--oemt-dim);
}

/* site.css gives td.tc2 a row background; in card layout that becomes a bar behind the username */
.pun.oemt-app #pms.ace-pm table.pms-tbl:not(.ace-pm-blocked-tbl) tbody tr td.tc2,
.pun.oemt-app #pms.ace-pm table.pms-tbl:not(.ace-pm-blocked-tbl) tbody tr:hover td.tc2 {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.pun.oemt-app #pms table.pms-tbl:not(.ace-pm-blocked-tbl) td.tc2 a,
.pun.oemt-app #pms table.pms-tbl:not(.ace-pm-blocked-tbl) td.tc2 span {
    display: inline;
    background: transparent !important;
}

.pun.oemt-app #pms table.pms-tbl:not(.ace-pm-blocked-tbl) td.tc3 {
    grid-column: 3;
    grid-row: 2;
    font-size: 0.72rem;
    color: var(--oemt-muted);
    text-align: right;
    white-space: nowrap;
}

.pun.oemt-app #pms table.pms-tbl input[type="checkbox"] {
    accent-color: var(--oemt-accent);
}

#punpmsnew .ace-pm-topic-block {
    background: transparent !important;
    border: none !important;
    padding: 0.75rem 1rem 1rem;
}

#punpmsnew .ace-pm-topic-block > .pagepost {
    border: 1px solid var(--oemt-border);
    border-radius: var(--oemt-radius-sm);
    background: var(--oemt-bg-card);
}

/* Toolbar → first message bubble (must beat #pms .pagepost margin resets) */
.pun.oemt-app #punpmsnew #pms.ace-pm .ace-pm-topic-block > .pagepost {
    margin-bottom: 0.75rem !important;
}

.pun.oemt-app #punpmsnew #pms.ace-pm .ace-pm-topic-block > .pagepost + .blockpost {
    margin-top: 0 !important;
}

#punpmsnew .ace-pm-topic-block .blockpost {
    margin: 0 0 0.65rem !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

#punpmsnew .ace-pm-topic-block .blockpost h2 {
    display: none !important;
}

#punpmsnew .ace-pm-topic-block .blockpost .box {
    background: var(--oemt-bg-main) !important;
    border: 1px solid var(--oemt-border) !important;
    border-radius: var(--oemt-radius-sm) !important;
    max-width: 85%;
}

#punpmsnew .ace-pm-topic-block .blockpost.ace-pm-msg-self .box {
    margin-left: auto;
    background: rgba(139, 92, 246, 0.12) !important;
    border-color: rgba(139, 92, 246, 0.25) !important;
}

#punpmsnew .ace-pm-topic-block .blockpost .postbody {
    display: block !important;
}

#punpmsnew .ace-pm-topic-block .blockpost .postleft {
    padding: 0.65rem 0.85rem 0.35rem !important;
    border-bottom: 1px solid var(--oemt-border);
}

#punpmsnew .ace-pm-topic-block .blockpost .postleft dl {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
}

#punpmsnew .ace-pm-topic-block .blockpost .postleft dt {
    font-size: 0.82rem;
    font-weight: 600;
}

#punpmsnew .ace-pm-topic-block .blockpost .postleft dd.usertitle,
#punpmsnew .ace-pm-topic-block .blockpost .postleft dd:not(.postavatar):not(.usercontacts):not(.ace-post-status) {
    display: none !important;
}

#punpmsnew .ace-pm-topic-block .blockpost .postleft dd.postavatar {
    display: block !important;
    order: -1;
    width: 2rem;
}

#punpmsnew .ace-pm-topic-block .blockpost .postleft dd.postavatar img {
    max-width: 2rem !important;
    border-radius: 50%;
}

#punpmsnew .ace-pm-topic-block .blockpost .postfoot > .inbox {
    padding: 0 !important;
}

/* Cobalt adds border-left:18em on .postfootright — shows as a grey slab in PM cards */
#punpmsnew .ace-pm-topic-block .blockpost .postfootright {
    border-left: none !important;
    border-left-width: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
}

#punpmsnew .ace-pm-topic-block .blockpost .postfootleft,
#punpmsnew .ace-pm-topic-block .blockpost .postfootright {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem 0.5rem !important;
    border-top: 1px solid var(--oemt-border);
    font-size: 0.72rem;
}

#punpmsnew .ace-pm-topic-block .blockpost .postfootleft p {
    margin: 0;
    color: var(--oemt-muted);
}

#punpmsnew .ace-pm-topic-block .blockpost .postfootright ul {
    display: flex;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

#punpmsnew .ace-pm-topic-block .blockpost .postright {
    padding: 0.65rem 0.85rem !important;
    border-left: none !important;
}

#punpmsnew .ace-pm-topic-block .blockpost .postmsg {
    font-size: 0.88rem;
    line-height: 1.55;
}

#punpmsnew #quickpost.blockform {
    margin-top: 0.75rem;
    background: var(--oemt-bg-card);
    border: 1px solid var(--oemt-border);
    border-radius: var(--oemt-radius);
}

#punpmsnew #quickpost .box,
#punpmsnew #postform .box {
    padding: 0 1rem 1rem !important;
    border: none !important;
    background: transparent !important;
}

#punpmsnew #postform.blockform {
    margin-bottom: 0.75rem;
}

#punpmsnew .blockform .inform fieldset {
    border: 1px solid var(--oemt-border) !important;
    border-radius: var(--oemt-radius-sm);
    background: var(--oemt-bg-main) !important;
    padding: 0.75rem 1rem !important;
}

#punpmsnew .blockform label textarea,
#punpmsnew .blockform label input[type="text"] {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    background: var(--oemt-bg-app);
    border: 1px solid var(--oemt-border);
    border-radius: var(--oemt-radius-sm);
    color: var(--oemt-text);
    padding: 0.55rem 0.65rem;
}

#punpmsnew .blockform label textarea {
    min-height: 8rem;
}

.pun.oemt-app #pms table.ace-pm-blocked-tbl {
    width: 100%;
    border-collapse: collapse;
}

.pun.oemt-app #pms table.ace-pm-blocked-tbl thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--oemt-muted);
    padding: 0.5rem 0.65rem;
    text-align: left;
    border-bottom: 1px solid var(--oemt-border);
}

.pun.oemt-app #pms table.ace-pm-blocked-tbl tbody tr {
    border-bottom: 1px solid var(--oemt-border);
}

.pun.oemt-app #pms table.ace-pm-blocked-tbl td {
    padding: 0.65rem !important;
    background: transparent !important;
    border: none !important;
}

.pun.oemt-app #pms .ace-pm-flash {
    margin-bottom: 0.75rem;
}

.pun.oemt-app #pms .ace-pm-flash .msg-ok,
.pun.oemt-app #pms .ace-pm-flash .msg-err {
    padding: 0.65rem 0.85rem;
    border-radius: var(--oemt-radius-sm);
}

@media (max-width: 720px) {
    .pun.oemt-app #pms.ace-pm.block2col {
        grid-template-columns: 1fr;
    }

    .pun.oemt-app #pms .blockmenu {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
        gap: 0.5rem;
    }

    .pun.oemt-app #pms .blockmenu h2 {
        grid-column: 1 / -1;
    }

    #punpmsnew .ace-pm-topic-block .blockpost .box {
        max-width: 100%;
    }
}

/* Index top row — shout + invite roulette */
.pun.oemt-app .ace-index-top-row {
    --ace-roulette-panel-width: 21.5rem;
    --ace-roulette-panel-height: 23.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--ace-roulette-panel-width);
    gap: 0.85rem;
    align-items: stretch;
    width: 100%;
}

.pun.oemt-app .ace-index-top-shout {
    min-width: 0;
    min-height: var(--ace-roulette-panel-height);
}

/* Shout — stretches with the row so it always matches the roulette panel */
.pun.oemt-app .ace-index-top-shout .ace-shout-block {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: var(--ace-roulette-panel-height);
    box-sizing: border-box;
}

.pun.oemt-app .ace-shout-block {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-bottom: 0;
    box-sizing: border-box;
}

.pun.oemt-app .ace-shout-block > h2.ace-shout-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 0 0.4rem !important;
    margin-bottom: 0 !important;
    font-size: 0.6875rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--oemt-dim) !important;
    border-bottom: none !important;
    overflow: visible;
}

.pun.oemt-app .ace-shout-block > h2.ace-shout-head > span {
    flex: 0 1 auto;
    min-width: 0;
}

.pun.oemt-app .ace-shout-block > h2.ace-shout-head .ace-shout-clear-btn {
    flex: 0 0 auto;
    margin: 0 0 0 auto;
}

.pun.oemt-app .ace-shout-block .box,
.pun.oemt-app .ace-shout-block .inbox,
.pun.oemt-app .ace-shout-block #shout {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.pun.oemt-app .ace-shout-block .box {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden !important;
    border: 1px solid var(--oemt-border) !important;
    border-radius: var(--oemt-radius-sm) !important;
    background: var(--oemt-bg-card) !important;
}

.pun.oemt-app .ace-shout-block .inbox {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.pun.oemt-app .ace-shout-block #shout {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.pun.oemt-app #shout #shout-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    font-size: 0.6875rem;
    line-height: 1.4;
}

.pun.oemt-app #shout .shout-compose-bar {
    min-height: 1.75rem;
    height: 1.75rem;
}

.pun.oemt-app #shout input#shouttext {
    height: 1.75rem !important;
    line-height: 1.75rem !important;
    font-size: 0.6875rem !important;
}

.pun.oemt-app #shout .ace-shout-emoji-slot {
    height: 1.75rem !important;
}

/* Invite roulette — fixed width; min-height matches shout; message slot stops text shifting layout */
.pun.oemt-app .ace-roulette-block {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: var(--ace-roulette-panel-width);
    min-width: var(--ace-roulette-panel-width);
    max-width: var(--ace-roulette-panel-width);
    min-height: var(--ace-roulette-panel-height);
    margin: 0;
    box-sizing: border-box;
}

.pun.oemt-app .ace-roulette-head {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    line-height: 1.2;
}

.pun.oemt-app .ace-roulette-head span {
    display: inline-block;
    background: linear-gradient(
        90deg,
        #ff3366 0%,
        #ff9933 16%,
        #ffee33 32%,
        #33ff77 48%,
        #33bbff 64%,
        #aa55ff 80%,
        #ff3366 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: ace-roulette-rainbow 3.5s linear infinite;
}

@keyframes ace-roulette-rainbow {
    to {
        background-position: 200% center;
    }
}

.pun.oemt-app .ace-roulette-block > .box {
    display: flex;
    flex-direction: column;
    flex: 1;
    border: 1px solid var(--oemt-border) !important;
    border-radius: var(--oemt-radius-sm) !important;
    background: var(--oemt-bg-card) !important;
}

.pun.oemt-app .ace-roulette-inbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.55rem 0.55rem !important;
    height: 100%;
    box-sizing: border-box;
}

.pun.oemt-app .ace-roulette-message {
    position: relative;
    width: 100%;
    height: 3.5rem;
    min-height: 3.5rem;
    flex-shrink: 0;
    overflow: visible;
}

.pun.oemt-app .ace-roulette-message.ace-roulette-message--invite-win {
    height: 4.25rem;
    min-height: 4.25rem;
}

.pun.oemt-app .ace-roulette-block.ace-roulette-block--casino-win::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 30;
    border-radius: inherit;
    pointer-events: none;
    animation: ace-roulette-casino-flash 0.42s ease-in-out 8;
    background: transparent;
}

.pun.oemt-app .ace-roulette-block.ace-roulette-block--casino-win .ace-roulette-inbox {
    animation: ace-roulette-casino-glow 0.55s ease-in-out 6;
}

@keyframes ace-roulette-casino-flash {
    0%,
    100% {
        background: transparent;
        box-shadow: inset 0 0 0 0 transparent;
    }
    50% {
        background: rgba(255, 215, 80, 0.22);
        box-shadow:
            inset 0 0 28px rgba(255, 220, 90, 0.45),
            0 0 22px rgba(255, 196, 40, 0.35);
    }
}

@keyframes ace-roulette-casino-glow {
    0%,
    100% {
        filter: none;
    }
    50% {
        filter: brightness(1.18) saturate(1.2);
    }
}

.pun.oemt-app .ace-roulette-fireworks-host {
    position: absolute;
    inset: -0.35rem -0.15rem;
    pointer-events: none;
    overflow: visible;
    z-index: 4;
}

.pun.oemt-app .ace-roulette-fireworks-host:empty {
    display: none;
}

.pun.oemt-app .ace-roulette-fireworks {
    position: absolute;
    inset: 0;
    overflow: visible;
}

.pun.oemt-app .ace-roulette-firework {
    position: absolute;
    bottom: 18%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 6px currentColor;
}

.pun.oemt-app .ace-roulette-firework--left {
    left: -2px;
    color: #ffd76a;
    animation: ace-roulette-firework-left 1.05s ease-out forwards;
}

.pun.oemt-app .ace-roulette-firework--right {
    right: -2px;
    color: #ff9f43;
    animation: ace-roulette-firework-right 1.05s ease-out forwards;
}

.pun.oemt-app .ace-roulette-firework--spark {
    width: 3px;
    height: 3px;
}

.pun.oemt-app .ace-roulette-firework--spark::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, transparent 72%);
}

@keyframes ace-roulette-firework-left {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.4);
    }
    12% {
        opacity: 1;
    }
    45% {
        opacity: 1;
        transform: translate(28px, -34px) scale(1.1);
    }
    70% {
        opacity: 0.85;
        transform: translate(52px, -18px) scale(0.85);
        box-shadow:
            0 0 8px #ffd76a,
            14px -10px 0 2px rgba(255, 120, 60, 0.75),
            22px -22px 0 1px rgba(255, 255, 255, 0.8),
            8px -28px 0 2px rgba(255, 200, 80, 0.7);
    }
    100% {
        opacity: 0;
        transform: translate(62px, -8px) scale(0.3);
    }
}

@keyframes ace-roulette-firework-right {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.4);
    }
    12% {
        opacity: 1;
    }
    45% {
        opacity: 1;
        transform: translate(-28px, -34px) scale(1.1);
    }
    70% {
        opacity: 0.85;
        transform: translate(-52px, -18px) scale(0.85);
        box-shadow:
            0 0 8px #ff9f43,
            -14px -10px 0 2px rgba(255, 120, 60, 0.75),
            -22px -22px 0 1px rgba(255, 255, 255, 0.8),
            -8px -28px 0 2px rgba(255, 200, 80, 0.7);
    }
    100% {
        opacity: 0;
        transform: translate(-62px, -8px) scale(0.3);
    }
}

.pun.oemt-app .ace-roulette-hint,
.pun.oemt-app .ace-roulette-result {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 0.45rem;
    box-sizing: border-box;
}

.pun.oemt-app .ace-roulette-result[hidden],
.pun.oemt-app .ace-roulette-hint[hidden] {
    display: none;
}

.pun.oemt-app .ace-roulette-stage {
    position: relative;
    width: 13.5rem;
    height: 13.5rem;
    flex-shrink: 0;
}

.pun.oemt-app .ace-roulette-pointer {
    position: absolute;
    top: -0.15rem;
    left: 50%;
    z-index: 3;
    width: 0;
    height: 0;
    margin-left: -0.45rem;
    border-left: 0.45rem solid transparent;
    border-right: 0.45rem solid transparent;
    border-top: 0.75rem solid var(--oemt-accent-soft);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.pun.oemt-app .ace-roulette-wheel-wrap {
    position: absolute;
    inset: 0.35rem;
    border-radius: 50%;
    padding: 0.2rem;
    background: linear-gradient(145deg, #3a3a44, #141418);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.pun.oemt-app .ace-roulette-wheel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--oemt-border);
    box-sizing: border-box;
    transform: rotate(0deg);
    overflow: hidden;
}

.pun.oemt-app .ace-roulette-wheel::after {
    content: "";
    position: absolute;
    inset: 32%;
    border-radius: 50%;
    background: var(--oemt-bg-card);
    border: 1px solid var(--oemt-border);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.pun.oemt-app .ace-roulette-labels {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.pun.oemt-app .ace-roulette-label {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 3.25rem;
    margin-left: -1.625rem;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-align: center;
    color: #d8d8e2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
    transform-origin: center center;
    white-space: nowrap;
}

.pun.oemt-app .ace-roulette-label--win {
    color: #fff;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.pun.oemt-app .ace-roulette-label--shard {
    color: #fde68a;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.pun.oemt-app .ace-roulette-shards {
    margin: 0.2rem 0 0;
    min-height: 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2rem;
    text-align: center;
    color: #fbbf24;
}

.pun.oemt-app .ace-roulette-shards[hidden] {
    display: none !important;
}

.pun.oemt-app .ace-roulette-hint {
    font-size: 0.75rem;
    line-height: 1.35;
    text-align: center;
    color: #b4b4be;
}

.pun.oemt-app .ace-roulette-result {
    font-size: 0.75rem;
    line-height: 1.35;
    text-align: center;
    border-radius: var(--oemt-radius-sm);
}

.pun.oemt-app .ace-roulette-result--win {
    z-index: 5;
    flex-direction: column;
    gap: 0.15rem;
    color: #fff6c2;
    background: linear-gradient(135deg, rgba(120, 60, 10, 0.55), rgba(180, 120, 20, 0.35));
    border: 1px solid rgba(255, 210, 80, 0.55);
    box-shadow:
        0 0 18px rgba(255, 196, 40, 0.35),
        inset 0 0 12px rgba(255, 230, 120, 0.12);
    animation: ace-roulette-win-pulse 0.65s ease-in-out infinite;
}

.pun.oemt-app .ace-roulette-win-headline {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #fff3b0;
    text-shadow:
        0 0 8px rgba(255, 220, 90, 0.9),
        0 0 16px rgba(255, 160, 40, 0.55),
        0 1px 2px rgba(0, 0, 0, 0.85);
}

@keyframes ace-roulette-win-pulse {
    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.03);
        filter: brightness(1.15);
    }
}

.pun.oemt-app .ace-roulette-result--miss {
    color: var(--oemt-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--oemt-border);
}

.pun.oemt-app .ace-roulette-result--shard {
    color: #fde68a;
    background: rgba(180, 83, 9, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.pun.oemt-app .ace-roulette-actions {
    width: 100%;
    margin-top: auto;
    text-align: center;
}

.pun.oemt-app .ace-roulette-spin-btn {
    width: 100%;
    padding: 0.45rem 0.65rem !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    background: var(--oemt-accent) !important;
    border: 1px solid var(--oemt-accent) !important;
    border-radius: var(--oemt-radius-sm) !important;
}

.pun.oemt-app .ace-roulette-spin-btn:hover:not(:disabled) {
    background: var(--oemt-accent-soft) !important;
    border-color: var(--oemt-accent-soft) !important;
}

.pun.oemt-app .ace-roulette-spin-btn:disabled {
    opacity: 0.72;
    color: #fff !important;
    cursor: not-allowed;
}

.pun.oemt-app .ace-roulette-cooldown {
    margin: 0.3rem 0 0;
    min-height: 1rem;
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1rem;
    color: #a8a8b4;
}

/* Search results */
.pun.oemt-app ul.ace-search-results > li {
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--oemt-bg-card);
    border: 1px solid var(--oemt-border);
    border-radius: var(--oemt-radius-sm);
    border-bottom: 1px solid var(--oemt-border) !important;
}

/* Board stats + online — index footer card */
.pun.oemt-app #brdstats.ace-brdstats {
    margin-top: 0.15rem;
}

.pun.oemt-app #brdstats.ace-brdstats > .box {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--oemt-border) !important;
    border-radius: var(--oemt-radius) !important;
}

.pun.oemt-app #brdstats .box .inbox {
    padding: 0.55rem 0.75rem 0.65rem !important;
    font-size: 0.75rem;
    color: var(--oemt-muted);
}

.pun.oemt-app #brdstats h2 {
    padding-left: 0.15rem !important;
}

.pun.oemt-app #brdstats.ace-brdstats > h2 {
    display: none;
}

.pun.oemt-app #onlinelist.ace-online-list {
    margin: 0;
    line-height: 1.45;
    padding-top: 0;
    border-top: none;
}

@media (max-width: 860px) {
    .pun.oemt-app #onlinelist.ace-online-list {
        padding-top: 0.85rem;
        border-top: 1px solid var(--oemt-border);
    }
}

.pun.oemt-app #onlinelist.ace-online-list dt.ace-online-count,
.pun.oemt-app #onlinelist.ace-online-list dd.ace-online-names {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    float: none;
    clear: none;
}

.pun.oemt-app #onlinelist.ace-online-list dt.ace-online-count {
    margin: 0 0 0.35rem;
    font-weight: 600;
    color: var(--oemt-text);
}

.pun.oemt-app #onlinelist.ace-online-list dd.ace-online-names {
    font-size: 0.8125rem;
    line-height: 1.5;
}

.pun.oemt-app #onlinelist.ace-online-list .ace-online-label {
    font-weight: 600;
    color: var(--oemt-muted);
}

.pun.oemt-app #onlinelist.ace-online-list dd.ace-online-names a {
    display: inline;
    white-space: normal;
    text-decoration: none;
}

.pun.oemt-app #onlinelist.ace-online-list dd.ace-online-names a:hover {
    text-decoration: underline;
}

/* Clean accents — replace legacy yellow / lime / gold (admin glow kept in site.css) */
.pun.oemt-app .usergroup-player,
.pun.oemt-app a.usergroup-player,
.pun.oemt-app a.usergroup-player:link,
.pun.oemt-app a.usergroup-player:visited,
.pun.oemt-app span.usergroup-player,
.pun.oemt-app #punviewtopic .postleft dt a.usergroup-player {
    color: var(--oemt-role-mod) !important;
    font-weight: 600 !important;
}

.pun.oemt-app a.usergroup-player:hover {
    color: #bfdbfe !important;
}

.pun.oemt-app #shout span.usergroup-bot,
.pun.oemt-app a.usergroup-bot,
.pun.oemt-app span.usergroup-bot {
    color: #86efac !important;
    text-shadow: none !important;
    filter: none !important;
    animation: none !important;
}

.pun.oemt-app .stickytext {
    color: var(--oemt-accent-soft) !important;
}

.pun.oemt-app .postmsg ins {
    background-color: rgba(139, 92, 246, 0.18) !important;
    color: inherit;
    text-decoration: none;
}

.oemt-sidebar-nav #navpremium.nav-buy-sub a {
    color: var(--oemt-accent-soft) !important;
}

.oemt-sidebar-nav #navpremium.nav-buy-sub a:hover {
    color: var(--oemt-text) !important;
}

.pun.oemt-app .ace-broadcast-wrap.ace-broadcast-has-rgb-strip::before {
    background: conic-gradient(
        from 0deg,
        #8b5cf6,
        #a78bfa,
        #6ea8fe,
        #c084fc,
        #8b5cf6
    ) !important;
    animation-duration: 8s !important;
    filter: brightness(0.92) !important;
}

/* —— Administration —— */
.pun.oemt-app #ace-admin.ace-admin {
    margin-bottom: 1.5rem;
}

.pun.oemt-app #ace-admin.ace-admin-combined .ace-admin-section {
    display: none;
    scroll-margin-top: 6rem;
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.pun.oemt-app #ace-admin.ace-admin-combined .ace-admin-section.is-active {
    display: block;
}

.pun.oemt-app #ace-admin.ace-admin-combined #overview:target,
.pun.oemt-app #ace-admin.ace-admin-combined #users:target,
.pun.oemt-app #ace-admin.ace-admin-combined #invites:target,
.pun.oemt-app #ace-admin.ace-admin-combined #tags:target {
    display: block;
}

.pun.oemt-app #ace-admin.ace-admin-combined .ace-admin-section-head {
    margin: 0 0 1rem;
}

.pun.oemt-app #ace-admin.ace-admin-combined .ace-admin-section-title {
    margin: 0 0 0.25rem;
    font-family: Outfit, Syne, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--oemt-text);
}

.pun.oemt-app #ace-admin.ace-admin-combined .ace-admin-section-desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--oemt-muted);
}

.pun.oemt-app #ace-admin.ace-admin-combined a.ace-admin-overview-card {
    color: inherit;
    text-decoration: none;
}

.pun.oemt-app #ace-admin.ace-admin > h2 {
    padding: 0 0 0.35rem !important;
    margin: 0 0 1rem !important;
    font-family: Outfit, Syne, sans-serif !important;
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
    color: var(--oemt-text) !important;
}

.pun.oemt-app #ace-admin.ace-admin > .box {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-inbox {
    padding: 1rem 0.35rem 0 0.45rem;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-subnav {
    margin: 0.25rem 0 1.15rem;
    padding: 0.35rem 0.15rem 0 0.1rem;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-subnav ul {
    gap: 0.4rem;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-subnav a {
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--oemt-muted) !important;
    background: var(--oemt-bg-card);
    border: 1px solid var(--oemt-border);
    border-radius: var(--oemt-radius-sm);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-subnav a:hover {
    border-color: rgba(139, 92, 246, 0.4) !important;
    background: var(--oemt-bg-card-hover) !important;
    color: var(--oemt-text) !important;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-subnav li.isactive a {
    background: rgba(139, 92, 246, 0.14) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
    color: var(--oemt-text) !important;
    font-weight: 600;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-lead {
    margin: 0 0 1.15rem;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--oemt-muted);
    max-width: none;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-flash.msg-ok,
.pun.oemt-app #ace-admin.ace-admin .ace-admin-flash.msg-err,
.pun.oemt-app #ace-admin.ace-admin .ace-admin-prod-warn {
    max-width: none;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-flash.msg-ok,
.pun.oemt-app #ace-admin.ace-admin .ace-admin-flash.msg-err {
    margin: 0 0 1rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--oemt-radius-sm);
    font-size: 0.8125rem;
    line-height: 1.45;
    border: 1px solid transparent;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-flash.msg-ok {
    color: #b8f0c8 !important;
    background: rgba(34, 120, 68, 0.18) !important;
    border-color: rgba(72, 180, 110, 0.28) !important;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-flash.msg-err {
    color: #f0b8b8 !important;
    background: rgba(140, 48, 48, 0.18) !important;
    border-color: rgba(200, 80, 80, 0.28) !important;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-prod-warn {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--oemt-radius-sm);
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #e8d8ff !important;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.28);
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-prod-warn strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--oemt-accent-soft);
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-prod-warn ul {
    margin: 0;
    padding-left: 1.1rem;
}

.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem 1rem;
    min-width: 0;
    border: 1px solid var(--oemt-border) !important;
    border-radius: var(--oemt-radius) !important;
    background: var(--oemt-bg-card) !important;
    box-shadow: none !important;
}

.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel:last-child {
    margin-bottom: 0;
}

.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel legend {
    margin: 0 0 0 0.35rem !important;
    padding: 0 0.4rem !important;
    border: none !important;
    background: var(--oemt-bg-card) !important;
    font-family: Outfit, sans-serif !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--oemt-accent-soft) !important;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-count {
    margin-left: 0.45rem;
    padding: 0.1rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #fff !important;
    background: var(--oemt-accent) !important;
    border: none;
    border-radius: 999px;
    vertical-align: middle;
}

.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel > .ace-admin-hint,
.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel > .ace-admin-form,
.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel > .ace-admin-card,
.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel > .ace-admin-banlist,
.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel > .ace-admin-moderation-grid,
.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel > .ace-admin-account-grid,
.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel > .ace-admin-users-search,
.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel > .ace-admin-table-wrap,
.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel > .ace-admin-pagination,
.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel > .ace-admin-users-sensitive-hint,
.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel--moderation > .ace-admin-moderation-grid,
.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel--account > .ace-admin-account-grid {
    margin-left: 0;
    margin-right: 0;
}

.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel > .ace-admin-hint {
    margin-top: 1rem;
    padding: 0.65rem 0.8rem;
    font-size: 0.8125rem;
    color: var(--oemt-muted);
    background: rgba(139, 92, 246, 0.06);
    border-left: 3px solid var(--oemt-accent);
    border-radius: 0 var(--oemt-radius-sm) var(--oemt-radius-sm) 0;
}

.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel > .ace-admin-hint code {
    font-size: 0.75rem;
    color: var(--oemt-text);
}

.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel > .ace-admin-hint.ace-admin-hint--warn {
    color: #e8c8c8;
    background: rgba(180, 60, 60, 0.1);
    border-left-color: #c06060;
}

.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel--purge {
    border-color: rgba(180, 70, 70, 0.35) !important;
    background: rgba(40, 24, 24, 0.55) !important;
}

.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel--purge legend {
    color: #f0c0c0 !important;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-card,
.pun.oemt-app #ace-admin.ace-admin .ace-admin-moderation-col {
    padding: 0.9rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--oemt-border);
    border-radius: var(--oemt-radius-sm);
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-card-title,
.pun.oemt-app #ace-admin.ace-admin .ace-admin-action-title {
    margin: 0 0 0.35rem;
    font-family: Outfit, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--oemt-text);
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-card-desc,
.pun.oemt-app #ace-admin.ace-admin .ace-admin-field-hint {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--oemt-muted);
}

.pun.oemt-app #ace-admin.ace-admin label.ace-admin-field {
    margin-top: 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--oemt-muted);
}

.pun.oemt-app #ace-admin.ace-admin label.ace-admin-field input[type="text"],
.pun.oemt-app #ace-admin.ace-admin label.ace-admin-field input[type="number"],
.pun.oemt-app #ace-admin.ace-admin label.ace-admin-field input[type="password"],
.pun.oemt-app #ace-admin.ace-admin label.ace-admin-field input[type="search"],
.pun.oemt-app #ace-admin.ace-admin label.ace-admin-field select,
.pun.oemt-app #ace-admin.ace-admin .ace-admin-form textarea {
    margin-top: 0.35rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.8125rem;
    color: var(--oemt-text) !important;
    background: var(--oemt-bg-main) !important;
    border: 1px solid var(--oemt-border) !important;
    border-radius: var(--oemt-radius-sm) !important;
}

.pun.oemt-app #ace-admin.ace-admin label.ace-admin-field input:focus,
.pun.oemt-app #ace-admin.ace-admin label.ace-admin-field select:focus,
.pun.oemt-app #ace-admin.ace-admin .ace-admin-form textarea:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.55) !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15) !important;
}

.pun.oemt-app #ace-admin.ace-admin label.ace-admin-field.ace-admin-check {
    margin-top: 0.85rem;
    font-size: 0.8125rem;
    color: var(--oemt-muted);
}

.pun.oemt-app #ace-admin.ace-admin label.ace-admin-field.ace-admin-check input[type="checkbox"] {
    accent-color: var(--oemt-accent);
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-form .buttons {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.pun.oemt-app #ace-admin.ace-admin .buttons .button {
    margin: 0 !important;
    padding: 0.5rem 0.95rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    border-radius: var(--oemt-radius-sm) !important;
    cursor: pointer;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-btn-primary {
    background: var(--oemt-accent) !important;
    border-color: var(--oemt-accent) !important;
    color: #fff !important;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-btn-primary:hover {
    background: var(--oemt-accent-soft) !important;
    border-color: var(--oemt-accent-soft) !important;
    color: #fff !important;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-btn-secondary,
.pun.oemt-app #ace-admin.ace-admin a.button.ace-admin-btn-secondary {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--oemt-border) !important;
    color: var(--oemt-muted) !important;
    text-decoration: none !important;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-btn-secondary:hover,
.pun.oemt-app #ace-admin.ace-admin a.button.ace-admin-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: var(--oemt-text) !important;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-btn-danger {
    background: rgba(180, 60, 60, 0.22) !important;
    border-color: rgba(200, 80, 80, 0.45) !important;
    color: #f0c8c8 !important;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-btn-danger:hover {
    background: rgba(200, 70, 70, 0.32) !important;
    border-color: rgba(220, 90, 90, 0.55) !important;
    color: #fff !important;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-overview-cards {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
}
@media (max-width: 900px) {
    .pun.oemt-app #ace-admin.ace-admin .ace-admin-overview-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 520px) {
    .pun.oemt-app #ace-admin.ace-admin .ace-admin-overview-cards {
        grid-template-columns: 1fr;
    }
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-moderation-grid {
    display: grid;
    gap: 0.85rem 1rem;
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 720px) {
    .pun.oemt-app #ace-admin.ace-admin .ace-admin-moderation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel > .ace-admin-card {
    margin-top: 0.85rem;
}

.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel > .ace-admin-card:first-of-type {
    margin-top: 0.65rem;
}

.pun.oemt-app #ace-admin.ace-admin fieldset.ace-admin-panel > .ace-admin-card + .ace-admin-card {
    margin-top: 0.75rem;
}

.pun.oemt-app #ace-admin.ace-admin a.ace-admin-overview-card {
    padding: 1.1rem 1.15rem;
    background: var(--oemt-bg-card);
    border: 1px solid var(--oemt-border);
    border-radius: var(--oemt-radius);
    box-shadow: none;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.pun.oemt-app #ace-admin.ace-admin a.ace-admin-overview-card:hover {
    border-color: rgba(139, 92, 246, 0.45);
    background: var(--oemt-bg-card-hover);
    transform: translateY(-1px);
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-overview-card-title {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--oemt-accent-soft) !important;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-overview-card-stat {
    margin: 0.45rem 0 0.25rem;
    font-family: Outfit, sans-serif;
    font-size: 2rem;
    color: var(--oemt-text);
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-overview-card-desc {
    font-size: 0.8125rem;
    color: var(--oemt-muted);
}

.pun.oemt-app #ace-admin.ace-admin li.ace-admin-banrow {
    padding: 0.75rem 0.85rem;
    font-size: 0.8125rem;
    color: var(--oemt-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--oemt-border);
    border-radius: var(--oemt-radius-sm);
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-banrow-name {
    font-size: 0.875rem;
    color: var(--oemt-text);
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-ban-reason {
    border-top-color: var(--oemt-border);
    color: var(--oemt-dim);
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-table-wrap {
    margin-top: 1rem;
    max-width: 100%;
    border: 1px solid var(--oemt-border);
    border-radius: var(--oemt-radius-sm);
    overflow-x: auto;
}

.pun.oemt-app #ace-admin.ace-admin table.ace-admin-forum-table--unified {
    table-layout: fixed;
    width: 100%;
    min-width: 42rem;
    border-collapse: collapse;
}

.pun.oemt-app #ace-admin.ace-admin table.ace-admin-forum-table--unified .ace-admin-forum-col-board {
    width: 28%;
}

.pun.oemt-app #ace-admin.ace-admin table.ace-admin-forum-table--unified .ace-admin-forum-col-topics {
    width: 4.5rem;
}

.pun.oemt-app #ace-admin.ace-admin table.ace-admin-forum-table--unified .ace-admin-forum-col-delete {
    width: 9.5rem;
}

.pun.oemt-app #ace-admin.ace-admin table.ace-admin-forum-table--unified th,
.pun.oemt-app #ace-admin.ace-admin table.ace-admin-forum-table--unified td {
    border-bottom: 1px solid var(--oemt-border);
    padding: 0.55rem 0.7rem;
    vertical-align: top;
}

.pun.oemt-app #ace-admin.ace-admin table.ace-admin-forum-table--unified .ace-admin-forum-category-row td {
    padding-top: 0.9rem;
    padding-bottom: 0.45rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--oemt-border);
}

.pun.oemt-app #ace-admin.ace-admin table.ace-admin-forum-table--unified tbody > .ace-admin-forum-category-row:first-child td {
    border-top: none;
}

.pun.oemt-app #ace-admin.ace-admin table.ace-admin-forum-table--unified .ace-admin-forum-section-head {
    margin: 0;
}

.pun.oemt-app #ace-admin.ace-admin table.ace-admin-forum-table--unified .ace-admin-forum-rules-cell {
    font-size: 0.6875rem;
    line-height: 1.45;
    color: var(--oemt-dim);
}

.pun.oemt-app #ace-admin.ace-admin table.ace-admin-forum-table--unified .ace-admin-forum-topics-cell {
    text-align: center;
    vertical-align: middle;
}

.pun.oemt-app #ace-admin.ace-admin table.ace-admin-forum-table--unified .ace-admin-forum-delete-cell {
    text-align: right;
    vertical-align: middle;
    white-space: nowrap;
}

.pun.oemt-app #ace-admin.ace-admin table.ace-admin-users-table {
    font-size: 0.75rem;
    border-collapse: collapse;
}

.pun.oemt-app #ace-admin.ace-admin table.ace-admin-users-table th,
.pun.oemt-app #ace-admin.ace-admin table.ace-admin-users-table td {
    border: none;
    border-bottom: 1px solid var(--oemt-border);
    padding: 0.55rem 0.7rem;
}

.pun.oemt-app #ace-admin.ace-admin table.ace-admin-users-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--oemt-dim);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pun.oemt-app #ace-admin.ace-admin table.ace-admin-users-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

.pun.oemt-app #ace-admin.ace-admin table.ace-admin-users-table tbody tr:last-child td {
    border-bottom: none;
}

.pun.oemt-app #ace-admin.ace-admin tr.ace-admin-users-row--banned {
    background: rgba(140, 50, 50, 0.12) !important;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-users-status {
    color: var(--oemt-accent-soft);
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-users-status--banned {
    color: #e09090;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-users-sensitive-hint {
    margin-bottom: 0.65rem;
    font-size: 0.75rem;
    color: var(--oemt-dim);
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-pagination {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--oemt-border);
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-pagination-summary,
.pun.oemt-app #ace-admin.ace-admin .ace-admin-pagination-summary--solo {
    font-size: 0.8125rem;
    color: var(--oemt-muted);
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-pagination-num {
    color: var(--oemt-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--oemt-border);
    border-radius: var(--oemt-radius-sm);
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-pagination-num:hover {
    color: #fff !important;
    background: var(--oemt-accent) !important;
    border-color: var(--oemt-accent) !important;
}

.pun.oemt-app #ace-admin.ace-admin .ace-admin-pagination-current {
    color: #fff !important;
    background: var(--oemt-accent) !important;
    border: 1px solid var(--oemt-accent) !important;
    border-radius: var(--oemt-radius-sm);
}

.pun.oemt-app .ace-payment-history h3 {
    color: var(--oemt-accent-soft) !important;
}

.pun.oemt-app legend {
    color: var(--oemt-muted) !important;
}

/* Buttons */
.pun.oemt-app .ace-btn-newtopic {
    background: var(--oemt-accent) !important;
    border-color: var(--oemt-accent) !important;
    color: #fff !important;
    border-radius: var(--oemt-radius-sm) !important;
}

.pun.oemt-app .ace-btn-newtopic:hover {
    background: var(--oemt-accent-soft) !important;
    border-color: var(--oemt-accent-soft) !important;
}

.pun.oemt-app .button {
    border-radius: var(--oemt-radius-sm) !important;
}

/* Mobile: sidebar on top */
@media (max-width: 860px) {
    .oemt-shell {
        display: block;
    }

    .oemt-sidebar {
        position: relative;
        z-index: auto;
        grid-column: auto;
        grid-row: auto;
        width: auto;
        height: auto;
        min-height: 0;
        overflow: visible;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem 1rem;
        padding: 0.85rem 1rem;
        border-right: none;
        border-bottom: 1px solid var(--oemt-border);
    }

    .oemt-main {
        grid-column: auto;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .oemt-sidebar-brand h1 {
        margin: 0;
    }

    .oemt-sidebar-nav {
        flex: 1 1 100%;
        order: 3;
    }

    .oemt-sidebar-nav .oemt-nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .pun.oemt-app .oemt-sidebar-bottom {
        display: none;
    }

    #brdmain {
        padding: 1rem;
    }

    .pun.oemt-app .ace-index-top-row {
        grid-template-columns: 1fr;
    }

    .pun.oemt-app .ace-roulette-block {
        justify-self: center;
    }

    .pun.oemt-app .ace-idx-cat table.ace-forum-table tbody {
        grid-template-columns: 1fr;
    }

    .pun.oemt-app #vf table.ace-forum-table tr {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "dot title"
            "meta meta";
    }

    .pun.oemt-app #vf td.tc2,
    .pun.oemt-app #vf td.tcr {
        grid-area: meta;
        text-align: left;
        max-width: none;
    }

    .oemt-member-header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .oemt-member-avatar--lg {
        margin-top: -3.5rem;
    }

    .oemt-member-stats-bar {
        flex-direction: column;
        gap: 0.75rem;
    }

    .oemt-member-layout--with-media {
        grid-template-columns: 1fr;
    }

    .oemt-member-sidebar {
        order: -1;
    }

    .oemt-member-sidebar-card {
        position: static;
    }
}

/* —— Public member profile (oemt.club-style) —— */
.oemt-member-profile {
    font-family: 'Inter', 'IBM Plex Sans', sans-serif;
}

.oemt-member-breadcrumbs {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    color: var(--oemt-muted);
}

.oemt-member-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.oemt-member-breadcrumbs a {
    color: #6ee7b7 !important;
    text-decoration: none;
}

.oemt-member-breadcrumbs a:hover {
    text-decoration: underline;
}

.oemt-member-profile {
    max-width: 100%;
}

.oemt-member-alert {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #7f1d1d;
    border-radius: var(--oemt-radius-sm);
    background: rgba(127, 29, 29, 0.25);
    color: #fecaca;
}

.oemt-member-card {
    border: 1px solid #1a1a1a;
    border-radius: 14px;
    background: #0a0a0a;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.oemt-member-header {
    position: relative;
}

.oemt-member-header--hero {
    padding-bottom: 0;
}

.oemt-member-banner {
    position: relative;
    height: 13rem;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.15) 0%, rgba(10, 10, 10, 0.85) 100%),
        url('../assets/AIPHOTO.png.png') center 40% / cover no-repeat;
    background-size: cover;
    border-bottom: 1px solid #1a1a1a;
}

.oemt-member-banner--youtube {
    height: 20rem;
    background: #000;
    border-bottom: none;
}

.oemt-member-banner--custom {
    background-size: cover;
    background-repeat: no-repeat;
}

.oemt-member-banner-video {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.oemt-member-banner-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    max-width: none;
    border: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.oemt-member-banner-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.1) 0%, rgba(10, 10, 10, 0.35) 40%, rgba(10, 10, 10, 0.88) 78%, rgba(10, 10, 10, 0.98) 100%);
    pointer-events: none;
}

.oemt-member-audio-btn {
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.72);
    color: #f5f5f5;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.oemt-member-audio-btn:hover {
    background: rgba(24, 24, 24, 0.9);
    border-color: rgba(255, 255, 255, 0.32);
    transform: scale(1.04);
}

.oemt-member-audio-btn.is-unmuted {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
}

.oemt-member-audio-icon--unmuted {
    display: none;
}

.oemt-member-audio-btn.is-unmuted .oemt-member-audio-icon--muted {
    display: none;
}

.oemt-member-audio-btn.is-unmuted .oemt-member-audio-icon--unmuted {
    display: block;
}

.oemt-member-header-main {
    padding: 0 1.35rem 0.5rem;
}

.oemt-member-header-main--hero {
    margin-top: -4.5rem;
    padding: 0 1.5rem 0.75rem;
    position: relative;
    z-index: 2;
}

.oemt-member-header-top {
    display: flex;
    gap: 1.25rem;
    align-items: flex-end;
    margin-top: -3.25rem;
    position: relative;
    z-index: 1;
}

.oemt-member-header-main--hero .oemt-member-header-top {
    margin-top: 0;
    align-items: flex-end;
}

.oemt-member-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #262626;
    background: #141414;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.65);
}

.oemt-member-avatar img.ace-avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.oemt-member-avatar--lg {
    width: 7.5rem;
    height: 7.5rem;
    font-size: 2.4rem;
    font-weight: 700;
}

.oemt-member-header-main--hero .oemt-member-avatar--lg {
    width: 6.5rem;
    height: 6.5rem;
    border-width: 4px;
    border-color: #0a0a0a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
}

.oemt-member-avatar--fallback {
    color: var(--oemt-accent-soft);
    font-family: 'Outfit', sans-serif;
}

.oemt-member-identity {
    padding-bottom: 0.35rem;
    min-width: 0;
}

.oemt-member-name {
    margin: 0 0 0.35rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.oemt-member-header-main--hero .oemt-member-name {
    font-size: 2rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.oemt-member-name span,
.oemt-member-name a {
    font-weight: inherit !important;
}

.oemt-member-badge {
    display: inline-block;
    margin: 0 0 0.65rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
    border: 1px solid #f87171;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.45);
}

.oemt-member-badge--admin {
    background: linear-gradient(180deg, #7c3aed 0%, #5b21b6 100%);
    border-color: #8b5cf6;
    box-shadow: 0 2px 8px rgba(91, 33, 182, 0.45);
}

.oemt-member-badge--player {
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.oemt-member-meta {
    margin: 0;
    font-size: 0.84rem;
    color: var(--oemt-muted);
}

.oemt-member-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin: 0.15rem 0;
}

.oemt-member-meta dt {
    font-weight: 600;
    color: #c4b5fd;
}

.oemt-member-meta dd {
    margin: 0;
}

.oemt-member-meta em {
    font-style: normal;
    color: var(--oemt-text);
}

.oemt-member-meta-sep {
    opacity: 0.65;
}

.oemt-member-stats-bar {
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0.85rem 1.35rem;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    background: rgba(10, 10, 10, 0.88);
}

.oemt-member-stat {
    margin: 0;
    text-align: center;
}

.oemt-member-stat dt {
    font-size: 0.78rem;
    font-weight: 600;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.oemt-member-stat dd {
    margin: 0.2rem 0 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--oemt-text);
}

.oemt-member-stat dd a {
    color: var(--oemt-text) !important;
    text-decoration: none;
}

.oemt-member-stat dd a:hover {
    color: var(--oemt-accent-soft) !important;
}

.oemt-member-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.35rem 1rem;
}

.oemt-member-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #e5e5e5 !important;
    text-decoration: none;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: var(--oemt-radius-sm);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.oemt-member-btn:hover {
    background: #1f1f1f;
    border-color: #404040;
    color: #fff !important;
}

.oemt-member-find {
    position: relative;
}

.oemt-member-find-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 20;
    min-width: 14rem;
    padding: 0.5rem 0;
    background: #1a1028;
    border: 1px solid #6d28d9;
    border-radius: var(--oemt-radius-sm);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.oemt-member-find-title {
    margin: 0;
    padding: 0.35rem 0.85rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #a78bfa;
    border-bottom: 1px solid rgba(139, 92, 246, 0.25);
}

.oemt-member-find-menu a {
    display: block;
    padding: 0.5rem 0.85rem;
    font-size: 0.84rem;
    color: var(--oemt-text) !important;
    text-decoration: none;
}

.oemt-member-find-menu a:hover {
    background: rgba(109, 40, 217, 0.2);
}

.oemt-member-tabs {
    display: flex;
    gap: 0;
    border-top: 1px solid #1a1a1a;
    background: #0a0a0a;
}

.oemt-member-tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #737373 !important;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}

.oemt-member-tab:hover {
    color: #d4d4d4 !important;
}

.oemt-member-tab.is-active {
    color: #fff !important;
    border-bottom-color: #fff;
    background: transparent;
}

.oemt-member-layout {
    margin-top: 1rem;
}

.oemt-member-layout--with-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 1rem;
    align-items: start;
}

.oemt-member-panes {
    min-width: 0;
}

.oemt-member-online {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.15rem 0.45rem;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
    color: #86efac;
    background: rgba(22, 101, 52, 0.35);
    border: 1px solid rgba(74, 222, 128, 0.45);
    border-radius: 999px;
}

.oemt-member-tagline {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 500;
    color: #ddd6fe;
}

.oemt-member-location {
    margin: 0 0 0.5rem;
    font-size: 0.84rem;
    color: var(--oemt-muted);
}

.oemt-member-location::before {
    content: "⌖ ";
    color: #a78bfa;
}

.oemt-member-youtube {
    width: 100%;
}

.oemt-member-youtube-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: var(--oemt-radius-sm);
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(139, 92, 246, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.oemt-member-youtube-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.oemt-member-sidebar-card {
    padding: 1rem;
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: var(--oemt-radius);
    background: rgba(19, 6, 33, 0.75);
    position: sticky;
    top: 1rem;
}

.oemt-member-sidebar-title,
.oemt-member-media-title {
    margin: 0 0 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c4b5fd;
}

.oemt-member-media-panel {
    padding: 0.25rem 0;
}

.oemt-member-media-link {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
}

.oemt-member-media-link a {
    color: #a78bfa !important;
}

.oemt-member-panes {
    margin-top: 0;
}

.oemt-member-pane {
    border: 1px solid #1a1a1a;
    border-radius: var(--oemt-radius);
    background: #0a0a0a;
}

.oemt-member-feed {
    padding: 1rem 1.15rem 1.25rem;
}

.oemt-member-empty {
    margin: 0;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--oemt-muted);
    font-size: 0.92rem;
}

.oemt-member-post-card {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.oemt-member-post-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.oemt-member-post-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    color: var(--oemt-muted);
}

.oemt-member-post-forum {
    color: #a78bfa;
}

.oemt-member-post-topic {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    font-weight: 600;
}

.oemt-member-post-topic a {
    color: var(--oemt-text) !important;
    text-decoration: none;
}

.oemt-member-post-topic a:hover {
    color: var(--oemt-accent-soft) !important;
}

.oemt-member-post-body {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--oemt-muted);
}

.oemt-member-about {
    padding: 1.15rem 1.35rem 1.35rem;
}

.oemt-member-about-list {
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.oemt-member-about-list > div {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 0.75rem;
    font-size: 0.88rem;
}

.oemt-member-about-list dt {
    font-weight: 600;
    color: #c4b5fd;
}

.oemt-member-about-list dd {
    margin: 0;
    color: var(--oemt-text);
}

.oemt-member-signature {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 92, 246, 0.25);
}

.oemt-member-signature h3 {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a78bfa;
}

.oemt-member-signature-body {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--oemt-muted);
}

/* —— Public user page (oemt.club-style, full-bleed beside sidebar) —— */
.pun.oemt-app #brdmain:has(> #oemt-userpage-root.oemt-userpage-wrap) {
    padding: 0;
    gap: 0;
}

.oemt-userpage-wrap--settings-preview {
    min-height: 0;
    margin: 0;
}

.oemt-userpage-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: calc(100vh - 2px);
    min-height: calc(100dvh - 2px);
    overflow: hidden;
    /* fallback margins for browsers without :has() support */
    margin: -1.25rem -1.5rem -1.75rem;
    background: #050505;
    color: #e5e5e5;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

@supports selector(#a:has(> #b)) {
    .oemt-userpage-wrap {
        margin: 0;
        min-height: 100vh;
        min-height: 100dvh;
    }
}

.oemt-userpage-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.oemt-userpage-bg .oemt-member-banner-video {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.oemt-userpage-bg .oemt-member-banner-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 177.78vh); /* 16:9 cover of the full-height panel */
    height: max(100%, 56.25vw);
    max-width: none;
    border: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.oemt-userpage-bg--image {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.oemt-userpage-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(5, 5, 5, 0.7);
    pointer-events: none;
}

/* High specificity required: cobalt.min.css resets margin/padding on .pun div/p/h2 */
.oemt-userpage,
.pun.oemt-app div.oemt-userpage {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 0;
    box-sizing: border-box;
}


.oemt-userpage-main {
    flex: 1;
}

.oemt-userpage-back,
.pun.oemt-app a.oemt-userpage-back,
.pun.oemt-app a.oemt-userpage-back:link,
.pun.oemt-app a.oemt-userpage-back:visited {
    display: inline-block;
    margin-bottom: 2rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: #737373 !important;
    text-decoration: none !important;
}

.oemt-userpage-back:hover,
.pun.oemt-app a.oemt-userpage-back:hover {
    color: #d4d4d4 !important;
}

.oemt-userpage-head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    overflow: visible;
}

.oemt-userpage-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.oemt-userpage-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.oemt-userpage-avatar--fallback {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1rem;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 0.04em;
}

.oemt-userpage-id {
    min-width: 0;
    overflow: visible;
}

.oemt-userpage-namerow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.oemt-userpage-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.oemt-userpage-name {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #fafafa;
}

.pun .oemt-userpage-name span,
.pun .oemt-userpage-name a,
.oemt-userpage-name span {
    color: #fafafa !important;
    text-shadow: none !important;
    font-weight: 800 !important;
}

.oemt-userpage-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.5rem;
    border-radius: 4px;
    background: rgba(64, 64, 64, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: #a3a3a3;
}

.oemt-userpage-status-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: #737373;
}

.oemt-userpage-status--online {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #4ade80;
}

.oemt-userpage-status--online .oemt-userpage-status-dot {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.8);
}

.oemt-userpage-uid {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.5rem;
    border-radius: 4px;
    background: rgba(64, 64, 64, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    color: #a3a3a3;
}

.oemt-userpage-uid-label {
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #8a8a8a;
}

.oemt-userpage-uid code {
    font-family: inherit;
    font-size: inherit;
    color: #d4d4d4;
    background: transparent;
    border: 0;
    padding: 0;
}

.oemt-userpage-url,
.pun.oemt-app p.oemt-userpage-url {
    margin: 0.4rem 0 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: #525252;
    word-break: break-all;
}

.oemt-userpage-title,
.pun.oemt-app p.oemt-userpage-title {
    margin: 0.55rem 0 0;
    font-size: 0.86rem;
    color: #e5e5e5;
}

.oemt-userpage-pillrow,
.pun.oemt-app p.oemt-userpage-pillrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0.45rem 0 0;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.oemt-userpage-pillrow > .oemt-userpage-pill {
    flex: 0 0 auto;
    align-self: center;
}

.oemt-userpage-pillrow > .ace-custom-tag-wrap {
    flex: 0 0 auto;
    align-self: center;
}

.oemt-userpage-pill {
    display: inline-block;
    padding: 0.12rem 0.5rem;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #d4d4d4;
}

.oemt-userpage-pill--red {
    border-color: rgba(230, 21, 21, 0.6);
    background: rgba(230, 21, 21, 0.12);
    color: #f87171;
}

.oemt-userpage-pill--blue {
    border-color: rgba(96, 165, 250, 0.55);
    background: rgba(96, 165, 250, 0.1);
    color: #93c5fd;
}

.oemt-userpage-pill--gold {
    border-color: rgba(234, 179, 8, 0.55);
    background: rgba(234, 179, 8, 0.1);
    color: #facc15;
}

.oemt-userpage-pill--green {
    border-color: rgba(74, 222, 128, 0.5);
    background: rgba(74, 222, 128, 0.1);
    color: #86efac;
}

.oemt-userpage-pill--purple {
    border-color: rgba(167, 139, 250, 0.55);
    background: rgba(167, 139, 250, 0.1);
    color: #c4b5fd;
}

/* Custom profile tags — full visual effects */
.ace-custom-tag-wrap {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    box-sizing: border-box;
    border-radius: var(--ace-custom-tag-radius, 4px);
    isolation: isolate;
    overflow: visible;
    z-index: 2;
}

.ace-custom-tag-wrap.ace-custom-tag-wrap--particle-overflow {
    overflow: visible;
}

.ace-custom-tag-inner-wrap {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    box-sizing: border-box;
    border-radius: var(--ace-custom-tag-radius, 4px);
    isolation: isolate;
}

@property --ace-custom-tag-rgb-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.ace-custom-tag-wrap.ace-custom-tag-has-rgb-strip,
.ace-custom-tag-inner-wrap.ace-custom-tag-has-rgb-strip {
    --ace-custom-tag-rgb-width: 2px;
    --ace-custom-tag-rgb-angle: 0deg;
    padding: var(--ace-custom-tag-rgb-width);
    overflow: hidden;
}

.ace-custom-tag-wrap.ace-custom-tag-has-rgb-strip::before,
.ace-custom-tag-inner-wrap.ace-custom-tag-has-rgb-strip::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 0;
    border-radius: inherit;
    box-sizing: border-box;
    padding: var(--ace-custom-tag-rgb-width);
    background: conic-gradient(
        from var(--ace-custom-tag-rgb-angle),
        #ff0000 0deg,
        #ff8800 60deg,
        #ffff00 120deg,
        #00ff00 180deg,
        #0088ff 240deg,
        #8800ff 300deg,
        #ff0000 360deg
    );
    filter: brightness(var(--ace-custom-tag-rgb-brightness, 100%));
    pointer-events: none;
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: ace-custom-tag-rgb-line-chase var(--ace-custom-tag-rgb-speed, 3s) linear infinite;
}

@keyframes ace-custom-tag-rgb-line-chase {
    to {
        --ace-custom-tag-rgb-angle: 360deg;
    }
}

.ace-custom-tag-wrap.ace-custom-tag-has-rgb-strip > .ace-custom-tag-pill,
.ace-custom-tag-inner-wrap.ace-custom-tag-has-rgb-strip > .ace-custom-tag-pill {
    position: relative;
    z-index: 1;
}

.ace-custom-tag-particle-stage {
    position: relative;
    display: inline-flex;
    overflow: visible;
    z-index: 1;
}

.ace-custom-tag-particle-aura {
    position: absolute;
    z-index: 0;
    inset: calc(-1.65 * var(--ace-custom-tag-particle-spread, 8px));
    border-radius: calc(var(--ace-custom-tag-radius, 4px) + var(--ace-custom-tag-particle-spread, 8px));
    pointer-events: none;
    opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100 * 0.42);
    background: radial-gradient(
        ellipse at center,
        color-mix(in srgb, var(--ace-custom-tag-particle-color, #ffffff) 42%, transparent) 0%,
        color-mix(in srgb, var(--ace-custom-tag-particle-color-2, #ffd76a) 18%, transparent) 38%,
        transparent 72%
    );
    animation: ace-custom-tag-particle-aura-pulse var(--ace-custom-tag-particle-speed, 2.4s) ease-in-out infinite;
}

.ace-custom-tag-particle-outer {
    position: absolute;
    z-index: 3;
    inset: calc(-1 * var(--ace-custom-tag-particle-spread, 8px));
    border-radius: calc(var(--ace-custom-tag-radius, 4px) + var(--ace-custom-tag-particle-spread, 8px) * 0.65);
    pointer-events: none;
    opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100);
    mix-blend-mode: screen;
}

.ace-custom-tag-particle-inner {
    position: absolute;
    z-index: 4;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100 * 0.92);
    mix-blend-mode: screen;
}

.ace-custom-tag-particle-stage > .ace-custom-tag-pill,
.ace-custom-tag-inner-wrap > .ace-custom-tag-pill,
.ace-custom-tag-wrap.ace-custom-tag-has-rgb-strip:not(.ace-custom-tag-has-particles) > .ace-custom-tag-pill {
    position: relative;
    z-index: 2;
}

.ace-custom-tag-particle--sparkle .ace-custom-tag-particle-stage,
.ace-custom-tag-particle--sparkle .ace-custom-tag-particle-outer,
.ace-custom-tag-particle--sparkle .ace-custom-tag-particle-inner {
    overflow: visible;
}

.ace-custom-tag-particle--sparkle .ace-custom-tag-particle-stage {
    --ace-custom-tag-sparkle-size: calc(8px + var(--ace-custom-tag-particle-size, 50) * 0.16px);
    --ace-custom-tag-sparkle-edge: calc(var(--ace-custom-tag-particle-spread, 8px) * 0.82);
    --ace-custom-tag-sparkle-cycle: calc(var(--ace-custom-tag-particle-speed, 2.4s) * (1.65 - var(--ace-custom-tag-particle-density, 60) * 0.009));
}

.ace-custom-tag-particle--sparkle .ace-custom-tag-particle-outer,
.ace-custom-tag-particle--sparkle .ace-custom-tag-particle-inner {
    background: none;
    filter: none;
    animation: none;
    mix-blend-mode: normal;
    opacity: 0;
}

.ace-custom-tag-particle--sparkle .ace-custom-tag-sparkle {
    position: absolute;
    z-index: 6;
    display: block;
    width: var(--ace-custom-tag-sparkle-size);
    height: var(--ace-custom-tag-sparkle-size);
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0, 0);
    transform-origin: center center;
    animation: ace-custom-tag-sparkle-pop var(--ace-custom-tag-sparkle-cycle) cubic-bezier(0.33, 1, 0.42, 1) infinite;
    will-change: transform, opacity;
}

.ace-custom-tag-particle--sparkle .ace-custom-tag-sparkle::before,
.ace-custom-tag-particle--sparkle .ace-custom-tag-sparkle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        color-mix(in srgb, var(--ace-custom-tag-particle-color-2, #ffd76a) 40%, transparent) 38%,
        color-mix(in srgb, var(--ace-custom-tag-particle-color, #fff) 96%, transparent) 50%,
        color-mix(in srgb, var(--ace-custom-tag-particle-color-2, #ffd76a) 40%, transparent) 62%,
        transparent 100%
    );
    box-shadow: 0 0 calc(2px + var(--ace-custom-tag-particle-size, 50) * 0.05px) color-mix(in srgb, var(--ace-custom-tag-particle-color, #fff) 72%, transparent);
}

.ace-custom-tag-particle--sparkle .ace-custom-tag-sparkle::before {
    width: 100%;
    height: 24%;
    transform: translate(-50%, -50%);
}

.ace-custom-tag-particle--sparkle .ace-custom-tag-sparkle::after {
    width: 24%;
    height: 100%;
    transform: translate(-50%, -50%);
}

.ace-custom-tag-particle--sparkle .ace-custom-tag-sparkle--eight::after {
    transform: translate(-50%, -50%) rotate(45deg);
}

.ace-custom-tag-particle--sparkle .ace-custom-tag-sparkle--1 {
    top: 18%;
    left: 10%;
    animation-delay: 0s;
}

.ace-custom-tag-particle--sparkle .ace-custom-tag-sparkle--2 {
    top: 12%;
    left: 86%;
    animation-delay: calc(var(--ace-custom-tag-sparkle-cycle) * 0.14);
}

.ace-custom-tag-particle--sparkle .ace-custom-tag-sparkle--3 {
    top: 78%;
    left: 18%;
    animation-delay: calc(var(--ace-custom-tag-sparkle-cycle) * 0.28);
}

.ace-custom-tag-particle--sparkle .ace-custom-tag-sparkle--4 {
    top: 72%;
    left: 82%;
    animation-delay: calc(var(--ace-custom-tag-sparkle-cycle) * 0.42);
}

.ace-custom-tag-particle--sparkle .ace-custom-tag-sparkle--5 {
    top: calc(0% - var(--ace-custom-tag-sparkle-edge));
    left: 48%;
    animation-delay: calc(var(--ace-custom-tag-sparkle-cycle) * 0.56);
}

.ace-custom-tag-particle--sparkle .ace-custom-tag-sparkle--6 {
    top: 48%;
    left: calc(100% + var(--ace-custom-tag-sparkle-edge));
    animation-delay: calc(var(--ace-custom-tag-sparkle-cycle) * 0.7);
}

.ace-custom-tag-particle--sparkle .ace-custom-tag-sparkle--7 {
    top: 52%;
    left: calc(0% - var(--ace-custom-tag-sparkle-edge));
    animation-delay: calc(var(--ace-custom-tag-sparkle-cycle) * 0.84);
}

.ace-custom-tag-particle--sparkle .ace-custom-tag-sparkle--8 {
    top: calc(100% + var(--ace-custom-tag-sparkle-edge));
    left: 52%;
    animation-delay: calc(var(--ace-custom-tag-sparkle-cycle) * 0.98);
}

.ace-custom-tag-particle--sparkle .ace-custom-tag-sparkle--9 {
    top: 32%;
    left: calc(100% + var(--ace-custom-tag-sparkle-edge) * 0.55);
    animation-delay: calc(var(--ace-custom-tag-sparkle-cycle) * 0.21);
}

.ace-custom-tag-particle--sparkle .ace-custom-tag-sparkle--10 {
    top: calc(100% + var(--ace-custom-tag-sparkle-edge) * 0.45);
    left: 22%;
    animation-delay: calc(var(--ace-custom-tag-sparkle-cycle) * 0.35);
}

.ace-custom-tag-particle--sparkle .ace-custom-tag-sparkle--11 {
    top: calc(0% - var(--ace-custom-tag-sparkle-edge) * 0.5);
    left: 72%;
    animation-delay: calc(var(--ace-custom-tag-sparkle-cycle) * 0.49);
}

.ace-custom-tag-particle--sparkle .ace-custom-tag-sparkle--12 {
    top: 62%;
    left: calc(0% - var(--ace-custom-tag-sparkle-edge) * 0.62);
    animation-delay: calc(var(--ace-custom-tag-sparkle-cycle) * 0.63);
}

.ace-custom-tag-particle--sparkle .ace-custom-tag-sparkle--13 {
    top: 8%;
    left: 34%;
    animation-delay: calc(var(--ace-custom-tag-sparkle-cycle) * 0.77);
}

.ace-custom-tag-particle--sparkle .ace-custom-tag-sparkle--14 {
    top: 88%;
    left: 64%;
    animation-delay: calc(var(--ace-custom-tag-sparkle-cycle) * 0.91);
}

.ace-custom-tag-particle--glitter .ace-custom-tag-particle-outer,
.ace-custom-tag-particle--glitter .ace-custom-tag-particle-inner {
    --ace-custom-tag-particle-dot: calc(0.55px + var(--ace-custom-tag-particle-size, 50) * 0.025px);
    background:
        radial-gradient(circle at 8% 16%, color-mix(in srgb, var(--ace-custom-tag-particle-color, #fff) 95%, transparent) 0 var(--ace-custom-tag-particle-dot), transparent calc(var(--ace-custom-tag-particle-dot) + 0.8px)),
        radial-gradient(circle at 24% 74%, color-mix(in srgb, var(--ace-custom-tag-particle-color-2, #ffd76a) 90%, transparent) 0 var(--ace-custom-tag-particle-dot), transparent calc(var(--ace-custom-tag-particle-dot) + 0.8px)),
        radial-gradient(circle at 52% 12%, color-mix(in srgb, var(--ace-custom-tag-particle-color, #fff) 88%, transparent) 0 var(--ace-custom-tag-particle-dot), transparent calc(var(--ace-custom-tag-particle-dot) + 0.8px)),
        radial-gradient(circle at 66% 58%, color-mix(in srgb, var(--ace-custom-tag-particle-color-2, #ffd76a) 86%, transparent) 0 var(--ace-custom-tag-particle-dot), transparent calc(var(--ace-custom-tag-particle-dot) + 0.8px)),
        radial-gradient(circle at 84% 30%, color-mix(in srgb, var(--ace-custom-tag-particle-color, #fff) 84%, transparent) 0 var(--ace-custom-tag-particle-dot), transparent calc(var(--ace-custom-tag-particle-dot) + 0.8px)),
        radial-gradient(circle at 92% 82%, color-mix(in srgb, var(--ace-custom-tag-particle-color-2, #ffd76a) 82%, transparent) 0 var(--ace-custom-tag-particle-dot), transparent calc(var(--ace-custom-tag-particle-dot) + 0.8px)),
        radial-gradient(circle at 34% 44%, color-mix(in srgb, var(--ace-custom-tag-particle-color, #fff) 80%, transparent) 0 var(--ace-custom-tag-particle-dot), transparent calc(var(--ace-custom-tag-particle-dot) + 0.8px)),
        radial-gradient(circle at 14% 48%, color-mix(in srgb, var(--ace-custom-tag-particle-color-2, #ffd76a) 78%, transparent) 0 var(--ace-custom-tag-particle-dot), transparent calc(var(--ace-custom-tag-particle-dot) + 0.8px));
    background-size: calc(175% - var(--ace-custom-tag-particle-density, 60) * 1.05%) calc(175% - var(--ace-custom-tag-particle-density, 60) * 1.05%);
    animation: ace-custom-tag-particle-glitter calc(var(--ace-custom-tag-particle-speed, 2.4s) * (1.35 - var(--ace-custom-tag-particle-density, 60) * 0.005)) linear infinite;
}

.ace-custom-tag-particle--stars .ace-custom-tag-particle-stage,
.ace-custom-tag-particle--stars .ace-custom-tag-particle-outer,
.ace-custom-tag-particle--stars .ace-custom-tag-particle-inner {
    overflow: visible;
}

.ace-custom-tag-particle--stars .ace-custom-tag-particle-stage {
    --ace-custom-tag-shooting-len: calc(18px + var(--ace-custom-tag-particle-size, 50) * 0.52px);
    --ace-custom-tag-shooting-thick: calc(1.5px + var(--ace-custom-tag-particle-size, 50) * 0.022px);
    --ace-custom-tag-shooting-travel: calc(52px + var(--ace-custom-tag-particle-spread, 8px) * 5.2);
    --ace-custom-tag-shooting-rise: calc(18px + var(--ace-custom-tag-particle-spread, 8px) * 1.65);
    --ace-custom-tag-shooting-cycle: calc(var(--ace-custom-tag-particle-speed, 2.4s) * (1.2 - var(--ace-custom-tag-particle-density, 60) * 0.007));
}

.ace-custom-tag-particle--stars .ace-custom-tag-particle-outer,
.ace-custom-tag-particle--stars .ace-custom-tag-particle-inner {
    background: none;
    filter: none;
    animation: none;
    mix-blend-mode: normal;
    opacity: 0;
}

.ace-custom-tag-particle--stars .ace-custom-tag-shooting-star {
    position: absolute;
    z-index: 6;
    top: 0;
    left: 0;
    display: block;
    width: var(--ace-custom-tag-shooting-len);
    height: var(--ace-custom-tag-shooting-thick);
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    transform-origin: right center;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 8%,
        color-mix(in srgb, var(--ace-custom-tag-particle-color-2, #ffd76a) 22%, transparent) 32%,
        color-mix(in srgb, var(--ace-custom-tag-particle-color, #fff) 72%, transparent) 68%,
        #ffffff 92%,
        #ffffff 100%
    );
    filter: drop-shadow(0 0 calc(2px + var(--ace-custom-tag-particle-size, 50) * 0.05px) color-mix(in srgb, var(--ace-custom-tag-particle-color, #fff) 75%, transparent));
    will-change: transform, opacity;
}

.ace-custom-tag-particle--stars .ace-custom-tag-shooting-star--1 {
    animation: ace-custom-tag-shooting-star-1 var(--ace-custom-tag-shooting-cycle) ease-out infinite;
    animation-delay: 0s;
}

.ace-custom-tag-particle--stars .ace-custom-tag-shooting-star--2 {
    animation: ace-custom-tag-shooting-star-2 var(--ace-custom-tag-shooting-cycle) ease-out infinite;
    animation-delay: calc(var(--ace-custom-tag-shooting-cycle) * 0.18);
}

.ace-custom-tag-particle--stars .ace-custom-tag-shooting-star--3 {
    animation: ace-custom-tag-shooting-star-3 var(--ace-custom-tag-shooting-cycle) ease-out infinite;
    animation-delay: calc(var(--ace-custom-tag-shooting-cycle) * 0.36);
}

.ace-custom-tag-particle--stars .ace-custom-tag-shooting-star--4 {
    animation: ace-custom-tag-shooting-star-4 var(--ace-custom-tag-shooting-cycle) ease-out infinite;
    animation-delay: calc(var(--ace-custom-tag-shooting-cycle) * 0.54);
}

.ace-custom-tag-particle--stars .ace-custom-tag-shooting-star--5 {
    animation: ace-custom-tag-shooting-star-5 var(--ace-custom-tag-shooting-cycle) ease-out infinite;
    animation-delay: calc(var(--ace-custom-tag-shooting-cycle) * 0.72);
}

.ace-custom-tag-particle--stars .ace-custom-tag-shooting-star--6 {
    animation: ace-custom-tag-shooting-star-6 var(--ace-custom-tag-shooting-cycle) ease-out infinite;
    animation-delay: calc(var(--ace-custom-tag-shooting-cycle) * 0.9);
}

.ace-custom-tag-particle--stars .ace-custom-tag-shooting-star--7 {
    animation: ace-custom-tag-shooting-star-2 var(--ace-custom-tag-shooting-cycle) ease-out infinite;
    animation-delay: calc(var(--ace-custom-tag-shooting-cycle) * 0.12);
}

.ace-custom-tag-particle--stars .ace-custom-tag-shooting-star--8 {
    animation: ace-custom-tag-shooting-star-4 var(--ace-custom-tag-shooting-cycle) ease-out infinite;
    animation-delay: calc(var(--ace-custom-tag-shooting-cycle) * 0.28);
}

.ace-custom-tag-particle--stars .ace-custom-tag-shooting-star--9 {
    animation: ace-custom-tag-shooting-star-1 var(--ace-custom-tag-shooting-cycle) ease-out infinite;
    animation-delay: calc(var(--ace-custom-tag-shooting-cycle) * 0.44);
}

.ace-custom-tag-particle--stars .ace-custom-tag-shooting-star--10 {
    animation: ace-custom-tag-shooting-star-5 var(--ace-custom-tag-shooting-cycle) ease-out infinite;
    animation-delay: calc(var(--ace-custom-tag-shooting-cycle) * 0.58);
}

.ace-custom-tag-particle--shimmer .ace-custom-tag-particle-outer,
.ace-custom-tag-particle--shimmer .ace-custom-tag-particle-inner {
    background: linear-gradient(
        115deg,
        transparent 0%,
        transparent 36%,
        color-mix(in srgb, var(--ace-custom-tag-particle-color, #fff) 55%, transparent) 48%,
        color-mix(in srgb, var(--ace-custom-tag-particle-color-2, #ffd76a) 65%, transparent) 52%,
        transparent 64%,
        transparent 100%
    );
    background-size: 220% 100%;
    animation: ace-custom-tag-particle-shimmer var(--ace-custom-tag-particle-speed, 2.4s) ease-in-out infinite;
}

.ace-custom-tag-particle--shimmer .ace-custom-tag-particle-outer {
    opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100 * 0.75);
}

.ace-custom-tag-particle--shimmer .ace-custom-tag-particle-inner {
    opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100 * 0.95);
    mix-blend-mode: plus-lighter;
}

.ace-custom-tag-pill.ace-custom-tag-glow {
    box-shadow:
        0 0 calc(6px + var(--ace-custom-tag-glow-intensity, 60) * 0.12px) color-mix(in srgb, var(--ace-custom-tag-glow-color, #8b5cf6) 70%, transparent),
        0 0 calc(12px + var(--ace-custom-tag-glow-intensity, 60) * 0.2px) color-mix(in srgb, var(--ace-custom-tag-glow-color, #8b5cf6) 35%, transparent);
}

.ace-custom-tag-pill.ace-custom-tag-text-glow {
    text-shadow:
        0 0 calc(4px + var(--ace-custom-tag-text-glow-intensity, 55) * 0.08px) currentColor,
        0 0 calc(8px + var(--ace-custom-tag-text-glow-intensity, 55) * 0.14px) rgba(255, 255, 255, 0.45);
}

.ace-custom-tag-pill.ace-custom-tag-rainbow {
    animation-name: ace-custom-tag-rainbow-border, ace-custom-tag-rainbow-text;
    animation-duration: 4s, 4s;
    animation-timing-function: linear, linear;
    animation-iteration-count: infinite, infinite;
}

.ace-custom-tag-pill.ace-custom-tag-pulse {
    animation: ace-custom-tag-pulse 2.2s ease-in-out infinite;
}

@keyframes ace-custom-tag-particle-aura-pulse {
    0%,
    100% {
        opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100 * 0.34);
        transform: scale(0.96);
    }
    50% {
        opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100 * 0.52);
        transform: scale(1.04);
    }
}

@keyframes ace-custom-tag-sparkle-pop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0, 0) rotate(-44deg);
    }
    7% {
        opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100);
        transform: translate(-50%, -50%) scale(1.18, 1.42) rotate(-14deg);
    }
    20% {
        opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100);
        transform: translate(-50%, -50%) scale(0.68, 1.12) rotate(5deg);
    }
    34% {
        opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100 * 0.96);
        transform: translate(-50%, -50%) scale(1, 1) rotate(0deg);
    }
    48% {
        opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100 * 0.72);
        transform: translate(-50%, -50%) scale(0.52, 0.88) rotate(18deg);
    }
    62% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0, 0) rotate(40deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0, 0) rotate(40deg);
    }
}

@keyframes ace-custom-tag-particle-glitter {
    0% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(1px, -1px) scale(1.03);
    }
    50% {
        transform: translate(-1px, 1px) scale(1.01);
    }
    75% {
        transform: translate(1px, 1px) scale(1.04);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes ace-custom-tag-shooting-star-1 {
    0% {
        opacity: 0;
        transform: rotate(-38deg) translate(-35%, 0) scaleX(0.15);
    }
    4% {
        opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100);
    }
    18% {
        opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100);
        transform: rotate(-38deg) translate(var(--ace-custom-tag-shooting-travel), var(--ace-custom-tag-shooting-rise)) scaleX(1.08);
    }
    28% {
        opacity: 0;
        transform: rotate(-38deg) translate(calc(var(--ace-custom-tag-shooting-travel) * 1.15), calc(var(--ace-custom-tag-shooting-rise) * 1.2)) scaleX(0.75);
    }
    100% {
        opacity: 0;
        transform: rotate(-38deg) translate(calc(var(--ace-custom-tag-shooting-travel) * 1.15), calc(var(--ace-custom-tag-shooting-rise) * 1.2)) scaleX(0.75);
    }
}

@keyframes ace-custom-tag-shooting-star-2 {
    0% {
        opacity: 0;
        transform: rotate(-28deg) translate(120%, 35%) scaleX(0.12);
    }
    5% {
        opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100 * 0.92);
    }
    20% {
        opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100 * 0.88);
        transform: rotate(-28deg) translate(calc(var(--ace-custom-tag-shooting-travel) * 0.35), calc(var(--ace-custom-tag-shooting-rise) * 0.55)) scaleX(1);
    }
    30% {
        opacity: 0;
        transform: rotate(-28deg) translate(-12%, calc(var(--ace-custom-tag-shooting-rise) * 1.35)) scaleX(0.7);
    }
    100% {
        opacity: 0;
        transform: rotate(-28deg) translate(-12%, calc(var(--ace-custom-tag-shooting-rise) * 1.35)) scaleX(0.7);
    }
}

@keyframes ace-custom-tag-shooting-star-3 {
    0% {
        opacity: 0;
        transform: rotate(-44deg) translate(-40%, 55%) scaleX(0.18);
    }
    4% {
        opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100 * 0.95);
    }
    17% {
        opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100);
        transform: rotate(-44deg) translate(calc(var(--ace-custom-tag-shooting-travel) * 0.92), calc(var(--ace-custom-tag-shooting-rise) * 0.35)) scaleX(1.05);
    }
    27% {
        opacity: 0;
        transform: rotate(-44deg) translate(calc(var(--ace-custom-tag-shooting-travel) * 1.08), calc(var(--ace-custom-tag-shooting-rise) * 0.55)) scaleX(0.8);
    }
    100% {
        opacity: 0;
        transform: rotate(-44deg) translate(calc(var(--ace-custom-tag-shooting-travel) * 1.08), calc(var(--ace-custom-tag-shooting-rise) * 0.55)) scaleX(0.8);
    }
}

@keyframes ace-custom-tag-shooting-star-4 {
    0% {
        opacity: 0;
        transform: rotate(142deg) translate(115%, -10%) scaleX(0.14);
    }
    5% {
        opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100 * 0.9);
    }
    19% {
        opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100 * 0.85);
        transform: rotate(142deg) translate(calc(var(--ace-custom-tag-shooting-travel) * -0.25), calc(var(--ace-custom-tag-shooting-rise) * 0.75)) scaleX(1);
    }
    29% {
        opacity: 0;
        transform: rotate(142deg) translate(calc(var(--ace-custom-tag-shooting-travel) * -1.05), calc(var(--ace-custom-tag-shooting-rise) * 1.1)) scaleX(0.72);
    }
    100% {
        opacity: 0;
        transform: rotate(142deg) translate(calc(var(--ace-custom-tag-shooting-travel) * -1.05), calc(var(--ace-custom-tag-shooting-rise) * 1.1)) scaleX(0.72);
    }
}

@keyframes ace-custom-tag-shooting-star-5 {
    0% {
        opacity: 0;
        transform: rotate(-32deg) translate(-28%, 18%) scaleX(0.16);
    }
    4% {
        opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100 * 0.88);
    }
    16% {
        opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100);
        transform: rotate(-32deg) translate(calc(var(--ace-custom-tag-shooting-travel) * 0.78), calc(var(--ace-custom-tag-shooting-rise) * 0.92)) scaleX(1.02);
    }
    26% {
        opacity: 0;
        transform: rotate(-32deg) translate(calc(var(--ace-custom-tag-shooting-travel) * 1.02), calc(var(--ace-custom-tag-shooting-rise) * 1.18)) scaleX(0.78);
    }
    100% {
        opacity: 0;
        transform: rotate(-32deg) translate(calc(var(--ace-custom-tag-shooting-travel) * 1.02), calc(var(--ace-custom-tag-shooting-rise) * 1.18)) scaleX(0.78);
    }
}

@keyframes ace-custom-tag-shooting-star-6 {
    0% {
        opacity: 0;
        transform: rotate(136deg) translate(95%, 48%) scaleX(0.12);
    }
    5% {
        opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100 * 0.86);
    }
    18% {
        opacity: calc(var(--ace-custom-tag-particle-intensity, 70) / 100 * 0.82);
        transform: rotate(136deg) translate(calc(var(--ace-custom-tag-shooting-travel) * -0.55), calc(var(--ace-custom-tag-shooting-rise) * 0.42)) scaleX(0.98);
    }
    28% {
        opacity: 0;
        transform: rotate(136deg) translate(calc(var(--ace-custom-tag-shooting-travel) * -1.12), calc(var(--ace-custom-tag-shooting-rise) * 0.72)) scaleX(0.68);
    }
    100% {
        opacity: 0;
        transform: rotate(136deg) translate(calc(var(--ace-custom-tag-shooting-travel) * -1.12), calc(var(--ace-custom-tag-shooting-rise) * 0.72)) scaleX(0.68);
    }
}

@keyframes ace-custom-tag-particle-shimmer {
    0% {
        background-position: 130% 0;
    }
    100% {
        background-position: -30% 0;
    }
}

@keyframes ace-custom-tag-rainbow-border {
    0% {
        border-color: #ff0000;
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
    }
    16% {
        border-color: #ff8800;
        box-shadow: 0 0 8px rgba(255, 136, 0, 0.4);
    }
    33% {
        border-color: #ffff00;
        box-shadow: 0 0 8px rgba(255, 255, 0, 0.4);
    }
    50% {
        border-color: #00ff00;
        box-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
    }
    66% {
        border-color: #0088ff;
        box-shadow: 0 0 8px rgba(0, 136, 255, 0.4);
    }
    83% {
        border-color: #8800ff;
        box-shadow: 0 0 8px rgba(136, 0, 255, 0.4);
    }
    100% {
        border-color: #ff0000;
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
    }
}

@keyframes ace-custom-tag-rainbow-text {
    0% {
        color: #ff6b6b;
    }
    16% {
        color: #ffb347;
    }
    33% {
        color: #fff59d;
    }
    50% {
        color: #81c784;
    }
    66% {
        color: #64b5f6;
    }
    83% {
        color: #ce93d8;
    }
    100% {
        color: #ff6b6b;
    }
}

@keyframes ace-custom-tag-pulse {
    0%,
    100% {
        box-shadow: 0 0 6px color-mix(in srgb, var(--ace-custom-tag-glow-color, #8b5cf6) 35%, transparent);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 14px color-mix(in srgb, var(--ace-custom-tag-glow-color, #8b5cf6) 55%, transparent);
        transform: scale(1.03);
    }
}

.oemt-userpage-banned,
.pun.oemt-app p.oemt-userpage-banned {
    margin: 1.25rem 0 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.74rem;
    color: #f87171;
}

.oemt-userpage-divider,
.pun.oemt-app hr.oemt-userpage-divider {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    height: 0;
    background: none;
}

.oemt-userpage-section {
    margin-bottom: 1.9rem;
}

.oemt-userpage-label,
.pun.oemt-app h2.oemt-userpage-label {
    margin: 0 0 0.7rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: #737373;
}

.oemt-userpage-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.oemt-userpage-chip,
.pun.oemt-app a.oemt-userpage-chip,
.pun.oemt-app a.oemt-userpage-chip:link,
.pun.oemt-app a.oemt-userpage-chip:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    background: rgba(10, 10, 10, 0.55);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    color: #e5e5e5 !important;
    text-decoration: none !important;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.oemt-userpage-chip:hover,
.pun.oemt-app a.oemt-userpage-chip:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(23, 23, 23, 0.75);
    color: #ffffff !important;
}

.oemt-userpage-chip-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: #a3a3a3;
}

.oemt-userpage-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    color: #525252;
}

.oemt-userpage-audio {
    position: absolute;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.72);
    color: #f5f5f5;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.oemt-userpage-audio:hover {
    background: rgba(24, 24, 24, 0.9);
    border-color: rgba(255, 255, 255, 0.32);
    transform: scale(1.05);
}

.oemt-userpage-audio.is-unmuted {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
}

.oemt-userpage-audio .oemt-member-audio-icon--unmuted {
    display: none;
}

.oemt-userpage-audio.is-unmuted .oemt-member-audio-icon--muted {
    display: none;
}

.oemt-userpage-audio.is-unmuted .oemt-member-audio-icon--unmuted {
    display: block;
}

@media (max-width: 600px) {
    .oemt-userpage,
    .pun.oemt-app div.oemt-userpage {
        padding-top: 1.75rem;
    }

    .oemt-userpage-head {
        align-items: flex-start;
    }

    .oemt-userpage-avatar {
        width: 3.6rem;
        height: 3.6rem;
    }

    .oemt-userpage-name {
        font-size: 1.3rem;
    }
}
