@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

body {
    pointer-events: none;
}

body.loading,
body.loading * {
    cursor: not-allowed !important;
}

.login-input {
    float: right;
}

input, input.form-control, input.form-control:focus, input.form-control:disabled,
select, select.form-select, select.form-control, select.form-control:focus,select.custom-select, select.custom-select:focus, select.custom-select option,
textarea, textarea.form-control, textarea.form-control:focus, textarea.form-control:disabled,
span.input-group-text {
    background: dimgray;
    color: black;
    font-style: italic;
}

textarea::placeholder {
    color: darkslategray;
}

.custom-select option:disabled {
    color: #36454F;
}

select.custom-select option:hover {
    cursor: pointer;
}

input::placeholder {
    color: black;
}

.login-input-hidden {
    display: none
}

.login-input-shown {
    display: block
}

.login-button {
    font-size: 14px
}

.login-attempt-messages {
    font-size: 12px;
    color: red;
}

.login-logout-link {
    font-size: 14px;
}

a, a:visited {
    color: hotpink;
    text-decoration: none;
}

div#main-container {
    margin-bottom: 50px;
}

div#full-page-wrapper {
    transition: opacity 180ms ease-in-out;
}

div#full-page-wrapper.page-loader {
    opacity: 0.5;
}

div#description-container {
}

div#gallery-container {

}


div.gallery-elem {
    padding-bottom: 10px;
    padding-left: 5px;
    padding-right: 5px;
    text-align: center;
    font-size: 0.9em;
    cursor:pointer;
    border: 1px solid transparent;
    margin-bottom: 5px;
}

div.gallery-elem:has(input[type="checkbox"]:checked) {
    background-color: rgba(255, 220, 120, 0.12); /* warmer, richer gold tint */
    border: 1px solid rgba(255, 210, 90, 0.25); /* soft golden border */
    box-shadow: 0 0 5px rgba(255, 210, 90, 0.25); /* subtle glow */
    transition: all 0.2s ease-in-out;
}

div.gallery-elem:hover {
    background-color: #36454F;
}

div.gallery-elem.only_this_shown {
    font-size: 1em;
}

div.gallery-elem .gallery-elem-action {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
div.gallery-elem:hover .gallery-elem-action,
div.gallery-elem.only_this_shown .gallery-elem-action,
body.gallery-actions-expanded div.gallery-elem .gallery-elem-action {
    opacity: 1;
    pointer-events: auto;
}

div.gallery-elem-buttons-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-name-container {
    display: inline-block;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}
.gallery-elem-action-rows-container {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

div.gallery-elem:hover .gallery-elem-action-rows-container,
div.gallery-elem.only_this_shown .gallery-elem-action-rows-container,
body.gallery-actions-expanded div.gallery-elem .gallery-elem-action-rows-container {
    opacity: 1;
    pointer-events: auto;
}

.gallery-elem-actions-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 2px;
}

.gallery-elem-pills-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1px;
}

div.gallery-elem.only_this_shown a img:not(.published) {
    border: 1px solid rgba(255, 60, 60, 0.7); /* stronger red border */
    box-shadow: 0 0 14px rgba(255, 60, 60, 0.5); /* intense but soft-edged glow */
    animation: assertiveRedPulse 1.8s infinite ease-in-out;
}
@keyframes assertiveRedPulse {
    0%, 100% {
        box-shadow: 0 0 50px rgba(255, 60, 60, 0.5);
    }
    50% {
        box-shadow: 0 0 80px rgba(255, 60, 60, 0.8);
    }
}

div.gallery-elem.only_this_shown a img.published {
    border: 1px solid rgba(85, 255, 170, 0.7); /* brighter green border */
    box-shadow: 0 0 10px rgba(85, 255, 170, 0.6);
    animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 50px  rgba(85, 255, 170, 0.6);
    }
    50% {
        box-shadow: 0 0 80px  rgba(85, 255, 170, 0.6);
    }
}

.folder-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    width: clamp(80px, 10vw, 180px);
    aspect-ratio: 1;
    margin: 0 auto;
}

