.tje-frontend {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    width: min(1520px, calc(100vw - 48px));
    max-width: none;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid #1d2533;
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(49, 110, 255, 0.12), transparent 34%),
        linear-gradient(180deg, #101723 0%, #0b111b 100%);
    color: #dbe4f0;
    box-shadow: 0 24px 60px rgba(7, 12, 20, 0.24);
    box-sizing: border-box;
    transition: grid-template-columns 0.18s ease, gap 0.18s ease;
}

.tje-frontend.tje-free-layout {
    grid-template-columns: 1fr;
}

.tje-frontend.tje-free-layout .tje-results {
    grid-column: 1 / -1;
}

.tje-brand-footer {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(142, 163, 191, 0.18);
    color: #8ea3bf;
    font-size: 12px;
    line-height: 1.4;
}

.tje-brand-footer a {
    color: #dbe8ff;
    font-weight: 700;
    text-decoration: none;
}

.tje-brand-footer a:hover,
.tje-brand-footer a:focus-visible {
    text-decoration: underline;
}

.tje-dashboard-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 2px 2px 0;
}

.tje-dashboard-heading {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.tje-dashboard-kicker {
    color: #8ea3bf;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.tje-dashboard-title {
    margin: 0;
    color: #f8fbff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
}

.tje-theme-switcher {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(58px, 1fr));
    gap: 4px;
    flex: 0 0 auto;
    padding: 4px;
    border: 1px solid #273246;
    border-radius: 999px;
    background: rgba(13, 21, 34, 0.9);
}

.tje-theme-option {
    min-height: 32px;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #9eb0c7;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.tje-theme-option.is-active {
    background: #dbe8ff;
    color: #0b111b;
    box-shadow: 0 6px 18px rgba(4, 8, 15, 0.22);
}

.tje-theme-option:focus-visible {
    outline: 2px solid #8cb8ff;
    outline-offset: 2px;
}

.tje-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
    border: 1px solid #273246;
    border-radius: 16px;
    background: rgba(17, 25, 37, 0.88);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 24px;
    transition: padding 0.18s ease;
}

.tje-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #324158;
    border-radius: 12px;
    background: #0d1522;
    color: #f4f7fb;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.tje-filter-toggle-copy {
    display: grid;
    gap: 4px;
}

.tje-filter-toggle-title {
    font-weight: 700;
}

.tje-filter-toggle-summary {
    color: #8ea3bf;
    font-size: 13px;
}

.tje-filter-toggle-action {
    margin-left: auto;
    padding: 5px 9px;
    border: 1px solid #3c5d8c;
    border-radius: 999px;
    color: #cfe2ff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.tje-filter-toggle-icon {
    width: 10px;
    height: 10px;
    border-right: 2px solid #8cb8ff;
    border-bottom: 2px solid #8cb8ff;
    transform: rotate(45deg);
    transition: transform 0.16s ease;
    flex-shrink: 0;
    margin-right: 4px;
}

.tje-filters-body {
    display: grid;
    gap: 16px;
}

.tje-filter-field label,
.tje-filter-actions {
    display: block;
    font-weight: 600;
    color: #c4d2e8;
}

.tje-filter-notice {
    padding: 12px 14px;
    border: 1px solid #324158;
    border-radius: 10px;
    background: rgba(13, 21, 34, 0.72);
    color: #9eb0c7;
    font-size: 13px;
    font-weight: 600;
}

.tje-filter-field input,
.tje-filter-field select {
    width: 100%;
    margin-top: 6px;
    padding: 12px 18px 12px 14px;
    border: 1px solid #324158;
    border-radius: 10px;
    background: #0d1522;
    color: #f4f7fb;
    box-sizing: border-box;
    line-height: 1.2;
}

.tje-filter-field {
    position: relative;
}

