/**
* @license The MIT License (MIT)             - [https://github.com/subversivo58/subversivo58.github.io/blob/master/LICENSE]
* @copyright Copyright (c) 2020 Lauro Moraes - [https://github.com/subversivo58]
* @version 0.1.0 [development stage]         - [https://github.com/subversivo58/subversivo58.github.io/blob/master/VERSIONING.md]
*/
@charset "utf-8";

/* ==== CORE (antigo core.css) ==== */
/**____________________________________________________________________________
   DEFAULT RULES ____________________________________________________________*/
*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box !important;
}
html {
    height: 100%;
    font-family: Arial, sans-serif;
}
body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
        "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 400;
    font-style: normal;
    font-size: calc(14px + 0.2vw) !important;
    text-rendering: optimizeSpeed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #495057;
}

/**____________________________________________________________________________
GENERAL ELEMENTS STYLE ___________________________________________________*/

p {
    margin-top: 0;
    margin-bottom: 1.2em;
    line-height: calc(1.3em + 0.3vw);
}
a {
    text-decoration: none;
}
a,
a:hover,
a:visited {
    color: #3367d6;
}
.ext-link-icon {
    background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='rgb(51, 103, 214)'%3E%3Cpath d='M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z'/%3E%3C/svg%3E")
        right/12px no-repeat;
    padding-right: 14px;
}

/* QUOTE AND BLOQUOTE -----------------------------------*/
q {
    border-left: 4px solid #ccc;
    color: #a5a4a4;
    font-style: italic;
    margin: 30px 0 30px 15px;
    padding-left: 15px;
}
/* UTILITY FOR BLOQUOTE */
.inline-note-block {
    border-top: 1px solid #ccd;
    border-bottom: 1px solid #ccd;
    color: #444;
    background-color: #edf2fa;
    padding: 0.6em 0.8em;
    font-size: 0.9em;
}
blockquote {
    display: block;
    background: #eaeaea;
    padding: 10px 20px 10px 35px;
    position: relative;
    font-family: serif;
    line-height: 1.2;
    color: #666;
    text-align: justify;
    border-left: 15px solid #999;
    border-right: 1px solid #999;
    box-shadow: 2px 2px 15px #ccc;
}
blockquote::before {
    content: "\201C";
    font-family: Georgia, serif;
    font-size: 40px;
    font-weight: bold;
    color: #999;
    position: absolute;
    left: 10px;
    top: 5px;
}
blockquote::after {
    content: "";
}
blockquote cite {
    font-family: Georgia, Arial, sans-serif;
    font-size: 14px;
    display: block;
}
blockquote cite:before {
    content: "\2009 \2014";
    color: #827d7d;
}
blockquote cite a {
    color: #6c757d;
    text-decoration: underline;
}
blockquote p {
    margin-top: 0;
}
blockquote p:last-child {
    margin-bottom: 0;
}
blockquote em {
    font-style: italic;
}
/*...*/
a[disabled="disabled"] {
    pointer-events: none;
}
/* BACKGROUND GLOBAL MASK -------------------------------*/

/* BUTTON ANCHOR ----------------------------------------*/
button#anchor-to-top {
    font-size: 1.3em;
    bottom: 15px;
    right: 15px;
    border: 1px solid gray;
    background-color: var(--light);
}
/* CUSTOM BUTTON ----------------------------------------*/
.btme {
    display: inline-block;
    padding: 8px 8px;
    cursor: default;
}
.btme-hover:hover {
    background-image: linear-gradient(to top, transparent, rgba(0, 0, 0, 0.38));
    cursor: pointer;
}
/* X-LARGE */
.btmex {
    width: 150px;
}
/* SMALL */
.btmes {
    padding: 5px 5px;
    font-size: 80%;
    font-weight: normal;
}
/* FILE UPLOAD BUTTONS ----------------------------------*/
.fileUpload {
    position: relative;
}
.fileUpload input[type="file"] {
    position: absolute;
    min-height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    filter: alpha(opacity=0);
    cursor: pointer !important;
    z-index: 1;
}

/**____________________________________________________________________________
KEYFRAMES ________________________________________________________________*/

