/* === TEMA HISPITA - BASADO EN YOTSUBA === */
/* Especialmente hecho para los amigos de /hisrol/. Basado en el tema de Yotsuba P & Yotsuba.*/

@import url("./syntax/foundation-modified.css");

@font-face {
  font-family: 'Hack';
  src: url('./fonts/hack-regular-webfont.eot?v=2.018');
  src: url('./fonts/hack-regular-webfont.eot?#iefix&v=2.018')
    format('embedded-opentype'),
    url('./fonts/hack-regular-webfont.woff2?v=2.018') format('woff2'),
    url('./fonts/hack-regular-webfont.woff?v=2.018') format('woff'),
    url('./fonts/hack-regular-webfont.ttf?v=2.018') format('truetype'),
    url('./fonts/hack-regular-webfont.svg?v=2.018#hackregular') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Icons';
  src: url('./fonts/open-iconic.eot');
  src: url('./fonts/open-iconic.eot?#iconic-sm') format('embedded-opentype'),
    url('./fonts/open-iconic.woff') format('woff'), url('../open-iconic.ttf')
    format('truetype'), url('../open-iconic.otf') format('opentype'),
    url('./fonts/open-iconic.svg#iconic-sm') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'DOOM';
  src: url('./fonts/doom.ttf');
  font-weight: normal;
  font-style: normal;
}

[data-theme="hispita"] {
    /* Colores del tema Hispita */
    --background-color: #ffffee;
    --background-gradient: #e4e4f9;
    --text-color: maroon;
    --contrast-color: #f2e1d6;
    --menu-color: #f2e1d6;
    --background-highlight-color: #ffccaa;
    --horizon-sep-color: #f2e1d6;
    --marked-color: #f0c0b0;
    --marked-border-color: #d99f91;
    --marked-text-color: maroon;
    --link-color: #e60000;
    --link-hover-color: #1f8f2a;
    --navbar-text-color: #34345C;
    --subject-color: #e60000;
    --role-color: #a10705;
    --thread-navbar-background: #df405a;
    --thread-navbar-color: aliceblue;
    --border-color: #800;
    --card-bg: #f2e1d6;
    --hover-bg: #ffccaa;
    --primary-color: #e60000;
    --secondary-color: #1f8f2a;
    --quote-bg: #f2e1d6;
    --quote-border: #ddbeab;
    --op-color: #a10705;
    --op-bg: #f2e1d6;
    --accent-color: #c74343;
    --accent-dark: #800;
    --greentext-color: #206b00;
    
    /* Variables adicionales del CSS original */
    --board-title-color: #e60000;
    --table-every-other-color: #f0e0d0;
    --sfw-indicator-color: navy;
    --error: red;
    --border-highlight-color: rgba(221, 0, 0, .8);
    --logo-image: url("/.static/logo/logo_hispa_red.png");
}

/* === ESTILOS BASE === */
[data-theme="hispita"] body {
    font-size: 100%;
    color: var(--text-color);
    background: var(--background-gradient) no-repeat;
    background-image: linear-gradient(to bottom,var(--background-color) 0,transparent 260px);
    font-family: arial, helvetica, sans-serif;
}

/* === HEADER, FOOTER Y NAVEGACIÓN === */
[data-theme="hispita"] header {
    margin: 1em 0px 1em 0px;
    text-align: center;
    margin-top: 36px;
}

[data-theme="hispita"] footer {
    width: 100%;
    text-align: center;
    font-size: 65%;
}

[data-theme="hispita"] #linkEngine:after {
    content: 'LynxChan';
}

[data-theme="hispita"] #linkFrontend:before,
[data-theme="hispita"] #linkEngine:before {
    content: "\e064";
}

[data-theme="hispita"] #linkFrontend:after {
    content: 'Aleph';
}

[data-theme="hispita"] .footerDisclaimer {
    margin-bottom: 6pt;
}

/* === NAVEGACIÓN PRINCIPAL === */
[data-theme="hispita"] nav.navHeader {
    color: var(--navbar-text-color);
    background-color: var(--background-color);
    border-bottom: 1px solid var(--navbar-text-color);
    text-align: left;
    font-size: 75%;
    position: fixed;
    top: -1px;
    left: 0;
    width: 100%;
    z-index: 1;
    padding: 0 4px 2px 4px;
    display: flex;
    align-items: baseline;
}

[data-theme="hispita"] nav.navHeader > span {
    padding-right: 0.25em;
    line-height: 20px;
    white-space: nowrap;
}

[data-theme="hispita"] nav.navHeader > .nav-boards {
    overflow: hidden;
    text-overflow: clip;
    min-width: 0;
    max-width: -moz-max-content;
    max-width: max-content;
}

[data-theme="hispita"] nav.navHeader > #navTopBoardsSpan {
    flex-shrink: 0;
    flex-grow: 100000;
    flex-basis: 0;
}

[data-theme="hispita"] nav.navHeader > #navBoardsSpan {
    flex-shrink: 1;
}

[data-theme="hispita"] nav.navHeader > #navBoardsSpan:empty::before {
    content: "[";
    width: 1em;
    display: inline-block;
}

[data-theme="hispita"] nav.navHeader > .nav-spacer {
    flex-grow: 1;
    padding: 0;
}

[data-theme="hispita"] nav.navHeader > .nav-fade {
    display: inline-block;
    background-image: linear-gradient(to right, #0000, var(--background-color));
    width: 1em;
    min-width: 0.75em;
    margin-left: -1.25em;
    flex-shrink: 100000;
    text-align: end;
    padding: 0;
    border-right: 0.5em solid var(--background-color);
}

[data-theme="hispita"] nav.navHeader > :last-child {
    padding-right: 0.5em;
}

[data-theme="hispita"] #themeSelector {
    color: var(--text-color);
    margin-top: 2px;
    font-size: 100%;
}

[data-theme="hispita"] nav.navHeader .coloredIcon:after {
    display: var(--navbar-text-display) !important;
}

[data-theme="hispita"] nav.navHeader .coloredIcon:before, 
[data-theme="hispita"] footer .coloredIcon:before {
    vertical-align: middle;
}

/* === ICONOS DE NAVEGACIÓN === */
[data-theme="hispita"] .navLinkHome:before {
    content: "\e078";
}

[data-theme="hispita"] .navLinkHome:after {
    content: 'home';
}

[data-theme="hispita"] .navBoardList:before {
    content: "\e088";
}

[data-theme="hispita"] .navBoardList:after {
    content: 'boards';
}

[data-theme="hispita"] .linkOverboard:before, 
[data-theme="hispita"] .navOverboard:before {
    content: "\e007";
}

[data-theme="hispita"] .navOverboard:after, 
[data-theme="hispita"] .linkOverboard:after {
    content: 'overboard';
}

[data-theme="hispita"] .linkSfwOver:before {
    content: "\e024";
}

[data-theme="hispita"] .linkSfwOver:after {
    content: 'overboard sfw';
}

[data-theme="hispita"] .navPosting:before {
    content: "\e09a";
}

[data-theme="hispita"] .navPosting:after {
    content: 'help';
}

[data-theme="hispita"] .watchButton:before, 
[data-theme="hispita"] .watcherButton:before, 
[data-theme="hispita"] .watchedCellDismissButton:before {
    content: '\e065';
}

[data-theme="hispita"] .watcherButton:before {
    margin-right: 0.25em;
}

[data-theme="hispita"] .watcherButton:after {
    content: 'watched threads';
}

[data-theme="hispita"] .settingsButton:before {
    content: "\e041";
}

[data-theme="hispita"] .settingsButton:after {
    content: 'settings';
}

[data-theme="hispita"] .navMod:before {
    content: "\e081";
}

[data-theme="hispita"] .navMod:after {
    content: 'user account';
}

[data-theme="hispita"] .multiboardButton:before, 
[data-theme="hispita"] .navMultiboard:before {
    content: "\e07b";
}

[data-theme="hispita"] .navMultiboard:after, 
[data-theme="hispita"] .multiboardButton:after {
    content: 'multiboard';
}

/* === MENÚ HAMBURGUESA MÓVIL === */
[data-theme="hispita"] #mobile-hamburger {
    display: none;
}

[data-theme="hispita"] #hamburger-menu-icon {
    display: none;
    margin-left: 0.25em;
}

[data-theme="hispita"] #hamburger-menu-icon:before {
    font-family: 'Icons';
    content: '\e09b';
}

[data-theme="hispita"] #hamburger-menu-icon #sidebar-menu {
    visibility: hidden;
    position: fixed;
    top: 0;
    left: -220px;
    width: 220px;
    height: 100%;
    background: var(--contrast-color);
    border-right: 2px;
    border-color: var(--border-color);
    transition: 0.3s;
    padding: 0px 10px;
    box-sizing: border-box;
    z-index: 1000;
}