.tje-filter-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px;
    background-image:
        linear-gradient(45deg, transparent 50%, #dbe4f0 50%),
        linear-gradient(135deg, #dbe4f0 50%, transparent 50%);
    background-position:
        calc(100% - 22px) calc(50% - 3px),
        calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.tje-filters .flatpickr-input[readonly] {
    cursor: pointer;
}

.flatpickr-calendar {
    background: #111a28;
    border: 1px solid #2b3950;
    box-shadow: 0 16px 40px rgba(4, 8, 15, 0.35);
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
    border-bottom-color: #2b3950;
}

.flatpickr-months .flatpickr-month,
.flatpickr-weekdays,
span.flatpickr-weekday,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year,
.flatpickr-day,
.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm {
    color: #e7eef9;
}

.flatpickr-day:hover,
.flatpickr-day:focus,
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #5c98ff;
    border-color: #5c98ff;
}

.flatpickr-day.today {
    border-color: #7aaeff;
}

.flatpickr-calendar .flatpickr-prev-month:not(:hover) svg,
.flatpickr-calendar .flatpickr-next-month:not(:hover) svg {
    fill: #ffffff;
}

.tje-filter-actions {
    align-self: end;
}

.tje-filter-actions a {
    margin-right: 8px;
    color: #8cb8ff;
}

.tje-frontend.is-loading .tje-results {
    opacity: 0.55;
    transition: opacity 0.12s ease;
}

.tje-results {
    min-width: 0;
    display: grid;
    gap: 20px;
}

.tje-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.tje-stat-card {
    padding: 18px;
    border: 1px solid #273246;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(18, 27, 39, 0.96), rgba(13, 19, 29, 0.96));
}

.tje-stat-label {
    display: block;
    color: #91a4be;
    margin-bottom: 8px;
}

.tje-stat-value {
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #f8fbff;
}

.tje-grid-panel {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #0b111b;
    width: 100%;
}

.tje-grid-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #273246;
    background: #0e1623;
}

.tje-grid-page-size-label,
.tje-page-status {
    color: #9eb0c7;
    font-size: 13px;
}

.tje-grid-page-size {
    min-width: 72px;
    border: 1px solid #324158;
    border-radius: 10px;
    background: #0d1522;
    color: #f4f7fb;
}

.tje-grid-pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.tje-page-button {
    border: 1px solid #30405a;
    border-radius: 999px;
    background: #111a28;
    color: #dbe8ff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.tje-page-button[disabled] {
    opacity: 0.4;
    cursor: default;
}

.tje-grid {
    min-height: 320px;
    width: 100%;
}

.ag-theme-quartz-dark.tje-grid > div {
    border: none !important;
}

.tje-grid .ag-row,
.tje-grid .ag-cell {
    overflow: visible;
}

.tje-grid .ag-paging-panel {
    display: none !important;
}

.tje-grid-empty {
    padding: 28px;
    border: 1px dashed #324158;
    border-radius: 16px;
    color: #9fb0c6;
    background: rgba(11, 17, 27, 0.88);
}

.tje-notes {
    margin-top: 6px;
    color: #8fa3bb;
    font-size: 0.92em;
}

.tje-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border: 1px solid #30405a;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    background: #111a28;
    color: #dbe8ff;
    white-space: nowrap;
}

.tje-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 4px 10px;
    border: 1px solid #30405a;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    background: #111a28;
}

.tje-account-stack {
    display: grid;
    gap: 4px;
    align-content: center;
    justify-items: start;
    min-width: 0;
    padding: 6px 0;
}

.tje-account-pill {
    display: inline-flex;
    max-width: 100%;
    padding: 3px 8px;
    border: 1px solid #30405a;
    border-radius: 999px;
    background: #111a28;
    color: #dbe8ff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.is-neutral {
    color: #ffd166;
}

.tje-grid-empty-cell {
    color: #75889f;
}

.tje-row-expander-cell {
    overflow: visible !important;
}

.tje-row-expander-cell .ag-cell-value {
    width: 100%;
}

.tje-row-expander-shell {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.tje-row-expander {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-top: 2px;
    padding: 0;
    border: 1px solid #30405a;
    border-radius: 999px;
    background: #111a28;
    color: #dbe8ff;
    cursor: pointer;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.tje-row-expander:focus,
.tje-row-expander:focus-visible {
    outline: none;
    box-shadow: none;
}

.tje-row-expander-icon {
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    transform: translateX(1px);
    transition: transform 0.16s ease;
}

.tje-row-expander.is-expanded .tje-row-expander-icon {
    transform: rotate(90deg) translateY(-1px);
}

.tje-row-expander-spacer {
    display: inline-block;
    width: 26px;
    height: 26px;
}

.tje-row-note-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid #30405a;
    border-radius: 999px;
    background: #111a28;
    color: #8fb6ff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(143, 182, 255, 0.06);
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font: inherit;
}

.tje-row-note-indicator:hover,
.tje-row-note-indicator:focus-visible {
    border-color: #5d86d8;
    color: #e2efff;
    box-shadow: 0 0 0 2px rgba(143, 182, 255, 0.12), inset 0 0 0 1px rgba(143, 182, 255, 0.12);
}

.tje-note-popover {
    position: fixed;
    z-index: 99999;
    width: min(320px, calc(100vw - 24px));
    padding: 14px;
    border: 1px solid #30405a;
    border-radius: 14px;
    background: #0d1522;
    color: #f4f7fb;
    box-shadow: 0 24px 60px rgba(4, 8, 15, 0.42);
}

.tje-note-popover-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.tje-note-popover-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #dce9fb;
}

