@font-face {
  font-family: "icons";
  src: url("../fonts/Symbols-Only-Nerd-Font.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


body {
    background: var(--background-color);
    color: var(--text-color);
    font: var(--board-font);
	padding: 8px;
	padding-left: 224px;
    margin: 0px;
}

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

a:hover {
    color: var(--link-hover-color);
}

form.show-sidebar {
    display: none;
}

.no-sidebar form.show-sidebar {
    display: inline;
}

#sidebar {
    color: var(--frontpage-text-color);
    background: var(--background-color);
    position: fixed;
    left: 0px;
    padding: 8px;
    bottom: 0px;
    overflow-y: auto;
    scrollbar-width: thin;
}

#sidebar .nocolor {
    color: var(--frontpage-text-color);
}

.sidebar-logo {
    width: 195px;
    transform: scaleX(-1);
    margin-bottom: -22px;
}

#sidebar ul {
    list-style: none;
    padding-left: 0px;
    margin: 0px;
}

#sidebar h1 {
    margin: 0px;
    font-size: 150%;
    color: var(--frontpage-text-color);
    text-align: center;
}

#sidebar h2 {
    margin: 0;
    margin-top: 0px;
    font-size: 100%;
    margin-top: 1em;
    padding: 1px 5px 1px 5px;
}

#sidebar li a {
    display: block;
    width: 100%;
}

#sidebar input[type="submit"].text-btn,
#sidebar a {
    text-decoration: none;
    color: var(--sidebar-text-color);
}

#sidebar li:hover {
    background: var(--sidebar-link-background-color);
}

#sidebar li.user {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

#sidebar .search-form {
    display: flex;
    gap: 4px;
}

#sidebar .search-form input[type="text"] {
    margin-bottom: 0px
}

#sidebar li.user a {
    width: fit-content;
}

#sidebar li.user .right {
    display: flex;
}

#sidebar footer a {
    color: var(--link-color);
}

#sidebar footer {
    text-align: center;
}

#notificationsContainer {
    position: absolute;
    width: 250px;
    height: 100px;
    min-width: 250px;
    min-height: 100px;
    top: 40px;
    padding: 0px;
    z-index: 400;
    background: var(--post-background-color);
    border: 1px dotted var(--postblock-background-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#notificationsContainer ul {
    padding: 4px;
    list-style: none;
    margin: 0px;
}

.notif-text,
.notif-link {
    overflow: hidden;
    white-space: nowrap;
    display: block;
    font-size: 0.9em;
    text-overflow: ellipsis;
}

#notificationsList {
    overflow-y: auto;
    scrollbar-width: thin;
    flex: 1;
    font-size: 0.9em;
}

#notificationsHeader {
    text-align: center;
    cursor: move;
}

.readNotification {
    text-decoration: none;
    float: right;
    margin-right: 5px;
    margin-top: 5px;
}

#notificationsContainer .last {
    padding: 4px;
    box-shadow: 0 -7px 4px 0 var(--post-background-color);
    background: var(--post-background-color)
}

.notif-item[data-read="1"] a,
.notif-item[data-read="1"] {
    color: var(--omittedposts-color)
}

.banner img,
.banner {
    max-width: 450px;
    max-height: 100px;
    margin: 10px auto;
    width: 100%;
    margin: 10px auto;
}

.logo {
    font-size: 2.4em;
    text-align: center;
}

.subtitle {
    text-align: center;
}

.replymode {
    text-align: center;
    color: var(--replymode-color);
    background: var(--replymode-background-color);
    padding: 2px;
}

.replymode a {
    color: var(--replymode-color);
}

.replymode a:hover {
    color: var(--text-color)
}

.pwhelp {
    font-size: 0.8em;
}

.icon {
    font-family: icons !important;
}

#toast-container {
    position: fixed;
    top: 35px;
    right: 10px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    min-width: 220px;
    max-width: 320px;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: opacity .25s, transform .25s;
}