[data-theme="hispita"] #sidebar-menu ul {
    list-style-type: none; 
    line-height: 1.5em;
    padding: 1em;
}

[data-theme="hispita"] #hamburger-overlay {
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: black;
    transition: opacity .35s, visibility .35s, height .35s;
    overflow: hidden;
    z-index: 999;
}

[data-theme="hispita"] #mobile-hamburger:checked + #hamburger-menu-icon #sidebar-menu {
    visibility: visible;
    left: 0;
}

[data-theme="hispita"] #mobile-hamburger:checked + #hamburger-menu-icon #hamburger-overlay {
    visibility: visible;
    opacity: 0.3;
}

[data-theme="hispita"] #sidebar-menu #themeSelector {
    width: 100%;
}

[data-theme="hispita"] .hamburger-bottom {
    position: absolute;
    bottom: 0;
    margin: 10px;
}

[data-theme="hispita"] .hamburger-bottom a {
    display: inline-block;
    text-align: center;
}

[data-theme="hispita"] .hamburger-bottom a:before {
    margin: 0;
}

[data-theme="hispita"] .hamburger-bottom a hr {
    border-color: #0000;
    font-size: 4px;
}

/* === CLASES AUXILIARES === */
[data-theme="hispita"] .small, 
[data-theme="hispita"] .captchaTimer {
    font-size: 80%;
    text-decoration: none;
}

[data-theme="hispita"] hr {
    border: 1px solid var(--horizon-sep-color);
    border-bottom: none;
    width: 100%;
}

[data-theme="hispita"] .wide {
    width: 100%;
}

[data-theme="hispita"] .clearer {
    clear: both;
}

[data-theme="hispita"] .floatingMenu .handle {
    max-height: 1em;
}

[data-theme="hispita"] .floatingMenu:not(.maximized) .handle , 
[data-theme="hispita"] .floatingMenu:not(.maximized) .handle label {
    cursor: move;
}

[data-theme="hispita"] th.handle {
    font-weight: normal;
}

[data-theme="hispita"] .focused .handle {
    font-weight: bold;
}

[data-theme="hispita"] .linkList a {
    display: block;
}

[data-theme="hispita"] h3, 
[data-theme="hispita"] p, 
[data-theme="hispita"] label {
    margin: 0.25em 0;
}

[data-theme="hispita"] a, 
[data-theme="hispita"] .glowOnHover { 
    color: var(--link-color);
    cursor: pointer;
    text-decoration: none;
}

[data-theme="hispita"] a:hover, 
[data-theme="hispita"] .glowOnHover:hover {
    color: var(--link-hover-color);
}

[data-theme="hispita"] .coloredIcon:before {
    font-family: 'Icons';
    margin-right: 0.25em;
}

/* === FORMULARIOS Y MODALES === */
[data-theme="hispita"] input[type=text], 
[data-theme="hispita"] input[type=password], 
[data-theme="hispita"] input[type=number], 
[data-theme="hispita"] input[type=url],
[data-theme="hispita"] textarea {
    background: white;
    color: black;
    font-size: 80%;
    border: 1px solid var(--border-color);
    font-family: inherit;
}

[data-theme="hispita"] input[type=button], 
[data-theme="hispita"] input[type=submit], 
[data-theme="hispita"] button, 
[data-theme="hispita"] .dropzone, 
[data-theme="hispita"] .selectedCell {
    border: 1px solid var(--border-color);
    background: var(--contrast-color);
    color: var(--text-color);
    font-weight: bold;
    font-size: 80%;
}

[data-theme="hispita"] input[type=button], 
[data-theme="hispita"] input[type=submit], 
[data-theme="hispita"] button {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    cursor: pointer;
}

[data-theme="hispita"] .postingCheckbox+label {
    display: inline-block;
    font-size: 80%;
    vertical-align: top;
    margin-right: 8px;
}

[data-theme="hispita"] #postingForm input[type=text], 
[data-theme="hispita"] #postingForm textarea {
    width: calc(100% - 7px);
}

[data-theme="hispita"] #checkboxSpoiler+label:after,
[data-theme="hispita"] #qrcheckboxSpoiler+label:after {
    content: "Spoiler All";
}

[data-theme="hispita"] #checkboxScramble+label:after,
[data-theme="hispita"] #qrcheckboxScramble+label:after {
    content: "Strip Filenames";
}

[data-theme="hispita"] #doSageCheckbox+label:after {
    content: "Sage";
}

[data-theme="hispita"] #alwaysUseBypassCheckBox+label:after {
    content: "Bypass check";
}

[data-theme="hispita"] #checkboxNoFlag+label:after {
    content: "No location";
}

[data-theme="hispita"] #selectedDiv, 
[data-theme="hispita"] #selectedDivQr {
    max-height: 200px;
    display: inline-block;
    overflow-y: auto;
}

[data-theme="hispita"] .filedrop-oekaki {
    display: flex;
    gap: 1px;
}

[data-theme="hispita"] .dropzone {
    cursor: pointer;
    text-align: center;
    padding: 5px;
    transition: all 0.2s ease 0s;
    flex-grow: 1;
    height: min-content;
}

[data-theme="hispita"] .oekaki-btn.dropzone {
    flex-shrink: 1;
    flex-grow: 0.025;
    align-self: stretch;
    height: unset;
}

[data-theme="hispita"] .budget {
    display: flex;
}

[data-theme="hispita"] .budget meter {
    flex-grow: 1;
    align-self: center;
}

[data-theme="hispita"] .budget label {
    margin-left: 0.25em;
    width: 8em;
    text-align: end;
    display: inline-flex;
    justify-content: space-around;
}

[data-theme="hispita"] .selectedCell {
    float: left;
    text-align: center;
    width: 100px;
    padding: 4px 0px;
    margin-right: 3px;
    margin-bottom: 3px;
}

[data-theme="hispita"] .selectedCell .spoilerPanel {
    display: block;
}

[data-theme="hispita"] .selectedCell .removeButton {
    vertical-align: top;
}

[data-theme="hispita"] .dragAndDropThumb {
    max-height: 100px;
    max-width: calc(100% - 10px);
}

[data-theme="hispita"] .fileBudget {
    width: calc(100% - 10px);
}

[data-theme="hispita"] [over-budget].selectedCell {
    background-color: var(--error, red);
}

[data-theme="hispita"] [over-budget].selectedCell label:before {
    font-family: 'Icons';
    content: '\e0d8';
    color: var(--link-color);
    cursor: help;
    vertical-align: text-top;
}

[data-theme="hispita"] .nameLabel {
    display: inline-block;
    max-width: 70px;
    margin-left: 0px;
    margin-right: 0px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    padding: 1px 2px;
    cursor: pointer;
}

[data-theme="hispita"] #flagCombobox {
    width: 85%;
}

[data-theme="hispita"] .flagPreview {
    display: inline-block;
    max-width: 10%;
    height: 16px;
}

[data-theme="hispita"] #divUpload, 
[data-theme="hispita"] .centered {
    text-align: center;
}

[data-theme="hispita"] #postingForm {
    text-align: center;
    margin: 1em auto;
}

[data-theme="hispita"] #postingForm th, 
[data-theme="hispita"] .modalTableBody th {
    font-size: 80%;
    padding-left: 0.25em;
    padding-right: 1em;
    background: var(--background-highlight-color);
    border: 1px solid var(--border-color);
}

[data-theme="hispita"] #postingForm tr, 
[data-theme="hispita"] .modalTableBody tr {
    text-align: left;
}

[data-theme="hispita"] #postingForm input[type=submit], 
[data-theme="hispita"] #qrbutton {
    width: 9em;
    margin: 0.5em auto;
    font-size: 115%;
}

[data-theme="hispita"] .captchaImage {
    width: 300px;
    height: 100px;
    background-color: white;
    background-image: url('/.static/captcha_fallback.png');
    background-size: cover;
    background-position: center;
}

[data-theme="hispita"] .postingFormExtra {
    text-align: left;
}

[data-theme="hispita"] .postingFormExtra summary::marker {
    content: "More";
    font-size: 95%;
}

[data-theme="hispita"] .postingFormExtra[open] summary::marker {
    content: "Less";
}

[data-theme="hispita"] .localPageLink:after {
    font-family: "Icons";
    content: "\e052";
    font-size: 80%;
    padding-left: 0.25em;
    vertical-align: middle;
}

/* === PANELES MODALES === */
[data-theme="hispita"] .modalPanel {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 200;
    display: table;
    text-align: center;
    background: rgba(29, 31, 33, 0.66);
    right: 0;
    top: 0;
}

[data-theme="hispita"] .modalInnerPanel {
    vertical-align: middle;
    display: table-cell;
}