.tje-note-popover-close {
    border: 0;
    background: transparent;
    color: #9eb0c7;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.tje-note-popover-close:hover,
.tje-note-popover-close:focus-visible {
    color: #f4f7fb;
}

.tje-note-popover-content {
    white-space: pre-wrap;
    color: #dbe4f0;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    max-height: min(42vh, 340px);
    overflow: auto;
}

.ag-theme-quartz-dark .ag-cell-wrapper {
    align-items: center;
    min-height: 100%;
}

.ag-theme-quartz-dark .ag-cell-focus,
.ag-theme-quartz-dark .ag-cell-focus:not(.ag-cell-range-selected),
.ag-theme-quartz-dark .ag-cell-focus:focus-within {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.ag-theme-quartz-dark .ag-cell-value {
    display: flex;
    align-items: center;
    min-height: 100%;
}

.tje-screenshot-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 136px;
}

.tje-screenshot-link {
    display: inline-flex;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border: 1px solid #30405a;
    border-radius: 6px;
    background: #0f1825;
}

.tje-screenshot-thumb {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: cover;
}

.tje-lightbox-open {
    overflow: hidden;
}

.tje-lightbox[hidden] {
    display: none;
}

.tje-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.tje-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.tje-lightbox-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 88px;
}

.tje-lightbox-image {
    max-width: min(1100px, 100%);
    max-height: 82vh;
    display: block;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: #111;
    cursor: zoom-in;
    transition: transform 0.12s ease;
    transform-origin: center center;
    user-select: none;
}

.tje-lightbox-image.is-zoomed {
    cursor: grab;
}

.tje-lightbox-image.is-dragging {
    cursor: grabbing;
    transition: none;
}

.tje-lightbox-close,
.tje-lightbox-nav {
    position: absolute;
    border: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.48);
    cursor: pointer;
}

.tje-lightbox-close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

.tje-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 999px;
    font-size: 34px;
    line-height: 1;
}

.tje-lightbox-prev {
    left: 20px;
}

.tje-lightbox-next {
    right: 20px;
}

.tje-lightbox-meta {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.56);
    font-size: 14px;
}

.ag-theme-quartz-dark {
    --ag-background-color: #0b111b;
    --ag-foreground-color: #dbe4f0;
    --ag-header-background-color: #121b29;
    --ag-odd-row-background-color: #0d1522;
    --ag-row-hover-color: rgba(140, 184, 255, 0.08);
    --ag-border-color: #273246;
    --ag-secondary-border-color: #1d2533;
    --ag-input-focus-border-color: #5c98ff;
    --ag-header-column-separator-color: #243146;
    --ag-font-size: 13px;
    --ag-font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    --ag-cell-horizontal-padding: 12px;
    --ag-grid-size: 8px;
    --ag-row-border-color: #1a2332;
}

.ag-theme-quartz-dark .ag-cell-focus {
    outline: none !important;
    box-shadow: none !important;
}

.ag-theme-quartz-dark .ag-cell-focus:not(.ag-cell-range-selected) {
    border-color: transparent !important;
}

.tje-theme-light {
    border-color: #d9e1ec;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 34%),
        linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
    color: #172033;
    box-shadow: 0 24px 60px rgba(31, 45, 65, 0.14);
}

.tje-theme-light .tje-dashboard-kicker,
.tje-theme-light .tje-filter-toggle-summary,
.tje-theme-light .tje-stat-label,
.tje-theme-light .tje-grid-page-size-label,
.tje-theme-light .tje-page-status,
.tje-theme-light .tje-notes,
.tje-theme-light .tje-note-popover-close,
.tje-theme-light .tje-note-popover-content {
    color: #64748b;
}