/* PROGRESS BARS KEYFRAMES ------------------------------*/
@-webkit-keyframes progress-bar-stripes {
    from {
        background-position: 40px 0;
    }
    to {
        background-position: 0 0;
    }
}
@-moz-keyframes progress-bar-stripes {
    from {
        background-position: 40px 0;
    }
    to {
        background-position: 0 0;
    }
}
@-o-keyframes progress-bar-stripes {
    from {
        background-position: 40px 0;
    }
    to {
        background-position: 0 0;
    }
}
@keyframes progress-bar-stripes {
    from {
        background-position: 40px 0;
    }
    to {
        background-position: 0 0;
    }
}
/* @revise: unused --------------------------------------*/
@keyframes fadeInOpacity {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
/*...*/
@keyframes low_frame_opacity {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}
/* PULSE ------------------------------------------------*/
@keyframes pulse {
    to {
        box-shadow: 0 0 0 45px rgba(232, 76, 61, 0);
    }
}
@keyframes pulseRED {
    to {
        box-shadow: 0 0 0 25px rgba(232, 76, 61, 0);
    }
}
@keyframes pulseSKY {
    to {
        box-shadow: 0 0 0 25px rgba(0, 0, 255, 0);
    }
}
/* SHAKE ------------------------------------------------*/
@keyframes shake {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(5deg);
    }
    80% {
        transform: rotate(-5deg);
    }
    95% {
        transform: rotate(5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/**____________________________________________________________________________
GENERAL ANIMATIONS AND EFFECTS ___________________________________________*/

/* PROGRESS BARS RULES ----------------------------------*/
.progress {
    height: 5px;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.progress-slim {
    height: 3px !important;
}
.progress-bar {
    float: left;
    width: 0;
    height: 100%;
    font-size: 12px;
    line-height: 20px;
    color: #fff;
    text-align: center;
    background-color: #337ab7;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    transition: width 0.6s ease;
}
.progress-striped .progress-bar,
.progress-bar-striped {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.5) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.5) 75%,
        transparent 75%,
        transparent
    );
    background-size: 40px 40px;
}
.progress-striped
    .progress-bar-success
    .progress-bar-info
    .progress-bar-warning
    .progress-bar-danger {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
}
.progress-bar-striped {
    animation: progress-bar-stripes 2s linear infinite;
}
.progress-bar-success {
    background-color: #5cb85c;
}
.progress-bar-info {
    background-color: #5bc0de;
}
.progress-bar-warning {
    background-color: #f0ad4e;
}
.progress-bar-danger {
    background-color: #d9534f;
}
/* PULSE ------------------------------------------------*/
.pulse-button {
    box-shadow: 0 0 0 0 rgba(232, 76, 61, 0.7);
    border-radius: 50%;
    animation: pulse 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
}
.pulse-red {
    box-shadow: 0 0 0 0 rgba(232, 76, 61, 0.7);
    animation: pulseRED 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
}
.pulse-sky {
    box-shadow: 0 0 0 0 rgba(0, 0, 255, 0.7);
    animation: pulseSKY 1.25s infinite cubic-bezier(0.66, 0, 0, 1);
}
.pulse-heart {
    box-shadow: 0 0 0 0 rgba(232, 76, 61, 0.7);
    animation: pulseRED 1.25s infinite cubic-bezier(0.17, 0.9, 0, -0.65);
}
/* SHAKE UTIL -------------------------------------------*/
.min-shake {
    animation: shake 0.6s infinite;
}
/* SLIDES LEFT ------------------------------------------*/
.slide-left {
    bottom: 0px;
    top: 3rem;
    box-shadow: 1px 0px 2px #eee;
    left: -110%;
}
.slide-margin-left0 {
    left: 0px !important;
}
/* SLIDES RIGHT -----------------------------------------*/
.slide-right {
    bottom: 0px;
    right: -110%;
    top: 3rem;
    box-shadow: 4px -4px 4px rgba(0, 0, 0, 0.2);
}
.slide-margin-right0 {
    right: 0px !important;
}
/* SLIDES BOTTOM ----------------------------------------*/
.slide-bottom {
    bottom: -110%;
    height: calc(100% - 3rem);
    box-shadow: 4px -4px 4px rgba(0, 0, 0, 0.2);
}
.slide-margin-bottom0 {
    bottom: 0px !important;
}
/* SLIDES TOP -------------------------------------------*/
.slide-top {
    top: -110%;
    height: calc(100% - 3rem);
    box-shadow: 4px -4px 4px rgba(0, 0, 0, 0.2);
}
.slide-margin-top0 {
    top: 3rem !important;
}
/* SLOW TRANSITIONS -------------------------------------*/
.transition {
    transition: all 0.5s ease;
}

/**____________________________________________________________________________
LAYOUT UTILS ______________________________________________________________*/

/* BOOTSTRAP CIRCLE BUTTONS -----------------------------*/
.btn-circle.btn-sm {
    width: 30px;
    height: 30px;
    padding: 6px 0px;
    border-radius: 15px;
    font-size: 8px;
    text-align: center;
}
.btn-circle.btn-md {
    width: 50px;
    height: 50px;
    padding: 7px 10px;
    border-radius: 25px;
    font-size: 10px;
    text-align: center;
}
.btn-circle.btn-xl {
    width: 70px;
    height: 70px;
    padding: 10px 16px;
    border-radius: 35px;
    font-size: 12px;
    text-align: center;
}
/* RIBBON -----------------------------------------------*/
.ribbon {
    top: 3.2em;
    right: -3.7em;
    transform: rotate(45deg);
    color: #fff;
    display: block;
    padding: 1em 4em;
    position: fixed;
    text-align: center;
    text-decoration: none;
    user-select: none;
    border-bottom: 2px solid white;
}
/* SECTION DIVIDER MASK ---------------------------------*/

.section-dividermask {
    overflow: hidden;
    height: 20px;
}
.section-dividermask:after {
    content: "";
    display: block;
    margin: -25px auto 0;
    width: 100%;
    height: 25px;
    border-radius: 125px / 12px;
    box-shadow: 0 0 8px #728a84;
}
/* TEXT UTILITIES ---------------------------------------*/
.ct {
    text-align: center !important;
}
.lt {
    text-align: left !important;
}
.rt {
    text-align: right !important;
}
.tj {
    text-align: justify !important;
}
.tnr {
    white-space: nowrap !important;
}
.tl {
    text-transform: lowercase !important;
}
.tu {
    text-transform: uppercase !important;
}
.tc {
    text-transform: capitalize !important;
}
.tdu {
    text-decoration: underline !important;
}
.tdu-none {
    text-decoration: none !important;
}
.tlt {
    text-decoration: line-through !important;
}
/* TEXT BRIGHTNESS --------------------------------------*/
.light-text {
    color: #eeeeee;
}
.dark-text {
    color: #333333;
}
/* TEXT SHADOW ------------------------------------------*/
.tsa1 {
    text-shadow: 1px 1px 1px #000000;
}
.tsa2 {
    text-shadow: 2px 2px 2px #000000;
}
.tsa3 {
    text-shadow: 3px 3px 3px #000000;
}
.tsa1-light {
    text-shadow: 1px 1px 1px #eeeeee;
}
.tsa2-gray {
    text-shadow: 2px 2px 2px #5c7ea4;
}
.tsa2-light {
    text-shadow: 2px 2px 2px #eeeeee;
}
.tsa3-light {
    text-shadow: 3px 3px 3px #eeeeee;
}
/* word-wrap*/
.wwbw {
    word-wrap: break-word !important;
}
/* BOX SHADOW AND BORDER UTILS --------------------------*/
.bsb-block {
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid #d1d2ca;
}
.boxshadow-none {
    box-shadow: none !important;
}
/* LINE-HEIGHT ------------------------------------------*/
.lh-75 {
    line-height: 75%;
}
.lh-110 {
    line-height: 110%;
}
.lh-120 {
    line-height: 120%;
}
.lh-140 {
    line-height: 140%;
}
/* Z-INDEX ----------------------------------------------*/
.sm-z-index {
    z-index: 10;
}
.md-z-index {
    z-index: 100;
}
.lg-z-index {
    z-index: 1000;
}
.bg-z-index {
    z-index: 5000;
}
.mx-z-index {
    z-index: 99999 !important;
}
.custom-popover-z-index {
    z-index: 1030;
}
/* OVERFLOW UTILS ---------------------------------------*/
.overflow {
    overflow-x: hidden;
    overflow-y: inherit;
}
.overflow-off {
    overflow-x: hidden;
    overflow-y: hidden;
}
.no-scroll {
    overflow: hidden;
}
/* POSITIONS DISPLAYS AND FLOATS ------------------------*/
.fx {
    position: fixed !important;
}
.fx-top {
    position: fixed !important;
    top: 0;
}
.fx-bottom {
    position: fixed !important;
    bottom: 0;
    z-index: 1030;
}
.pa {
    position: absolute !important;
}
.pr {
    position: relative !important;
}
.pi {
    position: initial !important;
}
/* floats */
.fr {
    float: right !important;
}
.fl {
    float: left !important;
}
/* displays */
.dib {
    display: inline-block !important;
}
hidden,
.none {
    display: none;
}
.show {
    display: block !important;
}
/* BORDER UTILS -----------------------------------------*/
.border-bottom {
    border-bottom: 1px solid rgba(0, 0, 0, 0.3) !important;
}
.border-def {
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
}
.border-transparent {
    border-bottom: 1px solid transparent !important;
}
.border-none {
    border: none;
}
/* border left transparent */
.blt {
    border-left: 5px solid transparent;
}
.blt:hover {
    border-left: 5px solid #1e90ff;
}
/* border radius */
.br-3 {
    border-radius: 3px;
}
.br-5 {
    border-radius: 5px;
}
.br-8 {
    border-radius: 8px;
}
.br-50 {
    border-radius: 50%;
}
/* FONTS ------------------------------------------------*/
.electrolize {
    font-family: "Electrolize";
}
/* OTHERS -----------------------------------------------*/
.fill-height {
    min-height: 100vh;
}
.cp {
    cursor: pointer !important;
}
.outline-none {
    outline: none !important;
    outline-offset: 0px !important;
}
.no-after::after {
    content: none;
}
/*...*/
.adjust-middle {
    margin-top: -0.2rem !important;
}
.resize-none {
    resize: none !important;
}
/*...*/
.flip-x {
    transform: scale(-1, 1);
}
.flip-y {
    transform: scale(1, -1);
}

/**____________________________________________________________________________
COLOR UTILS ______________________________________________________________*/

/* COLORS -----------------------------------------------*/
.white {
    color: #ffffff !important;
}
.blue {
    color: #1e90ff !important;
}
.red {
    color: #ff413c !important;
}
.sky {
    color: #1ebfff !important;
}
.stars {
    color: #e3cf7a !important;
}
.yellow {
    color: #ffff00 !important;
}
.green {
    color: #008000 !important;
}
.green-special {
    color: #1ebfaa !important;
}
.purple {
    color: #800080 !important;
}
.lime {
    color: #00ff00 !important;
}
.orange {
    color: #fbb828 !important;
}
.gray {
    color: gray !important;
}
.contrast {
    color: #495057 !important;
}
.black {
    color: #000 !important;
}
.monochrome {
    filter: brightness(0.5);
    mix-blend-mode: difference;
}
.color-inherit {
    color: inherit !important;
}
/* BACKGROUND COLORS ------------------------------------*/
.bg-purple {
    background-color: #800080 !important;
    --bgcolor: #800080;
    color: #ffffff !important;
}
.bg-white {
    background-color: #ffffff !important;
    --bgcolor: #fff;
    color: #000000;
}
.bg-root {
    background-color: #1ebfff !important;
}
.bg-gray {
    background-color: rgba(0, 0, 0, 0.5) !important;
    color: #ffffff !important;
}
.bg-light-gray {
    background-color: rgba(0, 0, 0, 0.05);
    color: gray !important;
}
.bg-black {
    background-color: #000000 !important;
    color: #ffffff !important;
}
.bg-red {
    background-color: #ff0000 !important;
    color: #ffffff !important;
}
.bg-green {
    background-color: #008000 !important;
    color: #ffffff !important;
}
.bg-green-special {
    background-color: #1ebfaa !important;
    --bgcolor: #1ebfaa;
    color: #fff;
}
.bg-lime {
    background-color: #00ff00 !important;
}
.bg-blue {
    background-color: #1e90ff !important;
    color: #ffffff;
}
.bg-sky {
    background-color: #1ebfff !important;
    --bgcolor: #1ebfff;
    color: #ffffff !important;
}
.bg-dark {
    background-color: #222;
    color: rgba(255, 255, 255, 0.8);
}
.bg-aqua {
    background-color: #00ffff !important;
    color: #ffffff !important;
}
.bg-yellowgreen {
    background-color: #9acd32 !important;
    --bgcolor: #9acd32;
    color: #ffffff !important;
}
/* special backgrounds (opacity)*/
.white-opacity {
    background-color: rgba(255, 255, 255, 0.85) !important;
    color: #000000 !important;
}
.florest {
    background-color: rgba(0, 255, 64, 0.7) !important;
    color: #ffffff !important;
}
.hell {
    background-color: rgba(255, 0, 0, 0.6) !important;
    color: #ffffff !important;
}
.vinho {
    background-color: rgba(176, 0, 88, 99) !important;
    color: #ffffff !important;
}
/* BACKGROUND NONE (REMOVE COLORS) ----------------------*/
.bg-none {
    background-color: transparent !important;
}

/**____________________________________________________________________________
MARKDOWN STYLE ___________________________________________________________*/

/* MARKDOWN CONTAINER -----------------------------------*/
.markdown-body {
    top: 0;
    left: 0;
    text-rendering: optimizeSpeed;
    line-height: 1.7;
    font-family: Arial, sans-serif;
    word-wrap: break-word;
    font-size: 1.1rem;
    color: #495057 !important;
}
.markdown-body::before {
    display: table;
    content: "";
}
.markdown-body::after {
    display: table;
    clear: both;
    content: "";
}
.markdown-body > *:last-child {
    margin-bottom: 0 !important;
}
.markdown-body a:not([href]) {
    color: inherit;
    text-decoration: none;
}
.markdown-font-md {
    line-height: 1.6;
    font-size: 0.95rem;
}
.markdown-body img {
    max-width: 100%;
    box-sizing: content-box;
    background-color: #fff;
    border-style: none;
}
.markdown-body svg:not(:root) {
    overflow: hidden;
}
.markdown-body strong {
    font-weight: 600;
}
.markdown-body p strong u {
    display: inline-block;
    margin-top: 25px;
}
.markdown-body hr {
    box-sizing: content-box;
    height: 0;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid #a9c4de;
    padding: 0;
    margin: 1.4rem 0;
    background-color: #a9c4de;
}
.markdown-body hr::before {
    display: table;
    content: "";
}
.markdown-body hr::after {
    display: table;
    clear: both;
    content: "";
}
/* headers */
.markdown-body h1 {
    font-size: 1.8rem;
}
.markdown-body h2 {
    font-size: 1.5rem;
}
.markdown-body h3 {
    font-size: 1.3rem;
}
.markdown-body h4 {
    font-size: 1.2rem;
}
.markdown-body h5 {
    font-size: 1.1rem;
}
.markdown-body h6 {
    font-size: 1rem;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    margin-top: 28px;
    line-height: 1.25;
}
.markdown-body h1,
h2 {
    padding-bottom: 0.3em;
}
.markdown-body h6 {
    color: #6a737d;
}
/* paragraph */
.markdown-body p {
    margin-top: 0;
    margin-bottom: 10px;
}
/* list */
.markdown-body ul,
.markdown-body ol {
    padding-left: 1.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
    list-style-type: lower-alpha;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
    list-style-type: circle;
    margin-top: 0;
    margin-bottom: 0;
}
.markdown-body li > p {
    margin-top: 1rem;
}
.markdown-body li + li {
    margin-top: 0.25rem;
}
.markdown-body dl {
    padding: 0;
}
.markdown-body dd {
    margin-left: 0;
}
.markdown-body dl dt {
    padding: 0;
    margin-top: 16px;
    font-size: 1em;
    font-style: italic;
    font-weight: 600;
}
.markdown-body dl dd {
    padding: 0 16px;
    margin-bottom: 16px;
}
/* table */
.markdown-body table {
    overflow: auto;
    border-spacing: 0;
    border-collapse: collapse;
    margin-bottom: 16px;
}
.markdown-body table th {
    font-weight: 600;
}
.markdown-body table th,
.markdown-body table td {
    padding: 6px 13px;
    border: 1px solid #dfe2e5;
}
.markdown-body table tr {
    background-color: #fff;
    border-top: 1px solid #c6cbd1;
}
.markdown-body table tr:nth-child(2n) {
    background-color: #f6f8fa;
}
.markdown-body td,
.markdown-body th {
    padding: 0;
}
/*...*/
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
    font-family: Arial, sans-serif;
}
.markdown-body kbd,
.markdown-body pre {
    font-size: 1rem;
}
/* kbd */
.markdown-body kbd {
    display: inline-block;
    padding: 3px 5px;
    line-height: 10px;
    color: #444d56;
    vertical-align: middle;
    background-color: #fafbfc;
    border: solid 1px #c6cbd1;
    border-bottom-color: #959da5;
    border-radius: 3px;
    box-shadow: inset 0 -1px 0 #959da5;
}
/* code */
.markdown-body code {
    padding: 0;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(27, 31, 35, 0.05);
    border-radius: 3px;
}
.markdown-body code::before,
.markdown-body code::after {
    letter-spacing: -0.2em;
    content: "\00a0";
}
/* pre */
.markdown-body pre > code {
    padding: 0;
    margin: 0;
    font-size: 100%;
    word-break: normal;
    white-space: pre;
    background: transparent;
    border: 0;
}
.markdown-body pre {
    margin-top: 0;
    padding: 16px;
    overflow: auto;
    line-height: 1.45;
    background-color: #fafcff !important;
    margin-bottom: 1.5rem;
    word-wrap: normal;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.markdown-body pre code {
    display: inline;
    max-width: max-content;
    padding: 0;
    margin: 0;
    overflow: visible;
    line-height: inherit;
    word-wrap: normal;
    background-color: transparent;
    border: 0 !important;
}
.markdown-body pre code::before,
.markdown-body pre code::after {
    content: normal;
}
/* Code Copy */
.markdown-body .code-container {
    position: relative;
    width: 100%;
    max-width: 100%;
}
.markdown-body .code-container > pre {
    padding-top: 3rem;
}
.code-copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    padding: 0.4rem 0.65rem;
    color: #333;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    font-size: 0.875rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.code-copy-button:hover {
    background: #f3f4f6;
}
.code-copy-button.is-copied {
    color: #16803c;
    border-color: #16803c;
}
/**____________________________________________________________________________
MEDIA QUERIES ____________________________________________________________*/