.toast-hide {
    opacity: 0;
    transform: translateX(20px);
}

.toast-success {
    background: var(--success-bg);
    color: var(--success-color);
}

.toast-error   {
    background: var(--error-bg);
    color: var(--error-color);
}

.toast-title {
    font-weight: bold;
    display: block;
}

.toast-message {
    display: block;
}

iframe {
    border: none
}

fieldset {
    border: 2px solid var(--border-color);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    margin-top: 8px;
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    background: var(--post-background-color);
    padding: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,.25);
    display: none;
    flex-direction: column;
    gap: 4px;
    width: max-content;
    z-index: 100;
}

.dropdown-right .dropdown-content{
    left: auto;
    right: 0;
}

.dropdown-content button {
    width: 100%;
    text-align: start;
}

.dropdown.active .dropdown-content {
  display: flex;
}

.modal,
.post.confirm {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1101;
    transform: translate(-50%, -50%);
}

.confirm-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: fit-content;
    padding: 5px;
    min-width: 200px;
    max-width: 300px;
    height: fit-content;
}

.confirm-text {
    text-align: center;
    width: 100%;
}

.confirm-buttons {
    width: 100%;
    text-align: center;
}

.modal-overlay,
.confirm-bg {
    height: 100vh;
    width: 100vw;
    z-index: 1100;
    backdrop-filter: blur(6px);
    position: fixed;
    top: 0px;
    left: 0px;
    background: rgba(0, 0, 0, 0.5)
}

.modal {
    padding: 10px;
    display: block !important;
}

.modal h3 {
    margin: 0px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
}

body.no-sidebar {
    padding-left: 8px;
}

.no-sidebar #hide-sidebar,
.no-sidebar #sidebar {
    display: none;
}

#sidebar.visible {
    display: block;
    z-index: 100;
}

#sidebar input[type="text"],
#sidebar input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 2px;
    font: unset;
}

.pointer {
    cursor: pointer;
}

a.button,
button,
::file-selector-button,
input[type=submit] {
    appearance: none;
    text-decoration: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--button-bg);
    color: var(--button-color);
    border: 1px solid var(--button-border);
    border-radius: 4px;
    cursor: pointer;
    padding: 2px 6px;
    user-select: none;
    font: unset;
}

a.button:hover,
button:hover,
::file-selector-button:hover,
input[type=submit]:hover {
    background: var(--button-hover-bg);
}


button.active,
a.button:active,
button:active,
::file-selector-button:active,
input[type=submit]:active {
    background: var(--button-color);
    color: var(--new-op-postinfo-bg);
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    vertical-align: middle;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 4px;
}

input[type="checkbox"]:checked::after {
    content: "✓";
    padding: 1px;
    margin-top: -3px;
    display: block;
}

input[type="submit"].text-btn,
.text-btn {
    all: unset;
    text-decoration: underline;
}

input[type=number],
input[type=file],
select,
input[type=text],
input[type=password],
textarea {
    background: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--input-border);
    font: var(--font)
}

input[type=number]:focus,
textarea:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=file]:focus {
    outline: none;
    border-color: var(--input-color);
}

input[type=file] {
    padding: 2px;
}