.tje-theme-light .tje-dashboard-title,
.tje-theme-light .tje-filter-toggle,
.tje-theme-light .tje-filter-field input,
.tje-theme-light .tje-filter-field select,
.tje-theme-light .tje-stat-value,
.tje-theme-light .tje-note-popover,
.tje-theme-light .tje-note-popover-close:hover,
.tje-theme-light .tje-note-popover-close:focus-visible {
    color: #101827;
}

.tje-theme-light .tje-theme-switcher,
.tje-theme-light .tje-filters,
.tje-theme-light .tje-stat-card,
.tje-theme-light .tje-grid-panel {
    border-color: #d9e1ec;
    background: rgba(255, 255, 255, 0.92);
}

.tje-theme-light .tje-theme-switcher {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.tje-theme-light .tje-theme-option {
    color: #58677c;
}

.tje-theme-light .tje-theme-option.is-active {
    background: #172033;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(31, 45, 65, 0.18);
}

.tje-theme-light .tje-brand-footer {
    border-top-color: rgba(148, 163, 184, 0.35);
    color: #475569;
}

.tje-theme-light .tje-brand-footer a {
    color: #1d4ed8;
}

.tje-theme-light .tje-filter-toggle,
.tje-theme-light .tje-filter-field input,
.tje-theme-light .tje-filter-field select,
.tje-theme-light .tje-filter-notice,
.tje-theme-light .tje-grid-page-size,
.tje-theme-light .tje-page-button,
.tje-theme-light .tje-edit-link,
.tje-theme-light .tje-status-pill,
.tje-theme-light .tje-account-pill,
.tje-theme-light .tje-row-expander,
.tje-theme-light .tje-row-note-indicator,
.tje-theme-light .tje-note-popover,
.tje-theme-light .tje-screenshot-link {
    border-color: #cfd8e5;
    background-color: #ffffff;
}

.tje-theme-light .tje-filter-field label,
.tje-theme-light .tje-filter-actions,
.tje-theme-light .tje-filter-notice {
    color: #334155;
}

.tje-theme-light .tje-filter-field select {
    background-image:
        linear-gradient(45deg, transparent 50%, #334155 50%),
        linear-gradient(135deg, #334155 50%, transparent 50%);
}

.tje-theme-light .tje-filter-toggle-action {
    border-color: #b8c8dd;
    color: #1d4ed8;
}

.tje-theme-light .tje-filter-toggle-icon {
    border-color: #2563eb;
}

.tje-theme-light .tje-filter-actions a {
    color: #1d4ed8;
}

.tje-theme-light .tje-stat-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.96));
}

.tje-theme-light .tje-grid-toolbar {
    border-bottom-color: #d9e1ec;
    background: #f8fafc;
}

.tje-theme-light .tje-grid-page-size,
.tje-theme-light .tje-page-button,
.tje-theme-light .tje-edit-link,
.tje-theme-light .tje-account-pill,
.tje-theme-light .tje-row-expander {
    color: #1f2a3d;
}

.tje-theme-light .tje-grid-empty {
    border-color: #cfd8e5;
    background: rgba(255, 255, 255, 0.88);
    color: #64748b;
}

.tje-theme-light .tje-grid-empty-cell {
    color: #8290a3;
}

.tje-theme-light .tje-row-note-indicator {
    color: #2563eb;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.04);
}

.tje-theme-light .tje-row-note-indicator:hover,
.tje-theme-light .tje-row-note-indicator:focus-visible {
    border-color: #7da2e8;
    color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12), inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.tje-theme-light .tje-note-popover {
    box-shadow: 0 24px 60px rgba(31, 45, 65, 0.24);
}

.tje-theme-light .tje-note-popover-title {
    color: #172033;
}

.tje-theme-light .tje-screenshot-link {
    background: #f8fafc;
}

.tje-theme-light.ag-theme-quartz-dark,
.tje-theme-light .ag-theme-quartz-dark {
    --ag-background-color: #ffffff;
    --ag-foreground-color: #172033;
    --ag-header-background-color: #f1f5f9;
    --ag-odd-row-background-color: #f8fafc;
    --ag-row-hover-color: rgba(37, 99, 235, 0.08);
    --ag-border-color: #d9e1ec;
    --ag-secondary-border-color: #e7edf4;
    --ag-input-focus-border-color: #2563eb;
    --ag-header-column-separator-color: #d9e1ec;
    --ag-row-border-color: #e7edf4;
}