.folder-icon {
    border-radius: 12px;
}

div.gallery-elem img.scaled.folder-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

div.gallery-elem img.scaled {
    height: 16vh;
    object-fit: contain;
}

img:not([src]) {
    visibility: hidden;
}

div.desc {
    padding-bottom: 5px;
    text-align: center;
    color: hotpink;
}

img.last-clicked {
    max-height: 95vh;
}

div.gallery-elem:has(img.scaled.last-clicked) {
    background-color: rgba(245, 206, 161, 0.18);
    outline: 3px solid rgba(245, 206, 161, 0.9);
    outline-offset: 2px;
    border-radius: 8px;
    box-shadow: 0 0 18px rgba(245, 206, 161, 0.55);
    animation: lastViewedPulse 0.7s ease-in-out 2;
}

@keyframes lastViewedPulse {
    50% {
        box-shadow: 0 0 30px rgba(245, 206, 161, 0.9);
    }
}

@media (prefers-reduced-motion: reduce) {
    div.gallery-elem:has(img.scaled.last-clicked) {
        animation: none;
    }
}

.backlink {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.search-container {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

input#search-elements {
    border-radius: 10px;
    padding: 5px;
    color: black;
}

input#search-elements::placeholder {
    font-style: italic;
}

span.filtered-results {
    color: dimgray;
}

.filter-option {
    /*color: hotpink;
    cursor: pointer;*/
}

.title-section {
    color: hotpink;
    text-align: center;
    font-size: 40px;
}

.subheader {
    color: hotpink;
    text-align: center;
    font-size: 24px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.folder {
    text-align: center;
    margin-bottom: 3px;
    margin-left: 20px;
}

.folder-title {
    font-family: 'Playfair Display', serif;
    font-size: 16px !important;
    letter-spacing: 0.05em;
}

.year-card .folder-title {
    font-size: 2rem !important;
    letter-spacing: 0.15em;
    font-weight: 700;
}

.folders-listing div.gallery-elem {
    width: 210px;
}

.folders-listing .folder-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#images-immediate-container.search-filter-active {
    justify-content: flex-start !important;
}

.title-img {
    width: 8vw;
    border-radius: 30%;
}

.gvc-logo {
    position: relative;
    display: inline-block;
    overflow: hidden;
    line-height: 0;
}

.gvc-logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.45),
        transparent
    );
    transform: rotate(25deg);
    pointer-events: none;
    z-index: 1;
}

.gvc-logo--animated::after {
    animation: gvc-shine 12s ease-in-out infinite;
}

.gvc-logo.shine-now::after {
    animation: gvc-shine-hover 0.9s ease-in-out;
}

@keyframes gvc-shine {
    0%, 82%, 100% { left: -150%; }
    90%            { left: 250%; }
}

@keyframes gvc-shine-hover {
    from { left: -150%; }
    to   { left: 250%; }
}

.close-image-button {
    cursor: pointer;
    color: hotpink;
}

.delete-button {
    cursor: pointer;
    color: red;
}

.login-logout-link {
    font-size: 12px;
    float: right;
}


.video-player {
    max-width: 80vw;
    /*min-width: 60vw;*/
    max-height: 70vh;
    min-height: 50vh;
    object-fit: contain;
    display: block; /* important: no inline baseline gap */
}


.close-player {
    color: red;
    cursor: pointer;
}

.video-title {
    color: hotpink;
}

.login-logout-link {
    font-size: 14px;
    float: right;
}

.error {
    color: red;
    margin-left: 5px;
    margin-right: 5px;
}

.warning {
    color: darkorange;
    margin-left: 5px;
    margin-right: 5px;
}

.info {
    color: cornflowerblue;
    margin-left: 5px;
    margin-right: 5px;
}

.success {
    color: limegreen;
    /*margin-left: 5px;*/
    margin-right: 5px;
}

ul.list-shoe-types {
    color: hotpink;
}

.nav-image-button, .crop-image-button {
    cursor: pointer;
}


