/* Forum editor controls and dialogs. TinyMCE supplies only the writing surface. */
.forum-editor-shell,.forum-editor-modal{--fe-bg:#24212d;--fe-surface:#1d1a24;--fe-line:#bba0e41c;--fe-text:#e6ddef;--fe-muted:#aa9cbb;--fe-accent:#bea0eb;color:var(--fe-text);font-family:inherit;box-sizing:border-box}
.forum-editor-shell *, .forum-editor-modal *{box-sizing:border-box}
.forum-editor-shell{position:relative;border:1px solid var(--fe-line);border-radius:15px;background:var(--fe-bg);min-width:0}
.forum-editor-toolbar{padding:12px 14px 9px;border-bottom:1px solid var(--fe-line);border-radius:15px 15px 0 0;background:linear-gradient(120deg,#aa8ad908,transparent)}
.fe-format-row,.fe-style-row,.fe-insert-row,.fe-history{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0}
.fe-format-row{gap:8px;margin-bottom:10px}.fe-history{margin-right:3px;gap:2px}.fe-style-row{margin-bottom:9px;padding-bottom:9px;border-bottom:1px solid #ffffff08}
.fe-group-label{font-size:10px;text-transform:uppercase;letter-spacing:.055em;color:#9989ae;width:55px;flex-shrink:0}
.fe-button,.fe-select{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;border:1px solid transparent;background:transparent;border-radius:8px;color:var(--fe-muted);font-family:inherit;cursor:pointer;line-height:1.3;padding:7px 9px;transition:background .15s,color .15s,border-color .15s}
.fe-button iconify-icon{font-size:17px;width:17px;height:17px;display:inline-block;flex-shrink:0}.fe-button span{font-size:12px}.fe-select{justify-content:space-between;background:#15121d38;border-color:#c6b0e514;min-width:135px;padding:8px 11px;font-size:12px;color:#c8b9da}.forum-editor-shell .fe-select iconify-icon{font-size:14px;flex-shrink:0}.fe-size{min-width:67px}
.fe-button:hover,.fe-select:hover,.fe-button[aria-pressed=true]{background:#b18bdf1b;border-color:#b18bdf2d;color:#e1cafa}.fe-button:focus-visible,.fe-select:focus-visible{outline:2px solid #b595e5;outline-offset:2px}.fe-style-row>i{width:1px;height:18px;background:#c8a4e51a;margin:0 3px}.fe-insert-row .fe-button{background:#ffffff03;border-color:#ffffff07;padding:7px 10px}.fe-insert-row .fe-button:hover{background:#b18bdf1b;border-color:#b18bdf2d}
.forum-editor-shell .tox-tinymce{border:0!important;border-radius:0!important;background:#1c1b24!important}.forum-editor-shell .tox-editor-header{display:none!important}.fe-status{padding:8px 14px;border-top:1px solid var(--fe-line);border-radius:0 0 15px 15px;background:#1d1a24;color:#9789a9;font-size:10px;text-align:right}
.fe-popover{position:absolute;z-index:30;min-width:195px;max-width:calc(100% - 16px);max-height:310px;overflow:auto;padding:8px;background:#2a2533;border:1px solid #c2a4e52d;border-radius:12px;box-shadow:0 18px 44px #0005;display:grid;gap:3px}.fe-popover-title{font-size:10px;color:#a291b8;text-transform:uppercase;letter-spacing:.04em;padding:6px 10px 9px}.fe-popover button{font:inherit;font-size:13px;line-height:1.45;color:#d1c1e1;text-align:left;border:0;border-radius:7px;background:transparent;padding:9px 10px;cursor:pointer}.fe-popover button:hover,.fe-popover button:focus-visible{background:#ad85d821;outline:none;color:#f0dfff}
.forum-editor-modal{color-scheme:dark;max-width:620px;width:calc(100% - 28px);max-height:calc(100dvh - 28px);padding:0;margin:auto;border:1px solid #c3a5e532;border-radius:20px;background:#25212e;box-shadow:0 35px 120px #0008;overflow:auto}
.forum-editor-modal:not([open]){display:none!important}
.forum-editor-modal::backdrop{background:#09070e9e;backdrop-filter:blur(5px)}.forum-editor-modal[hidden],.forum-editor-modal [hidden]{display:none!important}
.forum-editor-modal form{margin:0}.forum-editor-modal header{display:flex;justify-content:space-between;align-items:center;min-height:0!important;height:auto!important;flex-direction:row!important;width:auto!important;background:transparent!important;border-radius:0;padding:21px 24px!important;border-bottom:1px solid var(--fe-line);gap:16px}.forum-editor-modal h2{margin:0;font-size:19px;line-height:1.35;color:#e9def5;font-weight:600}.forum-editor-modal header .forum-icon-button{height:34px;width:34px;flex-shrink:0;background:#ffffff04;border-color:#ffffff0b;color:#bca9d0}
.fe-modal-body{padding:22px 24px}.forum-editor-modal footer{display:flex;justify-content:flex-end;gap:9px;padding:16px 24px;border-top:1px solid var(--fe-line);background:#1e1a2526}.forum-editor-modal .forum-primary,.forum-editor-modal .forum-secondary{font-family:inherit;font-size:13px;padding:10px 18px;border-radius:10px;line-height:1.5}.forum-editor-modal .forum-primary{background:linear-gradient(135deg,#9c76c9,#7e59a7);border:1px solid #ba98dd66;color:#fff}.forum-editor-modal .forum-secondary{border:1px solid #c3a7e42b;background:#ad85d811;color:#d4c2e7}
.fe-field{display:grid;gap:9px;margin:0 0 17px;font-size:12px;color:#baa7cf;font-weight:400;min-width:0}.fe-field:last-child{margin-bottom:0}.fe-field input,.fe-field textarea,.fe-field select{font:inherit;font-size:14px;line-height:1.55;background:#19151f;border:1px solid #c0a4e521;border-radius:10px;color:#e0d3ed;padding:11px 13px;min-width:0;width:100%;box-shadow:none}.fe-field textarea{resize:vertical;min-height:120px}.fe-field input:focus,.fe-field textarea:focus,.fe-field select:focus{border-color:#b791df88;outline:0;box-shadow:0 0 0 3px #b08bdf0c}.fe-fields-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}.fe-error{color:#e7a8b7!important;font-size:12px;line-height:1.6;margin:16px 0 0;padding:11px 13px;background:#dd789712;border:1px solid #df91a321;border-radius:10px}
.fe-modal-tabs{display:flex;gap:7px;margin-bottom:20px;padding-bottom:14px;border-bottom:1px solid var(--fe-line)}.fe-modal-tabs button{border:1px solid transparent;background:#aa82da0b;border-radius:9px;color:#aa98bf;padding:9px 14px;font:inherit;font-size:13px;cursor:pointer}.fe-modal-tabs button[aria-selected=true]{background:#ae8cdd20;border-color:#c1a0e844;color:#e3cdfb}
.fe-file-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:28px 16px;background:radial-gradient(ellipse at 50% 0,#b797df12,transparent),#1c1823;border:1px dashed #b18cde50;border-radius:14px;cursor:pointer;position:relative;overflow:hidden;color:#d8c3ef;font-weight:400}.fe-file-drop:hover{border-color:#c3a0eb88;background-color:#221c2b}.fe-file-drop>iconify-icon{width:34px;height:34px;font-size:34px;color:#b497db}.fe-file-drop strong{font-size:14px;font-weight:550}.fe-file-drop span{font-size:11px;color:#9c8bae}.fe-file-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0!important;cursor:pointer}.fe-file-preview{padding:11px 0 17px;font-size:12px;overflow-wrap:anywhere;color:#bfacd4}.fe-file-drop+.fe-file-preview[hidden]+.fe-upload-progress[hidden]{margin-bottom:18px}.fe-upload-progress{display:flex;align-items:center;gap:12px;margin:14px 0 20px;color:#b89fd0;font-size:11px}.fe-upload-progress progress{appearance:none;height:5px;border:0;border-radius:5px;flex:1;overflow:hidden;background:#100d1855}.fe-upload-progress progress::-webkit-progress-bar{background:#100d1855}.fe-upload-progress progress::-webkit-progress-value{background:#ac8bd9;border-radius:5px}
.fe-color-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:22px}.fe-color-grid button{display:flex;align-items:center;gap:8px;padding:10px 9px;border:1px solid #ffffff0a;border-radius:10px;background:#ffffff03;color:#bcaacd;font:inherit;font-size:11px;cursor:pointer}.fe-color-grid button:hover{background:#ba8ce61a;border-color:#c4a3e948}.fe-color-grid i{width:19px;height:19px;flex-shrink:0;background:var(--swatch);border-radius:6px;box-shadow:inset 0 0 0 1px #ffffff1a}.fe-custom-color{display:flex;align-items:center;gap:11px;font-size:12px;color:#b59dcf;font-weight:400}.fe-custom-color input[type=color]{width:34px;height:34px;padding:0;border:0;background:none;cursor:pointer;display:block;position:static;opacity:1}.fe-custom-color input[type=text]{font-family:monospace;background:#17131d;color:#dac6ed;border:1px solid #b997da25;border-radius:8px;padding:8px;width:100px}
.fe-emoji-grid{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:7px;max-height:370px;overflow:auto;padding:3px}.fe-emoji-grid button,.fe-sticker-grid button{display:grid;place-items:center;border:1px solid #b99cda16;border-radius:10px;background:#ae86dc08;cursor:pointer;padding:7px;min-width:0}.fe-emoji-grid button{height:44px}.fe-emoji-grid button:hover,.fe-sticker-grid button:hover{background:#b08cdd24;border-color:#c5a1ed55}.fe-emoji-grid img{width:27px!important;height:27px!important;object-fit:contain;border-radius:0!important;margin:0!important}.fe-sticker-packs{display:flex;gap:7px;overflow:auto;padding:3px 0 15px}.fe-sticker-packs button{display:flex;align-items:center;gap:7px;flex-shrink:0;background:#b495d613;border:1px solid transparent;border-radius:9px;color:#b39acb;font:inherit;font-size:11px;padding:7px 10px;cursor:pointer}.fe-sticker-packs button[aria-pressed=true]{border-color:#b99ade50;background:#a785d127;color:#e5d0f7}.fe-sticker-packs img{width:27px;height:27px;object-fit:contain}.fe-sticker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-height:360px;overflow:auto;padding:3px}.fe-sticker-grid button{aspect-ratio:1}.fe-sticker-grid img{width:100%;height:100%;max-height:125px;object-fit:contain}.fe-search-actions{display:flex;flex-wrap:wrap;gap:9px}
.forum-editor-fullscreen{overflow:hidden!important}.forum-editor-shell.is-fullscreen{position:fixed;inset:0;z-index:100002;border-radius:0;border:0;display:flex;flex-direction:column;max-height:100dvh}.forum-editor-shell.is-fullscreen .tox-tinymce{flex:1;min-height:0!important;height:auto!important}.forum-editor-shell.is-fullscreen .fe-status{border-radius:0}.forum-editor-shell.is-fullscreen .forum-editor-toolbar{border-radius:0}
/* Each post keeps its own comment thread below its footer. */
.forum-comments-panel{border:1px solid #bda0df26;border-radius:14px;background:linear-gradient(140deg,#af89d808,transparent),#1c18224d;padding:20px;margin:18px 0 0;min-width:0}
.forum-comments-panel[hidden],.forum-comments-panel [hidden]{display:none!important}
.forum-comments-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
.forum-comments-heading h3{display:flex;align-items:center;gap:9px;margin:0;font-size:13px;font-weight:600;color:#d8c4eb}
.forum-comments-heading [data-comment-total]{font-size:10px;font-weight:500;padding:3px 7px;background:#bc98e418;border:1px solid #bc98e41b;border-radius:6px;color:#bda4d4;min-width:22px;text-align:center}
.forum-comments-heading .forum-icon-button{width:28px;height:28px;background:#ffffff03;border-color:#b498d619;color:#bca6d2}
.forum-comments-heading .forum-icon-button iconify-icon{transform:rotate(180deg);width:15px;height:15px;font-size:15px}
.forum-comments-list{max-height:420px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a17ac148 transparent;padding-right:5px}
.forum-comment{padding:14px 0;border-top:1px solid #ffffff08;background:transparent!important;border-radius:0!important;min-width:0}
.forum-comment:first-child{border-top:0;padding-top:2px}.forum-comment:last-child{padding-bottom:6px}
.forum-comment-meta{display:flex;align-items:center;gap:10px;font-size:10px;color:#8e7da2;min-width:0}
.forum-comment-meta .player-account{min-width:0;flex:1}.forum-comment-meta .player-account__avatar{width:28px!important;height:28px!important;flex-basis:28px!important;border-radius:9px!important;object-fit:cover!important;object-position:center!important}
.forum-comment-meta .player-account__info strong{font-size:12px!important}.forum-comment-meta time{white-space:nowrap}
.forum-comment-meta .forum-icon-button{width:25px;height:25px;background:transparent;border:0;color:#907eaa;flex-shrink:0}.forum-comment-meta .forum-icon-button:hover{color:#d9a0b0;background:#d5839a0a}
.forum-comment-meta .forum-icon-button iconify-icon{font-size:13px;width:13px;height:13px}
.forum-comment>p{margin:8px 0 0 38px;font-size:13px;line-height:1.75;color:#ccbadc;overflow-wrap:anywhere;white-space:normal}
.forum-comments-empty,[data-comment-status],[data-comment-loading]{font-size:12px;color:#9884ae;margin:10px 0 16px}.forum-comments-empty{padding:12px 0}
.forum-comments-panel .forum-notice{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:12px}
.forum-comments-panel [data-comment-retry]{padding:6px 10px;font-size:11px;flex-shrink:0}
.forum-comment-form{display:grid;gap:10px;margin-top:16px;padding-top:15px;border-top:1px solid #b491d51a}
.forum-comment-form textarea{font:inherit;font-size:13px;line-height:1.7;border:1px solid #b89cdd2b;border-radius:11px;background:#17131d80;color:#dfcfee;padding:11px 13px;width:100%;min-width:0;resize:none;max-height:160px;min-height:48px;scrollbar-width:thin;scrollbar-color:#a17ac148 transparent}
.forum-comment-form textarea::placeholder{color:#8e7ca5}.forum-comment-form textarea:focus{outline:none;border-color:#b693dd77;box-shadow:0 0 0 3px #b08bdf09}
.forum-comment-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.forum-comment-compose-footer [data-comment-length]{color:#8e7ca5;font-size:10px;font-variant-numeric:tabular-nums}
.forum-comment-form .forum-primary{display:inline-flex;align-items:center;gap:7px;font-size:12px;padding:9px 13px;min-height:37px;border-radius:9px}.forum-comment-form .forum-primary iconify-icon{width:14px;height:14px;font-size:14px}
.forum-comment-form .forum-primary:disabled{opacity:.45;cursor:default}
.forum-comment-pages{display:flex;justify-content:flex-end;gap:10px;margin-top:14px;align-items:center;font-size:11px;color:#8e7ba4}
.forum-comment-pages button{border:1px solid #b99ada20;border-radius:8px;background:#b194d811;color:#c4aadc;padding:6px 10px;cursor:pointer}.forum-comment-pages button:hover{border-color:#b99ada55;background:#b194d822}
.forum-message-footer [data-comment-count]{display:inline-block;min-width:17px;padding:1px 5px;background:#b59bd31b;border-radius:5px;color:#ccb0e8;font-size:10px;text-align:center}
.forum-message-footer [data-forum-comments][aria-expanded=true]{background:#af8bda1d;border-color:#bd9ae548;color:#ddc6f4}
.forum-comment.is-new>p{animation:forum-comment-arrival 1.2s ease-out}@keyframes forum-comment-arrival{from{color:#f0dcff}to{color:#ccbadc}}
/* Both old and new spoiler markup uses the same appearance. */
.forum-message-content .forum-spoiler{border:1px solid #c3a1e52d!important;border-radius:13px!important;background:#1c172480!important;overflow:hidden;margin:17px 0!important;padding:0!important}.forum-message-content .forum-spoiler>.spoiler-title{display:flex!important;align-items:center;gap:10px;min-height:46px;height:auto!important;padding:13px 16px!important;font-family:inherit!important;font-weight:550!important;font-size:13px!important;line-height:1.5!important;color:#ceb4e9!important;background:linear-gradient(120deg,#b08bd316,transparent)!important;border:0!important;cursor:pointer;border-radius:0!important}.forum-message-content .forum-spoiler>.spoiler-title:before{content:'';width:8px;height:8px;border-right:1.5px solid #c0a0df;border-bottom:1.5px solid #c0a0df;transform:rotate(-45deg);transition:transform .2s;flex-shrink:0}.forum-message-content .forum-spoiler.is-open>.spoiler-title:before{transform:rotate(45deg)}.forum-message-content .forum-spoiler>.spoiler-title:focus-visible{outline:2px solid #ba97e2;outline-offset:-2px}.forum-message-content .forum-spoiler .spoiler-toggle{display:none!important}.forum-message-content .forum-spoiler .title-text{float:none!important;height:auto!important;font:inherit!important}.forum-message-content .forum-spoiler>.spoiler-content{display:none!important;border:0!important;border-top:1px solid #ba97da1a!important;background:transparent!important;color:inherit!important;padding:17px!important}.forum-message-content .forum-spoiler.is-open>.spoiler-content{display:block!important}.forum-message-content .forum-video{width:100%!important;max-width:100%!important;aspect-ratio:16/9;border:0;background:#15111b;border-radius:12px;object-fit:contain;display:block;margin:16px 0}
.forum-thread-pagination{display:flex;justify-content:center;margin:25px 0 8px}.forum-thread-pagination .pagination{display:flex;width:auto;max-width:100%;flex-wrap:wrap;justify-content:center;gap:7px;align-items:center;border:1px solid #bb9bde16;background:#201b292b;border-radius:14px;padding:9px!important;margin:0;list-style:none}.forum-thread-pagination .pagination li{margin:0;padding:0;border:0;background:transparent}.forum-thread-pagination .pagination a,.forum-thread-pagination .pagination span{display:flex;align-items:center;justify-content:center;width:37px;height:37px;border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;color:#ab95bf!important;font-family:inherit!important;font-weight:500!important;font-size:12px!important;line-height:1!important;box-shadow:none!important;text-decoration:none}.forum-thread-pagination .pagination li.active a,.forum-thread-pagination .pagination li.active span{border-color:#c0a0e25c!important;background:linear-gradient(135deg,#a683cd30,#8d64b626)!important;color:#ead6fc!important}.forum-thread-pagination .pagination a:hover{background:#b897dd16!important;border-color:#c1a2e52a!important;color:#dcc2f5!important}.forum-thread-pagination .pagination a:focus-visible{outline:2px solid #b693de;outline-offset:2px}
@media(max-width:700px){
 .forum-editor-toolbar{padding:10px}.fe-format-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 64px;gap:6px}.fe-history{grid-column:1/-1;grid-row:2;justify-content:flex-end;margin:0}.fe-format-row .fe-select{min-width:0;flex:1;font-size:11px;padding:8px}.fe-format-row .fe-size{flex:0 0 64px}.fe-select span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fe-style-row{gap:3px}.fe-style-row .fe-group-label{display:none}.fe-button{min-height:32px;padding:6px 7px}.fe-style-row>i{margin:0}.fe-insert-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.fe-insert-row .fe-group-label{grid-column:1/-1;width:auto;margin:1px 0 3px}.fe-insert-row .fe-button{justify-content:flex-start;padding:8px 7px;gap:5px}.fe-insert-row .fe-button span{font-size:11px}.fe-insert-row .fe-button iconify-icon{width:15px;height:15px;font-size:15px}
 .forum-editor-modal{border-radius:16px;max-height:calc(100dvh - 18px);width:calc(100% - 18px)}.forum-editor-modal header{padding:17px!important}.forum-editor-modal h2{font-size:17px}.fe-modal-body{padding:17px}.forum-editor-modal footer{padding:14px 17px}.fe-color-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.fe-color-grid button{gap:5px;padding:9px 6px;font-size:10px}.fe-color-grid i{width:17px;height:17px}.fe-emoji-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.fe-sticker-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.fe-sticker-grid img{max-height:100px}.fe-file-drop{padding:24px 12px}.fe-fields-row{gap:12px}.fe-fields-row .fe-field{margin-bottom:0}.forum-comments-panel{padding:13px}.forum-comment-meta{gap:7px}.forum-comment-meta time{font-size:9px}.forum-comments-list{max-height:340px}.forum-comment-form textarea{min-height:48px}.forum-comment-compose-footer{gap:8px}.forum-comment>p{margin-left:0}
}
@media(prefers-reduced-motion:reduce){.fe-button,.fe-select,.forum-spoiler>.spoiler-title:before{transition:none!important}.forum-comment.is-new>p{animation:none!important}}

.forum-post-poll-dialog .forum-field{margin-bottom:17px}.forum-post-poll-dialog .forum-field>span{font-size:12px;color:#baa7cf}
.forum-post-poll-dialog .forum-field>input,.forum-post-poll-dialog .forum-poll-edit-option input{border-radius:10px;background:#19151f;border-color:#c0a4e525;color:#e0d3ed;font-size:14px;padding:11px 13px}
.forum-post-poll-dialog .forum-poll-edit-option{gap:8px}.forum-post-poll-dialog .forum-poll-edit-option button{width:32px;height:32px;flex-shrink:0;border:1px solid #bc9ade23;border-radius:9px;background:#a480c80c;color:#bea4d6}
.forum-post-poll-dialog .forum-poll-config{margin-top:20px;padding-top:18px;border-top:1px solid #bba0e41c;gap:15px}.forum-post-poll-dialog .forum-poll-config label{color:#bca9d0;font-size:12px}
.forum-post-poll-dialog .forum-notice{margin-bottom:18px}.forum-post-poll-dialog .forum-poll-config select{color-scheme:dark;background:#19151f;border:1px solid #c0a4e525;border-radius:8px;color:#d8c2ee;padding:8px}

.forum-post-poll-dialog input[type=checkbox]{appearance:none!important;display:inline-block!important;position:relative!important;opacity:1!important;width:17px;height:17px;flex-shrink:0;margin:0 7px 0 0;padding:0;vertical-align:middle;border:1px solid #bfa1db55;border-radius:5px;background:#19151f;cursor:pointer}
.forum-post-poll-dialog input[type=checkbox]:checked{background:#9973c2;border-color:#b896df}.forum-post-poll-dialog input[type=checkbox]:checked:after{content:'';position:absolute;width:5px;height:9px;border-right:2px solid #fff;border-bottom:2px solid #fff;left:5px;top:2px;transform:rotate(45deg)}
.forum-post-poll-dialog input[type=checkbox]:focus-visible{outline:2px solid #be9ce9;outline-offset:3px}
@media(max-width:700px){.fe-insert-row [data-editor-action=poll]{grid-column:3}}

.forum-message-content>.forum-poll{margin:18px 0}.message-editor-shell .tox-tinymce{border-radius:0 0 16px 16px}
