/* Shared board, post, form and dialog layout. Theme variables are loaded separately. */
* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background-color: var(--page-bg);
    background-image: var(--page-fade);
    background-position: top center;
    background-repeat: repeat-x;
    color: var(--ink);
    font-family: var(--page-font);
    font-size: var(--page-font-size);
    margin: 5px 0 8px;
    min-height: 100vh;
    padding: 0 5px;
}

a,
a:link,
a:visited {
    color: var(--link);
}

button,
input,
textarea {
    font: inherit;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    clear: both;
    height: 0;
}

hr.abovePostForm {
    width: 90%;
}

.board-nav {
    color: var(--muted-ink);
    display: flex;
    font-size: 9pt;
    justify-content: space-between;
    line-height: 1.4;
}

.board-nav a {
    color: var(--ink);
    padding: 1px;
    text-decoration: none;
}

.board-nav a:hover,
.postNum a:hover {
    color: red;
}

.boardBanner {
    clear: both;
    text-align: center;
}

#bannerCnt {
    border: 1px solid var(--ink);
    height: 100px;
    margin: 5px auto;
    max-width: 100%;
    width: 300px;
}

.banner-placeholder {
    align-items: center;
    background:
        linear-gradient(120deg, rgba(128, 0, 0, 0.82), rgba(204, 68, 34, 0.58)),
        repeating-linear-gradient(45deg, transparent 0 12px, rgba(255,255,255,.15) 12px 14px),
        #402018;
    color: #fff6dc;
    display: flex;
    font-family: Georgia, serif;
    font-size: 32px;
    font-weight: bold;
    justify-content: center;
    letter-spacing: 0.15em;
    text-shadow: 0 2px 2px #300;
}

.boardTitle {
    font-family: Tahoma, sans-serif;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: -2px;
}

.boardSubtitle {
    font-size: x-small;
}

.board-actions {
    color: var(--link);
    font-size: 16pt;
    font-weight: bold;
    margin: 8px 0;
    text-align: center;
}

.announcement {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    margin: 26px 0 10px;
    min-height: 50px;
    padding: 14px 36px;
    position: relative;
    text-align: center;
}

.announcement strong {
    color: #e04000;
    font-size: 14pt;
}

.collapse-button {
    background: #b54b4b;
    border: 0;
    border-radius: 2px;
    color: white;
    height: 14px;
    left: 2px;
    line-height: 12px;
    padding: 0;
    position: absolute;
    top: 11px;
    width: 14px;
}

.ad-placeholder {
    align-items: center;
    background: #303038;
    border: 1px solid #111;
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 90px;
    justify-content: center;
    margin: 10px auto 22px;
    max-width: 100%;
    width: 728px;
}

.ad-placeholder span {
    font-size: 24px;
    letter-spacing: 0.08em;
}

.ad-placeholder small {
    color: #bbb;
    margin-top: 6px;
}

.board-tools {
    margin: 5px 0;
}

.board-tools form {
    display: inline;
}

.board-tools input {
    width: 125px;
}

.board {
    clear: both;
}

.no-threads {
    color: var(--secondary-ink);
    margin: 45px auto;
    text-align: center;
}

.opContainer {
    display: block;
}

.replyContainer {
    clear: both;
}

.sideArrows {
    color: #e0bfb7;
    float: left;
    margin: 0 2px;
}

.post {
    margin: 4px 0;
    min-height: 20px;
    overflow: hidden;
}

.post.op {
    background: transparent;
}

.post.reply {
    background-color: var(--reply-bg);
    border: 1px solid var(--reply-border);
    border-left: 0;
    border-top: 0;
    display: table;
    padding: 2px;
}

.postInfo {
    display: block;
    white-space: normal;
}

.post-select {
    margin: 1px 4px 1px 1px;
    vertical-align: text-bottom;
}

.sticky-icon {
    display: inline-block;
    margin-right: 4px;
    vertical-align: text-bottom;
}

.post-mod-form {
    display: inline;
    margin: 0;
}

.post-mod-button {
    appearance: none;
    background: none;
    border: 0;
    color: var(--link);
    cursor: pointer;
    font: inherit;
    font-size: smaller;
    margin: 0;
    padding: 0;
    text-decoration: underline;
}