div#image-editor img {
    /*max-width: 100%;*/
    margin-top:1px;
    max-height: 95vh;
}

div#edited-img-preview {
    overflow: hidden;
    width: 100px;
    min-width: 100px;
    height: 100px;
    border: 1px solid red;
}

div#image-editor-buttons {
    display: inline;
}

span#crop-image-button {
    color: hotpink;
    cursor: pointer;
}

table.poster-data {
    margin-bottom: 5px;

}

table.poster-data th {
    text-align: left;
}

table.poster-data td {
    max-width: 30vw;
    color: #f5cea1;
}

table.poster-data th, table.poster-data td {
    padding-right: 10px;
    padding-bottom: 5px;
}

td.local-file-name {
    max-width: 35vw;
    overflow-x: auto;
}

abbr {
    color: hotpink;
    cursor: help;
    letter-spacing: 2px;
}

abbr.gsi-abbr {
    color: hotpink;
    cursor: help;
    letter-spacing: 2px;
}

.glam-marker-tooltip {
    cursor: help;
    border-bottom: 1px dotted currentColor;
}

ul#maintenance-list {
    margin-top: 10px;
    list-style: none;
}

div.version {
    color: hotpink;
    pointer-events: none;
}

div#fixed-footer-menu {
    pointer-events: auto;
}

span.extractor-button {
    cursor: pointer;
    color: hotpink
}

span.status {
    margin-left: 5px;
    margin-right: 5px;
}

input#image-name {
    width: 250px;
    text-align: right;
}

.overflowed-element {
    width: 40vw;
    overflow-x: auto;
    white-space: nowrap;
}

td.extractor-table-video-link:hover {
    cursor: pointer;
}

td.extractor-table-video-link {
    color: hotpink;
}


span#move-image-button {
    cursor: pointer;
}

.coffee-custom-button {
    color: hotpink !important;
    cursor: pointer;
}

div#folders-listing-container, div#tesi-listing-container {
    height: 40vh;
    overflow-y: scroll;
}

div.gallery-elem.last-clicked {
    background-color: rgba(245, 206, 161, 0.08);
    box-shadow: inset 0 0 0 2px rgba(245, 206, 161, 0.55);
    border-radius: 8px;
}

#folders-listing tr.last-clicked {
    --bs-table-bg-state: rgba(245, 206, 161, 0.1);
}

#folders-listing tr.last-clicked > td.folder-name-container {
    border-left: 2px solid rgba(245, 206, 161, 0.55);
}

.accordion-button {
    /*background-color: dimgrey;
    color:white;*/
}

input[type=checkbox] {
    background-color: dimgray;
}

input[type=checkbox]:hover {
    cursor: pointer;
}

small.coffee-custom-small-text {
    color: dimgray;
    font-style: italic;
}

.coffee-text-color-mediumpurple {
    color: mediumpurple;
}

.coffee-text-color-hotpink {
    color: hotpink;
}

.coffee-text-color-gala-hair,
a.coffee-text-color-gala-hair {
    color: #f5cea1;
}

.coffee-text-color-warm-champagne {
    color: #E6D8B8;
}

.coffee-text-color-rose-beige {
    color: #D8B4A0;
}

.coffee-text-color-blue-gray {
    color: #AEBBC9;
}

.coffee-background-color-gala-hair {
    background-color: #f5cea1;
}

.coffee-cursor-pointer {
    cursor: pointer;
}

.coffee-chip-outline {
    background-color: transparent;
    border: 1px solid #E6D8B8Reas;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.coffee-chip-outline:hover {
    background-color: rgba(255, 105, 180, 0.15);
    border-color: #ff8dc7;
}

.coffee-cursor-help {
    cursor: help;
}

.coffee-cursor-default {
    cursor: default;
}

.coffee-cursor-not-allowed {
    cursor: not-allowed;
}

.coffee-float-right {
    float: right;
}

.coffee-background-color-dimgray {
    background-color: dimgray;
}