/* Small devices (landscape phones, 576px and up) */

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    p {
        line-height: calc(1.3em + 0.5vw);
    }
}

/* Large devices (desktops, 992px and up) */

/* Extra large devices (large desktops, 1200px and up) */

.H6yrtb {
    background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='rgb(51, 103, 214)'%3E%3Cpath d='M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z'/%3E%3C/svg%3E")
        right/12px no-repeat;
    padding-right: 14px;
}

/* SYNTAX HIGHLIGHT (extensão "highlight" do Markdown WASM) -*/
.hl-comment {
    color: #6a737d;
    font-style: italic;
}
.hl-string {
    color: #0a3069;
}
.hl-keyword {
    color: #cf222e;
}
.hl-number,
.hl-literal,
.hl-builtin,
.hl-attr,
.hl-property {
    color: #0550ae;
}
.hl-function {
    color: #8250df;
}
.hl-class,
.hl-variable {
    color: #953800;
}
.hl-regex,
.hl-tag,
.hl-selector {
    color: #116329;
}

/* ==== MAIN (antigo main.css) ==== */

/* SHARED PAGE BANNER ------------------------------------*/
.page-banner {
    min-height: clamp(420px, 55vw, 680px);
    display: flex;
    flex-direction: column;
    justify-content: center;

    background-size: cover !important;
    background-position: 0 0;
    background-repeat: no-repeat;
}

/* DONATION ---------------------------------------------*/
.donations-page {
    background-image: url("../media/image/clark-tibbs-oqStl2L5oxI-unsplash.webp");
}

/* ABOUT / POLICY ---------------------------------------*/
.policy-page {
    background-image: url("../media/image/glenn-carstens-peters-npxXWgQ33ZQ-unsplash.webp");
}

.unplash-credits-position {
    position: relative;
    bottom: 10px;
}

.fontClamp {
    font-size: clamp(1.25rem, 4vw, 2rem);
}

/* POLICY -----------------------------------------------*/
.whithepaper-page {
    background-image: url("../media/image/ev-gpjvRZyavZc-unsplash.webp");
    background-size: 100% 80vw !important;

    background-repeat: no-repeat;
}