[data-theme="hispita"] .modalForm {
    padding: 10px;
    display: inline-block;
    max-width: 90%;
}

[data-theme="hispita"] .modalForm table {
    width: 100%;
}

[data-theme="hispita"] .modalCaptchaControls {
    display: block;
    text-align: left;
}

[data-theme="hispita"] .modalCaptchaControls input, 
[data-theme="hispita"] .modalOkButton {
    margin-right: 10px;
}

[data-theme="hispita"] .modalTableBody input[type=text], 
[data-theme="hispita"] .modalTableBody select {
    vertical-align: middle;
    width: 95%;
}

/* === MENÚS FLOTANTES === */
[data-theme="hispita"] .floatingList, 
[data-theme="hispita"] .floatingMenu, 
[data-theme="hispita"] .modalForm {
    background: var(--menu-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    left: 0%;
}

[data-theme="hispita"] .floatingMenu {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 100px;
    top: 25px;
    z-index: 100;
    padding: 5px;
}

[data-theme="hispita"] .floatingMenu.maximized {
    left: 4px!important;
    top: 4px!important;
    right: 4px!important;
    bottom: 4px!important;
}

[data-theme="hispita"] .floatingMenu.maximized .floatingContainer {
    width: 100%!important;
    height: 100%!important;
}

[data-theme="hispita"] .floatingMenu > div {
    max-height: 100%;
}

[data-theme="hispita"] .floatingMenu .floatingContainer {
    resize: both;
    overflow-y: auto;
}

[data-theme="hispita"] .floatingMenu.maximized .floatingContainer {
    resize: none;
    margin-bottom: -4px;
}

[data-theme="hispita"] #settingsMenu .floatingContainer {
    width: 28em;
    height: 12em;
    min-height: 12em;
}

[data-theme="hispita"] #multiboardMenu .floatingContainer {
    width: 28em;
    height: 12em;
    min-height: 12em;
}

[data-theme="hispita"] #watchedMenu .floatingContainer {
    width: 12em;
}

[data-theme="hispita"] .maxamize-btn {
    float: right;
    padding-top: 4px;
    padding-left: 4px;
}

[data-theme="hispita"] .help-btn, 
[data-theme="hispita"] .close-btn, 
[data-theme="hispita"] .refresh-btn {
    float: right;
    padding-top: 2px;
    padding-left: 4px;
}

[data-theme="hispita"] .floatingList {
    position: absolute;
    top: 0;
    left: 0%;
    margin-left: 0.5em;
    z-index: 1;
    cursor: default;
    border-bottom: none;
}

[data-theme="hispita"] .floatingList ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

[data-theme="hispita"] .floatingList ul li {
    border-bottom: 1px solid var(--text-color);
    cursor: pointer;
    padding: 3px;
}

[data-theme="hispita"] .floatingList ul li:hover {
    text-shadow: none;
    background-color: var(--contrast-color);
}

[data-theme="hispita"] .mobileSelect {
    background-color: #0000;
    opacity: 0;
    left: 0;
    width: 10pt;
    height: 10pt;
    z-index: 10;
    position: absolute;
}

[data-theme="hispita"] #divControls, 
[data-theme="hispita"] #transferControls, 
[data-theme="hispita"] #ipDelete, 
[data-theme="hispita"] #divArchive, 
[data-theme="hispita"] #divMerge {
    margin: 1em;
}

[data-theme="hispita"] .contentAction label, 
[data-theme="hispita"] #divControls label, 
[data-theme="hispita"] #transferControls label,
[data-theme="hispita"] #ipDelete label, 
[data-theme="hispita"] #divArchive label, 
[data-theme="hispita"] #divMerge label {
    font-size: 80%;
}

/* === QUICK REPLY === */
[data-theme="hispita"] #quick-reply {
    display: none;
    text-align: left;
    padding: 0.25em;
    left: calc(100vw - 350px);
    top: 50px;
}

[data-theme="hispita"] #qrCaptchaButton, 
[data-theme="hispita"] #qrFilesButton {
    display: none;
}

[data-theme="hispita"] #quick-reply table {
    width: calc(300px + 0.5em);
    padding: 2px;
}

[data-theme="hispita"] #quick-reply details >table {
    width: 100%;
}

[data-theme="hispita"] #quick-reply tr td:nth-child(2) {
    width: 100px;
    text-align: left;
    padding-left: 0.25em;
}

[data-theme="hispita"] #quick-reply th {
    text-align: center;
    background: var(--background-highlight-color);
    border: 1px solid var(--border-color);
}

[data-theme="hispita"] #quick-reply .close-btn {
    font-size: 80%;
}

[data-theme="hispita"] #quick-reply input[type="text"], 
[data-theme="hispita"] #quick-reply input[type="password"],
[data-theme="hispita"] #quick-reply select, 
[data-theme="hispita"] #quick-reply textarea {
    width: 100%;
    padding: 2px;
    font-size: 10pt;
    box-sizing: border-box;
}

[data-theme="hispita"] #quick-reply .captchaTimer {
    width: 20%;
    display: inline-block;
    text-align: right;
}

[data-theme="hispita"] #quick-reply summary {
    font-size: 90%;
}

/* === FIELDSETS === */
[data-theme="hispita"] .reportFieldset {
    border: 1px solid var(--horizon-sep-color);
    margin-top: 1em;
    display: block;
}

[data-theme="hispita"] #newPostFieldset {
    display: inline-block;
    min-width: 27.5em;
    border: none;
}

[data-theme="hispita"] #newPostFieldset table {
    width: 100%;
}

[data-theme="hispita"] #newPostFieldset legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-height: 13px;
}

[data-theme="hispita"] #newPostFieldset legend label {
    width: 100%;
    display: inline-block;
    margin: 0;
    cursor: pointer;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

[data-theme="hispita"] #newPostFieldset #newPostFieldHide:checked ~ form {
    display: block;
}

[data-theme="hispita"] #newPostFieldset #newPostFieldHide:not(checked) ~ form {
    display: none;
}

[data-theme="hispita"] #newPostFieldset #newPostFieldHide:checked ~ legend #showButton {
    display: none;
}

[data-theme="hispita"] #newPostFieldset #newPostFieldHide:checked ~ legend #hideButton {
    display: block;
}

[data-theme="hispita"] #newPostFieldset #newPostFieldHide:not(checked) ~ legend #hideButton {
    display: none;
}

[data-theme="hispita"] .newPostFieldToggleButton {
    font-size: xx-large;
    pointer-events: none;
    margin-left: auto;
}

/* === PÁGINAS DE UTILIDAD === */
[data-theme="hispita"] .titleWrapper {
    margin: 2em 1em;
    text-align: center;
    margin-bottom: 0;
}

[data-theme="hispita"] .titleWrapper > :not(:only-child) {
    margin-bottom: 16px;
}

[data-theme="hispita"] .titleFieldset {
    padding: 1em;
    width: 70%;
    display: inline-block;
    text-align: left;
    background: var(--contrast-color);
    border: 1px solid var(--border-color);
}

[data-theme="hispita"] .titleFieldset .postInfo.title {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

[data-theme="hispita"] #labelCaptchaId {
    color: #ff0000;
}

/* === THREAD TOP/BOTTOM === */
[data-theme="hispita"] #bannerImage {
    max-width: 100%;
    height: 100px;
}

[data-theme="hispita"] .boardHeader p, 
[data-theme="hispita"] #overboardId {
    color: var(--board-title-color);
    font-size: 160%;
}

[data-theme="hispita"] .boardHeader #favouriteButton {
    color: var(--board-title-color);
}

[data-theme="hispita"] .boardHeader #labelName {
    display: inline;
}

[data-theme="hispita"] .boardHeader p#labelDescription {
    font-size: 100%;
}

[data-theme="hispita"] #favoriteButton {
    display: none;
}

[data-theme="hispita"] #favoriteButtonLabel:after {
    content: '\2606';
    font-size: 200%;
}

[data-theme="hispita"] #favoriteButton:checked + #favoriteButtonLabel:after {
    content: '\2605';
    color: inherit;
}

[data-theme="hispita"] #panelMessage {
    margin: 1em;
    color: red;
    text-align: center;
}

[data-theme="hispita"] #panelMessage div {
    white-space: pre-wrap;
}

[data-theme="hispita"] .boardLinks a {
    font-size: 80%;
    text-decoration: underline;
}

[data-theme="hispita"] .innerUtility > a:before {
    content: '[';
}

[data-theme="hispita"] .innerUtility > a:after {
    content: ']';
}

[data-theme="hispita"] .innerUtility.top {
    color: var(--thread-navbar-color);
    background-color: var(--thread-navbar-background);
    margin: 1em;
    width: calc(100% - 2em);
    text-align: center;
    font-weight: bold;
    padding-top: 2px;
    padding-bottom: 2px;
}