.coffee-font-size-14 {
    font-size: 14px;
}

.galafied-loader {
    font-style: italic;
}

.tidbits-table-container {
    max-height: 60vh;
    overflow-y: scroll;
}

.coffee-scrollable-table-35 {
    max-height: 35vh;
    overflow-y: scroll;
}

.coffee-scrollable-table-50 {
    max-height: 50vh;
    overflow-y: scroll;
}

.coffee-scrollable-table-65 {
    max-height: 65vh;
    overflow-y: scroll;
}

.coffee-scrollable-table-80 {
    max-height: 70vh;
    overflow-y: scroll;
}

.coffee-scrollable-table-div-70 {
    max-height: 70vh;
    overflow-y: scroll;
}

.coffee-clicked-item {
    color: gray !important;
}

.episode-item-description-shoe-type-preview {
    max-height: 20vh;
}

.video-wrap {
    position: relative;
    display: inline-block;
}

#video-overlay {
    position: absolute;
    inset: 0; /* cover video element exactly */
    pointer-events: none; /* let clicks pass through by default */
}
#video_blur_rectangle {
    position: absolute;
    left: 40px;
    top: 40px;
    width: 160px;
    height: 120px;
    background: rgba(46,125,255,.15);
    pointer-events: auto; cursor: grab; border-radius: 6px;
    border: 2px solid #f5cea1;
}
#video_blur_rectangle:active {
    cursor: grabbing;
}
#video_blur_rectangle.drawing,
#video_blur_rectangle.drawing * {
    pointer-events: none !important;
}

.resize-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f5cea1;
    border: 1px solid #444;
    border-radius: 2px;
    pointer-events: auto;
    z-index: 10;
}
.resize-handle.nw { top: -5px;    left: -5px;             cursor: nw-resize; }
.resize-handle.ne { top: -5px;    right: -5px;            cursor: ne-resize; }
.resize-handle.sw { bottom: -5px; left: -5px;             cursor: sw-resize; }
.resize-handle.se { bottom: -5px; right: -5px;            cursor: se-resize; }
.resize-handle.n  { top: -5px;    left: 50%; transform: translateX(-50%); cursor: n-resize; }
.resize-handle.s  { bottom: -5px; left: 50%; transform: translateX(-50%); cursor: s-resize; }
.resize-handle.w  { left: -5px;   top: 50%;  transform: translateY(-50%); cursor: w-resize; }
.resize-handle.e  { right: -5px;  top: 50%;  transform: translateY(-50%); cursor: e-resize; }

div#extractor_video_container {
    position: relative;
}

.coffee-font-variant-small-caps {
    font-variant: small-caps;
}

.extractor-iframe {
    height: 80vh;
    width: 90vw;
}

.iframe-border {
    border: 3px solid #f5cea1;//#ff69b4
}

/* cropperjs overrides */
.cropper-modal {
    opacity: 0.7;
}
.cropper-modal.blur-mode-overlay {
    opacity: 0.25;
}

.loading-gif-indicator {
    width: 40px;
    height: 40px;
    /*https://loading.io/*/
}

#loading_gif_indicator_container {
    position: fixed;
    top:0;
    left: 10px;
}

video.compared-video {
    border: 2px solid #f5cea1;
}

#extractor_video_time_slider::-webkit-slider-thumb {
    background: #f5cea1;
}

#extractor_video_time_slider::-webkit-slider-runnable-track {
    background: hotpink;
}

/* Firefox thumb & track */
#extractor_video_time_slider::-moz-range-thumb {
    background: #f5cea1;
}
#extractor_video_time_slider::-moz-range-track {
    background: hotpink;
}

