a.post_no, form table tr td, h2 {
    margin: 0;
    padding: 0
}

#thread-links, .file, .file:not(.multifile) .post-image, .post-image, input.delete {
    float: left
}

.intro span.name, div.ban p.reason, div.banner, span.heading {
    font-weight: 700
}

br.clear, hr {
    clear: left
}

div.ban h2, form table tr th, table.test tr.h th {
    background: #98e
}

#attention_bar, #options_div textarea, #quick-reply input[type=text], #quick-reply textarea, input[type=password] {
    max-width: 100%
}

.mentioned, div.post div.body {
    word-wrap: break-word
}

#clearGhosts, #clearList, #watchlist-toggle, .poster_id, .watchThread, .watchlist-remove {
    cursor: pointer
}

#gallery_images, #gallery_toolbar {
    bottom: 0;
    background-color: rgba(0, 0, 0, .4)
}

body {
    background: #EEE;
    color: #000;
    font-family: arial, helvetica, sans-serif;
    font-size: 10pt;
    margin: 0 4px;
    padding-left: 4px;
    padding-right: 4px
}

.intro a.email span.name, a, a:visited {
    color: #34345c
}

.hidden {
    display: none
}

a, a:visited {
    text-decoration: underline
}

.dropdown-content a, a.post_no, div.banner a:hover, div.boardlist a, div.pages a, div.styles a.selected {
    text-decoration: none
}

.intro a.email:hover span.name, .intro a.post_no:hover, .options_tab_icon.active, a:hover {
    color: red
}

.intro a.post_no {
    color: inherit
}

.intro a.post_no, p.intro a.email, p.intro a.post_anchor, span.controls a, table.test td img {
    margin: 0
}

.intro label {
    display: inline
}

.intro time, p.intro a.capcode, p.intro a.ip-link {
    direction: ltr;
    unicode-bidi: embed
}

h2 {
    color: #af0a0f;
    font-size: 11pt
}

header {
    margin: 1em 0
}

h1 {
    font-family: tahoma;
    letter-spacing: -2px;
    font-size: 20pt;
    margin: 0
}

h1, header div.subtitle {
    color: #af0a0f;
    text-align: center
}

header div.subtitle {
    font-size: 8pt
}

form {
    margin-bottom: 4em
}

form table {
    margin: auto
}

form table input {
    height: auto
}

input[type=password], input[type=text], textarea {
    border: 1px solid #a9a9a9;
    text-indent: 0;
    text-shadow: none;
    text-transform: none;
    word-spacing: normal;
    max-width: 100%
}

.clearfix, .dropbtn, .post-image, hr {
    border: none
}

.dropzone-wrap, table.test, textarea {
    width: 100%
}

form table tr td {
    text-align: left
}

form table.mod tr td {
    padding: 2px
}

form table tr th {
    text-align: left;
    padding: 4px
}

form table tr td div.center {
    text-align: center;
    float: left;
    padding-left: 3px
}

form[name="post"]:not(#quick-reply) > table {
    width: 40em;
    max-width: 100%;
    border-spacing: 0 .5em
}

form[name="post"]:not(#quick-reply) > table > tbody > tr > th {
    width: 1%;
    padding: .4em .75em .4em 0;
    vertical-align: top;
    box-sizing: border-box
}

form[name="post"]:not(#quick-reply) > table > tbody > tr > td {
    padding: 0;
    vertical-align: top
}

form[name="post"]:not(#quick-reply) input[type="text"],
form[name="post"]:not(#quick-reply) input[type="password"],
form[name="post"]:not(#quick-reply) select,
form[name="post"]:not(#quick-reply) input[type="submit"] {
    box-sizing: border-box;
    height: 2em;
    max-width: 100%;
    margin: 0;
    padding: .25em .5em;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.4;
    vertical-align: middle
}

form[name="post"]:not(#quick-reply) .post-field {
    width: 50%
}

form[name="post"] .captcha_html img {
    display: block;
    float: none;
    max-width: 100%;
    height: auto;
    margin: 0
}

form[name="post"] #upload_url input {
    display: block;
    width: 100%;
    margin: 0
}

form[name="post"] input[name="embed"] {
    width: 100%
}

form[name="post"] input[type="file"] {
    box-sizing: border-box;
    max-width: 100%
}

form[name="post"] .postarea,
form[name="post"] .dropzone-wrap {
    float: none;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    text-align: left
}

form[name="post"] .postarea {
    position: relative
}

form[name="post"] .postarea textarea#body,
form[name="post"] .postarea textarea.text_body {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 9em;
    margin: 0;
    padding: .4em .5em 1.7em;
    font: inherit;
    resize: vertical
}

form[name="post"] .postarea .postform__limits {
    position: absolute;
    right: .8em;
    bottom: .25em;
    float: none;
    padding: 0;
    font-size: .8em;
    text-align: right;
    opacity: .7;
    pointer-events: none
}

form[name="post"] .postarea .format-text {
    display: flex;
    flex-wrap: wrap;
    float: none;
    gap: .25em;
    padding-left: 0;
    margin-bottom: .25em
}

form[name="post"] .postarea .format-text button {
    box-sizing: border-box;
    min-width: 2em;
    height: 1.8em;
    margin: 0;
    padding: 0 .5em;
    font-size: inherit;
    line-height: 1.4
}

form[name="post"] #upload_selection {
    padding-bottom: .25em
}

form[name="post"] .upload-modes > th {
    background: transparent
}

#upload_selection > div {
    display: flex;
    flex-wrap: wrap;
    float: none;
    padding: 0;
    text-align: left
}

#upload_selection button {
    box-sizing: border-box;
    height: auto;
    min-height: 2em;
    margin: 0 .25em 0 0;
    padding: .3em .65em;
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer
}

#upload_selection button[aria-pressed="true"] {
    border-bottom-color: currentColor;
    font-weight: bold
}