@keyframes charge_success {
    0% {
        background: linear-gradient(to right, #28a745 1%, transparent 0);
    }
    25% {
        background: linear-gradient(to right, #28a745 25%, transparent 0);
    }
    50% {
        background: linear-gradient(to right, #28a745 50%, transparent 0);
    }
    75% {
        background: linear-gradient(to right, #28a745 75%, transparent 0);
    }
    100% {
        background: linear-gradient(to right, #28a745 100%, transparent 0);
    }
}
@keyframes charge_danger {
    0% {
        background: linear-gradient(to right, #dc3545 1%, transparent 0);
    }
    25% {
        background: linear-gradient(to right, #dc3545 25%, transparent 0);
    }
    50% {
        background: linear-gradient(to right, #dc3545 50%, transparent 0);
    }
    75% {
        background: linear-gradient(to right, #dc3545 75%, transparent 0);
    }
    100% {
        background: linear-gradient(to right, #dc3545 100%, transparent 0);
    }
}

.background-charge-success {
    color: white !important;
    animation: charge_success 2s linear;
}
.background-charge-danger {
    color: white !important;
    animation: charge_danger 2s linear;
}

/**____________________________________________________________________________
@REVISE NAVIBAR __________________________________________________________*/

/* NAVIBAR FIXED ----------------------------------------*/
#navbar-fixed.navbar-box-shadow {
    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.3);
}

/**____________________________________________________________________________
@REVISE DRAWER ___________________________________________________________*/

/* DRAWER -----------------------------------------------*/
#drawer-icons div {
    border: 1px solid transparent;
}
#drawer-icons div:hover {
    border: 1px solid #cdd6de;
}
#drawer-icons div span:first-of-type {
    font-size: 2rem !important;
}
#drawer-icons div span:last-of-type {
    font-size: 0.8rem !important;
}
#drawer-icons button:focus {
    outline: none;
}
.arrow-up {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(0, 0, 0, 0.2);
    animation: low_frame_opacity 0.2s;
}
.arrow-up-s {
    width: 0;
    height: 0;
    top: 2px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #ffffff;
    animation: low_frame_opacity 0.2s;
}
.drawer-box {
    border: 1px solid #ccc;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    outline: none;
    min-height: 80px;
    height: auto;
    background-color: #ffffff;
}
.drawer-container {
    outline: none;
    animation: low_frame_opacity 0.2s;
    border-radius: 2px;
    -webkit-user-select: text;
}

.drawer-md {
    min-height: 196px;
    max-height: 286px;
    max-width: 300px;
    width: 100vw;
}
.drawer-lg {
    min-height: 250px;
    max-height: 400px;
    max-width: 350px;
    width: 100vw;
}

/**____________________________________________________________________________
@REVISE STARS RATING _____________________________________________________*/

/*...*/
.rating {
    unicode-bidi: bidi-override;
    direction: rtl;
    text-align: center;
}
.rating > span {
    display: inline-block;
    position: relative;
    font-size: 1.7rem;
}
.rating > span:hover:before,
.rating > span:hover ~ span:before {
    content: "\2605";
    position: absolute;
    left: 0;
    color: gold;
}

/**____________________________________________________________________________
@REVISE BOOTSTRAPED NOTIFICATIONS ________________________________________*/

/* BOOTSTRAP NOTIFICATION CONTAINER ---------------------*/
#bootstraped-notific-container {
    position: fixed !important;
    height: auto;
    right: 0;
    overflow: hidden;
    font-size: 0.8rem;
}
#bootstraped-notific-container.desktop {
    bottom: 0.5rem !important;
    font-size: 0.8rem;
}
#bootstraped-notific-container.mobile {
    top: var(--bootstraped-notification-container-top-mobile) !important;
    font-size: 0.8rem;
}
@media screen and (max-width: 575.98px) {
    #bootstraped-notific-container.mobile {
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
}

/**____________________________________________________________________________
@REVISE FOOTER ___________________________________________________________*/

/*...*/

#index-central-block {
    flex: 1 0 auto;
}
footer #foothead {
    width: 100%;
    padding-top: 5%;
    background-color: var(--random-color);
}
footer #foothead #footer-fh-img {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    height: 300px;
}
footer #footbody {
    padding: 3.6rem 1.2rem;
    border-top: 1px solid rgba(204, 204, 204, 0.38);
    background-color: #343a40;
    color: var(--light);
}
footer #content-footnote {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}
footer #footbody > div > .widget-column {
    height: auto;

    padding: 0 15px;
}
footer #footbody > div > .widget-column:first-child {
    border: none !important;
}
footer
    #footbody
    > div
    > .widget-column
    > #dinamic-footer-news
    > .footer-column-bb,
footer #footbody > div > .widget-column > .footer-column-bb {
    border-bottom: solid 1px rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}
footer #footbody > div > .widget-column > .footer-column-bb > small > a > i {
    margin-top: 6px;
}
footer #footbody a,
footer #content-footnote a {
    color: var(--light);
}
footer #footbody a:hover,
footer #content-footnote a:hover,
footer #footbody > div > .widget-column a:hover {
    color: #1ebfff !important;
    text-decoration: none;
}
/* FIXED ------------------------------------------------*/

/**____________________________________________________________________________
@REVISE MODALS ___________________________________________________________*/

/*...*/
#modal-offline-content {
    background-image: url(../media/image/save-to-offline.webp);
    background-size: 100% 100% !important;
    background-repeat: no-repeat;
}
#modal-geolocation-content {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url(../media/image/geolocation.webp);
}
#modal-notification-content {
    background-image: url(../media/image/notifications-banner.webp);
}
html[data-theme="light"] #modal-feedback-content {
    background-image: url(../media/image/feedback-rocket.webp);
    background-size: 100% 55vw !important;
}
#modal-getmedia-audio-content {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url(../media/image/microphone-banner.webp);
}
#modal-getmedia-video-content {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url(../media/image/webcam-banner.webp);
}

#modal-clear-meta-data-content {
    background-image: url(../media/image/clean-banner-min.webp);
    background-size: 100% 75% !important;
}
/* BUGS REPORT - TEMA CLARO */
#modal-bugs-report-content {
    background-image: url(../media/image/bugs-report-black.webp);
}

/* BUGS REPORT - TEMA ESCURO */
html[data-theme="dark"] #modal-bugs-report-content {
    background-image: url(../media/image/bugs-report-white.webp);
}
#modal-geolocation-content,
#modal-getmedia-audio-content,
#modal-getmedia-video {
    background-size: cover; /* cobre todo o modal sem distorcer */
    background-position: center; /* centraliza a imagem */
    background-repeat: no-repeat; /* evita repetição */
    background-attachment: local; /* opcional */
}
#modal-notification-content,
#modal-feedback-content,
#modal-clear-meta-data-content,
#modal-bugs-report-content {
    background-size: 100%;
    background-position: top;
    background-repeat: no-repeat;
}
#drawer-geolocation-block {
    height: 130px;
}
#drawer-notification-block {
    height: 110px;
}
#drawer-feedback-block {
    min-height: 300px;
}
#drawer-getmedia-audio-block {
    height: 130px;
}
#drawer-getmedia-video-block,
#drawer-clear-data-block {
    height: 100px;
}

#modal-bugs-report-content {
    background-size: 100% 40%;
}

@media (min-width: 576px) {
    .btn {
        display: inline-table;
        margin-top: 4px;
    }

    #drawer-feedback-block {
        min-height: 260px;
    }
    #drawer-geolocation-block {
        height: 220px;
    }
    #drawer-notification-block {
        height: 190px;
    }
    #drawer-getmedia-audio-block {
        height: 235px;
    }
    #drawer-getmedia-video-block,
    #drawer-clear-data-block {
        height: 180px;
    }
    #modal-clear-meta-data-content {
        background-image: url(../media/image/clean-banner.webp);
        background-size: 100% 80% !important;
    }
}

/**____________________________________________________________________________
MEDIA QUERIES ____________________________________________________________*/

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    footer #foothead #footer-fh-img {
        height: 400px;
    }
    footer #footbody > div > .widget-column {
        border-left: solid 1px rgba(255, 255, 255, 0.1);
    }
    #bootstraped-notific-container {
        width: 24rem;
    }

    #modal-feedback-content {
        background-size: 100% 45vw !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    /* NAVBAR FIXED */
    #navbar-fixed {
        padding: 0.5rem 1rem;
    }

    #modal-feedback-content {
        background-size: 100% 35vw !important;
    }
    footer {
        font-size: 0.8em !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    #drawer-icons div span:first-of-type {
        font-size: 1.6rem !important;
    }
    #drawer-icons div span:last-of-type {
        font-size: 0.8rem !important;
    }
    #modal-feedback-content {
        background-size: 100% 25vw !important;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    #bootstraped-notific-container {
        width: 28rem;
    }

    #modal-feedback-content {
        background-size: 100% 20vw !important;
    }
}
/* ==== POSTS CAROUSEL (página inicial) ==== */
.posts-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.1rem 0;
}
.posts-carousel::-webkit-scrollbar {
    display: none;
}
.posts-slide {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: center;
    padding: 0 0.5rem;
}
.posts-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(16, 31, 53, 0.12);
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.2s;
}
.posts-card:hover,
.posts-card:focus {
    box-shadow: 0 4px 16px rgba(16, 31, 53, 0.22);
    text-decoration: none;
}

.posts-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #fff;
}
.posts-card-media-cover {
    background: #101f35;
}
.posts-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.posts-card-media-cover .posts-card-img {
    object-fit: cover;
}