.marker {
    position: absolute;
    width: 5px;
    height: 20px;
    transform: translateX(-50%);
    border-radius: 7px;
    box-shadow: 0 1px 2px rgba(0,0,0,.25);
    pointer-events: none;      /* not draggable */
}
.marker.start { background: #f5cea1; }
.marker.end { background: mediumpurple; }

img.nail-color-example {
    max-height: 10vw;
    border-radius: 10px;
}


/* ==========================================================================
   COFFEE LEXEMES — CLASS-ONLY VARIANT
   Legs = Passionate Pinkfire | Shoes = Velvet Violet
   -------------------------------------------------------------------------- */

/* ---------------------------
   LEG / FEET PARTS (Pinkfire)
   --------------------------- */
.coffee-lexeme-leg {
    color: inherit;
    font-weight: 560;
    letter-spacing: 0.3px;
    position: relative;
    display: inline-block;
    transition: text-shadow 0.35s ease, color 0.35s ease;

    /* Vibrant magenta/violet base glow (high contrast on light/dark) */
    text-shadow:
            0 0 4px rgba(255, 30, 110, 0.55),
            0 0 8px rgba(255, 0, 150, 0.45),
            0 0 12px rgba(210, 0, 255, 0.25);
}

/* Animated shimmer */
.coffee-lexeme-leg.shimmer {
    animation: coffee-leg-pinkfire 2.8s linear infinite;
    background: linear-gradient(
            90deg,
            #ff007f,  /* hot pink */
            #ff3399,  /* flirty rose */
            #ff66cc,  /* bright pop */
            #d500f9,  /* electric violet */
            #ff007f
    );
    background-size: 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Stronger aura if you need extra presence */
.coffee-lexeme-leg.deep {
    text-shadow:
            0 0 6px rgba(255, 50, 160, 0.9),
            0 0 18px rgba(255, 0, 200, 0.75),
            0 0 32px rgba(210, 0, 255, 0.7);
}

@keyframes coffee-leg-pinkfire {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* ---------------------------
   SHOE TYPES (Velvet Violet)
   --------------------------- */
.coffee-lexeme-shoe {
    color: inherit;
    font-weight: 580;
    letter-spacing: 0.25px;
    position: relative;
    display: inline-block;

    /* Subtle text stroke helps edges on very pale backgrounds */
    -webkit-text-stroke: 0.2px rgba(30, 20, 60, 0.35);

    /* Rich violet base glow (mediumpurple-forward) */
    text-shadow:
            0 0 3px rgba(129, 94, 216, 0.55),
            0 0 8px rgba(90, 60, 190, 0.45),
            0 0 14px rgba(70, 40, 160, 0.35);
}

/* Animated shimmer */
.coffee-lexeme-shoe.shimmer {
    animation: coffee-shoe-velvet 3.2s linear infinite;
    background: linear-gradient(
            90deg,
            #6f42ff,  /* electric violet highlight */
            #7d55ff,
            #9370db,  /* mediumpurple anchor */
            #b197ff,  /* lavender lift */
            #6f42ff
    );
    background-size: 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Deeper glow option */
.coffee-lexeme-shoe.deep {
    text-shadow:
            0 0 4px rgba(129, 94, 216, 0.65),
            0 0 12px rgba(98, 65, 200, 0.55),
            0 0 22px rgba(78, 45, 170, 0.45);
}

/* Optional glossy “patent leather” highlight */
.coffee-lexeme-shoe.patent::after {
    content: "";
    position: absolute;
    inset: -0.1em -0.12em;  /* tiny halo around text bounds */
    pointer-events: none;
    background:
            radial-gradient(60% 60% at 20% 35%, rgba(255,255,255,0.18), transparent 55%),
            radial-gradient(50% 40% at 80% 65%, rgba(180,170,255,0.12), transparent 60%);
    opacity: 0;
    transition: opacity .25s ease;
}
.coffee-lexeme-shoe.patent:hover::after,
.coffee-lexeme-shoe.patent:focus-visible::after {
    opacity: 1;
}

@keyframes coffee-shoe-velvet {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* ---------------------------
   A11y / Motion Preference
   --------------------------- */
@media (prefers-reduced-motion: reduce) {
    .coffee-lexeme-leg.shimmer,
    .coffee-lexeme-shoe.shimmer {
        animation: none;
    }
}


/* Gala — Elegant Radiance + Signature Flash (refined) */
.coffee-text-color-gala-royal {
    font-style: italic;
    font-weight: 350;                 /* graceful, not heavy */
    letter-spacing: 0.45px;           /* slightly tighter, “signature” feel */
    cursor: default;

    /* Silky gold gradient */
    background: linear-gradient(
            90deg,
            #c6a74f, #f9e57d, #fff6cf, #f5e6b3, #ffef9a, #c6a74f
    );
    background-size: 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Refined close-in glow + subtle studio-violet reflection */
    text-shadow:
            0 0 1px rgba(255, 225, 150, 0.82),
            0 0 3px rgba(250, 230, 160, 0.70),
            0 0 6px rgba(255, 210, 110, 0.55),
            0 0 8px rgba(180, 150, 255, 0.25); /* ambient violet tie-in */

    /* Micro-contrast to avoid flatness on dark UIs */
    filter:
            drop-shadow(0 0 1px rgba(255, 245, 210, 0.30))
            drop-shadow(0 0 2px rgba(255, 245, 190, 0.22))
            contrast(1.05) brightness(1.05);

    /* Continuous shimmer + gentle sparkle */
    animation:
            gala-shimmer 3.2s linear infinite,
            gala-sparkle 3s ease-in-out infinite alternate;
    transition: filter 0.3s ease, text-shadow 0.3s ease;
}

/* Hover: one-time signature flash across the name */
.coffee-text-color-gala-royal:hover {
    animation:
            gala-shimmer 3.2s linear infinite,
            gala-sparkle 3s ease-in-out infinite alternate,
            gala-flash 0.75s ease-in-out 1;
    filter: brightness(1.1) saturate(1.05);
}

/* Smooth shimmer motion across the gradient */
@keyframes gala-shimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Fine twinkle — restrained, elegant */
@keyframes gala-sparkle {
    0%, 100% {
        filter:
                drop-shadow(0 0 0.5px rgba(255, 255, 220, 0.40))
                drop-shadow(0 0 2px rgba(255, 245, 190, 0.25));
        transform: translateY(0);
    }
    50% {
        filter:
                drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.85))
                drop-shadow(0 0 4px rgba(255, 240, 200, 0.60));
        transform: translateY(-0.15px);
    }
}

/* Signature Flash — brighter sweep for clear visibility */
@keyframes gala-flash {
    0%   { filter: brightness(1.05) drop-shadow(0 0 2px rgba(255, 240, 180, 0.60)); }
    30%  { background-position: 25% 50%; filter: brightness(1.45) drop-shadow(0 0 7px rgba(255, 250, 210, 0.85)); }
    55%  { background-position: 85% 50%; filter: brightness(1.60) drop-shadow(0 0 10px rgba(255, 255, 230, 0.90)); }
    80%  { background-position: 100% 50%; filter: brightness(1.35) drop-shadow(0 0 6px rgba(255, 245, 190, 0.70)); }
    100% { background-position: 0% 50%; filter: brightness(1.08); }
}

/* Motion sensitivity */
@media (prefers-reduced-motion: reduce) {
    .coffee-text-color-gala-royal { animation: none; }
}

/* Optional: tiny dark-mode lift so gold reads crisply */
@media (prefers-color-scheme: dark) {
    .coffee-text-color-gala-royal {
        filter:
                drop-shadow(0 0 1px rgba(255, 250, 215, 0.35))
                drop-shadow(0 0 2px rgba(255, 245, 195, 0.28))
                contrast(1.07) brightness(1.08);
    }
}

.description {
    white-space: pre-wrap;
}

.open_ai_response_container {
    max-height: 50vh;
    overflow-y: auto;
    white-space: pre-wrap;
}

#open_ai_attached_images_container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.open-ai-image-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #fafafa;
}

.open-ai-image-preview:hover {
    border-color: darkred;
}

.open-ai-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor:pointer;
}

.open-ai-image-remove-button {
    position: absolute;
    top: 2px;
    right: 2px;
    padding: 0 3px;
    line-height: 1.4;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-in-out;
}

.open-ai-image-preview:hover .open-ai-image-remove-button {
    opacity: 1;
    pointer-events: auto;
}

@media (hover: none) {
    .open-ai-image-remove-button {
        opacity: 1;
        pointer-events: auto;
    }
}

div#accordionOpenAiHelper{
    width: 35vw;
}