#upload_selection button:hover {
    background-color: rgba(128, 128, 128, .15)
}

#upload_selection button:focus-visible,
form[name="post"] .format-text button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px
}

@media (max-width: 480px) {
    form[name="post"]:not(#quick-reply) > table,
    form[name="post"]:not(#quick-reply) > table > tbody,
    form[name="post"]:not(#quick-reply) > table > tbody > tr,
    form[name="post"]:not(#quick-reply) > table > tbody > tr > th,
    form[name="post"]:not(#quick-reply) > table > tbody > tr > td {
        display: block;
        width: 100%
    }

    form[name="post"]:not(#quick-reply) > table > tbody > tr {
        margin-bottom: .5em
    }

    form[name="post"]:not(#quick-reply) > table > tbody > tr > th {
        padding: 0 0 .25em
    }

    form[name="post"]:not(#quick-reply) .upload-modes > th:empty {
        display: none
    }
}

form table tr td div input {
    display: block;
    margin: 2px auto 0
}

.unimportant, .unimportant *, form table tr td div label {
    font-size: 10px
}

.file {
    margin-right: 2px
}

.file:not(.multifile) {
    float: none
}

p.fileinfo {
    display: block;
    margin: 0 0 0 20px
}

div.post p.fileinfo {
    padding-left: 0
}

div.banner {
    background-color: #e04000;
    font-size: 12pt;
    text-align: center;
    margin: 1em 0
}

div.banner, div.banner a, div.post.reply div.body span.spoiler:hover a, span.spoiler:hover {
    color: #fff
}

div.banner a:hover {
    color: #eef2ff
}

img.banner, img.board_image {
    display: block;
    border: 1px solid #a9a9a9;
    margin: 12px auto 0
}

.post-image {
    display: block;
    margin: 5px 20px 10px
}

.full-image {
    max-width: calc(100% - 40px);
    margin: 5px 20px 10px;
}

div.post .post-image {
    padding: 5px;
    margin: 0 20px 0 0
}

div.post img.icon {
    display: inline;
    margin: 0 5px;
    padding: 0
}

div.post i.fa {
    margin: 0 4px;
    font-size: 16px
}

div.post.op {
    margin-right: 20px;
    margin-bottom: 5px
}

div.post.op hr {
    border-color: #d9bfb7
}

.intro {
    margin: .5em 0;
    padding: 0 0 .2em
}

input.delete {
    margin: 1px 6px 0 0
}

.intro label {
    display: inline-block;
    margin-right: 10px;
    cursor:pointer !important;
}

input[type="checkbox"].delete {
    display: none;
}

.new-posts, span.omitted {
    margin-top: 1em
}

.intro span.subject {
    color: #0f0c5d;
    font-weight: 700
}

.intro span.name {
    color: #117743
}

.intro span.capcode, p.intro a.capcode, p.intro a.nametag {
    /* color: #f00000; */
    margin-left: 0
}

.intro a {
    margin-left: 8px
}

div.delete {
    float: right
}

div.post.reply p {
    margin: .3em 0 0
}

div.post.reply div.body {
    margin-left: 1.8em;
    margin-top: .8em;
    padding-right: 3em;
    padding-bottom: .3em
}

div.post.reply.highlighted {
    background: #d6bad0
}

div.post.reply div.body a {
    color: #d00
}

div.post div.body {
    white-space: pre-wrap
}

span.math-rendered {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: .25em 0;
    white-space: normal
}

span.math-rendered math {
    font-size: 1.15em
}

div.post.reply {
    background: #d6daf0;
    margin: .2em 4px;
    padding: .2em .3em .5em .6em;
    border-width: 1px;
    border-style: none solid solid none;
    border-color: #b7c5d9;
    display: inline-block;
    max-width: 94% !important
}

.dropdown:hover .dropdown-content, .theme-catalog div.thread strong, br.clear, div.pages.top, fieldset label, form.ban-appeal textarea, span.omitted {
    display: block
}

span.trip {
    color: #228854
}

span.quote {
    color: #789922
}

span.controls {
    float: right;
    margin: 0;
    padding: 0;
    font-size: 80%
}

span.controls.op {
    float: none;
    margin-left: 10px
}

div#wrap {
    width: 900px;
    margin: 0 auto
}

div.ban {
    background: #fff;
    border: 1px solid #98e;
    max-width: 700px;
    margin: 30px auto
}

div.ban h2, div.ban p {
    padding: 3px 7px
}

div.ban h2 {
    color: #000;
    font-size: 12pt
}

div.ban p {
    font-size: 12px;
    margin-bottom: 12px
}

span.heading {
    color: #af0a0f;
    font-size: 11pt
}

span.spoiler {
    background: #000;
    color: #000;
    padding: 0 1px
}

div.post.reply div.body span.spoiler a {
    color: #000
}

div.styles {
    float: right;
    padding-bottom: 20px
}

div.styles a {
    margin: 0 10px
}

table.test td, table.test th {
    text-align: left;
    padding: 5px
}

div.pages {
    color: #89a;
    background: #d6daf0;
    display: inline-block;
    padding: 8px;
    margin: 8px 0 4px;
    border-right: 1px solid #b7c5d9;
    border-bottom: 1px solid #b7c5d9
}

div.pages.top {
    padding: 5px 8px;
    margin-bottom: 5px;
    position: fixed;
    top: 0;
    right: 0;
    opacity: .9
}

@media screen and (max-width: 800px) {
    div.pages.top {
        display: none !important
    }
}

div.pages a.selected {
    color: #000;
    font-weight: bolder
}

div.pages form {
    margin: 0;
    padding: 0;
    display: inline
}

div.pages form input {
    margin: 0 5px;
    display: inline
}

hr {
    border-top: 1px solid #b7c5d9;
    height: 0
}

div.report {
    color: #333
}

div.blotter, span.public_ban {
    color: red;
    font-weight: 700
}

table.modlog {
    margin: auto;
    width: 100%
}

table.modlog tr td {
    text-align: left;
    margin: 0;
    padding: 4px 15px 0 0
}

table.modlog tr th {
    text-align: left;
    padding: 4px 15px 5px 5px;
    white-space: nowrap;
    background: #98e
}

td.minimal, th.minimal {
    width: 1%;
    white-space: nowrap
}

div.top_notice {
    text-align: center;
    margin: 5px auto
}

span.public_ban, span.toolong {
    display: block;
    margin-top: 15px
}

div.blotter {
    text-align: center
}

table.mod.config-editor {
    font-size: 9pt;
    width: 100%
}

table.mod.config-editor td {
    text-align: left;
    padding: 5px;
    border-bottom: 1px solid #98e
}

table.mod.config-editor input[type=text] {
    width: 98%
}

.desktop-style div.boardlist:first-child {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    margin-top: 0;
    z-index: 30;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
    border-bottom: 1px solid;
    background: inherit
}

.desktop-style body {
    padding-top: 20px
}

html[data-top-menu], html[data-top-menu] body {
    margin-top: 0
}

:where(html[data-top-menu]) .top-menu {
    display: flow-root
}

html[data-top-menu="fixed"] .boardlist.top-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    margin-top: 0
}

html[data-top-menu="scroll"] .boardlist.top-menu {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: auto
}

:where(html[data-top-menu="fixed"]) .top-menu {
    z-index: 30;
    background: inherit
}

html[data-top-menu="fixed"] {
    scroll-padding-top: var(--top-menu-height)
}

html[data-top-menu="fixed"] body {
    padding-top: var(--top-menu-height)
}

html[data-top-menu="scroll"] body {
    padding-top: 0
}

.desktop-style .sub {
    background: inherit
}

.desktop-style .sub .sub {
    display: inline-block;
    text-indent: -9000px;
    width: 7px;
    background: url('img/arrow.png') right center no-repeat
}

.desktop-style .sub .sub.hover, .desktop-style .sub .sub:hover {
    display: inline;
    text-indent: 0;
    background: inherit
}

#attention_bar {
    height: 1.5em;
    max-height: 1.5em;
    width: 100%;
    text-align: center;
    overflow: hidden
}

#attention_bar_form {
    display: none;
    padding: 0;
    margin: 0
}