.posts-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: #00c2f1;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 0.2rem;
}
.posts-card-badge[data-tone="1"] {
    background: #05a99e;
}
.posts-card-badge[data-tone="2"] {
    background: #f29142;
}
.posts-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem 1rem 1rem;
    text-align: left;
}
.posts-card-title {
    color: #101f35;
    font-size: 1.25rem;
    line-height: 1;
}
.posts-card-summary {
    display: -webkit-box;
    margin-top: 0.5rem;
    overflow: hidden;
    color: #4a5568;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.posts-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin-top: auto;
    padding-top: 0.5rem;
    color: #5b6472;
    font-size: 0.8rem;
}
.posts-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.posts-card-meta svg {
    flex: none;
    width: 1em;
    height: 1em;
}
.posts-dots {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.2rem;
}
.posts-dots button {
    position: relative;
    width: 1.2rem;
    height: 1.2rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.posts-dots button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.625rem;
    height: 0.625rem;
    margin: -0.3125rem 0 0 -0.3125rem;
    border-radius: 999px;
    background: #bbb;
    transition:
        width 0.25s,
        margin 0.25s,
        background 0.25s;
}
.posts-dots button[aria-current="true"]::before {
    width: 1.2rem;
    margin-left: -0.75rem;
    background: #00c2f1;
}
@media (min-width: 768px) {
    .posts-slide {
        padding: 0 2rem;
    }
    .posts-card-media {
        aspect-ratio: 2 / 1;
    }
    .posts-card-media-cover {
        aspect-ratio: 8 / 3;
    }
    .posts-card-title {
        font-size: 1.5rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .posts-card,
    .posts-dots button::before {
        transition: none;
    }
}

/* ==========================================
RESPONSIVE NAVBAR LINKS
========================================== */

/* Mobile estreito: Blog, About e DPO */
.nav-item-lab,
.nav-item-contact,
.nav-item-donations,
.nav-item-policies {
    display: none;
}
/* Tablet e desktop: todos os links */
@media (min-width: 768px) {
    .nav-item-lab,
    .nav-item-contact,
    .nav-item-donations,
    .nav-item-policies {
        display: block;
    }
}

/* Prevent navigation links from wrapping */
#navbarNavAltMarkup .navbar-nav {
    flex-wrap: nowrap;
}

#navbarNavAltMarkup .nav-link {
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    #navbarNavAltMarkup .nav-link {
        margin-right: 1rem;
    }
}

@media (max-width: 767.98px) {
    #navbarNavAltMarkup .nav-link {
        padding-bottom: 4px;
    }
}

/* =========================================
INDEX CONTENT — CONTEÚDO INSTITUCIONAL
========================================= */

#index-content {
    background: #fff;
    color: #153653;
}

/* Elementos compartilhados */

#index-content .index-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #168db8;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

#index-content .index-section-title {
    margin-bottom: 16px;
    color: #153653;
    font-size: 27px;
    font-weight: 600;
    line-height: 1.3;
}

#index-content .index-block-description {
    max-width: 560px;
    margin-bottom: 0;
    color: #627789;
    font-size: 14px;
    line-height: 1.8;
}

/* =========================================
BLOCO 01 — APRESENTAÇÃO
========================================= */

#index-content .index-intro {
    padding-top: 65px;
    padding-bottom: 65px;
}

#index-content .index-intro-text {
    margin-bottom: 10px;
    color: #526879;
    font-size: 16px;
    line-height: 1.8;
}

#index-content .index-intro-description {
    max-width: 550px;
    margin-bottom: 24px;
    color: #718391;
    font-size: 14px;
    line-height: 1.8;
}

#index-content .index-intro-signature {
    padding-top: 16px;
    border-top: 1px solid #e6edf1 !important;
    color: #168db8;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
}

/* =========================================
BLOCO 02 — EXPLORAÇÃO
========================================= */

#index-content .index-exploration {
    padding: 55px 0 65px;
    background: #f8fbfc;
}

#index-content .index-block-heading {
    margin-bottom: 35px;
}

#index-content .exploration-item {
    height: 100%;
    padding: 10px 0;
}

#index-content .exploration-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border: 1px solid #b9ddeb !important;
    border-radius: 3px;
    background: #fff;
    color: #087fa9;
}

#index-content .exploration-icon svg {
    width: 23px;
    height: 23px;
}

#index-content .exploration-item h3 {
    margin-bottom: 9px;
    color: #153653;
    font-size: 16px;
    font-weight: 600;
}

#index-content .exploration-item p {
    max-width: 230px;
    margin-bottom: 0;
    color: #718391;
    font-size: 13px;
    line-height: 1.7;
}

/* =========================================
BLOCO 03 — LABORATÓRIO
========================================= */

#index-content .index-lab {
    padding-top: 65px;
    padding-bottom: 65px;
}

#index-content .index-lab-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 30px 0;
    border-top: 1px solid #e6edf1 !important;
}

#index-content .index-lab-copy {
    max-width: 570px;
}

#index-content .index-lab-copy .index-section-title {
    max-width: 520px;
}

#index-content .index-lab-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    color: #087fa9;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

#index-content .index-lab-link:hover {
    color: #153653;
}

#index-content .index-lab-link span {
    font-size: 17px;
    transition: transform 0.2s ease;
}

#index-content .index-lab-link:hover span {
    transform: translateX(4px);
}

#index-content .index-lab-symbol {
    flex-shrink: 0;
    padding-right: 35px;
    color: #168db8;
}

#index-content .index-lab-symbol svg {
    width: 46px;
    height: 46px;
}

/* =========================================
RESPONSIVIDADE
========================================= */

@media (max-width: 767.98px) {
    #index-content .index-intro {
        padding-top: 45px;
        padding-bottom: 45px;
    }

    #index-content .index-section-title {
        font-size: 23px;
    }

    #index-content .index-exploration {
        padding: 45px 0;
    }

    #index-content .index-block-heading {
        margin-bottom: 25px;
    }

    #index-content .exploration-item {
        padding: 14px 0;
    }

    #index-content .exploration-icon {
        margin-bottom: 12px;
    }

    #index-content .index-lab {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    #index-content .index-lab-content {
        padding: 25px 0;
        gap: 15px;
    }

    #index-content .index-lab-symbol {
        padding-right: 0;
    }

    #index-content .index-lab-symbol svg {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 380px) {
    #index-content .index-lab-content {
        align-items: flex-start;
    }

    #index-content .index-lab-symbol {
        display: none;
    }
}

html[lang="ja-JP"] .navbar {
    font-size: 0.8rem;
}

/* =========================================
TELA DE ESPERA — TRADUÇÃO I18N
========================================= */

html.i18n-loading::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    background-color: #f5f6f7;
    background-image: url("../media/image/icons/badage-monochrome.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 52px 52px;
}

html.i18n-loading,
html.i18n-loading body {
    overflow: hidden;
}

/* =========================================
ADMIN DASHBOARD, EDITOR WYSIWYG E POSTS
========================================= */

#admin-dashboard {
    min-height: calc(100vh - 56px);
    background: #f5f7fa;
    overflow-x: hidden;
}

/* Sobrescreve a regra global .btn { display: inline-table } dentro do painel admin */
#admin-dashboard .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

#admin-dashboard .admin-layout {
    min-height: calc(100vh - 56px);
    position: relative;
}

#admin-dashboard .admin-sidebar {
    width: 260px;
    min-width: 260px;
    flex-shrink: 0;
    z-index: 1030;
    background-color: #343a40;
    color: #f8f9fa;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

#admin-dashboard .admin-sidebar .admin-sidebar-head,
#admin-dashboard .admin-sidebar .admin-sidebar-user {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

#admin-dashboard .admin-sidebar .admin-sidebar-user {
    background-color: rgba(0, 0, 0, 0.16);
}

#admin-dashboard .admin-sidebar .text-muted {
    color: #adb5bd !important;
}

#admin-dashboard .admin-sidebar #admin-github-credentials-clear {
    color: #f8a5ad;
    border-color: rgba(220, 53, 69, 0.65);
}

#admin-dashboard .admin-sidebar #admin-github-credentials-clear:hover {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

#admin-dashboard .admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

#admin-dashboard .admin-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid transparent;
    background: transparent;
    color: #e9ecef;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

#admin-dashboard .admin-nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

#admin-dashboard .admin-nav-btn.active {
    background: rgba(23, 162, 184, 0.22);
    border-color: rgba(23, 162, 184, 0.55);
    color: #ffffff;
    font-weight: 600;
}

#admin-dashboard .admin-nav-icon {
    flex-shrink: 0;
}

#admin-dashboard .admin-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6c757d;
    display: inline-block;
}

#admin-dashboard .admin-status-dot.is-ok {
    background: #28a745;
}

#admin-dashboard .admin-status-dot.is-warn {
    background: #ffc107;
}

#admin-dashboard .admin-status-dot.is-err {
    background: #dc3545;
}

#admin-dashboard .admin-main {
    min-width: 0;
    width: 100%;
}

#admin-dashboard .admin-search-input {
    min-width: 220px;
}

#admin-dashboard .admin-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

#admin-dashboard .min-w-0 {
    min-width: 0;
}

#admin-dashboard .admin-post-card {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

#admin-dashboard .admin-post-card .card-body,
#admin-dashboard .admin-post-card .d-flex {
    min-width: 0;
}

#admin-dashboard .admin-post-card [data-post-slug] {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#admin-dashboard .admin-post-thumb {
    width: 56px;
    height: 56px;
    overflow: hidden;
    font-size: 1.4rem;
}