[data-theme="hispita"] .innerUtility.top a {
    color: var(--thread-navbar-color);
}

[data-theme="hispita"] .threadBottom {
    display: inline-block;
    width: 100%;
    margin: 0;
}

[data-theme="hispita"] #threadList {
    margin: 1em;
}

[data-theme="hispita"] .containPages {
    color: var(--link-color);
    background-color: var(--contrast-color);
    padding: 0.1em 0.25em;
}

[data-theme="hispita"] .threadBottom .innerUtility {
    float: left;
}

[data-theme="hispita"] .threadBottom .threadInfo {
    float: right;
    display: none;
}

[data-theme="hispita"] .threadBottom .threadInfo > :not(:last-child):after {
    content: " /";
}

[data-theme="hispita"] .threadInfo #postCount:before {
    content: "Posts: ";
}

[data-theme="hispita"] .threadInfo #idCount:before {
    content: "UIDs: ";
}

[data-theme="hispita"] .threadInfo #fileCount:before {
    content: "Files: ";
}

[data-theme="hispita"] .labelWsStatus {
    display: none;
}

[data-theme="hispita"] .divRefresh {
    padding: 0;
    height: 1.5em;
    margin-left: 2px;
}

[data-theme="hispita"] .divRefresh label, 
[data-theme="hispita"] .divRefresh input {
    display: inline-block;
    margin: 0;
    font-size: 80%;
    vertical-align: middle;
}

[data-theme="hispita"] .contentAction label, 
[data-theme="hispita"] .contentAction img {
    display: block;
}

/* === ICONOS DE NAVEGACIÓN ADICIONALES === */
[data-theme="hispita"] .navCatalog:before {
    content: "\e072";
}

[data-theme="hispita"] .navCatalog:after {
    content: "Catalog";
}

[data-theme="hispita"] .linkRss:before {
    content: "\e0b7";
}

[data-theme="hispita"] .linkRss:after {
    content: "RSS";
}

[data-theme="hispita"] .linkLogs:before {
    content: "\e021"
}

[data-theme="hispita"] .linkLogs:after {
    content: "Logs"
}

[data-theme="hispita"] #linkTop:before {
    content: "\e012";
}

[data-theme="hispita"] #linkTop:after {
    content: "Top";
}

[data-theme="hispita"] #linkBottom:before {
    content: "\e00f";
}

[data-theme="hispita"] #linkBottom:after {
    content: "Bottom";
}

[data-theme="hispita"] .linkBack:before {
    content: "\e003";
}

[data-theme="hispita"] .linkBack:after {
    content: "Back";
}

[data-theme="hispita"] #navSideCatalog:before {
    content: "\e087";
}

[data-theme="hispita"] #navSideCatalog:after {
    content: "Side Catalog";
}

[data-theme="hispita"] #galleryLink:before {
    content: "\e083";
}

[data-theme="hispita"] #galleryLink:after {
    content: "Gallery";
}

/* === CATÁLOGO LATERAL === */
[data-theme="hispita"] #showSideCatalog {
    display: none;
}

[data-theme="hispita"] #sideCatalogDiv {
    visibility: hidden;
    position: fixed;
    overflow-y: auto;
    right: -20%;
    top: 22px;
    height: calc(100vh - 22px);
    width: 20em;
    overscroll-behavior: contain;
    transition: 0.3s;
}

[data-theme="hispita"] #showSideCatalog:checked + #sideCatalogMenu #sideCatalogDiv {
    visibility: visible;
    right: 0;
}

[data-theme="hispita"] #sideCatalogOverlay {
    display: none;
}

[data-theme="hispita"] #sideCatalogHeader {
    display: inline-block;
    width: 100%;
}

[data-theme="hispita"] #sideCatalogBody {
    padding-right: 10px;
}

[data-theme="hispita"] .sideCatalogCell {
    background: var(--contrast-color);
    border: 1px solid var(--horizon-sep-color);
    padding: 0.5em;
    margin-bottom: 10px;
    display: block;
    cursor: pointer;
    font-size: 75%;
    overflow: hidden;
}

[data-theme="hispita"] .sideCatalogCell img {
    float: left;
    margin-right: 10px;
    max-width: 125px;
    max-height: 125px;
}

[data-theme="hispita"] .sideCatalogCellText span {
    display: block;
}

[data-theme="hispita"] .galleryImage {
    max-width: 100vw;
    max-height: 100vh;
}

/* === CELDAS DE POSTS === */
[data-theme="hispita"] .postCell {
    margin: 0.25em 0;
}

[data-theme="hispita"] .postCell.forwarded {
    display: none;
}

[data-theme="hispita"] .innerOP, 
[data-theme="hispita"] .innerPost {
    font-size: 10pt;
}

[data-theme="hispita"] .innerOP *, 
[data-theme="hispita"] .innerPost * {
    box-sizing: border-box;
}

[data-theme="hispita"] .opCell > .innerOP {
    display: inline-block;
    width: 95%;
}

[data-theme="hispita"] .postInfo {
    margin-right: 1em;
}

[data-theme="hispita"] .quoteTooltip .postInfo {
    margin-right: inherit;
}

[data-theme="hispita"] .extraMenuButton, 
[data-theme="hispita"] .hideButton, 
[data-theme="hispita"] .watchButton {
    margin-left: 0.25em;
    position: relative;
}

[data-theme="hispita"] .extraMenuButton:before {
    content: '\e02f';
}

[data-theme="hispita"] .hideButton:before {
    content: '\e017';
}

[data-theme="hispita"] .divBanMessage:before, 
[data-theme="hispita"] .lockIndicator:before, 
[data-theme="hispita"] .pinIndicator:after, 
[data-theme="hispita"] .archiveIndicator:after,
[data-theme="hispita"] .cyclicIndicator:after, 
[data-theme="hispita"] .bumpLockIndicator:after { 
    font-family: "Icons";
    color: #A00;
}

[data-theme="hispita"] .lockIndicator:before {
    content: "\e08a";
}

[data-theme="hispita"] .pinIndicator:after {
    content: "\e0a8";
}

[data-theme="hispita"] .archiveIndicator:after {
    content: "\e023";
}

[data-theme="hispita"] .cyclicIndicator:after {
    content: "\e08c";
}

[data-theme="hispita"] .bumpLockIndicator:after {
    content: "\2693\FE0E";
    background: url(/.static/anchor.png) no-repeat;
    background-size: 11pt;
    color: transparent;
    font-size: 12pt;
    font-weight: bold;
}

[data-theme="hispita"] .labelSubject, 
[data-theme="hispita"] .labelRole, 
[data-theme="hispita"] .linkName {
    font-weight: bold;
}

[data-theme="hispita"] .labelSubject {
    color: var(--subject-color);
    word-wrap: break-word;
}

[data-theme="hispita"] .labelRole {
    color: var(--role-color);
}

[data-theme="hispita"] .labelRole:before {
    font-family: 'Icons';
    content: '\2606';
}

[data-theme="hispita"] .labelDeleted {
    color: var(--error);
}

[data-theme="hispita"] .noEmailName, 
[data-theme="hispita"] .noEmailName:hover {
    color: #117743;
    cursor: default;
}

[data-theme="hispita"] .youName::after {
    content: ' (You)';
    font-style: italic;
}

[data-theme="hispita"] .labelId {
    color: #ffffff;
    padding: 1px 4px;
    border-radius: 2px;
    text-shadow: -1px -1px 2px #000, 0px 0px 2px #000;
    background-image: linear-gradient(-45deg, rgba(0,0,0,0.2), rgba(255,255,255,0.2));
    font-size: 80%;
    font-weight: bold;
    border: 1px solid rgba(0,0,0,0.1);
    margin-left: 2px;
    vertical-align: 1px;
    cursor: pointer;
}

[data-theme="hispita"] .linkSelf, 
[data-theme="hispita"] .linkQuote, 
[data-theme="hispita"] .labelStats {
    color: var(--text-color);
    text-decoration: none;
}

[data-theme="hispita"] .altBacklinks {
    font-size: 10pt;
    background-color: rgba(0,0,0,0.05);
    bottom: 0px;
    display: table;
    padding: 2px;
    clear: both;
}

[data-theme="hispita"] .imgFlag {
    max-width: 16px;
    max-height: 16px;
}

[data-theme="hispita"] .panelBacklinks {
    display: inline;
}

[data-theme="hispita"] .backLink {
    display: inline-block;
    margin-right: 0.3em;
}

[data-theme="hispita"] .bottom-backlinks .backLink, 
[data-theme="hispita"] .backLink:last-child {
    margin-right: 0;
}

[data-theme="hispita"] .bottom-backlinks .panelBacklinks, 
[data-theme="hispita"] .bottom-backlinks.panelBacklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3em;
    margin: 0 4px;
    clear: both;
}