#attention_bar_input {
    width: 100%;
    padding: 0;
    margin: 0;
    text-align: center
}

#attention_bar:hover {
    background-color: rgba(100%, 100%, 100%, .2)
}

.intro.thread-hidden {
    margin: 0;
    padding: 0
}

form.ban-appeal {
    margin: 9px 20px
}

.MathJax_Display {
    display: inline !important
}

pre {
    margin: 0;
    max-width: inherit;
    word-wrap: normal;
    overflow: auto;
    display: block !important;
    font-size: 9pt;
    font-family: monospace
}

.theme-catalog div.thread img {
    float: none !important;
    margin: auto;
    max-height: 150px;
    max-width: 200px;
    box-shadow: 0 0 4px rgba(0, 0, 0, .55);
    border: 2px solid rgba(153, 153, 153, 0)
}

.theme-catalog div.thread {
    display: inline-block;
    vertical-align: top;
    text-align: center;
    font-weight: 400;
    margin-top: 2px;
    margin-bottom: 2px;
    padding: 2px;
    height: 300px;
    width: 205px;
    overflow: hidden;
    position: relative;
    font-size: 11px;
    max-height: 300px;
    background: rgba(182, 182, 182, .12);
    border: 2px solid rgba(111, 111, 111, .34)
}

.theme-catalog div.threads {
    text-align: center;
    margin-left: -20px
}

#gallery_toolbar, .cb-menuitem span.cb-uri {
    text-align: right
}

.theme-catalog div.thread:hover {
    background: #d6daf0;
    border-color: #b7c5d9
}

.theme-catalog div.grid-size-small img, .theme-catalog div.grid-size-vsmall img {
    max-height: 33%;
    max-width: 95%
}

.theme-catalog div.grid-size-vsmall {
    min-width: 90px;
    max-width: 90px;
    max-height: 148px
}

.theme-catalog div.grid-size-small {
    min-width: 140px;
    max-width: 140px;
    max-height: 192px
}

.theme-catalog div.grid-size-large img {
    max-height: 40%;
    max-width: 95%
}

.theme-catalog div.grid-size-large {
    min-width: 256px;
    max-width: 256px;
    max-height: 384px
}

.theme-catalog img.thread-image {
    height: auto;
    max-width: 100%
}

@media (max-width: 420px) {
    .theme-catalog ul#Grid {
        padding-left: 18px
    }

    .theme-catalog div.thread {
        width: auto;
        margin-left: 0;
        margin-right: 0
    }

    .theme-catalog div.threads {
        overflow: hidden
    }
}

.compact-boardlist {
    padding: 3px 3px 0
}

.compact-boardlist .cb-item {
    display: inline-block;
    vertical-align: middle
}

.compact-boardlist .cb-icon {
    padding-bottom: 1px
}

.compact-boardlist .cb-fa {
    font-size: 21px;
    padding: 0 2px 2px
}

.compact-boardlist .cb-cat {
    position: relative;
    padding: 5px 6px 8px
}

.desktop-style .compact-boardlist div.cb-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    width: auto
}

.cb-menuitem {
    display: table-row
}

.cb-menuitem span {
    padding: 5px;
    display: table-cell;
    text-align: left;
    border-top: 1px solid rgba(0, 0, 0, .5)
}

.watch-board {
    display: inline-block;
}