.gallery-elem.glam-entry {
    cursor: pointer;
    width: 210px;
    height: 390px;
    overflow: hidden;
}

.glam-notes {
    max-width: 100%;
    text-align: left;
    word-break: break-word;
}

.glam-only-shown .glam-notes {
    max-width: 30vw;
    text-align: left;
}

#glam_edit_preview_image {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    border-radius: 4px;
    cursor: zoom-in;
}

#glam_edit_preview_image.glam-preview-natural {
    width: auto;
    max-width: none;
    height: auto;
    max-height: none;
}

.glam-marker-filter-chip {
    border-radius: 1rem;
    font-size: 0.75rem;
    padding: 0.15rem 0.55rem;
    transition: opacity 0.15s, background-color 0.15s;
}

.glam-chip-off {
    opacity: 0.4;
    color: #aaa;
    border-color: #555;
    background-color: transparent;
}

.glam-chip-any {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: #fff;
    opacity: 1;
}

.glam-chip-left {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #000;
    opacity: 1;
}

.glam-chip-right {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
    opacity: 1;
}

.glam-filter-active {
    box-shadow: 0 0 0 2px #ffc107;
}

.health-status-header-title {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: left;
}

.health-status-header-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-left: auto;
    margin-right: 0.75rem;
}

.health-status-chip {
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    gap: 0.3rem;
    line-height: 1.2;
    padding: 0.2rem 0.55rem;
    white-space: nowrap;
}