[data-theme="hispita"] .postLink {
    text-decoration: underline;
}

[data-theme="hispita"] .quoteLink {
    color: #ff0000;
}

[data-theme="hispita"] .quoteLink.filtered {
    text-decoration: underline line-through;
}

[data-theme="hispita"] .backLink.filtered {
    display: none;
}

[data-theme="hispita"] .postLink.inlined {
    opacity: 0.5;
}

[data-theme="hispita"] .contentOmissionIndicator {
    margin: 1em 0;
}

[data-theme="hispita"] .divBanMessage {
    color: #ff0000;
    font-weight: bold;
    margin: 1em;
    font-size: 120%;
}

[data-theme="hispita"] .labelOmission, 
[data-theme="hispita"] .labelLastEdit {
    font-size: 80%;
    margin-top: 0.75em;
    margin-left: 0.75em;
}

[data-theme="hispita"] .divMessage {
    margin: 1em 1em 1em 3em;
    white-space: pre-wrap;
    word-wrap: break-word;
}

[data-theme="hispita"] .innerPost {
    display: inline-block;
    padding: 0.25em;
    max-width: 100%;
    background: var(--contrast-color);
    border: 1px solid var(--horizon-sep-color);
    border-top-width: 0;
    border-left-width: 0;
}

[data-theme="hispita"] :root.highlight-you .quotesYou {
    border-left: 3px solid var(--border-highlight-color);
}

[data-theme="hispita"] :root.highlight-you .yourPost {
    border-left: 3px dashed var(--border-highlight-color);
}

[data-theme="hispita"] .postCell:target .innerPost, 
[data-theme="hispita"] .markedPost, 
[data-theme="hispita"] .sideCatalogMarkedCell {
    background: var(--marked-color);
    border-color: var(--marked-border-color);
    color: var(--marked-text-color);
}

[data-theme="hispita"] .postCell:before {
    display: block;
    content: "";
    margin-top: -40px;
    height: 40px;
    visibility: hidden; 
}

[data-theme="hispita"] .divBanMessage:before {
    content: "\e0d8";
    padding-right: 0.25em;
    vertical-align: middle;
}

[data-theme="hispita"] .inlineQuote {
    white-space: normal;
}

[data-theme="hispita"] .inlineQuote .innerPost {
    border: 1px solid var(--horizon-sep-color);
    display: table;
}

[data-theme="hispita"] .inlineQuote .title {
    width: 100%;
}

[data-theme="hispita"] .closeInline {
    font-weight: bold;
    margin-left: 0.5em;
}

[data-theme="hispita"] .quoteTooltip {
    position: fixed;
    display: none;
    min-width: 25%;
    pointer-events: none;
    z-index: 150;
}

[data-theme="hispita"] .quoteTooltip[open] {
    display: block;
}

[data-theme="hispita"] .quoteTooltip .innerPost {
    border: 1px solid var(--horizon-sep-color);
    padding: 12px;
}

[data-theme="hispita"] .replyUnderline {
    text-decoration: underline dashed !important;
    text-decoration-skip-ink: none;
    text-underline-position: from-font;
}

/* === FORMATO DE POSTS === */
[data-theme="hispita"] u {
    text-decoration: underline;
}

[data-theme="hispita"] s {
    text-decoration: line-through;
}

[data-theme="hispita"] strong {
    font-weight: bold;
}

[data-theme="hispita"] em {
    font-style: italic;
}

[data-theme="hispita"] .greenText {
    color: var(--greentext-color);
}

[data-theme="hispita"] .redText {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 125%;
}

[data-theme="hispita"] .doomText {
    color: #CD3B2B;
    font-family: 'DOOM';
}

[data-theme="hispita"] .pinkText {
    color: #ff28fb;
}

[data-theme="hispita"] .echoText {
    background: ghostwhite;
    color: mediumblue;
}

[data-theme="hispita"] .slopedText {
    background: #c8102e;
    color: #fce300;
}

[data-theme="hispita"] .moeText {
    position: relative;
    word-wrap: normal;
}

[data-theme="hispita"] .moeText:before {
    content: '';
    background: url('../moesparkle.gif') repeat-x;
    background-size: 8em;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

[data-theme="hispita"] .magnetLink:before {
    content: '\1F9F2';
    font-size: small;
}

[data-theme="hispita"] .diceRoll:before {
    display: inline-block;
    content: ' ';
    background-image: url(../d20.svg);
    background-size: 30px 20px;
    height: 20px;
    width: 30px;
    margin: 2px 2px 2px 2px;
}

[data-theme="hispita"] .diceRoll {
    font-weight: bold;
    color: var(--accent-color);
}

[data-theme="hispita"] span.spoiler {
    background: #000;
    color: #0000;
    padding: 0 1px;
}

[data-theme="hispita"] span.spoiler a {
    color: inherit !important;
}

[data-theme="hispita"] .spoiler:hover {
    color: white !important;
}

[data-theme="hispita"] .aa {
    font-family: "Mona", "MS PGothic", "ＭＳ Ｐゴシック", sans-serif;
    display: block !important;
    font-size: 10pt;
    line-height: 1.1;
}

[data-theme="hispita"] code {
    font-size: 13px;
    background-color: rgba(255,255,255,0.15);
    display: inline-block;
    border-radius: 6px;
    padding: 0 0.25em;
    max-width: 100%;
    overflow-x: auto;
}

[data-theme="hispita"] .inlineCode > code {
    padding: 0;
    display: inline-block;
    padding: 0 1em;
}

[data-theme="hispita"] .embedButton {
    margin-left: 0.25em;
    font-size: 90%;
}

[data-theme="hispita"] summary.threadReplyOverflow {
    display: inline;
    font-weight: bold;
    color: var(--link-color);
}

[data-theme="hispita"] summary.threadReplyOverflow:hover {
    color: var(--link-hover-color);
}

[data-theme="hispita"] details[open].threadReplyOverflow summary {
    display: none;
}

[data-theme="hispita"] .trashIndicator:after {
    font-family: "Icons";
    content: "\E0CF";
    color: var(--thread-navbar-background);
}

[data-theme="hispita"] .innerPost:has(.postInfo):has(.trashIndicator) {
    opacity: 0.5;
}

/* === CATÁLOGO === */
[data-theme="hispita"] #catalogWrapper {
    text-align: center;
    padding-right: 1em;
}

[data-theme="hispita"] #divTools {
    text-align: left;
    padding: 0 15px;
    margin-top: 0;
    width: 98%;
}

[data-theme="hispita"] #divTools > * {
    font-size: 90%;
}

[data-theme="hispita"] #divTools .innerUtility {
    display: inline-block;
}

[data-theme="hispita"] #divTools input[type=checkbox] {
    vertical-align: middle;
}

[data-theme="hispita"] .catalogDiv {
    width: 95%;
    margin: 1em auto;
    text-align: center;
}

[data-theme="hispita"] .jsenabled .catalogDiv {
    display: none;
}

[data-theme="hispita"] .catalogCell {
    border: 1px solid var(--horizon-sep-color);
    background: var(--contrast-color);
    display: inline-block;
    width: 12em;
    height: 14em;
    padding: 0.25em;
    margin: 0.1em;
    overflow-x: hidden;
    overflow-y: auto;
}

[data-theme="hispita"] .jsenabled .catalogCell {
    overflow: hidden;
}

[data-theme="hispita"] .scrollCell {
    overflow-y: scroll !important;
}

[data-theme="hispita"] .linkThumb img {
    max-height: 128px;
    max-width: 128px;
}

[data-theme="hispita"] .threadStats, 
[data-theme="hispita"] .catalogCell .divMessage, 
[data-theme="hispita"] .catalogCell .labelSubject {
    margin: 0;
    font-size: 75%;
}

/* === WATCHER === */
[data-theme="hispita"] #watchedMenu {
    max-height: 95vh;
}

[data-theme="hispita"] #watchedMenu table {
    border-collapse: collapse;
}

[data-theme="hispita"] #watchedMenu tr {
    border-bottom: 1px solid var(--horizon-sep-color);
}

[data-theme="hispita"] #watchedMenu tr:last-child {
    border-bottom: none;
}

[data-theme="hispita"] #watchedMenu td {
    width: 100%;
    font-size: 80%;
    padding: 3px 0;
}

[data-theme="hispita"] .watchedCellDismissButton {
    vertical-align: middle;
}

[data-theme="hispita"] .watchedNotification:before {
    font-family: 'Icons';
    content: '\e0D8';
    margin-left: 0.25em;
    color: #A00;
}

[data-theme="hispita"] .watchedCellDead {
    text-decoration: line-through;
}

/* === MENÚ DE CONFIGURACIÓN === */
[data-theme="hispita"] .settingsTab {
    font-size: 80%;
    cursor: pointer;
    margin: 0.5em;
}