.watch-menu {
    display: block;
    position: fixed;
    z-index: 9801;
    box-sizing: border-box;
    width: 14rem;
    max-width: calc(100vw - 16px);
    padding: 4px;
    overflow-y: auto;
    border: 1px solid var(--theme_default_border, #8886);
    border-radius: 4px;
    box-shadow: 0 3px 12px #0003;
    font-size: 14px;
    font-style: normal;
    font-weight: normal;
    line-height: 1.4;
    text-align: left;
}

.watch-menu .watch-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.watch-menu .watch-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    gap: 12px;
    margin: 0;
    padding: 8px;
    border-radius: 3px;
    color: inherit;
    text-decoration: none;
}

.watch-thread-id {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.watch-count {
    color: var(--theme_default_alttext, #777);
    font-variant-numeric: tabular-nums;
}

.watch-count.watch-unread {
    color: var(--theme_default_link, #1177ad);
    font-weight: bold;
}

.watch-menu .watch-remove {
    flex: none;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 20px;
    cursor: pointer;
}

.watch-menu .watch-link:hover,
.watch-menu .watch-remove:hover,
.watch-menu .watch-link:focus-visible,
.watch-menu .watch-remove:focus-visible {
    background: var(--theme_default_btnbghover, #8883);
    color: var(--theme_default_link, inherit);
}

.watch-board-link:focus-visible,
.watch-menu a:focus-visible,
.watch-menu button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

.watch-menu-mobile {
    position: static;
    margin: 8px 0 8px auto;
    max-height: 40vh;
}

.dropzone .file-tmb, .dropzone .remove-btn, .dropzone .tmb-filename, .poster_id, div.mix {
    display: inline-block
}

table.fileboard .intro a {
    margin-left: 0
}

.new-posts {
    opacity: .6
}


#alert_handler, #options_handler {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    z-index: 9900;
    background: inherit;
    visibility: hidden
}

#alert_background, #options_background {
    background: #000;
    opacity: .5;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    visibility: visible
}

#alert_div, #options_div {
    background-color: #d6daf0;
    border: 1px solid #000;
    display: inline-block;
    position: relative;
    margin-top: 20px;
    background: inherit;
    visibility: visible
}

#options_div, #watchlist {
    border: 1px solid;
    overflow: auto
}

#alert_div {
    width: 500px
}

#alert_message {
    text-align: center;
    margin: 13px;
    font-size: 110%
}

.alert_button {
    margin-bottom: 13px
}

#alert_close {
    top: 0;
    right: 0;
    position: absolute;
    margin-right: 3px;
    font-size: 20px;
    z-index: 100
}

#gallery_main {
    top: 0;
    padding: 10px;
    position: absolute
}

.mobile-style #alert_div {
    display: block;
    width: 100%;
    height: 100%;
    margin-top: 0
}

#options_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 24px;
    min-height: 24px;
    margin: 0 16px 0 4px;
    float: right
}

body.options-open {
    overflow: hidden;
}

#options_handler {
    background-image: none;
}

#options_div {
    display: inline-grid;
    grid-template-columns: 180px minmax(0, 1fr);
    width: min(900px, calc(100% - 32px));
    height: min(640px, calc(100% - 48px));
    margin-top: 24px;
    overflow: hidden;
    box-sizing: border-box;
    background-image: none;
    border-color: var(--theme_default_border, currentColor);
    border-radius: 6px;
    box-shadow: 0 8px 32px #0004;
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
}

#options_div #options_close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font: 26px/1 sans-serif;
    cursor: pointer;
}

#options_tablist {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 8px;
    overflow: auto;
    border-right: 1px solid;
    border-color: var(--theme_default_border, currentColor);
}

#options_tablist .options_tab_icon {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: 100%;
    margin: 0;
    padding: 8px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font: inherit;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
}

#options_tablist .options_tab_icon i {
    width: 20px;
    flex-shrink: 0;
    font-size: 16px;
    text-align: center;
}

#options_tablist .active {
    font-weight: bold;
    background-color: var(--theme_default_altbtnbg, #8882);
}

#options_tablist .options_tab_icon:hover, #options_div #options_close:hover {
    background-color: var(--theme_default_altbtnbghover, #8883);
}

#options_div :focus-visible {
    outline: 2px solid var(--theme_default_link, currentColor);
    outline-offset: 2px;
}

#options_div .options_tab {
    min-width: 0;
    padding: 20px 24px;
    overflow: auto;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
}

#options_div h2 {
    margin: 0 24px 20px 0;
    color: inherit;
    font-size: 18px;
    text-align: left;
}

#options_div fieldset {
    min-width: 0;
    margin: 0 0 24px;
    padding: 12px 0 0;
    border: 0;
    border-top: 1px solid;
    border-color: var(--theme_default_border, currentColor);
}

#options_div legend {
    padding: 0 8px 0 0;
    font-weight: bold;
}

#options_div label {
    display: block;
    margin: 0 0 8px;
    cursor: pointer;
}

#options_div input, #options_div select, #options_div textarea, #options_div button {
    box-sizing: border-box;
    max-width: 100%;
    font-size: inherit;
}

#options_div select, #options_div button, #options_div input[type="button"] {
    height: auto;
    min-height: 32px;
    line-height: 1.5;
}

#options_div input[type="checkbox"] {
    margin: 0 8px 0 0;
    vertical-align: middle;
}

#options_div input[type="number"] {
    width: 6em;
}

#options_div input[type="text"], #options_div input[type="number"], #options_div select {
    padding: 4px 8px;
}

#options_div button, #options_div input[type="button"] {
    padding: 6px 12px;
    cursor: pointer;
}

#options_div :disabled {
    opacity: .55;
    cursor: default;
}

#options_div .options-row, #options_div .options-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 12px;
}

#options_div .options-actions button {
    margin: 0;
}

#options_div .options-output {
    width: 100%;
    margin-top: 12px;
}