[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.text-btn:hover {
    cursor: pointer !important;
}

.nocolor {
    color: var(--text-color);
    text-decoration: none;
}

hr {
    color: rgba(0, 0, 0, 0);
    border: none;
    border-top: 1px solid var(--border-color);
    clear: both;
}

.file-slide.hidden {
    display: none;
}

.file-slide.active {
    display: block;
}

.file-expand {
    position: relative;
    display: flex;
    justify-content: center;
}

.file-expand[data-type="embed"]::before,
.file-expand[data-type="video"]::before {
    content: "";
    font-family: icons;
    padding: 5px 20px;
    color: #fff;
    border-radius: 10px;
    background-color: #00000099;
    font-size: 35px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    text-align: center;
}

.file-expand[data-embed="youtube"]::before {
    content: ""
}

.hidden,
.file-slide.active.expanded .file-expand::before {
    display: none
}

img.expanded,
.thumb.expanded,
.file-expanded {
    max-width: 100% !important;
    max-height: 85vh;
}

.file-expanded.audio-expanded {
    position: relative
}

.file-expanded.audio-expanded audio {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.thumb-duration {
  position: absolute;
  right: 0;
  bottom: 0;
  text-decoration: none;
  color: #fff;
  background-color: #00000099;
  padding: 2px 4px;
  border-radius: 5px;
  margin: 5px;
}

.thumb-loading {
  opacity: 0.4;
}

.expanded .thumb-duration {
  display: none;
}

.block {
    display: block;
}

.noheight {
    height: unset !important;
}

a {
    text-decoration: none;
}

summary {
    cursor: pointer;
    font-size: 0.8em;
    user-select: none;
}

.post.highlighted,
.post:target {
    border: 2px dashed var(--postblock-background-color);
    scroll-margin: 40px;
}

.navigation-container {
    display: flex;
    gap: 4px;
    padding: 4px 0px 0px 4px;
    align-items: center;
}

.postinfo {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 4px;
}

.postinfo input[type="checkbox"] {
    margin-left: 0px;
}

.filetitle {
    font-weight: 800;
    font-size: 1.2em;
    color: var(--filetitle-color);
    text-decoration: none;
}

a.filetitle {
    color: var(--link-color);
}

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

.postername .name {
    font-weight: bold;
}

.postername .username {
    text-decoration: underline dotted;
}

.tripcode {
    margin-left: -4px;
}

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

.reflink a:hover {
    font-weight: bold;
}

.quickbuttons button.hide::before {
    content: "";
}

.quickbuttons button.expand::before {
    content: "󰘖";
}

.quickbuttons button.watch::before {
    content: "󰈈";
}

.quickbuttons button.quickreply::before {
    content: "󰭹";
}

.quickbuttons button.dropdown-toggle::before {
    content: "󰍜";
}

.quickbuttons button.sticky::before {
    content: "";
    font-family: icons;
}

.quickbuttons button.lock::before {
    content: "";
    font-family: icons;
}

.quickbuttons button.archive::before {
    content: "";
    font-family: icons;
}

.quickbuttons button.tag_archive::before {
    content: "󱝏";
    font-family: icons;
}

.quickbuttons button.ban::before {
    content: "";
    font-family: icons;
}

.quickbuttons .button.user::before {
    content: "";
    font-family: icons;
}

.quickbuttons button.icon {
    height: 16px;
    width: 16px;
    line-height: 1;
    position: relative
}

.quickbuttons .move::before {
    content: "󰉒";
    font-family: icons;
}

.quickbuttons button.icon::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9em;
}

.quickbuttons {
    display: flex;
    gap: 4px;
}

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

.code {
    background: var(--input-bg);
    border: 1px dashed var(--border-color);
    padding: 5px;
    max-height: 500px;
    max-width: 1000px;
    overflow: auto;
    font-family: monospace;
}

blockquote .code {
    width: fit-content
}

blockquote.content {
    word-wrap: break-word;
}

.green-text {
    color: #789922;
}

.blue-text {
	color: #226199;
}

.purple-text {
	color: #992299;
}

.spoiler-text {
	background: #000;
	color: #000;
}

.spoiler-text:hover {
	color: #fff;
}

.reply.dead:not(.reply-preview .reply.dead) {
    text-decoration: line-through;
}

.rules {
    font-family: sans-serif;
}

.rules ul {
    margin: 0;
    margin-left: 1em;
    padding-left: 0;
}

.postarea ::placeholder {
    color: transparent;
}

#reply-indicator {
    display: none;
}

.postarea.qr-floating #reply-indicator {
    display: flex !important;
} 