.mod-action-link,
.mod-action-link:link,
.mod-action-link:visited {
    color: var(--link);
}

.post-mod-button:disabled,
.media-mod-button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.post-mod-destructive,
.media-mod-delete {
    color: var(--subject);
}

.soft-delete-status {
    color: var(--secondary-ink);
    font-weight: bold;
    margin-right: 4px;
}

.soft-deleted-post {
    opacity: 0.62;
}

.soft-deleted-post:hover,
.soft-deleted-post:focus-within {
    opacity: 1;
}

.is-banned-source {
    outline: 1px solid var(--subject);
    outline-offset: 1px;
}

.is-moderation-removing {
    pointer-events: none;
    position: relative;
    z-index: 20;
}

.sticky-replies {
    clear: both;
}

.sticky-reply-copy {
    margin-bottom: 5px;
}

.sticky-copy {
    outline: 1px dashed var(--reply-border);
    outline-offset: 1px;
}

.mod-action-toasts {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: min(360px, calc(100vw - 20px));
    position: fixed;
    right: 10px;
    top: 10px;
    z-index: 10000;
}

.mod-action-toast {
    background: var(--reply-bg);
    border: 1px solid var(--reply-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    color: var(--ink);
    padding: 7px 10px;
    transition: opacity 180ms ease, transform 180ms ease;
}

.mod-action-toast.is-error {
    border-color: var(--subject);
    color: var(--subject);
}

.mod-action-toast.is-leaving {
    opacity: 0;
    transform: translateX(20px);
}

.mod-ban-dialog {
    background: var(--page-bg);
    border: 2px solid var(--reply-border);
    color: var(--ink);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    max-width: none;
    margin: auto;
    overflow: auto;
    padding: 0;
    width: min(520px, calc(100% - 24px));
}

.mod-ban-dialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
}

.mod-ban-form {
    display: grid;
    gap: 9px;
    min-width: 0;
    padding: 12px;
}

.mod-ban-form header {
    background: var(--label-bg);
    margin: -12px -12px 2px;
    padding: 6px 9px;
}

.mod-ban-form label {
    display: grid;
    gap: 3px;
    font-weight: bold;
}

.mod-ban-form .ban-custom-reason[hidden] {
    display: none;
}

.mod-ban-form input,
.mod-ban-form select,
.mod-ban-form textarea {
    background: var(--dropzone-bg);
    border: 1px solid var(--reply-border);
    color: var(--ink);
    font: inherit;
    max-width: 100%;
    min-width: 0;
    padding: 4px;
    width: 100%;
}

.mod-ban-form textarea {
    min-height: 80px;
    resize: vertical;
}

.mod-ban-form .ban-checkbox-group {
    border: 1px solid var(--reply-border);
    display: grid;
    gap: 4px;
    margin: 0;
    min-width: 0;
    padding: 5px 7px 7px;
}

.mod-ban-form .ban-checkbox-group legend {
    font-weight: bold;
    padding: 0 3px;
}

.mod-ban-form .ban-board-scope-options {
    display: grid;
    gap: 4px;
}

.mod-ban-form label.ban-checkbox-option {
    align-items: center;
    display: flex;
    font-weight: normal;
    gap: 6px;
}

.mod-ban-form .ban-checkbox-option input[type="checkbox"] {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    width: auto;
}

.mod-ban-form footer {
    text-align: right;
}

.mod-ban-form .ban-submit {
    color: var(--subject);
    font-weight: bold;
}