#options_div #style-select {
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    #options_div {
        grid-template-columns: minmax(0, 1fr) 48px;
        grid-template-rows: auto minmax(0, 1fr);
        width: calc(100% - 16px);
        height: calc(100% - 16px);
        margin-top: 8px;
    }

    #options_tablist {
        grid-column: 1;
        grid-row: 1;
        flex-direction: row;
        padding: 8px;
        border-right: 0;
        border-bottom: 1px solid;
    }

    #options_tablist .options_tab_icon {
        width: auto;
        white-space: nowrap;
    }

    #options_div .options_tab {
        grid-column: 1 / -1;
        padding: 16px;
    }

    #options_div #options_close {
        position: static;
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        justify-self: center;
    }
}

.poster_id {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none
}

.poster_id:hover {
    color: maroon !important
}

.poster_id::before {
    content: " ID: "
}

span.pln {
    color: grey
}

@media screen and (min-width: 768px) {
    .intro, div.post div.body {
        clear: none
    }
}

.clearfix {
    display: block;
    clear: both;
    visibility: hidden;
    overflow: hidden;
    font-size: 0px;
    line-height: 0;
    box-sizing: border-box;
    height: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    zoom: 1
}

div.boardlist {
    color: #89a;
    font-size: 9pt;
    width: 100%;
    left: 0;
}

div.boardlist.bottom {
    margin-top: 12px;
    clear: both
}

#thread-interactions, #thread-interactions_header {
    margin: 8px 0;
    clear: both
}

#thread-interactions.board-toolbar,
#thread-interactions_header.board-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3em .75em;
    margin: .4em 0;
    font-size: .8em;
    color: var(--theme_default_alttext, inherit)
}

.board-toolbar #thread-links,
.board-toolbar #thread-links_header,
.watch-controls {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35em;
    float: none
}

.board-toolbar #thread-links > a,
.board-toolbar #thread-links_header > a,
.board-toolbar #updater > a,
.watch-controls button,
.board-toolbar .new-threads button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4em;
    box-sizing: border-box;
    min-height: 1.9em;
    margin: 0;
    padding: .2em .35em;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    font: inherit;
    line-height: 1.3;
    cursor: pointer
}

.board-toolbar #thread-links > a:not(:hover),
.board-toolbar #thread-links_header > a:not(:hover),
.board-toolbar #updater > a:not(:hover),
.watch-controls button,
.board-toolbar .new-threads button {
    color: var(--theme_default_link, inherit);
    text-decoration: none
}

.board-toolbar #updater {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35em;
    color: inherit;
    font: inherit
}

.board-toolbar #updater label,
.board-toolbar .tree-view-cntrl {
    display: inline-flex;
    align-items: center;
    gap: .35em;
    min-height: 1.9em;
    cursor: pointer
}

.board-toolbar .tree-view-cntrl {
    order: 1;
    margin-left: auto;
    padding: .2em .35em;
    border-radius: 3px;
    font: inherit;
    line-height: 1.3
}

.board-toolbar .tree-view-cntrl:hover {
    background-color: var(--theme_default_btnbghover, #8882)
}

.board-toolbar #auto_update_status,
.board-toolbar #treeview {
    margin: 0
}

.board-toolbar #update_secs {
    min-width: 2ch;
    font-variant-numeric: tabular-nums
}

.watch-controls button[aria-pressed="true"],
.watch-controls button[aria-expanded="true"] {
    background-color: var(--theme_default_btnbg, #8882)
}

.board-toolbar button:hover,
.watch-controls button:hover,
.board-pages a[href]:hover {
    background-color: var(--theme_default_btnbghover, #8882)
}

.board-toolbar button:hover {
    font-weight: inherit
}

.board-toolbar a:focus-visible,
.board-toolbar button:focus-visible,
.board-toolbar input:focus-visible,
.watch-controls button:focus-visible,
.board-pages a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px
}

.board-toolbar form.index-search {
    display: flex;
    flex: 0 1 12em;
    align-items: stretch;
    min-width: 9em;
    max-width: 100%;
    margin: 0;
    border: 1px solid var(--theme_default_border, #8888);
    border-radius: 3px;
    background: var(--theme_default_altbtnbg, transparent)
}

.board-toolbar .index-search input[type="search"] {
    flex: 1;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: .25em .45em;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit
}

.board-toolbar .index-search button {
    flex: none;
    margin: 0;
    padding: .25em .5em;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer
}

.board-toolbar .new-threads {
    margin: 0;
    padding: 0
}

.new-threads[hidden],
.new-posts[hidden],
.watch-menu[hidden] {
    display: none
}

.boardlist #watch-pinned:empty {
    display: none
}

.boardlist #watch-pinned:not(:empty) {
    display: inline-flex;
    flex-wrap: wrap;
    max-width: 100%;
    align-items: baseline;
    gap: .25em;
    margin-left: .3em
}

.boardlist span#watch-pinned:not(:empty)::before {
    content: "["
}

.boardlist span#watch-pinned:not(:empty)::after {
    content: "]"
}

.boardlist #watch-pinned .watch-pin-icon {
    font-size: .8em
}

.boardlist #watch-pinned a {
    margin: 0
}

div.pages.board-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3em;
    margin: .4em 0;
    padding: 0;
    font-size: .85em;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    color: inherit !important
}

div.pages.board-pages.top {
    position: static;
    opacity: 1
}

.board-toolbar .watch-menu-mobile {
    flex-basis: 100%;
    width: auto;
    max-width: 100%;
    margin: 0;
    box-shadow: none
}

.board-pages .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: .15em
}

.board-pages a,
.board-pages > span[aria-disabled] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4em;
    box-sizing: border-box;
    min-width: 1.9em;
    min-height: 1.9em;
    padding: .2em .4em;
    border: 1px solid transparent;
    border-radius: 3px;
    line-height: 1.3;
    white-space: nowrap
}