#admin-dashboard .admin-post-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#admin-dashboard .admin-footoodle-thumb {
    height: 170px;
    overflow: hidden;
}

#admin-dashboard .admin-footoodle-preview {
    max-height: 180px;
    width: auto;
    object-fit: contain;
}

#admin-dashboard .admin-session-diagnostics {
    max-height: 360px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    #admin-dashboard .admin-sidebar {
        position: fixed;
        top: 52px;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: 4px 0 18px rgba(0, 0, 0, 0.14);
        overflow-y: auto;
    }

    #admin-dashboard .admin-sidebar.is-open {
        transform: translateX(0);
    }

    #admin-dashboard .admin-sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(16, 31, 53, 0.45);
        z-index: 1025;
    }

    #admin-dashboard .admin-posts-grid {
        grid-template-columns: 1fr;
    }

    #admin-dashboard .admin-search-input {
        width: 100%;
        margin-right: 0 !important;
    }
}

/* EDITOR WYSIWYG */
.wysiwyg-editor .wysiwyg-select {
    width: auto;
    min-width: 110px;
    max-width: 170px;
}

.wysiwyg-editor .wysiwyg-color-btn {
    position: relative;
    overflow: hidden;
    min-width: 34px;
}

.wysiwyg-editor .wysiwyg-color-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.wysiwyg-surface {
    min-height: 440px;
    max-height: 75vh;
    overflow-y: auto;
    outline: none;
    line-height: 1.7;
}

.wysiwyg-surface:empty::before {
    content: attr(data-placeholder);
    color: #8c98a4;
    pointer-events: none;
}

.wysiwyg-source {
    min-height: 440px;
    font-size: 0.875rem;
    resize: vertical;
}

.wysiwyg-image-overlay {
    margin-top: 0.5rem;
}

.wysiwyg-surface img.wysiwyg-img-selected {
    outline: 2px solid #17a2b8;
    outline-offset: 2px;
}

/* CONTEÚDO DE POSTAGENS HTML */
.post-content {
    line-height: 1.75;
    color: #24292e;
}

.post-content img {
    max-width: 100%;
    height: auto;
}

.post-content picture {
    display: inline-block;
    max-width: 100%;
}

.post-content figure.post-figure {
    margin: 1.5rem 0;
}

.post-content figure.post-figure figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
}

.post-content .post-image-left {
    display: block;
    float: left;
    margin: 0 1.25rem 1rem 0;
    max-width: 100%;
}

.post-content .post-image-right {
    display: block;
    float: right;
    margin: 0 0 1rem 1.25rem;
    max-width: 100%;
}

.post-content .post-image-center {
    display: block;
    margin: 1.5rem auto;
    text-align: center;
    max-width: 100%;
}

.post-content .post-image-full {
    display: block;
    width: 100%;
    margin: 1.5rem 0;
    text-align: center;
}

.post-content .post-image-full img {
    width: 100%;
}

.post-content::after {
    content: "";
    display: table;
    clear: both;
}

.post-content table {
    width: 100%;
    margin-bottom: 1.25rem;
    border-collapse: collapse;
    display: block;
    overflow-x: auto;
}

.post-content table th,
.post-content table td {
    padding: 0.55rem 0.75rem;
    border: 1px solid #dee2e6;
}

.post-content table th {
    background: #f8f9fa;
    font-weight: 600;
}

.post-content pre {
    background: #fafcff;
    padding: 1rem;
    overflow-x: auto;
    border: 1px solid #e1e4e8;
    white-space: pre;
    word-wrap: normal;
    word-break: normal;
}

.post-content pre code {
    white-space: pre;
    word-break: normal;
    font-size: 0.95em;
}

.post-content code {
    font-size: 0.9em;
}

@media (max-width: 575.98px) {
    .post-content .post-image-left,
    .post-content .post-image-right {
        float: none;
        margin: 1rem auto;
        text-align: center;
    }
}

/* CATÁLOGO DO BLOG */
.blog-post-card {
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.blog-post-card:hover {
    box-shadow: 0 6px 20px rgba(16, 31, 53, 0.12);
    transform: translateY(-2px);
}

.blog-post-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #101f35;
}

.blog-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-tag-filter.active {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: #fff;
}

.blog-author-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    padding: 0.2rem 0.55rem 0.2rem 0.25rem;
    background: #f8fbfc;
    border: 1px solid #d7e6ee;
    font-size: 0.78rem;
    line-height: 1.25;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.blog-author-badge:hover {
    background: #eef7fb;
    border-color: #168db8;
}

.blog-author-avatar-wrap {
    display: inline-flex;
    width: 22px;
    height: 22px;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid #b9ddeb;
    background: #e6edf1;
}

.blog-author-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-author-link {
    font-weight: 600;
    color: #153653 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-author-link:hover,
.blog-author-link:focus {
    color: #3367d6 !important;
    text-decoration: none;
}

.blog-post-updated {
    font-size: 0.75rem;
    color: #087fa9;
    margin-top: 0.15rem;
}

/* =========================================
TEMA ESCURO (DARK THEME)
========================================= */

html[data-theme="dark"],
html[data-theme="dark"] body {
    background-color: #181e25;
    color: #dbe3ec;
}

html.i18n-loading[data-theme="dark"]::before {
    background-color: #12161b;
}

html[data-theme="dark"] a,
html[data-theme="dark"] a:hover,
html[data-theme="dark"] a:visited {
    color: #6ea8fe;
}

html[data-theme="dark"] hr {
    border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] q {
    border-left-color: #4b5563;
    color: #9aa5b1;
}

html[data-theme="dark"] .inline-note-block {
    border-color: #2f3b4a;
    color: #cbd5e1;
    background-color: #1c2430;
}

html[data-theme="dark"] blockquote {
    background: #1b222b;
    color: #cbd5e1;
    border-left-color: #4b5563;
    border-right-color: #364152;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] blockquote::before,
html[data-theme="dark"] blockquote cite:before {
    color: #94a3b8;
}

html[data-theme="dark"] blockquote cite a {
    color: #94a3b8;
}

html[data-theme="dark"] .contrast {
    color: #d8e0e8 !important;
}

html[data-theme="dark"] .text-muted {
    color: #9aa5b1 !important;
}

html[data-theme="dark"] .bg-white {
    background-color: #1b222b !important;
    --bgcolor: #1b222b;
    color: #dbe3ec;
}

html[data-theme="dark"] .bg-light,
html[data-theme="dark"] .bg-light-gray {
    background-color: #202833 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-def {
    border-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-theme="dark"] button#anchor-to-top {
    background-color: #1f262e;
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.25);
}

/* Navbar e Drawer */
html[data-theme="dark"] #navbar-fixed {
    background-color: #181e25 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] #navbar-fixed.navbar-box-shadow {
    box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] #navbar-fixed .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] #navbar-fixed .navbar-toggler-icon {
    filter: invert(1) brightness(1.6);
}

html[data-theme="dark"] #navbar-fixed .nav-link,
html[data-theme="dark"] #navbar-fixed .btn {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .drawer-box {
    background-color: #1f262e;
    border-color: rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .arrow-up {
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .arrow-up-s {
    border-bottom-color: #1f262e;
}

html[data-theme="dark"] #drawer-icons div:hover {
    border-color: #4a5568;
}

html[data-theme="dark"] #drawer-icons a,
html[data-theme="dark"] #drawer-theme button {
    color: #e2e8f0;
}

html[data-theme="dark"] #drawer-more-itens {
    background-color: rgba(255, 255, 255, 0.06);
    color: #cbd5e1 !important;
}

/* Cards, Modais, Formulários e Listas */
html[data-theme="dark"] .card,
html[data-theme="dark"] .card-header,
html[data-theme="dark"] .card-footer,
html[data-theme="dark"] .list-group-item,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer {
    background-color: #1b222b;
    border-color: rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
}

html[data-theme="dark"] .close {
    color: #e2e8f0;
    text-shadow: none;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .custom-select {
    background-color: #141920;
    color: #e2e8f0;
    border-color: #364152;
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .custom-select:focus {
    background-color: #141920;
    color: #f1f5f9;
    border-color: #38bdf8;
}

html[data-theme="dark"] .form-control::placeholder {
    color: #7c8b9c;
}

html[data-theme="dark"] .btn-light {
    background-color: #26303d;
    border-color: #384658;
    color: #e2e8f0;
}

html[data-theme="dark"] .btn-light:hover {
    background-color: #303c4c;
    color: #ffffff;
}

html[data-theme="dark"] .btn-outline-dark,
html[data-theme="dark"] .btn-outline-secondary {
    color: #d8e0e8;
    border-color: #4b5563;
}

html[data-theme="dark"] .btn-outline-dark:hover,
html[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: #2d3748;
    color: #ffffff;
}

html[data-theme="dark"] .alert-light {
    background-color: #1f262e;
    border-color: rgba(255, 255, 255, 0.14);
    color: #dbe3ec;
}

html[data-theme="dark"] .badge-light {
    background-color: #2b3542;
    color: #e2e8f0;
}

html[data-theme="dark"] .breadcrumb {
    background-color: #1f262e;
}

html[data-theme="dark"] .breadcrumb-item.active {
    color: #9aa5b1;
}

/* Página Inicial e Carrossel de Posts */
html[data-theme="dark"] #index-content {
    background: #12161b;
    color: #dbe3ec;
}

html[data-theme="dark"] #index-content .index-eyebrow {
    color: #38bdf8;
}