.postarea.qr-floating {
    position: fixed;
    bottom: 50%;
    right: 20%;
    z-index: 1000;
    width: fit-content;
    height: fit-content;
}

.postarea.qr-floating #reply-indicator {
    cursor: grab;
    user-select: none;
}

.postarea.qr-floating #reply-indicator:active {
    cursor: grabbing;
}

.postblock {
    background: var(--postblock-background-color);
    font-weight: 600;
    padding: 0 5px;
    min-width: 80px;
    border: 1px solid var(--postblock-border-color);
}

#file-btn {
    display: none;
}

.dropzone {
    background-color: var(--input-bg);
    max-width: 315px;
    padding: 4px;
}

.dropzone .file-hint {
    border: 2px dashed var(--border-color);
    padding: 10px 0;
    text-align: center;
    cursor: pointer;
    user-select: none;
    opacity: 0.7;
}

.dropzone .tmb {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 10px 0;
    flex-direction: row;
    padding: 4px;
}

.dropzone .tmb .preview {
    height: 50px;
    width: 100px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    background-color: rgba(255, 255, 255, 0.5);
}

.remove {
    font-size: 1.4em;
    cursor: pointer;
}

.swf-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
    padding-top: 72.7%;
}

.swf-wrapper > canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}


.file-nav a {
    text-decoration: none;
}

.thread-replies {
    margin: 2px 4px;
}

.backlinks.postinfo.new {
    font-size: 0.9em;
}

.top-nav .new,
.bottom-nav .new {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.boardfooter {
    text-align: center;
}

.pagelink td {
    color: var(--pagelink-color);
}

.pagelink .button {
    display: block;
}

.userdelete.visible {
    display: block;
}

.search-container {
    text-align: center;
}

.search-highlight,
mark.search-highlight {
    background-color: #ffeb3b;
    color: #000;
    padding: 0 2px;
    border-radius: 2px;
}

.catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
}

.catalog-post.thread {
    text-align: center;
    padding: 0;
    height: 280px;
}

.thread img.catalog-thumb {
    max-width: 180px !important;
    max-height: 128px !important;
}

.catalog-top {
    position: relative;
    background: var(--post-background-color);
}

.catalog-thumb.nofile {
    position: absolute;
    inset: 0;
    color: transparent;
}

.catalog-message {
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px;
}

.catalog-stats,
.catalog .file-counter {
    font-size: 0.8em;
}

.catalog-info {
    background: var(--new-header-bg);
    padding: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-info .op-tag {
    display: none;
}

.catalog-post {
    padding: 4px;
    word-wrap: break-word;
    overflow: scroll;
    scrollbar-width: none;
    text-overflow: ellipsis;
    background: var(--new-thread-bg);
    border: 1px solid var(--border-color);
}

body.home.no-sidebar {
    max-width: 1000px;
    padding-left: 8px;
}

.home .logo {
    text-align: center;
    margin-top: 1em;
    font-size: 2em;
    color: var(--frontpage-header-color);
}

.home .subtitle {
    font-size: 16px;
    color: var(--frontpage-header-color);
}

.site-logo {
    display: block;
    margin: 1em auto -30px;
}

h2.home {
    display: flex;
    justify-content: space-between;
}

.boardboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    background: var(--new-thread-bg);
}

.boardboxes-container {
    margin-top: 1em;
    border: 1px solid var(--postblock-background-color);
}

.boardboxes-container h2 {
    margin-bottom: 0px;
}

.boardbox {
    padding: 5px 10px;
    display: block;
    color: inherit;
    text-decoration: none;
}

.boardbox-subtitle {
    display: block;
    font-size: 0.9em;
    opacity: 0.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bottom-boardbox {
    text-align: center;
    background: var(--new-thread-bg);
    margin: 2px;
    border-top: 1px solid var(--border-color);
    padding: 2px;
}

#topmenu {
    display: flex;
    margin: 0;
    margin-top: 1em;
}