[data-theme="hispita"] .selectedTab {
    color: var(--link-color);
    text-shadow: 0px 0px 2px var(--link-color);
}

[data-theme="hispita"] .menuContentPanel {
    height: calc(100% - 2em);
    padding: 0.1em;
    padding-top: 0.5em;
}

[data-theme="hispita"] .menuContentPanel .labelBefore {
    padding-right: 1em;
}

[data-theme="hispita"] .panelContents {
    height: calc(100% - 0.4em);
    display: none;
    padding: 0.2em;
}

[data-theme="hispita"] .selectedPanel {
    display: block !important;
}

[data-theme="hispita"] .formPanelContainer > * {
    margin: 0.5em
}

[data-theme="hispita"] #labelExistingFilterType, 
[data-theme="hispita"] #labelExistingFilterContent,
[data-theme="hispita"] .existingFilterTypeLabel, 
[data-theme="hispita"] .existingFilterContentLabel {
    font-size: 80%;
}

[data-theme="hispita"] #labelExistingFilterType, 
[data-theme="hispita"] .existingFilterTypeLabel {
    display: inline-block;
    width: 20%;
}

[data-theme="hispita"] #labelExistingFilterContent, 
[data-theme="hispita"] .existingFilterContentLabel {
    width: 70%;
    display: inline-block;
}

[data-theme="hispita"] .regex-slash {
    padding: 0 1px;
    color: var(--link-hover-color);
    font-weight: bold;
}

[data-theme="hispita"] #cssInput, 
[data-theme="hispita"] #jsInput {
    resize: none;
    height: calc(100% - 32px);
    width: calc(100% - 10px);
}

/* === PÁGINA DE ÍNDICE === */
[data-theme="hispita"] #indexWrapper {
    max-width: 1110px;
    padding-right: 0.5em;
    margin: 2em auto;
}

[data-theme="hispita"] #indexWrapper > fieldset {
    margin-bottom: 8px;
    width: calc(100% - 2em);
}

[data-theme="hispita"] #indexWrapper > fieldset:not(#welcomeMessage) {
    padding-top: 0.1em;
    padding-bottom: 0.1em;
}

[data-theme="hispita"] .splitField {
    width: 100%;
    display: inline-block;
    column-count: 2;
    text-align: center;
    width: 100%;
}

[data-theme="hispita"] .splitField > * {
    vertical-align: top;
    width: calc(100% - 2em);
    padding-bottom: 1px;
    min-inline-size: auto;
}

[data-theme="hispita"] #welcomeMessage #logoBox {
    width: 20%;
    margin: 0 auto 1em auto;
    text-align: center;
    float: left;
    padding-left: 12px;
}

[data-theme="hispita"] .logoImg {
    height: 200px;
    min-width: 1px;
}

[data-theme="hispita"] #logoBox div.logoImg {
    max-height: 120px;
    max-width: 100%;
    display: block;
    background-image: var(--logo-image);
    background-repeat: no-repeat;
    background-size: contain;
}

[data-theme="hispita"] #welcomeMessage p {
    width: 75%;
    margin-left: 1em;
    float: right;
}

[data-theme="hispita"] #dynamicLinks, 
[data-theme="hispita"] #divStats {
    padding: 0.5em;
    text-align: center;
}

[data-theme="hispita"] #linkGlobalLogs:before {
    content: "\e069";
}

[data-theme="hispita"] #linkGlobalLogs:after {
    content: 'logs';
}

[data-theme="hispita"] #linkArchives:before {
    content: "\e021";
}

[data-theme="hispita"] #linkArchives:after {
    content: 'archives';
}

[data-theme="hispita"] #linkGraphs:before {
    content: "\e018";
}

[data-theme="hispita"] #linkGraphs:after {
    content: 'daily graphs';
}

[data-theme="hispita"] #linkGlobalRules:before {
    content: "\e06f";
}

[data-theme="hispita"] #linkGlobalRules:after {
    content: 'global rules';
}

[data-theme="hispita"] #linkLinks:before {
    content: "\e086";
}

[data-theme="hispita"] #linkLinks:after {
    content: 'links';
}

[data-theme="hispita"] #linkAbout:before {
    content: "\e0b0";
}

[data-theme="hispita"] #linkAbout:after {
    content: 'about';
}

[data-theme="hispita"] #linkDonate:before {
    content: "\e053";
}

[data-theme="hispita"] #linkDonate:after {
    content: 'donate';
}

[data-theme="hispita"] #linkContact:before {
    content: "\e05c";
}

[data-theme="hispita"] #linkContact:after {
    content: 'contact';
}

[data-theme="hispita"] #linkAccount:before {
    content: "\e081";
}

[data-theme="hispita"] #linkAccount:after {
    content: 'account';
}

[data-theme="hispita"] #dynamicLinks {
    font-size: 75%;
}

[data-theme="hispita"] #divStats {
    column-count: 3;
    font-size: 90%;
}

[data-theme="hispita"] #divStats > span {
    font-weight: bold;
    display: block;
}

[data-theme="hispita"] #divStats > span > span {
    font-weight: normal;
}

[data-theme="hispita"] #dynamicLinks a {
    text-decoration: none;
}

[data-theme="hispita"] .topBoards {
    width: 100%;
    text-align: center;
}

[data-theme="hispita"] .topBoards a {
    padding: 0.25em 0.5em;
    text-decoration: none;
    margin: 0.5em 0.25em;
    display: inline-block;
    font-size: 90%;
}

[data-theme="hispita"] #divLatestPosts {
    margin: 0;
    text-align: center;
}

[data-theme="hispita"] #divLatestPosts .latestPostCell {
    overflow: hidden;
    padding: 0;
    margin: 0.5em;
    max-height: 8em;
    font-size: 75%;
    vertical-align: middle;
    text-align: left;
    background: unset;
    border: 1px solid transparent;
}

[data-theme="hispita"] .latestPostCell {
    text-overflow: ellipsis;
    width: 100%;
}

[data-theme="hispita"] #divLatestImages {
    margin: 0 auto;
    text-align: center;
}

[data-theme="hispita"] #divLatestImages .latestImageCell {
    display: inline-block;
    max-width: 15%;
    margin: 0 0.5em;
    vertical-align: middle;
}

[data-theme="hispita"] #divLatestImages img {
    max-width: 125px;
    max-height: 125px;
    padding: 5px;
    background: unset;
    border: 1px solid transparent;
}

/* === LISTA DE BOARDS === */
[data-theme="hispita"] .indicatorSfw, 
[data-theme="hispita"] .indicatorInactive {
    font-size: 0;
    padding-left: 4px;
}

[data-theme="hispita"] .indicatorSfw:before {
    content: "\e024";
    font-size: initial;
    font-family: Icons;
}

[data-theme="hispita"] .indicatorInactive:before {
    content: "\e0cd";
    font-size: initial;
    font-family: Icons;
}

[data-theme="hispita"] #divBoardsLegend {
    width: 100%;
    text-align: right;
    display: inline-block;
    border: 1px solid var(--border-color);
    background: var(--background-highlight-color);
}

[data-theme="hispita"] #divBoardsLegend > span, 
[data-theme="hispita"] .boardsCellStats {
    width: 25%;
    text-align: right;
    display: inline-table;
}

[data-theme="hispita"] .cellComponent {
    width: 22%;
    text-align: center;
    display: inherit;
}

[data-theme="hispita"] .boardsCellHeader {
    width: 75%;
    display: inline-table;
}

[data-theme="hispita"] #divBoards .boardsCell:nth-child(2n) {
    background-color: var(--table-every-other-color);
}

[data-theme="hispita"] .boardsCell span {
    text-overflow: ellipsis;
}

[data-theme="hispita"] .boardsCellTags, 
[data-theme="hispita"] .divDescription {
    display: block;
}

[data-theme="hispita"] .indicatorSfw, 
[data-theme="hispita"] .indicatorInactive {
    margin-left: 0.25em;
}

[data-theme="hispita"] .indicatorSfw:after {
    color: var(--sfw-indicator-color);
}

[data-theme="hispita"] .table {
    width: 100%;
    max-width: 100%;
}

[data-theme="hispita"] .table-striped tr:nth-child(2n) {
    background-color: var(--table-every-other-color);
}

[data-theme="hispita"] td.mb-cell-string {
    width: 80%;
    overflow-wrap: break-word;
}

[data-theme="hispita"] td.mb-cell-delete {
    width: 20%;
    text-align: center;
}

[data-theme="hispita"] #tab-multiboard-setup * {
    margin: 0.25em
}

/* === ELEMENTOS OCULTOS === */
[data-theme="hispita"] .hidden {
    display: none;
}

[data-theme="hispita"] .innerOP.hidden {
    display: none;
}