html[data-theme="dark"] #index-content .index-section-title,
html[data-theme="dark"] #index-content .exploration-item h3 {
    color: #f1f5f9;
}

html[data-theme="dark"] #index-content .index-intro-text {
    color: #cbd5e1;
}

html[data-theme="dark"] #index-content .index-block-description,
html[data-theme="dark"] #index-content .index-intro-description,
html[data-theme="dark"] #index-content .exploration-item p {
    color: #94a3b8;
}

html[data-theme="dark"] #index-content .index-intro-signature,
html[data-theme="dark"] #index-content .index-lab-content {
    border-top-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] #index-content .index-exploration {
    background: #171d24;
}

html[data-theme="dark"] #index-content .exploration-icon {
    background: #1f2732;
    border-color: #2c4a63 !important;
    color: #38bdf8;
}

html[data-theme="dark"] #index-content .index-lab-link,
html[data-theme="dark"] #index-content .index-lab-symbol {
    color: #38bdf8;
}

html[data-theme="dark"] #index-content .index-lab-link:hover {
    color: #7dd3fc;
}

html[data-theme="dark"] .posts-card {
    background: #1b222b;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .posts-card-title {
    color: #f1f5f9;
}

html[data-theme="dark"] .posts-card-link:hover .posts-card-title {
    color: #38bdf8;
}

html[data-theme="dark"] .posts-card-summary {
    color: #b8c4d0;
}

html[data-theme="dark"] .posts-card-meta {
    color: #94a3b8;
}

html[data-theme="dark"] .posts-dots button::before {
    background: #475569;
}

/* Markdown, Posts, Blog e Highlight */
html[data-theme="dark"] .markdown-body,
html[data-theme="dark"] .post-content {
    color: #dbe3ec !important;
}

html[data-theme="dark"] .markdown-body h1,
html[data-theme="dark"] .markdown-body h2,
html[data-theme="dark"] .markdown-body h3,
html[data-theme="dark"] .markdown-body h4,
html[data-theme="dark"] .markdown-body h5 {
    color: #f1f5f9;
}

html[data-theme="dark"] .markdown-body h6 {
    color: #94a3b8;
}

html[data-theme="dark"] .markdown-body hr {
    border-bottom-color: rgba(255, 255, 255, 0.16);
    background-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .markdown-body table tr {
    background-color: #161c24;
    border-top-color: #2d3748;
}

html[data-theme="dark"] .markdown-body table tr:nth-child(2n) {
    background-color: #1b222b;
}

html[data-theme="dark"] .markdown-body table th,
html[data-theme="dark"] .markdown-body table td,
html[data-theme="dark"] .post-content table th,
html[data-theme="dark"] .post-content table td {
    border-color: #2d3748;
}

html[data-theme="dark"] .post-content table th {
    background: #202833;
}

html[data-theme="dark"] .markdown-body code,
html[data-theme="dark"] .post-content code {
    background-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

html[data-theme="dark"] .markdown-body kbd {
    color: #e2e8f0;
    background-color: #242c37;
    border-color: #3f4b5e;
    box-shadow: inset 0 -1px 0 #3f4b5e;
}

html[data-theme="dark"] .markdown-body pre,
html[data-theme="dark"] .post-content pre {
    background-color: #161b22 !important;
    border-color: #2d3748;
    color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .markdown-body pre code,
html[data-theme="dark"] .post-content pre code {
    background: transparent;
    color: inherit;
}

html[data-theme="dark"] .code-copy-button {
    color: #e2e8f0;
    background: #212832;
    border-color: #384354;
}

html[data-theme="dark"] .code-copy-button:hover {
    background: #2d3748;
}

html[data-theme="dark"] .code-copy-button.is-copied {
    color: #4ade80;
    border-color: #4ade80;
}

html[data-theme="dark"] .hl-comment {
    color: #8b949e;
}

html[data-theme="dark"] .hl-string {
    color: #a5d6ff;
}

html[data-theme="dark"] .hl-keyword {
    color: #ff7b72;
}

html[data-theme="dark"] .hl-number,
html[data-theme="dark"] .hl-literal,
html[data-theme="dark"] .hl-builtin,
html[data-theme="dark"] .hl-attr,
html[data-theme="dark"] .hl-property {
    color: #79c0ff;
}

html[data-theme="dark"] .hl-function {
    color: #d2a8ff;
}

html[data-theme="dark"] .hl-class,
html[data-theme="dark"] .hl-variable {
    color: #ffa657;
}

html[data-theme="dark"] .hl-regex,
html[data-theme="dark"] .hl-tag,
html[data-theme="dark"] .hl-selector {
    color: #7ee787;
}

html[data-theme="dark"] .blog-post-card:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .blog-author-badge {
    background: #1f2732;
    border-color: #2e3e50;
}

html[data-theme="dark"] .blog-author-badge:hover {
    background: #25303d;
    border-color: #38bdf8;
}

html[data-theme="dark"] .blog-author-link {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .blog-author-link:hover,
html[data-theme="dark"] .blog-author-link:focus {
    color: #6ea8fe !important;
}

html[data-theme="dark"] .blog-post-updated {
    color: #38bdf8;
}

/* Painel Administrativo e Editor WYSIWYG */
html[data-theme="dark"] #admin-dashboard {
    background: #12161b;
}

html[data-theme="dark"] .wysiwyg-surface,
html[data-theme="dark"] .wysiwyg-source {
    background: #141920;
    color: #e2e8f0;
}

html[data-theme="dark"] .wysiwyg-editor .wysiwyg-select {
    background: #1f262e;
    color: #e2e8f0;
    border-color: #364152;
}

html[data-theme="dark"] .markdown-body table {
    color: #dbe3ec;
}

/* Material underline fields with floating labels (shared across FastNotes and modal forms). */
.notes-form .nf,
.md-form .nf {
    position: relative;
    margin-bottom: 1.25rem;
}

.notes-form .nf-in,
.md-form .nf-in {
    display: block;
    width: 100%;
    padding: 1.1rem 0 0.35rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
    outline: none;
    resize: none;
}

.notes-form .nf-in::placeholder,
.md-form .nf-in::placeholder {
    color: transparent;
}

.notes-form .nf-area,
.md-form .nf-area {
    line-height: 1.5;
}

.notes-form .nf.nf-inline,
.md-form .nf.nf-inline {
    display: inline-block;
    width: auto;
    max-width: 100%;
}

.notes-form .nf-select,
.md-form .nf-select {
    width: auto;
    min-width: 11rem;
    max-width: 100%;
    padding: 1.55rem 1.25rem 0.35rem 0;
    cursor: pointer;
}

.notes-form .nf-lb,
.md-form .nf-lb {
    position: absolute;
    top: 1.1rem;
    left: 0;
    margin: 0;
    color: #888;
    pointer-events: none;
    transform-origin: left top;
    transition: transform 0.15s ease, color 0.15s ease;
}

.notes-form .nf-in:focus ~ .nf-lb,
.notes-form .nf-in:not(.nf-editor):not(:placeholder-shown) ~ .nf-lb,
.notes-form .nf-editor.has-content ~ .nf-lb,
.md-form .nf-in:focus ~ .nf-lb,
.md-form .nf-in:not(.nf-editor):not(:placeholder-shown) ~ .nf-lb,
.md-form .nf-editor.has-content ~ .nf-lb {
    transform: translateY(-0.9rem) scale(0.8);
    color: #666;
}

.notes-form .nf-select ~ .nf-lb,
.md-form .nf-select ~ .nf-lb {
    transform: translateY(-1.05rem) scale(0.8);
    color: #666;
}

.notes-form .nf-bar,
.md-form .nf-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #d0d0d0;
    transition: background-color 0.15s ease, height 0.15s ease;
}

.notes-form .nf-in:focus ~ .nf-bar,
.md-form .nf-in:focus ~ .nf-bar {
    height: 2px;
    background: #999;
}

.notes-form .nf-editor.is-invalid ~ .nf-bar,
.md-form .nf-editor.is-invalid ~ .nf-bar {
    height: 2px;
    background: #dc3545;
}

html[data-theme="dark"] .notes-form .nf-in,
html[data-theme="dark"] .md-form .nf-in {
    color: #eee;
}

html[data-theme="dark"] .notes-form .nf-select option,
html[data-theme="dark"] .md-form .nf-select option {
    background-color: #1b222b;
    color: #eee;
}

html[data-theme="dark"] .notes-form .nf-lb,
html[data-theme="dark"] .md-form .nf-lb {
    color: #aaa;
}

html[data-theme="dark"] .notes-form .nf-in:focus ~ .nf-lb,
html[data-theme="dark"] .notes-form .nf-in:not(.nf-editor):not(:placeholder-shown) ~ .nf-lb,
html[data-theme="dark"] .notes-form .nf-select ~ .nf-lb,
html[data-theme="dark"] .notes-form .nf-editor.has-content ~ .nf-lb,
html[data-theme="dark"] .md-form .nf-in:focus ~ .nf-lb,
html[data-theme="dark"] .md-form .nf-in:not(.nf-editor):not(:placeholder-shown) ~ .nf-lb,
html[data-theme="dark"] .md-form .nf-select ~ .nf-lb,
html[data-theme="dark"] .md-form .nf-editor.has-content ~ .nf-lb {
    color: #cbd5e1;
}

html[data-theme="dark"] .notes-form .nf-bar,
html[data-theme="dark"] .md-form .nf-bar {
    background: #555;
}

html[data-theme="dark"] .notes-form .nf-in:focus ~ .nf-bar,
html[data-theme="dark"] .md-form .nf-in:focus ~ .nf-bar {
    background: #aaa;
}

.notes-form .nf-mic-btn[data-recording="1"],
.notes-form .nf-cam-btn[data-recording="1"] {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
    animation: nf-rec-pulse 1.1s ease-in-out infinite;
}

.notes-form .nf-audio-bar {
    padding: 0.4rem 0.55rem;
    border: 1px solid #d0d0d0;
    background: rgba(0, 0, 0, 0.03);
    gap: 0.25rem;
}

.notes-form .nf-rec-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #dc3545;
    margin-right: 0.4rem;
    animation: nf-rec-pulse 1s ease-in-out infinite;
}

.notes-form .nf-rec-meter {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 20px;
    margin-right: 0.45rem;
}

.notes-form .nf-rec-meter span {
    display: block;
    width: 3px;
    height: 20%;
    min-height: 4px;
    background: #dc3545;
    transition: height 0.08s linear;
}

.notes-form .nf-rec-track {
    position: relative;
    flex: 1 1 auto;
    height: 6px;
    background: #d8dce2;
    overflow: hidden;
}

.notes-form .nf-rec-fill {
    width: 0%;
    height: 100%;
    background: #dc3545;
    transition: width 0.2s linear;
}

.notes-form .nf-audio-progress {
    -webkit-appearance: none;
    appearance: none;
    flex: 1 1 auto;
    min-width: 80px;
    height: 6px;
    background: linear-gradient(
        to right,
        #17a2b8 0%,
        #17a2b8 var(--nf-progress, 0%),
        #d8dce2 var(--nf-progress, 0%),
        #d8dce2 100%
    );
    outline: none;
    cursor: pointer;
}

.notes-form .nf-audio-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #17a2b8;
    border: 0;
    cursor: pointer;
}