#topmenu ul {
    display: flex;
    margin: 0;
    padding-left: 0;
    align-items: baseline;
    list-style: none;
}

h2.home:target {
    border: 2px dashed var(--postblock-background-color);
}

.preftitle {
    font-weight: 600;
}

.longselect {
    width: 200px;
}

.save-btn {
    display: block;
    margin-left: auto;
}

.session-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 4px;
}

.catalog-post.thread.noheight.tag {
    display: flex;
    flex-direction: column;
}

.catalog-post.thread.noheight.tag .catalog-message {
    flex: 1
}

.new.mobilenav .left a {
    display: none;
}

.new.mobilenav input {
    text-decoration: none;
}

.reply-preview {
    z-index: 999;
}

.time {
    z-index: 2000;
}

.banner-item.pending {
    opacity: 0.7;
    border: 2px dashed var(--error-bg);
    padding: 5px;
}

.banner-list {
    text-align: center;
}

.center {
    margin: auto;
}

.unix-fortune pre {
    margin: 0;
    padding: 8px;
    border-left: 3px solid var(--postblock-background-color);
    font-family: monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.autoupdate-countdown {
    color: var(--text-color);
    opacity: 0.7;
}

.post.new-post {
    animation: highlight-new 5s ease-out;
}

@keyframes highlight-new {
    0% {
        background-color: rgba(242, 146, 255, 0.3);
    }
    100% {
        background-color: var(--post-background-color);
    }
}

#notificationsContainer.blink-active {
    border: 2px dashed var(--postblock-background-color);
}

@media (max-width: 1440px) {
  body:not(.no-sidebar) .bottom {
    flex-direction: column;
  }
}

@media (max-width: 1000px) {
    #sidebar {
        display: none;
        top: 25px !important;
    }

    .code {
        max-width: 100%;
    }

    .new.mobilenav .left a {
        display: block;
    }

    form.show-sidebar {
        display: none !important;
    }

    body.home,
    body {
        padding-left: 8px !important;
        width: unset !important;
        margin-top: 25px !important;
    }

    .new.mobilenav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 25px;
        padding: 0 4px;
        background: var(--news-background-color);
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
    }.new.mobilenav a {
        color: var(--sidebar-color);
    }

    .topnav {
        display: none !important;
    }
}

@media (max-width: 700px) {
    #postform {
        overflow: scroll;
    }
}@media (max-width: 600px) {
    #notificationsContainer {
        position: relative;
        width: 100% !important;
        left: 0px !important;
        top: 0px !important;
        height: 150px !important;
        z-index: 2;
    }.catalog {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .postarea.qr-floating {
        position: static !important;
    }
}

/* Resizeable corners */

.ui-resizable {
position: relative;
}

.ui-resizable-handle {
position: absolute;
background: transparent;
z-index: 1000;
}

.ui-resizable-n,
.ui-resizable-e,
.ui-resizable-s,
.ui-resizable-w,
.ui-resizable-ne,
.ui-resizable-se,
.ui-resizable-sw,
.ui-resizable-nw {
background: transparent;
border: none;
width: 8px;
height: 8px;
}

.ui-resizable-n {
cursor: n-resize;
height: 8px;
width: 100%;
top: -4px;
left: 0;
}

.ui-resizable-e {
cursor: e-resize;
width: 8px;
height: 100%;
right: -4px;
top: 0;
}

.ui-resizable-s {
cursor: s-resize;
height: 8px;
width: 100%;
bottom: -4px;
left: 0;
}

.ui-resizable-w {
cursor: w-resize;
width: 8px;
height: 100%;
left: -4px;
top: 0;
}

.ui-resizable-ne {
cursor: ne-resize;
width: 8px;
height: 8px;
right: -4px;
top: -4px;
}

.ui-resizable-se {
cursor: se-resize;
width: 8px;
height: 8px;
right: -4px;
bottom: -4px;
}