/* === RESPONSIVE DESIGN === */
@media only screen and (max-width: 812px) {
    [data-theme="hispita"] html {
        scroll-behavior: smooth;
    }

    [data-theme="hispita"] body {
        font-size: 85%;
        margin-top: 5px;
        margin-left: 0.25em;
        padding-top: 16px;
    }

    [data-theme="hispita"] nav.navHeader {
        font-size: 115%;
        height: auto;
        padding: 2px 2px;
        align-items: center;
    }

    [data-theme="hispita"] #navTopBoardsSpan, 
    [data-theme="hispita"] #navBoardsSpan, 
    [data-theme="hispita"] nav.navHeader > .nav-fade {
        display: none;
    }

    [data-theme="hispita"] .uploadDetails {
        font-size: 75%;
    }

    [data-theme="hispita"] .originalNameLink {
        font-size: 120%;  
    }

    [data-theme="hispita"] #hamburger-menu-icon {
        display: inline;
    }

    [data-theme="hispita"] #sideCatalogDiv {
        top: 0;
        height: 100%;
        width: 200px;
        right: -200px;
        background: var(--contrast-color);
        border-color: var(--border-color);
        border-right: 2px;
        padding: 10px;
        z-index: 1000;
    }

    [data-theme="hispita"] #sideCatalogOverlay {
        display: block;
        visibility: hidden;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        background: black;
        transition: opacity .35s, visibility .35s, height .35s;
        overflow: hidden;
        z-index: 999;
    }

    [data-theme="hispita"] #showSideCatalog:checked + #sideCatalogMenu #sideCatalogOverlay {
        right: 0px;
        opacity: 0.3;
        visibility: visible;
    }

    [data-theme="hispita"] #navLinkSpan > span, 
    [data-theme="hispita"] #navLinkSpan > a, 
    [data-theme="hispita"] #navLinkSpan > #themeSelector, 
    [data-theme="hispita"] #navOptionsSpan span, 
    [data-theme="hispita"] #settingsButton, 
    [data-theme="hispita"] #links span, 
    [data-theme="hispita"] .hideMobile {
        display: none;
    }

    [data-theme="hispita"] .spanId {
        display: inline-block;
    }

    [data-theme="hispita"] .mobileBoardSelect {
        width: 40%;
    }

    [data-theme="hispita"] #newPostFieldset {
        min-width: 95%;
        padding: 0;
    }

    [data-theme="hispita"] #newPostFieldset form {
        display: none;
    }

    [data-theme="hispita"] #newPostFieldset #newPostFieldHide:checked + form {
        display: block;
    }

    [data-theme="hispita"] #navLinkSpan > #hamburger-menu-icon, 
    [data-theme="hispita"] #navOptionsSpan > a {
        font-size: 14pt;
    }

    [data-theme="hispita"] #navOptionsSpan a:after, 
    [data-theme="hispita"] #links a:after {
        content: '';
    }

    [data-theme="hispita"] .mobileAlert {
        color: #A00;
    }

    [data-theme="hispita"] footer {
        margin-top: 1em;
    }

    [data-theme="hispita"] .floatingMenu, 
    [data-theme="hispita"] #quick-reply {
        left: 0;
        right: 0;
        width: 92.5%;
        margin: 2.5%;
    }

    [data-theme="hispita"] #settingsMenu .floatingContainer {
        width: 100%;
    }

    [data-theme="hispita"] .modalForm {
        display: block;
        margin: 8px;
        font-size: 14pt;
    }

    /* === CATÁLOGO Y THREADS MÓVILES === */
    [data-theme="hispita"] .boardHeader p#labelDescription {
        display: none;
    }

    [data-theme="hispita"] #dynamicAnnouncement {
        font-size: 90%;
    }

    [data-theme="hispita"] #postingForm, 
    [data-theme="hispita"] #quick-reply table, 
    [data-theme="hispita"] iframe {
        width: 100%;
    }

    [data-theme="hispita"] input, 
    [data-theme="hispita"] select, 
    [data-theme="hispita"] textarea {
        font-size: 100%;
    }

    [data-theme="hispita"] .captchaImage {
        width: 95%;
        height: 83px;
    }

    [data-theme="hispita"] #quick-reply summary {
        display: list-item;
    }

    [data-theme="hispita"] #qrFilesButton::marker {
        content: "Files";
    }

    [data-theme="hispita"] #qrCaptchaButton::marker {
        content: "Captcha";
    }

    [data-theme="hispita"] .linkThumb img {
        max-height: 100%;
        max-width: 100%;
    }

    [data-theme="hispita"] .catalogDiv {
        width: 100%;
        margin: 0;
    }

    [data-theme="hispita"] #catalogWrapper, 
    [data-theme="hispita"] #divTools {
        padding: 0
    }

    [data-theme="hispita"] .catalogCell {
        width: 30%;
    }

    [data-theme="hispita"] #postingForm th {
        font-size: 80%;
        width: 60px;
    }

    /* === POSTING MÓVIL === */
    [data-theme="hispita"] #threadList {
        margin: 0;
    }

    [data-theme="hispita"] .uploadCell img:not(.imgExpanded) {
        height: 150px;
        width: 150px;
    }

    [data-theme="hispita"] .opHead {
        clear: both;
    }

    [data-theme="hispita"] .innerPost {
        width: 100%;
        padding: 0;
    }

    [data-theme="hispita"] .innerPost .title {
        padding: 3px;
        padding-bottom: 0;
    }

    [data-theme="hispita"] .quoteTooltip .innerPost {
        background: var(--marked-color);
        border-color: var(--marked-border-color);
        color: var(--marked-text-color);
        margin-left: 0.25em;
        margin-right: 0.25em;
        width: calc(100vw - 3.5em);
    }

    [data-theme="hispita"] .divMessage {
        margin-left: 1em;
    }

    [data-theme="hispita"] .threadInfo #postCount:before {
        content: "P: ";
    }

    [data-theme="hispita"] .threadInfo #idCount:before {
        content: "U: ";
    }

    [data-theme="hispita"] .threadInfo #fileCount:before {
        content: "F: ";
    }

    /* === ÍNDICE Y PÁGINAS LOCALES MÓVILES === */
    [data-theme="hispita"] .titleWrapper {
        margin: 0;
        margin-top: 2em;
        width: 90%;
        min-width: unset;
    }

    [data-theme="hispita"] .logoImg {
        margin-top: 10px;
        height: 100px;
    }

    [data-theme="hispita"] #welcomeMessage #logoBox, 
    [data-theme="hispita"] #welcomeMessage p {
        padding-left: 0;
        margin: 0;
    }

    [data-theme="hispita"] .splitField {
        display: inline-block;
        columns: 1;
        text-align: center;
    }

    [data-theme="hispita"] .splitField > .titleFieldset {
        margin-bottom: 16px;
    }

    [data-theme="hispita"] .titleFieldset {
        font-size: 120%;
    }

    [data-theme="hispita"] .titleFieldset form {
        text-align: center;
    }

    [data-theme="hispita"] #divStats {
        column-count: 1;
    }

    [data-theme="hispita"] .boardsCellHeader {
        width: 100%;
        display: inline-table;
        text-align: center;
    }

    [data-theme="hispita"] .boardsCellStats, 
    [data-theme="hispita"] #divBoardsLegend, 
    [data-theme="hispita"] .labelTags {
        display: none;
    }

    [data-theme="hispita"] code {
        max-width: 90%;
        overflow: auto;
    }

    [data-theme="hispita"] #divLogs, 
    [data-theme="hispita"] .hashLabel {
        overflow-wrap: anywhere;
    }

    [data-theme="hispita"] #divPages {
        overflow-wrap: break-word;
    }

    [data-theme="hispita"] #divPages form {
        display: inline;
    }

    [data-theme="hispita"] #divPages input {
        width: 2em;
    }
}

/* === ESTILOS PARA EL BOTÓN DE CAMBIO DE TEMA === */
[data-theme="hispita"] .theme-toggle-btn {
    border-color: var(--border-color);
    font-family: arial, helvetica, sans-serif;
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 5px;
    font-size: 11px;
    padding: 3px 6px;
    min-width: 60px;
}

[data-theme="hispita"] .theme-toggle-btn:hover {
    border-color: var(--accent-color);
    background-color: var(--background-highlight-color);
}

[data-theme="hispita"] .theme-text {
    font-family: arial, helvetica, sans-serif;
    font-weight: normal;
}

/* === ANIMACIONES SUAVES === */
[data-theme="hispita"] * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* === ESTILOS ESPECÍFICOS PARA EL TEMA HISPITA === */
[data-theme="hispita"] .labelCreated:after {
    content: " (UTC)";
}

[data-theme="hispita"] .linkSelf {
    display: none;
}