.notes-form .nf-audio-progress::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #17a2b8;
    border: 0;
    cursor: pointer;
}

.notes-form .nf-time {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

html[data-theme="dark"] .notes-form .nf-audio-bar {
    border-color: #3a3f47;
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .notes-form .nf-rec-track {
    background: #3a3f47;
}

html[data-theme="dark"] .notes-form .nf-audio-progress {
    background: linear-gradient(
        to right,
        #17a2b8 0%,
        #17a2b8 var(--nf-progress, 0%),
        #3a3f47 var(--nf-progress, 0%),
        #3a3f47 100%
    );
}

@keyframes nf-rec-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.45;
    }
}

.nf-saved-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 55vh;
    overflow-y: auto;
}

.nf-saved-item {
    border: 1px solid #d0d0d0;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
}

.nf-saved-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.nf-saved-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    word-break: break-word;
}

.nf-saved-meta {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.15rem;
}

.nf-saved-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.4rem;
}

.nf-saved-text {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.nf-saved-item .nf-audio-bar {
    display: flex;
    align-items: center;
    margin-top: 0.6rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid #d0d0d0;
    background: rgba(0, 0, 0, 0.03);
    gap: 0.25rem;
}

.nf-saved-item .nf-audio-progress {
    -webkit-appearance: none;
    appearance: none;
    flex: 1 1 auto;
    min-width: 80px;
    height: 6px;
    background: linear-gradient(
        to right,
        #17a2b8 0%,
        #17a2b8 var(--nf-progress, 0%),
        #d8dce2 var(--nf-progress, 0%),
        #d8dce2 100%
    );
    outline: none;
    cursor: pointer;
}

.nf-saved-item .nf-audio-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #17a2b8;
    border: 0;
    cursor: pointer;
}

.nf-saved-item .nf-audio-progress::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #17a2b8;
    border: 0;
    cursor: pointer;
}

.nf-saved-item .nf-time {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

html[data-theme="dark"] .nf-saved-item {
    border-color: #3a3f47;
    background: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .nf-saved-meta {
    color: #adb5bd;
}

html[data-theme="dark"] .nf-saved-item .nf-audio-bar {
    border-color: #3a3f47;
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .nf-saved-item .nf-audio-progress {
    background: linear-gradient(
        to right,
        #17a2b8 0%,
        #17a2b8 var(--nf-progress, 0%),
        #3a3f47 var(--nf-progress, 0%),
        #3a3f47 100%
    );
}

.notes-form .nf-editor {
    min-height: 7.5rem;
    max-height: 340px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
}

.notes-form .nf-inline-image {
    position: relative;
    display: block;
    width: 100%;
    margin: 0.45rem 0;
    user-select: none;
}

.notes-form .nf-inline-thumb {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #d0d0d0;
}

.notes-form .nf-inline-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 0.1rem 0.35rem;
    line-height: 1.1;
    background: rgba(255, 255, 255, 0.92);
}

.notes-form .nf-inline-audio {
    display: flex;
    align-items: center;
    margin: 0.45rem 0;
    user-select: none;
}

.nf-saved-rich {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    word-break: break-word;
}

.nf-saved-rich p,
.nf-saved-rich div {
    margin-bottom: 0.25rem;
}

.nf-saved-rich p:last-child,
.nf-saved-rich div:last-child {
    margin-bottom: 0;
}

.nf-saved-image-wrap {
    display: block;
    width: 100%;
    margin-top: 0.6rem;
}

.nf-saved-image {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #d0d0d0;
    cursor: zoom-in;
}

.nf-saved-image.is-expanded {
    max-height: none;
    cursor: zoom-out;
}

html[data-theme="dark"] .notes-form .nf-inline-thumb,
html[data-theme="dark"] .nf-saved-image {
    border-color: #3a3f47;
}

html[data-theme="dark"] .notes-form .nf-inline-remove {
    background: rgba(33, 37, 41, 0.92);
}

.notes-form .nf-video-rec-box,
.notes-form .nf-inline-video,
.nf-saved-video-wrap {
    display: block;
    width: 100%;
    border: 1px solid #d0d0d0;
    background: #000;
}

.notes-form .nf-inline-video {
    margin: 0.45rem 0;
    user-select: none;
}

.nf-saved-video-wrap {
    margin-top: 0.6rem;
}

.notes-form .nf-video-stage {
    position: relative;
    width: 100%;
    background: #000;
}

.notes-form .nf-video-flip {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    padding: 0.15rem 0.45rem;
    line-height: 1.2;
    background: rgba(0, 0, 0, 0.62);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.notes-form .nf-video-flip:disabled {
    opacity: 0.5;
}

.notes-form .nf-video-preview,
.notes-form .nf-video-player,
.nf-saved-video {
    display: block;
    width: 100%;
    max-height: 260px;
    background: #000;
    object-fit: contain;
}

.notes-form .nf-video-rec-box .nf-audio-bar {
    border: 0;
    border-top: 1px solid #d0d0d0;
    background: #f8f9fa;
}

.notes-form .nf-video-meta,
.nf-saved-video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.3rem 0.5rem;
    border-top: 1px solid #d0d0d0;
    background: #f8f9fa;
}

html[data-theme="dark"] .notes-form .nf-video-rec-box,
html[data-theme="dark"] .notes-form .nf-inline-video,
html[data-theme="dark"] .nf-saved-video-wrap,
html[data-theme="dark"] .notes-form .nf-video-rec-box .nf-audio-bar,
html[data-theme="dark"] .notes-form .nf-video-meta,
html[data-theme="dark"] .nf-saved-video-meta {
    border-color: #3a3f47;
}

html[data-theme="dark"] .notes-form .nf-video-rec-box .nf-audio-bar,
html[data-theme="dark"] .notes-form .nf-video-meta,
html[data-theme="dark"] .nf-saved-video-meta {
    background: #1c222a;
}