.ui-resizable-sw {
cursor: sw-resize;
width: 8px;
height: 8px;
left: -4px;
bottom: -4px;
}

.ui-resizable-nw {
cursor: nw-resize;
width: 8px;
height: 8px;
left: -4px;
top: -4px;
}

/* preferences theme and layout previews */

.theme-grid,
.layout-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0;
}

.theme-option,
.layout-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border: 2px solid transparent;
    border-radius: 5px;
}

.theme-option:hover,
.layout-option:hover {
    border-color: var(--border-color);
}

.theme-option.selected,
.layout-option.selected {
    border-color: var(--link-color);
}

.theme-option input,
.layout-option input {
    display: none;
}

.theme-name,
.layout-name {
    font-size: 11px;
    margin-top: 4px;
}

.theme-preview,
.layout-preview {
    width: 120px;
    height: 80px;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
}

.layout-preview {
    background: var(--background-color);
}

.tp-sidebar,
.tp-sidebar-modern {
    width: 22px;
    padding: 2px;
    flex-shrink: 0;
}

.tp-sidebar-modern {
    width: 24px;
}

.tp-sb-title {
    height: 4px;
    margin-bottom: 3px;
    border-radius: 1px;
}

.tp-sb-link {
    height: 2px;
    width: 80%;
    margin-bottom: 2px;
    border-radius: 1px;
    opacity: 0.7;
}

.tp-sb-box {
    height: 10px;
    border-radius: 3px;
    margin-bottom: 2px;
}

.tp-main,
.tp-content {
    flex: 1;
    padding: 3px;
    overflow: hidden;
}

.tp-body {
    display: flex;
    flex: 1;
}

.tp-topbar {
    height: 5px;
    flex-shrink: 0;
}

.tp-topbar-modern {
    height: 6px;
}

.tp-postform {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2px;
}

.tp-pf-row {
    display: flex;
    gap: 2px;
    margin-bottom: 1px;
    width: 75%;
}

.tp-pf-label {
    width: 16px;
    height: 5px;
    border-radius: 1px;
    flex-shrink: 0;
}

.tp-pf-input {
    flex: 1;
    height: 5px;
    border: 1px solid;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.5);
}

.tp-hr {
    height: 1px;
    margin: 2px 0;
}

.tp-thread {
    border: 1px solid;
    overflow: hidden;
}

.tp-thread-modern {
    border-radius: 4px;
}

.tp-thread-header {
    height: 4px;
}

.tp-thread-header-modern {
    height: 5px;
    border-radius: 4px 4px 0 0;
}

.tp-thumb {
    width: 10px;
    height: 10px;
    background: rgba(128, 128, 128, 0.3);
    border-radius: 1px;
    flex-shrink: 0;
}

.tp-texts {
    flex: 1;
}

.tp-postinfo,
.tp-reply-postinfo {
    height: 2px;
    width: 50%;
    margin-bottom: 2px;
    border-radius: 1px;
    opacity: 0.7;
}

.tp-reply-postinfo {
    width: 40%;
}

.tp-text {
    height: 2px;
    border-radius: 1px;
    opacity: 0.5;
    margin-bottom: 1px;
}

.tp-text.short {
    width: 60%;
}

.tp-layout-classic {
    flex-direction: row;
}

.tp-layout-classic .tp-op {
    display: flex;
    gap: 3px;
    margin-bottom: 2px;
}

.tp-layout-classic .tp-reply-row {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    margin-left: 8px;
}