.tje-light-theme-active .flatpickr-calendar {
    background: #ffffff;
    border-color: #d9e1ec;
    box-shadow: 0 16px 40px rgba(31, 45, 65, 0.18);
}

.tje-light-theme-active .tje-note-popover,
.tje-theme-light .ag-tooltip,
.tje-light-theme-active .ag-tooltip {
    border-color: #cfd8e5;
    background: #ffffff;
    color: #101827;
    box-shadow: 0 24px 60px rgba(31, 45, 65, 0.24);
}

.tje-light-theme-active .tje-note-popover-content,
.tje-light-theme-active .tje-note-popover-close {
    color: #64748b;
}

.tje-light-theme-active .tje-note-popover-title,
.tje-light-theme-active .tje-note-popover-close:hover,
.tje-light-theme-active .tje-note-popover-close:focus-visible {
    color: #172033;
}

.tje-light-theme-active .flatpickr-calendar.arrowTop:before,
.tje-light-theme-active .flatpickr-calendar.arrowTop:after {
    border-bottom-color: #d9e1ec;
}

.tje-light-theme-active .flatpickr-months .flatpickr-month,
.tje-light-theme-active .flatpickr-weekdays,
.tje-light-theme-active span.flatpickr-weekday,
.tje-light-theme-active .flatpickr-current-month .flatpickr-monthDropdown-months,
.tje-light-theme-active .flatpickr-current-month input.cur-year,
.tje-light-theme-active .flatpickr-day,
.tje-light-theme-active .flatpickr-time input,
.tje-light-theme-active .flatpickr-time .flatpickr-am-pm {
    color: #172033;
}

.tje-theme-light .is-positive {
    color: #34c759;
}

.tje-filters.is-collapsed .tje-filters-body {
    display: none;
}

.tje-filters:not(.is-collapsed) .tje-filter-toggle-icon {
    transform: rotate(225deg);
}

@media (min-width: 701px) {
    .tje-frontend.has-collapsed-filters {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 12px;
    }

    .tje-filters.is-collapsed {
        display: flex;
        align-items: stretch;
        justify-content: stretch;
        padding: 6px;
    }

    .tje-filters.is-collapsed .tje-filter-toggle {
        flex: 1;
        min-height: 260px;
        width: 100%;
        height: auto;
        padding: 12px 6px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .tje-filters.is-collapsed .tje-filter-toggle-copy,
    .tje-filters.is-collapsed .tje-filter-toggle-action {
        display: grid;
    }

    .tje-filters.is-collapsed .tje-filter-toggle-copy {
        justify-items: center;
        gap: 2px;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: rotate(180deg);
    }

    .tje-filters.is-collapsed .tje-filter-toggle-title {
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    .tje-filters.is-collapsed .tje-filter-toggle-summary {
        display: none;
    }

    .tje-filters.is-collapsed .tje-filter-toggle-action {
        display: none;
    }

    .tje-filters.is-collapsed .tje-filter-toggle-icon {
        margin: 0;
        transform: rotate(315deg);
    }
}

@media (max-width: 700px) {
    .tje-frontend {
        grid-template-columns: 1fr;
        width: calc(100vw - 24px);
    }

    .tje-dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .tje-theme-switcher {
        width: 100%;
    }

    .tje-filters {
        position: static;
    }

    .tje-filters.is-collapsed .tje-filter-toggle {
        justify-content: space-between;
        width: 100%;
        height: auto;
        padding: 14px 16px;
        gap: 16px;
    }

    .tje-filters.is-collapsed .tje-filter-toggle-copy {
        display: grid;
    }

    .tje-filters.is-collapsed .tje-filter-toggle-action {
        display: inline-block;
    }

    .tje-filters.is-collapsed .tje-filter-toggle-icon {
        margin-right: 4px;
        transform: rotate(45deg);
    }

    .tje-lightbox-dialog {
        padding: 24px 16px 72px;
    }

    .tje-lightbox-nav {
        bottom: 12px;
        top: auto;
        transform: none;
    }

    .tje-lightbox-prev {
        left: calc(50% - 64px);
    }

    .tje-lightbox-next {
        right: calc(50% - 64px);
    }

    .tje-frontend {
        padding: 16px;
        border-radius: 16px;
    }
}

.is-positive {
    color: #41f28a;
}

.is-negative {
    color: #ff6b6b;
}