div.board-pages a.selected {
    background-color: var(--theme_default_btnbg, #8882);
    border-color: var(--theme_default_border, #8884);
    color: inherit;
    font-weight: bold
}

.board-pages [aria-disabled="true"] {
    opacity: .5
}

@media (max-width: 600px) {
    .board-toolbar form.index-search {
        flex-grow: 1
    }

    .board-toolbar .watch-controls {
        flex-basis: 100%
    }

    .board-toolbar:has(.tree-view-cntrl) .watch-controls {
        flex-basis: auto
    }

    .board-toolbar #thread-links > a,
    .board-toolbar #thread-links_header > a,
    .board-toolbar #updater > a,
    .board-toolbar #updater label,
    .board-toolbar .tree-view-cntrl,
    .board-toolbar button,
    .watch-controls button,
    .board-pages a,
    .board-pages > span[aria-disabled] {
        min-height: 2.5em
    }

    .board-pages .page-next {
        margin-left: auto
    }

    .board-pages .page-numbers {
        flex-basis: 100%;
        order: 1
    }
}

#thread-quick-reply {
    display: none;
    position: absolute;
    left: 50%;
    right: 50%;
    text-align: center;
    width: 100px;
    margin-left: -50px
}

#thread_stats {
    float: right;
    display: inline;
    margin-left: 10px;
    margin-right: 10px
}

#post-moderation-fields {
    float: right;
    text-align: right
}

#watchlist {
    display: none;
    max-height: 250px;
    border-style: none solid solid none;
    width: 50%;
    margin: 0 auto 10px
}

.watchlist-controls, .watchlist-inner {
    margin: 10px auto;
    text-align: center
}

#youtube-size input {
    width: 50px
}

.dropzone {
    color: inherit;
    cursor: default;
    margin: auto;
    padding: 4px;
    box-sizing: border-box;
    text-align: center;
    min-height: 50px;
    max-height: 140px;
    transition: .2s;
    background-color: rgba(128, 128, 128, .12);
    overflow-y: auto
}

.dropzone .file-hint {
    color: inherit;
    cursor: pointer;
    margin: 0;
    padding: 10px 4px;
    box-sizing: border-box;
    transition: .2s;
    border: 2px dashed rgba(125, 125, 125, .4)
}

.dropzone.dragover .file-hint, .file-hint:hover {
    color: inherit;
    border-color: rgba(125, 125, 125, .8)
}

.dropzone.dragover {
    background-color: rgba(128, 128, 128, .25)
}

.dropzone .file-thumbs {
    text-align: left;
    width: 100%
}

.dropzone .tmb-container {
    padding: 3px;
    overflow-x: hidden;
    white-space: nowrap
}

.dropzone .file-tmb {
    height: 40px;
    width: 70px;
    cursor: pointer;
    text-align: center;
    background-color: rgba(187, 187, 187, .5);
    background-size: cover;
    background-position: center
}

.dropzone .file-tmb span {
    font-weight: 600;
    position: relative;
    top: 13px
}

.dropzone .tmb-filename {
    vertical-align: bottom;
    bottom: 12px;
    position: relative;
    margin-left: 5px
}

.dropzone .remove-btn {
    cursor: pointer;
    color: rgba(125, 125, 125, .5);
    vertical-align: bottom;
    bottom: 10px;
    position: relative;
    margin-right: 5px;
    font-size: 20px
}

.dropzone .remove-btn:hover {
    color: #7d7d7d
}

table.fileboard td, table.fileboard th {
    padding: 2px;
    text-align: center
}

#gallery_images {
    position: absolute;
    right: 0;
    top: 0;
    width: 12%;
    overflow: auto
}

#gallery_toolbar {
    position: absolute;
    right: 12%;
    left: 0;
    height: 32px
}

#gallery_images img {
    width: 100%;
    opacity: .6;
    -webkit-transition: .5s;
    transition: .5s
}

#gallery_toolbar a {
    font-size: 28px;
    padding-right: 5px
}

#gallery_main {
    left: 0;
    right: 12%;
    bottom: 32px
}

#gallery_images img.active, #gallery_images img:hover {
    opacity: 1
}

#gallery_images img.active {
    -webkit-box-shadow: 0 0 29px 2px #fff;
    -moz-box-shadow: 0 0 29px 2px #fff;
    box-shadow: 0 0 29px 2px #fff;
    z-index: 1
}

#gallery_main img, #gallery_main video {
    max-width: 100%;
    max-height: 100%;
    position: absolute
}

.own_post {
    font-style: italic;
    font-weight: 400;
    opacity: .666
}

.dropbtn {
    display: inline;
    color: #acacac;
    background: 0 0;
    padding: 0;
    font-size: .7rem;
    cursor: pointer
}

.dropdown {
    position: relative;
    display: inline-block
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ddd;
    min-width: 30px;
    z-index: 1
}

.dropdown-content a {
    color: #333;
    padding: 5px 3px;
    font-size: .65rem;
    display: block
}

.dropdown-content a:hover {
    background-color: #4a4a4a;
    color: #fff
}

.dropdown:hover .dropbtn {
    color: #212121
}

#alert_close {
    margin-right: 13px;
    margin-top: 5px;
}

.emoji {
    width: 2rem;
    vertical-align: -0.15em;
    padding: 0 0.15em;
    margin: 0 .05em 0 .1em;
    display: inline-block;
}


#expand-all-images, #shrink-all-images {
    display: inline;
    padding: 0 5px;
    font-size: .7rem
}


#thread-interactions, #thread-interactions_header, #thread_stats, #updater {
    display: inline;
    font-size: .7rem;
}

.index-search {
    display: inline-block;
    margin: 0
}

.file:not(.multifile) {
    float: left
}