.tp-layout-classic .tp-arrows {
    font-size: 6px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.tp-layout-classic .tp-reply {
    padding: 2px 3px;
    border-right: 1px solid;
    border-bottom: 1px solid;
    border-radius: 0;
    flex: 1;
}

.tp-layout-classic .tp-reply-info {
    height: 2px;
    width: 40%;
    margin-bottom: 2px;
    border-radius: 1px;
}

.tp-layout-new,
.tp-layout-modern {
    flex-direction: column;
}

.tp-layout-new .tp-sidebar,
.tp-layout-modern .tp-sidebar-modern {
    background: var(--background-color);
}

.tp-op-new {
    display: flex;
    flex-direction: column;
}

.tp-op-postinfo {
    height: 3px;
}

.tp-op-body {
    display: flex;
    gap: 2px;
    padding: 2px;
}

.tp-reply-new {
    margin: 2px;
    padding: 2px;
    border-right: 1px solid;
    border-bottom: 1px solid;
}

.tp-reply-modern {
    margin: 2px;
    padding: 2px;
    border-radius: 3px;
}

.layout-preview .tp-sidebar {
    background: var(--sidebar-background-color, var(--background-color));
}

.layout-preview .tp-sb-title {
    background: var(--postblock-background-color);
}

.layout-preview .tp-sb-link {
    background: var(--link-color);
}

.layout-preview .tp-sb-box {
    background: var(--post-background-color);
}

.layout-preview .tp-topbar,
.layout-preview .tp-thread-header {
    background: var(--news-background-color, var(--postblock-background-color));
}

.layout-preview .tp-pf-label {
    background: var(--postblock-background-color);
}

.layout-preview .tp-pf-input {
    background: var(--input-bg, #fff);
    border-color: var(--border-color);
}

.layout-preview .tp-hr {
    background: var(--border-color);
}

.layout-preview .tp-thread {
    background: var(--new-thread-bg, var(--post-background-color));
    border-color: var(--border-color);
}

.layout-preview .tp-postinfo {
    background: var(--postername-color, #117743);
}

.layout-preview .tp-text {
    background: var(--text-color);
}

.layout-preview .tp-arrows {
    color: var(--border-color);
}

.layout-preview .tp-reply,
.layout-preview .tp-reply-new {
    background: var(--post-background-color);
    border-color: var(--post-border-color, var(--border-color));
}

.layout-preview .tp-reply-info,
.layout-preview .tp-reply-postinfo {
    background: var(--postername-color, #117743);
}

.layout-preview .tp-op-postinfo {
    background: var(--new-op-postinfo-bg, var(--post-background-color));
}

.layout-preview .tp-reply-modern {
    background: var(--post-background-color);
}

.theme-preview.create {
    justify-content: center;
    align-items: center;
}

.theme-preview.create {
    font-size: 40px
}

/* user theme cards */

.user-theme-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: default;
}

.user-theme-card:hover {
    border-color: var(--border-color);
}

.user-theme-card--create {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.user-theme-public {
    font-size: 10px;
    opacity: 0.6;
}


/* theme editor */

.theme-editor-wrap {
    display: flex;
    gap: 16px;
}

.theme-editor-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 320px;
    flex-shrink: 0;
}

.theme-editor-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.theme-editor-field label {
    font-size: 11px;
    font-weight: bold;
    opacity: 0.8;
}

.theme-editor-field--inline {
    flex-direction: row;
    align-items: center;
}

.theme-editor-field--grow {
    flex: 1;
    min-height: 0;
}

.theme-editor-textarea {
    flex: 1;
    width: 100%;
    min-height: 260px;
    font-size: 12px;
    resize: vertical;
    box-sizing: border-box;
}

.theme-editor-color-group {
    margin-bottom: 8px;
}

.theme-editor-colors-title {
    font-size: 11px;
    font-weight: bold;
    opacity: 0.8;
    margin-bottom: 4px;
}

.theme-editor-color-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
}

.theme-editor-color-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
}

.te-color-input {
    width: 28px;
    height: 20px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.theme-editor-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.theme-editor-preview-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.theme-editor-preview-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.te-layout-tabs {
    display: flex;
    gap: 4px;
    align-items: center;
}

.te-layout-tabs {
    margin-left: auto;
}

.theme-editor-iframe-wrap {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    min-height: 300px;
    display: flex;
}

.theme-editor-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}