[data-theme="hispita"] .linkQuote:before {
    content: "/#/";
    font-weight: bolder;
}

/* === ESTILOS PARA IMÁGENES === */
[data-theme="hispita"] img,
[data-theme="hispita"] video,
[data-theme="hispita"] .post-image,
[data-theme="hispita"] .thumbnail-image,
[data-theme="hispita"] .full-image,
[data-theme="hispita"] .thumb {
    max-width: none !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
}

[data-theme="hispita"] .post-image,
[data-theme="hispita"] .thumbnail-image {
    border: none !important;
    float: left !important;
    margin: 2px !important;
    margin-bottom: 10px !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
    margin-top: 10px !important;
    border-radius: 5px !important;
    max-height: 250px !important;
    max-width: 300px !important;
    width: auto !important;
    height: auto !important;
    position: relative !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
    object-fit: contain !important;
    object-position: center !important;
}

[data-theme="hispita"] .full-image {
    max-width: 98% !important;
    max-height: 80vh !important;
    width: auto !important;
    height: auto !important;
    border: none !important;
    margin: 2px !important;
    margin-bottom: 10px !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
    margin-top: 10px !important;
    border-radius: 5px !important;
    position: relative !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
    object-fit: contain !important;
    object-position: center !important;
}

[data-theme="hispita"] .thumb {
    border: none;
    float: left;
    margin: 2px;
    margin-bottom: 10px !important;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 10px;
    border-radius: 5px;
    max-height: 250px;
    max-width: 300px;
    width: auto;
    height: auto;
    position: relative;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    object-fit: contain;
    object-position: center;
}

[data-theme="hispita"] .theme-catalog div.thread img {
    float: none !important;
    margin: auto !important;
    max-height: 150px !important;
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
    box-shadow: 0 0 4px rgba(0,0,0,0.55) !important;
    border: 2px solid rgba(153,153,153,0) !important;
    object-fit: contain !important;
    object-position: center !important;
}

[data-theme="hispita"] #gallery_main img,
[data-theme="hispita"] #gallery_main video {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    position: absolute !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* === ESTILOS PARA BOARDS Y THREADS === */
[data-theme="hispita"] html, 
[data-theme="hispita"] body, 
[data-theme="hispita"] .banned-post .thread {
    background: var(--bg-color) !important;
    color: var(--text-color) !important;
    font-family: arial, helvetica, sans-serif;
    font-size: 10pt;
    line-height: 150%;
}

[data-theme="hispita"] .reflink a {
    color: var(--link-color) !important;
    font-weight: bold;
}

[data-theme="hispita"] .reflink a:hover {
    color: var(--link-hover-color) !important;
}

[data-theme="hispita"] .logo {
    color: var(--link-color);
}

/* === MODOS DE NAVEGACIÓN === */
[data-theme="hispita"] .replymode {
    color: var(--bg-color);
    background: var(--accent-color);
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 110%;
    width: 100%;
    border-radius: 4px;
}

[data-theme="hispita"] .catalogmode {
    color: var(--bg-color);
    background: var(--accent-color);
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 110%;
    width: 100%;
    border-radius: 4px;
}

/* === POSTS Y FORMULARIOS === */
[data-theme="hispita"] .postblock {
    background: var(--card-bg);
    text-align: center;
    color: var(--accent-color);
    padding: 5px;
    font-weight: bold;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

[data-theme="hispita"] .reply {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

[data-theme="hispita"] .replyhl {
    background: var(--background-highlight-color);
    color: var(--text-color);
}

[data-theme="hispita"] .doubledash {
    vertical-align: top;
    clear: both;
    float: left;
    color: #CE7C7C;
}

[data-theme="hispita"] .replytitle {
    font-size: 1.2em;
    color: var(--subject-color);
    font-weight: 800;
}

[data-theme="hispita"] .postername {
    color: var(--link-hover-color);
    font-weight: bold;
}

[data-theme="hispita"] .postertrip {
    color: var(--link-hover-color);
}

[data-theme="hispita"] .filetitle {
    background: inherit;
    color: var(--subject-color);
    font-weight: bold;
}

[data-theme="hispita"] .filesize {
    text-decoration: none;
}

[data-theme="hispita"] .thumbnailmsg {
    font-size: small;
    color: var(--text-color);
}

[data-theme="hispita"] .omittedposts {
    color: #AB5C5C;
    padding: 2px;
}

[data-theme="hispita"] .abbrev {
    color: #9C4040;
    padding-top: 20px;
}

[data-theme="hispita"] .highlight {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 5px;
    border-radius: 5px;
}

/* === ELEMENTOS DE FORMULARIO === */
[data-theme="hispita"] input[type="text"], 
[data-theme="hispita"] select, 
[data-theme="hispita"] textarea {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--bg-color);
    color: var(--text-color);
}

[data-theme="hispita"] .enviar {
    border: solid 0px var(--link-hover-color);
    border-radius: 5px;
    font-size: 13px;
    color: var(--bg-color);
    padding: 9px 10px;
    background-color: var(--link-hover-color);
    cursor: pointer;
    margin-left: 10px;
    float: right;
}

[data-theme="hispita"] .enviar:hover {
    background: #69B370;
}

/* === BOTONES ESPECIALES === */
[data-theme="hispita"] .eliminar, 
[data-theme="hispita"] .reportar {
    border: 1px solid #BB1616;
    border-radius: 5px;
    font-size: 13px;
    color: var(--bg-color);
    background-color: #BB1616;
    cursor: pointer;
    padding: 7px;
    opacity: 0.7;
}

[data-theme="hispita"] .eliminar:hover, 
[data-theme="hispita"] .reportar:hover {
    background-color: #E10000;
}

/* === CONTENEDORES ESPECIALES === */
[data-theme="hispita"] .cellcatalog, 
[data-theme="hispita"] .cell-recommendation {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    line-height: 145%;
}

[data-theme="hispita"] .barra {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 5px;
    text-align: center;
    font-size: 105%;
    line-height: 140%;
    padding: 8px 5px;
}

[data-theme="hispita"] .numeros {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    margin-top: -4px;
    padding: 11px 8px;
    border-radius: 5px;
    display: inline-block;
    font-size: 110%;
}

/* === CÓDIGO Y TEXTO ESPECIAL === */
[data-theme="hispita"] .code {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    overflow: auto;
    padding: 10px !important;
    max-width: 102% !important;
    max-height: 400px;
    font-family: monospace;
    word-wrap: normal;
    white-space: pre-wrap;
    overflow-x: hidden;
    font-size: 120%;
    margin-top: 10px;
    margin-bottom: -5px;
}

[data-theme="hispita"] .redtext {
    background: inherit;
    color: #DA5364;
}

[data-theme="hispita"] .greentext {
    color: var(--greentext-color);
}

/* === SPOILERS === */
[data-theme="hispita"] .spoiler {
    color: #424242;
    background-color: #424242;
    border-radius: 2px;
}

[data-theme="hispita"] .spoiler:hover {
    color: white !important;
}

[data-theme="hispita"] .spoiler span {
    color: #424242 !important;
}

[data-theme="hispita"] .spoiler:hover span {
    color: white !important;
}

/* === NAVEGACIÓN DE PÁGINAS === */
[data-theme="hispita"] .page-nav {
    border-radius: 3px;
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 4px 8px;
    margin: 2px;
}

[data-theme="hispita"] .page-nav:hover {
    background: var(--link-hover-color);
    color: var(--bg-color);
}

/* === ELEMENTOS MÓVILES === */
[data-theme="hispita"] .navbar-mobile {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

/* === ESTILO OP Y ROLES === */
[data-theme="hispita"] .op {
    display: inline-block;
    font-size: 80%;
    font-weight: normal;
    background: var(--link-hover-color);
    color: var(--bg-color);
    padding: 2px 5px;
    margin-left: 5px;
    margin-right: 2px;
    margin-bottom: 2px;
    border-radius: 4px;
}

[data-theme="hispita"] .admin, 
[data-theme="hispita"] .mod, 
[data-theme="hispita"] .guest {
    display: inline-block;
    font-size: 80%;
    font-weight: normal;
    background: var(--link-hover-color);
    color: var(--bg-color);
    padding: 2px 5px;
    margin-left: 2px;
    margin-right: 2px;
    margin-bottom: 2px;
    border-radius: 4px;
}

/* === REPORTES === */
[data-theme="hispita"] .reporte {
    text-align: right;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 5px;
    color: var(--link-color);
}

/* === AVISOS === */
[data-theme="hispita"] .avisoverde {
    padding: 10px;
    background: var(--card-bg);
    color: var(--link-hover-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    line-height: 135%;
}

[data-theme="hispita"] .avisorojo {
    padding: 10px;
    background: var(--card-bg);
    color: var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    line-height: 135%;
}