div.post.op, div.post.reply {
    /*word-break: break-word;
    word-wrap: break-word;*/
    position: relative;
    /*margin-left: 15px;*/
    min-width: fit-content;
}


span.public_ban, span.toolong {
    margin-left: 0 ;
}

.files {
    height: max-content;
}

p.intro {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
}

.files {
    float: left;
    display: flex;
    flex-flow: row wrap;
}

.fileinfo, .no-new-threads, .unimportant, .unimportant * {
    font-size: .7rem;
}

.index-search-input {
    height: 1.5rem;
}

div.post p.fileinfo {
    width: fit-content;
    padding-left: 0;
    margin: 0;
}


div.post.reply:before {
    content: '...';
    position: absolute;
    top: -5px;
    left: -21px;
}
div.post.reply.post-hover:before {
    content: '';
}

div.post i.fa {
    font-size: .7rem
}

.video-pop {
    float: none !important
}
div.post.reply div.body {
    word-break: break-word;
    word-wrap: break-word;
    margin-left: 0;
    margin-top: 0;
    margin-right: 0;
    padding-right: 3em;
    padding-bottom: 0;
}

.files {
    float: left;
    display: flex;
    flex-flow: row wrap;
}

p.intro {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
}

.intro {
    font-size: .9em;
}

.open-form {
    font-size: 16pt;
}

input[type=password], input[type=text], select, textarea
 {
    border: none;
    outline: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.search-box {
    max-width: 700px;
    margin: 20px auto 30px
}

.search-box-inner {
    display: block !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important
}

.search-box-inner:before {
    display: none !important
}

.search-title-wrap {
    width: 100%;
    margin: 0
}

.search-box-title {
    display: block;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 11pt;
    margin: 0;
    background: rgba(128, 128, 128, .15)
}

.search-box form {
    margin: 0;
    padding: 15px
}

.search-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center
}

.search-row input[type=text],
.search-row select,
.search-row input[type=submit] {
    height: auto !important;
    line-height: 1.4 !important;
    padding: 8px 12px !important;
    vertical-align: middle
}

.search-row input[type=text] {
    flex: 1;
    min-width: 200px;
    font-size: 10pt
}

.search-row input[type=text]:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(128, 128, 128, .3)
}

.search-row select {
    min-width: 140px;
    cursor: pointer
}

.search-row input[type=submit] {
    padding: 8px 20px !important;
    cursor: pointer;
    font-weight: 700
}

.search-help {
    margin: 15px 0 0 0;
    padding: 12px 15px;
    font-size: 9pt;
    background: rgba(128, 128, 128, .08);
    border-top: 1px solid rgba(128, 128, 128, .2)
}

.search-help details {
    cursor: pointer
}

.search-help summary {
    text-decoration: underline;
    padding: 3px 0
}

.search-help summary:hover {
    opacity: .7
}

.search-help ul {
    margin: 12px 0 5px 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px 25px
}

.search-help li {
    padding: 4px 0;
    border-bottom: 1px dotted rgba(128, 128, 128, .3)
}

.search-help li:before {
    content: "› ";
    opacity: .5
}

.search-help code {
    background: rgba(128, 128, 128, .15);
    padding: 2px 6px;
    font-family: monospace;
    font-size: 9pt
}

.search-results {
    max-width: 900px;
    margin: 25px auto
}

.search-results-header-wrap {
    margin: 0 0 10px 0
}

.search-results-header {
    display: block;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 11pt;
    background: rgba(128, 128, 128, .15)
}

.search-results-header a {
    color: inherit;
    text-decoration: none
}

.search-results-header a:hover {
    text-decoration: underline
}

.search-results-body {
    display: block;
    max-width: 100%
}

.search-result-item {
    display: block;
    margin-bottom: 10px !important;
    max-width: 100% !important
}

.search-result-item:before {
    display: none !important
}

.search-result-item .intro {
    margin-top: 0
}

.search-result-item hr {
    display: none
}

.search-no-results {
    display: block;
    max-width: 700px;
    margin: 30px auto;
    text-align: center;
    padding: 50px 20px;
    font-size: 11pt
}

.search-no-results:before {
    content: "¯\\_(ツ)_/¯";
    display: block;
    font-size: 28pt;
    margin-bottom: 20px;
    opacity: .4
}

.search-highlight {
    background: #ff0;
    color: #000;
    padding: 1px 3px
}

.thread {
    contain: layout style paint;
}

div.post.reply {
    contain: layout style;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.picmo__popupContainer {
    z-index: 2147483647 !important;
}

input#treeview {
    width: 11px; height: 11px;
    accent-color: #999; filter: brightness(0.85);
    vertical-align: middle;
    cursor: pointer;
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
}

#quick-reply th {
    border: 0 !important;
}
#quick-reply table {
    border-collapse: inherit !important;
    border-spacing: 0;
    border-radius: 4px !important;
}

html {
    scroll-padding-top: 60px;
}

div.post, div.thread {
    scroll-margin-top: 60px;
}

:root {
    --color-primary-red: #ED1C25;
    --gradient-rainbow: linear-gradient(
                135deg,
                #00ffff,
                #00ff00,
                #ffff00,
                #ff7f00
            );
}

.capcode {
    font-weight: bold;
    font-family: sans-serif;
}

.text-red {
    color: var(--color-primary-red);
}

.text-rainbow {
    background-image: var(--gradient-rainbow);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.video-container {
    position: relative;
    display: flow-root !important;
}
.video-container > a.file {
    position: relative;
    display: inline-block;
}
.video-container > a.file::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(212, 18, 18, 0.8);
    border-radius: 14px / 50%;
    pointer-events: none;
    z-index: 1;
    transition: background 0.2s;
}
.video-container:hover > a.file::before {
    background: rgba(255, 0, 0, 0.95);
}
.video-container > a.file::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
    pointer-events: none;
    z-index: 2;
}