@media (max-width: 420px) {
    .mod-ban-dialog {
        max-height: calc(100vh - 12px);
        max-height: calc(100dvh - 12px);
        width: calc(100% - 12px);
    }

    .mod-ban-form {
        gap: 7px;
        padding: 9px;
    }

    .mod-ban-form header {
        margin: -9px -9px 2px;
    }

    .mod-ban-form textarea {
        min-height: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mod-action-toast {
        transition: none;
    }
}

.nameBlock {
    display: inline-block;
}

.name {
    color: var(--name);
    font-weight: bold;
}

.useremail {
    text-decoration: none;
}

.useremail .name {
    color: inherit;
}

.useremail:hover .name {
    text-decoration: underline;
}

.subject {
    color: var(--subject);
    font-weight: bold;
    margin-right: 4px;
}

.postInfo time {
    margin-left: 4px;
}

.postNum {
    margin-left: 4px;
}

.postNum a {
    color: var(--ink);
    text-decoration: none;
}

.reply-link {
    text-decoration: none;
}

.postMessage {
    display: block;
    margin: 1em 40px;
    min-width: 220px;
    overflow-wrap: anywhere;
}

.quotelink {
    color: var(--quote-link) !important;
    text-decoration: underline;
}

.quotelink.is-dead {
    color: var(--secondary-ink) !important;
    cursor: not-allowed;
    text-decoration: line-through;
}

.quote-preview {
    background: var(--reply-bg);
    border: 1px solid var(--reply-border);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
    color: var(--ink);
    max-height: min(70vh, 520px);
    max-width: calc(100vw - 16px);
    overflow: auto;
    padding: 6px 8px;
    pointer-events: none;
    position: fixed;
    width: min(430px, calc(100vw - 16px));
    z-index: 9999;
}

.quote-preview[hidden] {
    display: none;
}

.quote-preview-header {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 3px 6px;
}

.quote-preview-thread {
    color: var(--secondary-ink);
    font-size: 9pt;
}

.quote-preview-media {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.quote-preview-thumbnail {
    height: auto;
    max-height: 120px;
    max-width: 160px;
    object-fit: contain;
}

.quote-preview-attachment {
    color: var(--secondary-ink);
    font-size: 9pt;
}

.quote-preview-body {
    margin-top: 7px;
    overflow-wrap: anywhere;
}

.quote-preview-body > :first-child {
    margin-top: 0;
}

.quote-preview-body > :last-child {
    margin-bottom: 0;
}

.quote-preview-body pre {
    overflow: auto;
    white-space: pre-wrap;
}

.quote-preview-status {
    color: var(--secondary-ink);
}

.quote {
    color: var(--quote);
}

.file {
    display: block;
}

.postMedia {
    align-items: flex-start;
    display: flex;
    float: left;
    flex-wrap: wrap;
    max-width: 100%;
}

.postMedia .file {
    margin-right: 8px;
    max-width: 290px;
}

.postMedia .media-video {
    max-width: min(760px, 92vw);
}

.postMedia .media-audio {
    max-width: min(440px, 90vw);
}

.postMedia .media-pending {
    border: 1px dashed var(--reply-border);
    padding: 3px;
}

.fileText .media-approval-state {
    color: var(--subject);
    font-weight: bold;
    margin-left: 4px;
    text-decoration: none;
}

.media-mod-controls {
    align-items: center;
    display: flex;
    gap: 4px;
    margin: 2px 20px 4px;
}

.media-mod-form {
    display: inline;
    margin: 0;
}

.media-mod-button {
    appearance: none;
    background: none;
    border: 0;
    color: var(--link);
    cursor: pointer;
    font: inherit;
    margin: 0;
    padding: 0;
    text-decoration: underline;
}

.media-mod-delete {
    color: var(--subject);
}

.media-police-control {
    cursor: help;
}

.pending-media-placeholder img {
    height: auto;
    max-height: 180px;
    max-width: 250px;
}

.fileText {
    margin-right: 10px;
    overflow-wrap: anywhere;
}

.fileText a,
.fileText span {
    color: var(--link);
    text-decoration: underline;
}

.fileThumb {
    float: left;
    margin: 3px 20px 5px;
}

.postMedia .fileThumb {
    display: block;
    float: none;
}

.fileThumb img {
    border: 0;
    display: block;
    height: auto;
    max-width: 100%;
}

.image-expander {
    cursor: zoom-in;
}

.image-expander.is-expanded {
    cursor: zoom-out;
    max-width: none;
}

.postMedia.has-expanded-image {
    float: none;
    width: 100%;
}

.postMedia .media-image.is-image-expanded {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

.image-expander.is-expanded img {
    height: auto;
    max-height: none;
    max-width: calc(100vw - 30px);
    width: auto;
}

.post.reply .image-expander.is-expanded img {
    max-width: calc(100vw - 55px);
}

.settings-dialog {
    background: var(--page-bg);
    border: 1px solid var(--ink);
    color: var(--ink);
    max-width: min(430px, calc(100vw - 30px));
    padding: 0;
    width: 360px;
}

.settings-dialog::backdrop {
    background: rgba(0, 0, 0, 0.38);
}

.settings-dialog-header {
    align-items: center;
    background: var(--label-bg);
    display: flex;
    justify-content: space-between;
    padding: 5px 7px;
}

.settings-dialog-title {
    font-size: 12pt;
    margin: 0;
}

.settings-dialog-close {
    cursor: pointer;
    line-height: 1;
    min-width: 24px;
}

.settings-dialog-body {
    padding: 10px;
}

.settings-dialog fieldset {
    border: 1px solid var(--line);
    margin: 0;
    padding: 7px 9px 9px;
}

.settings-dialog .settings-color-mode,
.settings-dialog .settings-content-options {
    margin-top: 8px;
}

.settings-theme-option {
    display: block;
    margin: 4px 0;
}

.settings-option-description {
    color: var(--muted-ink);
    font-size: 9pt;
    margin: 2px 0 0 20px;
}

.settings-note {
    color: var(--muted-ink);
    font-size: 9pt;
    margin: 8px 1px 0;
}

.quick-reply-panel {
    background: var(--page-bg);
    border: 1px solid var(--ink);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
    color: var(--ink);
    max-height: calc(100vh - 30px);
    overflow: auto;
    position: fixed;
    right: 12px;
    top: 12px;
    width: min(500px, calc(100vw - 24px));
    z-index: 1000;
}

.quick-reply-panel[hidden] {
    display: none;
}

.quick-reply-header {
    align-items: center;
    background: var(--label-bg);
    cursor: move;
    display: flex;
    justify-content: space-between;
    padding: 4px 6px;
    position: sticky;
    top: 0;
    touch-action: none;
    user-select: none;
    z-index: 1;
}

.quick-reply-panel.is-dragging {
    user-select: none;
}

.quick-reply-title {
    font-weight: bold;
}

.quick-reply-close {
    cursor: pointer;
    line-height: 1;
    min-width: 24px;
}

.quick-reply-form {
    margin: 0;
    padding: 6px;
}

.quick-reply-form .postForm {
    margin: 0;
    width: 100%;
}

.quick-reply-form .postForm input[type="text"],
.quick-reply-form .postForm input[type="password"],
.quick-reply-form .postForm textarea,
.quick-reply-form .upload-picker,
.quick-reply-form .upload-dropzone {
    max-width: 100%;
    width: 100%;
}

.quick-reply-form textarea {
    resize: vertical;
}

.quick-reply-form .comment-field {
    width: 100%;
}

.quick-reply-submit-row {
    margin-top: 5px;
    text-align: right;
}

@media (max-width: 560px) {
    .quick-reply-panel {
        left: 6px;
        max-height: calc(100vh - 12px);
        right: 6px;
        top: 6px;
        width: auto;
    }
}

.post-video {
    background: #000;
    display: block;
    height: auto;
    margin: 3px 20px 5px;
    max-height: 70vh;
    max-width: min(720px, 90vw);
}

.post-audio {
    display: block;
    margin: 5px 20px 8px;
    max-width: min(420px, 85vw);
    width: 360px;
}

.post.reply .post-video,
.post.reply .post-audio {
    margin-left: 2px;
    margin-right: 10px;
}

.image-placeholder {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(255,255,255,.45), transparent 50%),
        repeating-linear-gradient(45deg, #d5c7b4 0 10px, #cbbda9 10px 20px);
    border: 1px solid #a99480;
    color: #765d4d;
    display: flex;
    font-size: 11px;
    justify-content: center;
    max-width: 100%;
    text-align: center;
}

.post.reply .fileThumb {
    margin-left: 2px;
    margin-right: 10px;
}

.summary {
    clear: both;
    color: var(--secondary-ink);
    display: block;
    margin: 10px 0 4px 5px;
}

.thread-separator {
    margin: 12px 0;
}

.page-controls {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
}

.pagelist {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    line-height: normal;
    margin: 0;
    padding: 3px 7px;
    border: 0;
    border-right: 1px solid var(--reply-border);
    border-bottom: 1px solid var(--reply-border);
    background: var(--reply-bg);
    color: var(--muted-ink);
    vertical-align: middle;
}

.pagelist .pages { padding: 4px; }
.pagelist .prev > span, .pagelist .next > span { display: inline-block; padding: 4px; }
.pagelist form { display: inline; margin: 0; padding: 0; }
.pagelist button { margin: 0; font: 13px Arial, Helvetica, sans-serif; }
.pagelist .pages a, .pagelist .pages a:visited { color: var(--link); text-decoration: none; }
.pagelist .pages a:hover { color: var(--subject); }
.pagelist strong { color: var(--ink); }
.pagelist [aria-disabled="true"] { color: var(--muted-ink); }
.page-number { white-space: nowrap; }
.infinite-scroll-status { padding: 10px; text-align: center; color: var(--secondary-ink); }
.infinite-scroll-page { display: block; padding: 8px; border-bottom: 1px solid var(--line); }

.delete-controls {
    white-space: nowrap;
}

.postingMode {
    background: #e04000;
    color: #fff;
    font-size: larger;
    font-weight: bold;
    margin: 8px auto 0;
    max-width: 500px;
    padding: 2px;
    text-align: center;
}

.post-form-shell {
    margin: 6px 0 16px;
}

table.postForm {
    border-spacing: 1px;
    margin: 0 auto;
}

table.postForm td {
    font-size: 10pt;
    padding: 0;
}

table.postForm td:first-child {
    background: var(--label-bg);
    border: 1px solid var(--ink);
    color: var(--ink);
    font-weight: bold;
    padding: 0 5px;
}

input[type='text'],
input[type='password'],
input[type='search'],
textarea {
    border: 1px solid #aaa;
    margin: 0 2px 0 0;
    outline: 0;
    padding: 2px 4px 3px;
}

input[type='text']:focus,
input[type='password']:focus,
input[type='search']:focus,
textarea:focus {
    border-color: var(--label-bg);
}

.comment-field {
    display: inline-flex;
    flex-direction: column;
    max-width: 100%;
    vertical-align: top;
}

.comment-field textarea {
    margin-right: 0;
    max-width: 100%;
}

.comment-character-counter {
    color: var(--muted-ink);
    display: none;
    font-size: 9pt;
    margin: 2px 3px 0 0;
    text-align: right;
}

.comment-character-counter.is-visible {
    display: block;
}

.comment-character-counter.is-critical {
    color: var(--ink);
    font-weight: bold;
}

table.postForm input[type='text'],
table.postForm input[type='password'] {
    width: 244px;
}

table.postForm input[name='subject'] {
    width: 300px;
}

.field-note {
    color: var(--secondary-ink);
    font-size: 9pt;
}

.password-field-line {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.post-form-extra-info {
    margin-top: 7px;
}

.post-form-extra-info ul {
    margin: 0 0 0 29px;
    padding: 0;
}

table.postForm tr.post-form-extra-row > td:first-child {
    background: transparent;
    border: 0;
    color: var(--ink);
    font-weight: normal;
    padding: 0;
}

.markdown-guide-dialog {
    background: var(--page-bg);
    border: 2px solid var(--reply-border);
    color: var(--ink);
    margin: auto;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    max-width: none;
    overflow: auto;
    padding: 0;
    width: min(760px, calc(100% - 24px));
}

.markdown-guide-dialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
}

.markdown-guide-header {
    align-items: center;
    background: var(--label-bg);
    border-bottom: 1px solid var(--reply-border);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 7px 10px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.markdown-guide-header h2 {
    font-size: 14pt;
    margin: 0;
}

.markdown-guide-close {
    cursor: pointer;
    flex: 0 0 auto;
}

.markdown-guide-content {
    padding: 10px;
}

.markdown-guide-intro,
.markdown-guide-notes {
    margin: 0 0 10px;
}

.markdown-guide-sections {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.markdown-guide-section {
    background: var(--reply-bg);
    border: 1px solid var(--reply-border);
    min-width: 0;
    padding: 7px;
}

.markdown-guide-section h3 {
    color: var(--subject);
    font-size: 11pt;
    margin: 0 0 6px;
}

.markdown-guide-list {
    display: grid;
    gap: 6px;
    margin: 0;
}

.markdown-guide-entry dt {
    font-weight: bold;
}

.markdown-guide-entry dd {
    margin: 2px 0 0;
}

.markdown-guide-entry code {
    background: var(--dropzone-bg);
    border: 1px solid var(--reply-border);
    display: block;
    overflow-wrap: anywhere;
    padding: 3px 5px;
    white-space: pre-wrap;
}

.markdown-guide-detail {
    color: var(--secondary-ink);
    display: block;
    font-size: 9pt;
    margin-top: 2px;
}

.markdown-guide-notes {
    color: var(--secondary-ink);
    font-size: 9pt;
    margin: 10px 0 0;
}

@media (max-width: 420px) {
    .markdown-guide-dialog {
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        width: calc(100% - 12px);
    }

    .markdown-guide-content {
        padding: 7px;
    }
}

.upload-picker {
    width: min(431px, 76vw);
}

.upload-dropzone {
    background: var(--dropzone-bg);
    border: 1px dashed #a66;
    cursor: pointer;
    display: block;
    min-height: 70px;
    padding: 9px 12px;
    position: relative;
    text-align: center;
    width: min(405px, 72vw);
}

.upload-dropzone:hover,
.upload-dropzone.is-dragging {
    background: var(--reply-bg);
    border-color: var(--ink);
}

.upload-dropzone.is-disabled {
    cursor: not-allowed;
    opacity: 0.68;
}

.upload-input {
    cursor: inherit;
    inset: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
}

.upload-dropzone-title,
.upload-dropzone-limit,
.upload-status {
    display: block;
    pointer-events: none;
}

.upload-dropzone-title {
    color: var(--link);
    font-weight: bold;
}

.upload-dropzone-limit,
.upload-status {
    color: var(--secondary-ink);
    font-size: 9pt;
    margin-top: 3px;
}

.upload-file-list {
    list-style: none;
    margin: 5px 0 0;
    padding: 0;
}

.upload-file-list li {
    align-items: center;
    background: var(--reply-bg);
    border: 1px solid var(--reply-border);
    display: flex;
    gap: 7px;
    margin-top: 3px;
    padding: 3px 5px;
}

.upload-file-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.upload-file-size {
    color: var(--secondary-ink);
    flex: 0 0 auto;
    font-size: 8pt;
}

.upload-file-remove {
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 8pt;
    padding: 1px 5px;
}

.post-form-toggle {
    margin: 8px auto;
    max-width: 520px;
    text-align: left;
}

.post-form-toggle summary {
    color: var(--link);
    cursor: pointer;
    font-size: 14pt;
    font-weight: bold;
    text-align: center;
}

.board-new-thread-form > summary {
    font-size: 16pt;
}

.bottom-reply-form {
    margin: 10px auto;
}

.thread-footer-actions {
    margin: 10px 0;
}

.site-footer {
    border-top: 1px solid var(--line);
    clear: both;
    font-size: 9pt;
    margin-top: 18px;
    padding-top: 5px;
    text-align: center;
}

.site-footer p {
    margin: 5px 0;
}

@media (max-width: 700px) {
    body {
        padding: 0 3px;
    }

    .board-nav {
        display: block;
        text-align: center;
    }

    .nav-utility {
        display: block;
        margin-top: 3px;
    }

    .boardTitle {
        font-size: 24px;
    }

    .announcement {
        padding: 12px 20px;
    }

    .announcement strong {
        font-size: 12pt;
    }

    .ad-placeholder {
        height: 80px;
        width: 320px;
    }

    .post.reply {
        display: block;
        margin-right: 2px;
    }

    .postMessage {
        margin: 1em 12px;
        min-width: 0;
    }

    .image-placeholder {
        max-height: 120px;
        max-width: 150px;
    }

    .page-controls {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    table.postForm {
        width: 100%;
    }

    table.postForm input[type='text'],
    table.postForm input[type='password'],
    table.postForm input[name='subject'],
    table.postForm textarea {
        max-width: 100%;
        width: 100%;
    }

    table.postForm .comment-field {
        width: 100%;
    }

    table.postForm td:first-child {
        width: 72px;
    }
}