.health-status-chip--good {
    color: var(--bs-success);
}

.health-status-chip--attention {
    color: var(--bs-warning);
}

.health-status-chip--danger {
    color: var(--bs-danger);
}

.health-status-dashboard {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    width: 100%;
}

.health-status-dashboard-header,
.health-status-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
}

.health-status-freshness-grid,
.health-status-card-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.health-status-freshness,
.health-status-card {
    border: 1px solid var(--bs-secondary);
    border-radius: 0.5rem;
    color: var(--bs-secondary);
    min-width: 0;
    padding: 0.85rem;
    text-align: left;
}

.health-status-freshness {
    display: grid;
    gap: 0.2rem;
}

.health-status-card-title {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.health-status-card summary {
    color: var(--bs-info);
    padding: 0.2rem 0;
}

.health-status-card details[open] summary {
    margin-bottom: 0.5rem;
}

.health-status-card summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 0.2rem;
}

.health-status-finding-list {
    display: grid;
    gap: 0.55rem;
    list-style-position: outside;
    margin: 0;
    padding-left: 1.25rem;
    overflow-wrap: anywhere;
}

.health-status-finding-list--bounded {
    max-height: 22rem;
    overflow-y: auto;
    padding-right: 0.4rem;
}

.health-status-finding-heading,
.health-status-finding-context {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.health-status-finding-context {
    color: var(--bs-secondary);
    font-size: 0.9rem;
    margin-left: 1rem;
}

.health-status-finding-context-item {
    align-items: baseline;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.health-status-finding-context-key {
    font-weight: 600;
}

.health-status-empty-state {
    text-align: center;
}

.health-status-empty-image {
    height: auto;
    max-height: 14rem;
    max-width: 100%;
}

.health-status-actions {
    border-top: 1px solid var(--bs-secondary);
    padding-top: 1rem;
}

@media (max-width: 767.98px) {
    .health-status-accordion {
        width: 100% !important;
    }

    .health-status-accordion .accordion-button {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .health-status-header-summary {
        margin-left: 0;
        width: 100%;
    }

    .health-status-freshness-grid,
    .health-status-card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .health-status-actions {
        align-items: stretch;
        flex-direction: column;
    }
}