#edit-post {
    max-width: 640px;
    margin: 24px auto 48px;
    padding: 0 16px;
    font-size: 14px;
    text-align: left;
}

#edit-post .edit-post-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

#edit-post label {
    display: grid;
    gap: 4px;
    font-weight: bold;
}

#edit-post .edit-post-wide {
    grid-column: 1 / -1;
}

#edit-post input[type="text"],
#edit-post textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 8px;
    font: inherit;
    font-weight: normal;
    border: 1px solid #a9a9a9;
}

#edit-post textarea {
    min-height: 104px;
    resize: vertical;
}

#edit-post .edit-post-files {
    border: 0;
    padding: 0;
    margin: 24px 0;
}

#edit-post legend {
    padding: 0;
    font-weight: bold;
}

#edit-post ul {
    padding: 0;
    margin: 8px 0 0;
    list-style: none;
}

#edit-post .edit-attachment {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}

#edit-post .attachment-preview-link {
    display: grid;
    place-items: center;
    width: 96px;
    height: 72px;
}

#edit-post .attachment-preview {
    max-width: 96px;
    max-height: 72px;
    object-fit: contain;
}

#edit-post .attachment-info {
    display: grid;
    justify-items: start;
    gap: 8px;
    min-width: 0;
    overflow-wrap: anywhere;
}

#edit-post input[type="file"] {
    max-width: 100%;
}

#edit-post .attachment-actions,
#edit-post .edit-post-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

#edit-post .edit-post-actions {
    gap: 16px;
}

#edit-post .edit-post-mode {
    margin-top: 16px;
    font-size: 12px;
}

#edit-post [hidden] {
    display: none;
}

@media (max-width: 520px) {
    #edit-post .edit-post-fields {
        grid-template-columns: 1fr;
    }

    #edit-post .edit-attachment {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 8px 16px;
    }

    #edit-post .attachment-preview-link {
        width: 72px;
        grid-row: span 2;
    }

    #edit-post .attachment-preview {
        max-width: 72px;
    }

    #edit-post .attachment-actions {
        grid-column: 2;
    }
}

/* Post actions */
.has-post-menu input.delete,
.has-post-menu #post-moderation-fields {
    display: none;
}

.intro button.post-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    height: 1.25em;
    margin: 0 0 0 .35em;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}

.post-btn .fa {
    font-size: .8em;
    pointer-events: none;
    transition: transform .15s ease;
}

.post-btn[aria-expanded="true"] .fa {
    transform: rotate(90deg);
}

.intro button.post-btn:hover,
.intro button.post-btn:focus-visible,
.intro button.post-btn[aria-expanded="true"] {
    background: var(--theme_default_btnbghover, #8883);
    color: var(--theme_default_link, inherit);
}

.intro button.post-btn:active {
    color: var(--theme_default_hover, inherit);
}

@media (prefers-reduced-motion: reduce) {
    .intro button.post-btn,
    .post-btn .fa {
        transition: none;
    }
}

.post-btn:focus-visible,
.post-menu li:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.post-menu {
    position: absolute;
    z-index: 100;
    min-width: 12em;
    max-width: calc(100vw - 8px);
    border: 1px solid #666;
    border-radius: 4px;
    box-shadow: 0 4px 16px #0004;
    color: inherit;
    line-height: 1.4;
}

.post-menu ul {
    list-style: none;
    margin: 0;
    padding: .35em 0;
}

.post-menu li {
    position: relative;
    padding: .4em 1em;
    cursor: pointer;
    white-space: nowrap;
}

.post-menu li:hover,
.post-menu li:focus {
    background: var(--theme_default_postbg, #8883);
}

.post-menu ul ul {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: var(--theme_default_bg, #eee);
    border: 1px solid #666;
}

.post-menu li:hover > ul,
.post-menu li:focus-within > ul {
    display: block;
}

.post-menu-arrow {
    float: right;
    margin-left: 1em;
}

.post-action-dialog {
    box-sizing: border-box;
    width: 28em;
    max-width: calc(100vw - 2em);
    max-height: calc(100dvh - 2em);
    margin: auto;
    padding: 1em 1.2em;
    border: 1px solid #666;
    border-radius: 6px;
    color: inherit;
    font: inherit;
    text-align: left;
    box-shadow: 0 8px 32px #0004;
}

.post-action-dialog::backdrop {
    background: #0008;
}

.post-action-dialog h2 {
    margin: 0 1.5em .8em 0;
    padding: 0;
    color: inherit;
    font: bold 1em/1.4 sans-serif;
    letter-spacing: normal;
    text-align: left;
}

.post-action-dialog .post-action-close {
    position: absolute;
    top: .35em;
    right: .5em;
    padding: 0 .2em;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.3em;
    cursor: pointer;
}

.post-action-dialog form,
.post-action-dialog p {
    margin: 0;
}

.post-action-fields > p + p {
    margin-top: 1em;
}

.post-action-reasons {
    margin: 0 0 .7em;
    padding: 0;
    border: 0;
}

.post-action-reasons label {
    display: block;
    margin: .25em 0;
}

.post-action-dialog input,
.post-action-dialog button,
.post-action-dialog textarea {
    font-size: 1em;
}

.post-action-dialog input[type="password"] {
    max-width: 100%;
}

.post-action-dialog textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 2.6em;
    resize: vertical;
}

.post-action-dialog .post-action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .3em;
    margin-top: 2em;
}

.post-action-dialog .post-action-message:not([hidden]) {
    margin-top: 1em;
    overflow-wrap: anywhere;
}

.post-hidden > :not(.intro),
.hidden_thread > :not(.op),
.hidden_thread .op > :not(.intro) {
    display: none !important;
}

.intro .hide-thread-link {
    margin-left: 0;
    margin-right: .35em;
}
