/* PolskaElita RED 1.3.7 — native MyBB thread lists and composition forms.
   No changes to form fields, submission, moderation, attachment scripts or permissions. */
#content a.button:is(.new_thread_button,.new_reply_button):is(:link,:visited,:hover,:active){display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 17px;margin:4px 0 10px;border:1px solid #c33b44;border-radius:6px;color:#fff!important;background:linear-gradient(180deg,#b51b26,#790a13)!important;font-size:14px;font-weight:700;box-shadow:inset 0 1px #ffffff18;text-decoration:none}
#content a.button:is(.new_thread_button,.new_reply_button):hover{background:linear-gradient(180deg,#d22a35,#98111a)!important}
#content a.button:is(.new_thread_button,.new_reply_button) span{display:inline-flex;align-items:center;gap:8px;padding:0;background:none!important}
#content a.button:is(.new_thread_button,.new_reply_button) span::before{content:"";width:17px;height:17px;flex:none;background:#fff;mask:url('../icons/pen.svg') center/contain no-repeat}
#content a.button.new_reply_button span::before{mask-image:url('../icons/chat.svg')}
/* Statuses keep the original MyBB state classes and tooltips. */
#content .thread_status{position:relative;display:inline-block;width:19px;height:19px;vertical-align:middle;background:none!important;--status:#a8abb3;--symbol:url('../icons/chat.svg')}
#content .thread_status::before{content:"";position:absolute;inset:1px;background:var(--status);mask:var(--symbol) center/contain no-repeat}
#content .thread_status:is(.newfolder,.newhotfolder,.newclosefolder,.newhotclosefolder,.dot_newfolder,.dot_newhotfolder,.dot_newclosefolder,.dot_newhotclosefolder){--status:#6dd66b}
#content .thread_status:is(.hotfolder,.newhotfolder,.dot_hotfolder,.dot_newhotfolder){--symbol:url('../icons/bolt.svg');--status:#f2b25e}
#content .thread_status:is(.closefolder,.hotclosefolder,.newclosefolder,.newhotclosefolder,.dot_closefolder,.dot_hotclosefolder,.dot_newclosefolder,.dot_newhotclosefolder){--symbol:url('../icons/forum-lock.svg');--status:#f16a73}
#content .thread_status:is(.dot_folder,.dot_hotfolder,.dot_hotclosefolder,.dot_closefolder,.dot_newfolder,.dot_newhotfolder,.dot_newhotclosefolder,.dot_newclosefolder)::after{content:"";position:absolute;right:0;bottom:0;width:6px;height:6px;border:1px solid #131416;background:#62a8ed;border-radius:50%}
#content .thread_status.movefolder{--symbol:url('../icons/forum-link.svg');--status:#62a8ed}
#content .thread_legend{padding:10px 12px!important;margin:0 6px 6px 0!important;background:#121316;border:1px solid #3b3035;border-radius:6px;color:#d9d9df}
#content .thread_legend dd{display:flex;align-items:center;gap:6px;padding:5px 0;margin:0;line-height:1.35}
#content table.tborder:has(.inline_row .thread_status) .inline_row>td{padding:12px 9px;vertical-align:middle}
#content table.tborder:has(.inline_row .thread_status) .author{color:#c9cbd1}
#content table.tborder:has(.inline_row .thread_status) .thread_start_datetime{color:#c9cbd1}
#content table.tborder:has(.inline_row .thread_status) .inline_row:hover>td{background-color:#1b171b!important}
#content form[action^="forumdisplay.php"] :is(select,input.textbox),#content form[action^="search.php"] input[name="keywords"]{min-height:34px;padding:7px 10px;background:#1a1b1f!important;color:#eee!important;border:1px solid #49424a;border-radius:5px;max-width:100%}
/* Only write/reply/edit/PM forms: preserve all original elements and their events. */
#content form[name="input"]:is([action^="newthread.php"],[action^="newreply.php"],[action^="editpost.php"],[action^="private.php"]){--compose-muted:#c6c7cf;--compose-fg:#eeeeF2}
#content form[name="input"]:is([action^="newthread.php"],[action^="newreply.php"],[action^="editpost.php"],[action^="private.php"]) table.tborder>tbody>tr>td:is(.trow1,.trow2){padding:12px 15px;color:var(--compose-fg)!important;line-height:1.55}
#content form[name="input"]:is([action^="newthread.php"],[action^="newreply.php"],[action^="editpost.php"],[action^="private.php"]) :is(.smalltext,label,legend){color:var(--compose-muted)!important;line-height:1.65}
#content form[name="input"]:is([action^="newthread.php"],[action^="newreply.php"],[action^="editpost.php"],[action^="private.php"]) td>strong{font-weight:600;color:#f5f5f7}
#content form[name="input"]:is([action^="newthread.php"],[action^="newreply.php"],[action^="editpost.php"],[action^="private.php"]) input[name="subject"]{width:min(100%,760px);max-width:100%;min-height:42px;padding:9px 12px;font-size:15px;background:#1b1c20!important;border:1px solid #55434a!important;color:#f5f5f7!important}
#content form[name="input"]:is([action^="newthread.php"],[action^="newreply.php"],[action^="editpost.php"],[action^="private.php"]) :is(input[type="radio"],input[type="checkbox"]){accent-color:#e34b56;vertical-align:middle;margin:3px 5px 3px 0}
#content form[name="input"]:is([action^="newthread.php"],[action^="newreply.php"],[action^="editpost.php"],[action^="private.php"]) input[type="submit"]{min-height:40px;padding:8px 16px;margin:3px;border-radius:5px;font-weight:600}
#content form[name="input"]:is([action^="newthread.php"],[action^="newreply.php"],[action^="editpost.php"],[action^="private.php"]) input[type="submit"]:is([name="previewpost"],[name="preview"],[name="savedraft"],[name="saveasdraft"]){background:#252428!important;border-color:#55414a!important;color:#eee!important}
#content form[name="input"] :is(textarea#message,.sceditor-container){max-width:100%;box-sizing:border-box}
#content form[name="input"] textarea#message{width:100%;background:#151619;color:#f2f2f4}
/* Emoticon table remains functional; do not override the image contents. */
#content #clickable_smilies{width:100%;margin:auto;border:0!important;background:transparent!important;box-shadow:none!important}
#content #clickable_smilies td{padding:4px!important;text-align:center;border:0!important;background:transparent!important}
#content #clickable_smilies img{cursor:pointer;vertical-align:middle}
#content #dropzone{background:#19191d!important;border:2px dashed #77515a!important;border-radius:8px;padding:30px 12px!important;min-height:120px;color:#e3e3e8!important;line-height:1.5;transition:background .15s,border-color .15s}
#content #dropzone::before{content:"";display:block;width:25px;height:25px;margin:0 auto 10px;background:#d67b84;mask:url('../icons/forum-link.svg') center/contain no-repeat;pointer-events:none}
#content #dropzone:hover,#content #dropzone:focus-within{background:#251b20!important;border-color:#df6974!important}
#content #upload_bar{background:#d32b39!important;border-radius:4px}
#content input.fileupload{max-width:100%;color:#e2e2e8}
#content input.fileupload::file-selector-button{background:#70212a;border:1px solid #a34a55;color:#fff;padding:6px 10px;border-radius:4px;margin-right:8px;cursor:pointer}
@media(max-width:760px){#content form[name="input"]:is([action^="newthread.php"],[action^="newreply.php"],[action^="editpost.php"])>table.tborder>tbody>tr:has(>td textarea#message),#content form[name="input"]:is([action^="newthread.php"],[action^="newreply.php"],[action^="editpost.php"])>table.tborder>tbody>tr:has(>td input[name="subject"]){display:block}#content form[name="input"]:is([action^="newthread.php"],[action^="newreply.php"],[action^="editpost.php"])>table.tborder>tbody>tr:has(>td textarea#message)>td,#content form[name="input"]:is([action^="newthread.php"],[action^="newreply.php"],[action^="editpost.php"])>table.tborder>tbody>tr:has(>td input[name="subject"])>td{display:block;width:100%!important}#content form[name="input"] table.tborder{max-width:100%}#content #dropzone{margin:5px!important;min-height:100px}}
