/* The root size is declared as a token, not as font-size: ldata-tokens.css
   sets html { font-size: calc(var(--ld-root-font) * var(--ld-seed-text)) }
   so the accessibility text-size choice scales it (14px → 16.1px at 1.15). */
html {
  --ld-root-font: 14px;
}

@media (min-width: 768px) {
  html {
    --ld-root-font: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ===== MainProject-like darker borders =====
   Goal: avoid bright/white frames around every bordered element in the dark UI.
   We apply a darker "line" color to generic borders, and then re-allow semantic colors. */

/* --ui-* is the OVERRIDE layer and is left unset: --ld-page-bg is defined as
   var(--ui-bg, color-mix(seed 2%, <floor>)), so pinning it here suppressed The
   Brand Reach Rule's 2% tint while the shell resolved it — a measured split of
   rgb(217,224,233) against rgb(213,222,232) on the light floor. The appearance
   panel still overrides --ui-bg / --ui-brand when a user chooses one. */
html[data-theme="gray"],
html[data-theme="black"] {
}

html[data-theme="light"] {
}

/* Generic borders (Tailwind width utilities do not set color) */
.border,
.border-t,
.border-b,
.border-l,
.border-r,
.border-s,
.border-e {
  border-color: var(--ui-line) !important;
}

/* Keep explicit semantic colors working */
.border-transparent { border-color: transparent !important; }
.border-brand { border-color: rgb(59 130 246 / var(--tw-border-opacity, 1)) !important; }
.border-red-500 { border-color: rgb(239 68 68 / var(--tw-border-opacity, 1)) !important; }
.border-red-600 { border-color: rgb(220 38 38 / var(--tw-border-opacity, 1)) !important; }
.border-amber-500 { border-color: rgb(245 158 11 / var(--tw-border-opacity, 1)) !important; }
.border-emerald-500 { border-color: rgb(16 185 129 / var(--tw-border-opacity, 1)) !important; }
.border-sky-600 { border-color: rgb(2 132 199 / var(--tw-border-opacity, 1)) !important; }
.border-indigo-500\/70 { border-color: rgba(99, 102, 241, 0.7) !important; }

/* Themed select controls
   Keep native dropdowns readable across the app, especially on dark themes. */
html[data-theme="gray"],
html[data-theme="black"],
html[data-theme="light"] {
  --ui-select-bg: color-mix(in srgb, var(--ui-card, rgba(51, 65, 85, 0.82)) 84%, var(--ui-bg, #0f172a) 16%);
  --ui-select-menu-bg: color-mix(in srgb, var(--ui-card, rgba(51, 65, 85, 0.88)) 90%, var(--ui-bg, #0f172a) 10%);
  --ui-select-border: color-mix(in srgb, currentColor 16%, transparent);
  --ui-select-text: #f8fafc;
  --ui-select-accent: color-mix(in srgb, var(--ui-brand, #3b82f6) 16%, var(--ui-card, rgba(51, 65, 85, 0.88)) 84%);
}

html[data-theme="black"] {
  --ui-select-bg: color-mix(in srgb, #000 38%, var(--ui-card, rgba(17, 17, 17, 0.92)) 62%);
  --ui-select-menu-bg: color-mix(in srgb, #000 52%, var(--ui-card, rgba(17, 17, 17, 0.95)) 48%);
  --ui-select-border: rgba(148, 163, 184, 0.24);
  --ui-select-text: #f8fafc;
  --ui-select-accent: color-mix(in srgb, var(--ui-brand, #3b82f6) 18%, #111827 82%);
}

html[data-theme="light"] {
  --ui-select-bg: #ffffff;
  --ui-select-menu-bg: #ffffff;
  --ui-select-border: #aab7b8;
  --ui-select-text: #16191f;
  --ui-select-accent: #e8f0fe;
}

select {
  background-color: var(--ui-select-bg);
  color: var(--ui-select-text);
  border-color: var(--ui-select-border);
}

html[data-theme="gray"] select,
html[data-theme="black"] select {
  color-scheme: dark;
}

html[data-theme="light"] select {
  color-scheme: light;
}

select option,
select optgroup {
  background-color: var(--ui-select-menu-bg);
  color: var(--ui-select-text);
}

select option:checked,
select option:hover,
select option:focus {
  background: var(--ui-select-accent);
  color: var(--ui-select-text);
}
/* ===== Application Styles (merged from ldata.site.css) ===== */

/* ==== One-time page-transition suppression (Send only) ==== */
/* When html has .no-animate, disable animate.css and any CSS transitions */
html.no-animate .animate__animated {
    animation: none !important;
}

html.no-animate *,
html.no-animate *::before,
html.no-animate *::after {
    transition: none !important;
}
/* Hide any page loader on this one load */
html.no-animate .page-loader {
    display: none !important;
    animation: none !important;
}
/* Stop shimmer animation as well */
html.no-animate .loader-shimmer > span {
    animation: none !important;
}

/* Prevent layout shifts when vertical scrollbar appears/disappears between pages */
html {
    scrollbar-gutter: stable;
}

/* ===== Tooltips ===== */
.tooltip-parent {
    position: relative;
}

.tooltip {
    display: none;
    white-space: nowrap;
    border-radius: .375rem;
    background: #1e293b;
    color: #f1f5f9;
    font-size: .75rem;
    padding: .25rem .5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);
    z-index: 3500;
    pointer-events: none;
}

.tooltip-local {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%) translateY(8px);
}

.tooltip-fixed-side {
    position: fixed;
    transform: translateY(-50%);
}

.tooltip-parent:hover .tooltip,
.tooltip-parent:focus-within .tooltip {
    display: block;
}

body.hide-tooltips .tooltip {
    display: none !important;
}

.tooltip-parent[aria-expanded="true"] .tooltip {
    display: none !important;
}

/* ===== Sidebar flyouts (scoped!) ===== */
/* ⛔️ היה כאן: .submenu { position: fixed; ... } – זה דרס תתי-תפריטים סטטיים.
   ✅ במקום זאת, נרכז את הסטייל לפליי-אאוטים בלבד. */
aside[data-sidebar="main"] .docker-flyout {
    position: fixed;
    z-index: 4000;
    width: 11rem;
    border-radius: .75rem;
    background: #334155;
    color: #e5e7eb;
    border: 1px solid rgba(71,85,105,.6);
    box-shadow: 0 10px 25px rgba(0,0,0,.35);
    padding: .5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, visibility .15s ease, transform .15s ease;
}
/* הצגה ב-hover/focus (אם אין JS) */
[data-menu="docker-group"]:is(:hover, :focus-within) .docker-flyout {
    opacity: 1;
    visibility: visible;
    transform: none;
}

#chat-top-panel {
    z-index: 5000;
}

/* ===== Page Loader (scoped to content area) ===== */
/* Common loader styles */
.page-loader {
    inset: 0;
    z-index: 9999;
    display: none; /* .show => flex */
    align-items: center;
    justify-content: center;
    background: rgba(2,6,23,0.85);
    backdrop-filter: blur(6px);
}
/* Full-screen variant if ever needed */
.page-loader--fixed {
    position: fixed;
}
/* Inset variant: covers only its positioned parent (#content-shell) */
.page-loader--inset {
    position: absolute;
}
/* Visible state */
.page-loader.show {
    display: flex;
}

.loader-shimmer {
    height: 6px;
    width: 14rem;
    overflow: hidden;
    border-radius: 9999px;
    background: rgba(148,163,184,.35);
}

    .loader-shimmer > span {
        display: block;
        height: 100%;
        width: 40%;
        background: currentColor;
        animation: loader-slide 1.2s linear infinite;
    }

@keyframes loader-slide {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(50%);
    }

    100% {
        transform: translateX(300%);
    }
}

/* ===== Restore Tailwind responsive display utilities (shim) ===== */
@media (min-width: 640px) {
    .sm\:block {
        display: block !important;
    }

    .sm\:inline-block {
        display: inline-block !important;
    }

    .sm\:flex {
        display: flex !important;
    }
}

@media (min-width: 768px) {
    .md\:block {
        display: block !important;
    }

    .md\:inline-flex {
        display: inline-flex !important;
    }

    .md\:flex {
        display: flex !important;
    }
}

/* Utilities בטוחים לשימוש מקומי (במקום .hidden) */
.u-hidden {
    display: none !important;
}

/* Hide scrollbar chrome while keeping scrolling enabled (useful on mobile). */
.u-scrollbar-hide {
    scrollbar-width: none; /* Firefox */
}

.u-scrollbar-hide::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.only-md-flex {
    display: none;
}

@media (min-width: 768px) {
    .only-md-flex {
        display: flex !important;
    }
}

/* ===== Table action pill buttons (Edit/Delete) ===== */
.ldata-action-pill {
    text-decoration: none;
}

html[data-theme="light"] .ldata-action-pill {
    background: #ffffff !important;
    color: #16191f !important;
    border-color: #aab7b8 !important;
}

html[data-theme="light"] .ldata-action-pill:hover {
    background: #f2f3f3 !important;
}

html[data-theme="light"] .ldata-action-pill--danger {
    color: #991b1b !important; /* red-800 */
    border-color: rgba(220,38,38,.45) !important; /* red-600-ish */
}

html[data-theme="light"] .ldata-action-pill--danger:hover {
    background: rgba(254,226,226,.85) !important; /* red-100-ish */
}

/* ===== Users forms (Create/Edit/Delete) ===== */
html[data-theme="light"] .ldata-users-form .shadow-soft {
    background: #ffffff !important;
    border-color: #d5dbdb !important;
    color: #16191f !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08) !important;
}

html[data-theme="light"] .ldata-users-form .shadow-soft .border-b {
    border-color: #eaeded !important;
}

html[data-theme="light"] .ldata-users-form .shadow-soft h3 {
    color: #16191f !important;
}

html[data-theme="light"] .ldata-users-form label {
    color: #37475a !important;
}

html[data-theme="light"] .ldata-users-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="light"] .ldata-users-form textarea,
html[data-theme="light"] .ldata-users-form select {
    background: #ffffff !important;
    border-color: #aab7b8 !important;
    color: #16191f !important;
}

html[data-theme="light"] .ldata-users-form input::placeholder,
html[data-theme="light"] .ldata-users-form textarea::placeholder {
    color: #687078 !important;
    opacity: 1 !important;
}

html[data-theme="light"] .ldata-users-form input[readonly],
html[data-theme="light"] .ldata-users-form input[disabled] {
    background: #f2f3f3 !important;
    color: #687078 !important;
}

html[data-theme="light"] .ldata-users-form input[type="checkbox"],
html[data-theme="light"] .ldata-users-form input[type="radio"] {
    accent-color: var(--ui-brand, #2563EB);
}

/* LIGHT: Assigned Customers pills (Main/טלפייר etc.) need stronger contrast */
html[data-theme="light"] .ldata-users-form .ldata-assigned-customer-pill {
    background: rgba(248,250,252,.98) !important;
    border-color: rgba(100,116,139,.65) !important;
    color: #0f172a !important;
}

html[data-theme="light"] .ldata-users-form .ldata-assigned-customer-pill:hover {
    background: rgba(241,245,249,.98) !important;
    border-color: rgba(100,116,139,.80) !important;
}

html[data-theme="light"] .ldata-users-form .ldata-assigned-customer-pill.border-emerald-500 {
    border-color: rgb(16 185 129) !important;
    background: rgba(16,185,129,.14) !important;
    color: rgb(4 120 87) !important;
}

/* Secondary action buttons in forms */
html[data-theme="light"] .ldata-users-form .ldata-btn-secondary {
    background: #ffffff !important;
    color: #16191f !important;
    border-color: #aab7b8 !important;
}

html[data-theme="light"] .ldata-users-form .ldata-btn-secondary:hover {
    background: #fafafa !important;
}

/* ===== Global Theme Layer (gray / light / black) =====
   Goal:
    - Default is LIGHT (modern bright UI)
   - LIGHT uses a soft white across the site
   - BLACK adds a deeper dark option
   - Icons follow text color (currentColor)
*/

:root {
    /* If UI customization provides --ui-bg, we use it for the gray theme. */
    --app-bg-gray: var(--ui-bg, #0F172A);
    --app-bg-layer-gray:
        radial-gradient(circle at 20% 20%, rgba(30,41,59,.6) 0%, rgba(15,23,42,0) 60%),
        radial-gradient(circle at 80% 10%, rgba(2,6,23,.6) 0%, rgba(15,23,42,0) 70%),
        linear-gradient(to bottom right,
            rgba(15,23,42,1) 0%,
            rgba(30,41,59,1) 50%,
            rgba(15,23,42,1) 100%);
    --app-bg-layer-black:
        radial-gradient(circle at 20% 20%, rgba(0,0,0,.65) 0%, rgba(0,0,0,0) 60%),
        radial-gradient(circle at 80% 10%, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 70%),
        linear-gradient(to bottom right,
            rgba(0,0,0,1) 0%,
            rgba(10,10,10,1) 50%,
            rgba(0,0,0,1) 100%);
    --app-bg-layer-light: none;
}

html[data-theme="gray"] {
    color-scheme: dark;
    --app-bg-layer: none;   /* the shell floor is flat */

    /* Default UI tokens when Directus theme is not provided */
}

html[data-theme="black"] {
    color-scheme: dark;
    --app-bg-layer: none;   /* the shell floor is flat */
}

html[data-theme="light"] {
    color-scheme: light;
    --app-bg-layer: none;
}

/* Background layer */
/* The page floor — one rule, all three themes.
   Black never had a body rule: the gradient was the only thing keeping it off
   Tailwind's bg-slate-900, so a "black" page sat on slate. */
html[data-theme="gray"] body,
html[data-theme="black"] body,
html[data-theme="light"] body {
    background-color: var(--ld-page-bg) !important;
    color: var(--ld-text);
}

/* Roles table header: black in dark themes */
html[data-theme="gray"] table.roles-table thead,

html[data-theme="light"] table.roles-table thead {
    /* Keep consistent with other tables: dark header + light text */
    background-color: rgba(30,41,59,.88) !important; /* slate-800/90-ish */
    color: #f1f5f9;
}

html[data-theme="gray"] .roles-table-shell,

html[data-theme="light"] .roles-table-shell {
    /* LIGHT theme normally remaps bg-slate-* to light surfaces; keep this table dark */
    background-color: rgba(51,65,85,.80) !important; /* slate-700/80 */
    color: #f1f5f9;
}

html[data-theme="gray"] table.roles-table,

html[data-theme="light"] table.roles-table {
    background-color: rgba(30,41,59,.35) !important;
}

/* Ensure Tailwind text utilities stay readable inside Roles table (scoped). */
html[data-theme="light"] .roles-table-shell .text-slate-100,
html[data-theme="light"] .roles-table-shell .text-slate-200,
html[data-theme="light"] .roles-table-shell .text-slate-300,
html[data-theme="light"] .roles-table-shell .text-slate-400,
html[data-theme="light"] .roles-table-shell .text-slate-500 {
    color: #f1f5f9 !important;
}

html[data-theme="gray"] table.roles-table tbody tr,

html[data-theme="gray"] table.roles-table tbody tr:hover,

/* General Settings (Key/Value/Notes tables): follow UI customization tokens */
section[data-page="general-settings"] {
    /* Fallbacks match the previous look if UI variables are missing. */
    --gs-table-bg: var(--ui-card, rgba(0,0,0,.42));
    --gs-table-head-bg: rgba(0,0,0,.78);
    --gs-table-row-bg: transparent;
    --gs-table-row-alt-bg: rgba(0,0,0,.18);
    --gs-table-row-hover-bg: rgba(255,255,255,.05);
    --gs-table-divider: rgba(148,163,184,.28);

    /* Extra surfaces used by Tailwind utility classes within this page (inputs/tabs). */
    --gs-surface-1: var(--ui-card, rgba(0,0,0,.42));
    --gs-surface-2: rgba(0,0,0,.35);
    --gs-input-bg: rgba(0,0,0,.35);
}

/* Dark themes: derive from ui-card / ui-bg when possible. */
/* Gray theme: avoid pure black; match the site's slate/card palette */
html[data-theme="gray"] section[data-page="general-settings"] {
    --gs-table-bg: color-mix(in srgb, var(--ui-card, rgba(51,65,85,0.8)) 95%, transparent);
    /* Similar to Tailwind bg-slate-800/80 feel, but derived from ui tokens */
    --gs-table-head-bg: color-mix(in srgb, var(--ui-card, rgba(51,65,85,0.8)) 78%, var(--ui-bg, #0F172A) 22%);
    --gs-table-row-bg: transparent;
    --gs-table-row-alt-bg: color-mix(in srgb, var(--ui-card, rgba(51,65,85,0.8)) 70%, var(--ui-bg, #0F172A) 30%);
    --gs-table-row-hover-bg: color-mix(in srgb, var(--ui-brand, #3B82F6) 12%, var(--ui-card, rgba(51,65,85,0.8)) 88%);
    --gs-table-divider: color-mix(in srgb, currentColor 16%, transparent);

    --gs-surface-1: color-mix(in srgb, var(--ui-card, rgba(51,65,85,0.8)) 92%, transparent);
    --gs-surface-2: color-mix(in srgb, var(--ui-card, rgba(51,65,85,0.8)) 72%, var(--ui-bg, #0F172A) 28%);
    --gs-input-bg: color-mix(in srgb, var(--ui-card, rgba(51,65,85,0.8)) 84%, var(--ui-bg, #0F172A) 16%);
}

/* Black theme: keep the header darker and more contrasty */
html[data-theme="black"] section[data-page="general-settings"] {
    --gs-table-bg: color-mix(in srgb, var(--ui-card, rgba(51,65,85,0.8)) 88%, #000 12%);
    --gs-table-head-bg: color-mix(in srgb, #000 70%, var(--ui-card, rgba(51,65,85,0.8)) 30%);
    --gs-table-row-bg: transparent;
    --gs-table-row-alt-bg: color-mix(in srgb, #000 35%, var(--ui-card, rgba(51,65,85,0.8)) 65%);
    --gs-table-row-hover-bg: color-mix(in srgb, var(--ui-brand, #3B82F6) 12%, #000 88%);
    --gs-table-divider: color-mix(in srgb, currentColor 16%, transparent);

    --gs-surface-1: color-mix(in srgb, var(--ui-card, rgba(51,65,85,0.8)) 86%, #000 14%);
    --gs-surface-2: color-mix(in srgb, #000 55%, var(--ui-card, rgba(51,65,85,0.8)) 45%);
    --gs-input-bg: color-mix(in srgb, #000 35%, var(--ui-card, rgba(51,65,85,0.8)) 65%);
}

/* Light theme: keep a soft, readable look using ui-card + a tiny brand tint on hover. */
html[data-theme="light"] section[data-page="general-settings"] {
    /* Keep Settings table + tabs consistent with Projects (dark table chrome) even in LIGHT. */
    --gs-table-bg: color-mix(in srgb, var(--ui-card, rgba(51,65,85,0.8)) 92%, transparent);
    --gs-table-head-bg: color-mix(in srgb, var(--ui-card, rgba(51,65,85,0.8)) 78%, var(--ui-bg, #0F172A) 22%);
    --gs-table-row-bg: transparent;
    --gs-table-row-alt-bg: color-mix(in srgb, var(--ui-card, rgba(51,65,85,0.8)) 70%, var(--ui-bg, #0F172A) 30%);
    --gs-table-row-hover-bg: color-mix(in srgb, var(--ui-brand, #3B82F6) 12%, var(--ui-card, rgba(51,65,85,0.8)) 88%);
    --gs-table-divider: color-mix(in srgb, currentColor 16%, transparent);

    --gs-surface-1: color-mix(in srgb, var(--ui-card, rgba(51,65,85,0.8)) 92%, transparent);
    --gs-surface-2: color-mix(in srgb, var(--ui-card, rgba(51,65,85,0.8)) 72%, var(--ui-bg, #0F172A) 28%);

    /* Keep form controls readable (light surface + dark text) in LIGHT. */
    --gs-input-bg: color-mix(in srgb, #0f172a 3%, var(--ui-card, rgba(255,255,255,.92)) 97%);
}

/* LIGHT: General Settings tabs */
html[data-theme="light"] section[data-page="general-settings"] > .max-w-3xl .inline-flex {
    background-color: #ffffff !important;
    border-color: #d5dbdb !important;
}

html[data-theme="light"] section[data-page="general-settings"] > .max-w-3xl .inline-flex a {
    color: #16191f !important;
}

html[data-theme="light"] section[data-page="general-settings"] > .max-w-3xl .inline-flex a i {
    color: currentColor !important;
}

html[data-theme="light"] section[data-page="general-settings"] > .max-w-3xl .inline-flex a:hover {
    background-color: #f2f3f3 !important;
}

/* Active tab */
html[data-theme="light"] section[data-page="general-settings"] > .max-w-3xl .inline-flex a.bg-brand {
    background-color: #e8f0fe !important;
    color: #0073bb !important;
}

section[data-page="general-settings"] table {
    background-color: var(--gs-table-bg) !important;
}

section[data-page="general-settings"] table thead tr {
    background-color: var(--gs-table-head-bg) !important;
    color: inherit;
}

section[data-page="general-settings"] table tbody tr {
    background-color: var(--gs-table-row-bg) !important;
}

section[data-page="general-settings"] table tbody tr:nth-child(even) {
    background-color: var(--gs-table-row-alt-bg) !important;
}

section[data-page="general-settings"] table tbody tr:hover {
    background-color: var(--gs-table-row-hover-bg) !important;
}

/* (Removed) LIGHT-specific overrides that forced Settings table/tabs to a light palette.
   Settings now follows the Projects-style dark table chrome in all themes. */

/* Override Tailwind divide color used on tbody. */
section[data-page="general-settings"] tbody.divide-y > :not([hidden]) ~ :not([hidden]) {
    border-top-color: var(--gs-table-divider) !important;
}

/* Make the surrounding cards match the UI theme as well (prevents bright borders). */
section[data-page="general-settings"] .bg-slate-700\/80 {
    background-color: var(--ui-card, rgba(51,65,85,0.8)) !important;
}

/* These utility classes are heavily used in the Settings tables (header rows, tabs, inputs). */
section[data-page="general-settings"] .bg-slate-800\/80 {
    background-color: var(--gs-table-head-bg) !important;
}

section[data-page="general-settings"] .bg-slate-800\/40 {
    background-color: var(--gs-input-bg) !important;
}

section[data-page="general-settings"] .bg-slate-800\/50 {
    background-color: var(--gs-surface-2) !important;
}

section[data-page="general-settings"] .bg-slate-800\/60 {
    background-color: var(--gs-surface-2) !important;
}

section[data-page="general-settings"] .bg-slate-800\/40:focus,
section[data-page="general-settings"] .bg-slate-800\/40:focus-visible {
    background-color: var(--gs-input-bg) !important;
}

section[data-page="general-settings"] .border-slate-600\/50 {
    border-color: var(--gs-table-divider) !important;
}

section[data-page="general-settings"] .border-slate-500\/60 {
    border-color: var(--gs-table-divider) !important;
}

/* Theme icons inside #theme-toggle */
#theme-toggle [data-theme-icon] {
    display: none;
}
html[data-theme="light"] #theme-toggle [data-theme-icon="light"] { display: block; }
html[data-theme="gray"]  #theme-toggle [data-theme-icon="gray"] { display: block; }
html[data-theme="black"] #theme-toggle [data-theme-icon="black"] { display: block; }

/* Some Tailwind /opacity utility variants are not present in the shipped output.css.
    These are used in Razor for toast banners; define them here to avoid white-on-white. */
.bg-sky-600\/90 { background-color: rgba(2,132,199,.9) !important; }
.bg-amber-600\/90 { background-color: rgba(217,119,6,.9) !important; }
.bg-amber-700\/40 { background-color: rgba(180,83,9,.4) !important; }

/* Topbar + Sidebar use the same Tailwind classes (bg-slate-700, borders, etc).
   Theme-specific palette mapping is handled below via the utility overrides. */

/* Common Tailwind utility overrides for LIGHT — AWS-inspired clean surfaces */
html[data-theme="light"] .hover\:bg-slate-600:hover { background-color: #e9ebed !important; }

/* ===== Chrome emphasis (LIGHT) =====
   AWS-inspired: dark topbar + clean light sidebar. */
html[data-theme="light"] header[data-topbar] {
    background-color: #232f3e !important;
    background-image: none !important;
    border-bottom-color: #1a242f !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}

/* Keep topbar text/icons white in LIGHT (topbar stays dark) */
html[data-theme="light"] header[data-topbar] .text-slate-100,
html[data-theme="light"] header[data-topbar] .text-slate-200,
html[data-theme="light"] header[data-topbar] .text-slate-200\/90,
html[data-theme="light"] header[data-topbar] .text-slate-300 {
    color: #f1f5f9 !important;
}

html[data-theme="light"] header[data-topbar] .border-slate-500\/60 {
    border-color: rgba(148,163,184,.35) !important;
}

html[data-theme="light"] header[data-topbar] .hover\:bg-slate-600:hover {
    background-color: rgba(255,255,255,.12) !important;
}

html[data-theme="light"] header[data-topbar] .bg-slate-700\/40 {
    background-color: rgba(255,255,255,.08) !important;
}

html[data-theme="light"] header[data-topbar] .hover\:bg-slate-600\/80:hover {
    background-color: rgba(255,255,255,.15) !important;
}

/* Topbar dropdown panels stay dark in LIGHT */
html[data-theme="light"] header[data-topbar] #lang-panel,
html[data-theme="light"] header[data-topbar] #user-panel {
    background-color: #232f3e !important;
    border-color: rgba(255,255,255,.15) !important;
    color: #f1f5f9 !important;
}

html[data-theme="light"] header[data-topbar] #lang-panel .hover\:bg-slate-600:hover,
html[data-theme="light"] header[data-topbar] #user-panel .hover\:bg-slate-600:hover,
html[data-theme="light"] header[data-topbar] #lang-panel button:hover,
html[data-theme="light"] header[data-topbar] #user-panel a:hover {
    background-color: rgba(255,255,255,.1) !important;
}

html[data-theme="light"] header[data-topbar] #user-panel .text-slate-300 {
    color: #aab7b8 !important;
}

html[data-theme="light"] aside[data-sidebar="main"] {
    background-color: var(--ld-card-bg) !important;
    background-image: none !important;
    border-right-color: #d5dbdb !important;
    box-shadow: 1px 0 3px rgba(0,0,0,.08);
}

/* Make sidebar link hover/active feel crisp in LIGHT */
aside[data-sidebar="main"] .submenu a,
aside[data-sidebar="main"] .submenu button {
    position: relative;
}

html[data-theme="light"] aside[data-sidebar="main"] .submenu a:hover,
html[data-theme="light"] aside[data-sidebar="main"] .submenu button:hover {
    background-color: #d9e0e9 !important;
}

html[data-theme="light"] aside[data-sidebar="main"] .submenu a.bg-slate-600 {
    background-color: #e8f0fe !important;
    border: 1px solid #c2d6f2 !important;
    color: #0073bb !important;
}

html[data-theme="light"] aside[data-sidebar="main"] .submenu a.bg-slate-600::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 9999px;
    background: #0073bb;
}

/* Slightly emphasize open groups */
html[data-theme="light"] aside[data-sidebar="main"] details[open] > summary {
    background-color: #d9e0e9 !important;
}

html[data-theme="light"] aside[data-sidebar="main"] details[open] > summary i {
    color: #0073bb !important;
}

/* In LIGHT theme, topbar stays dark so keep white text there.
   Sidebar uses dark text on white background. */
html[data-theme="light"] aside[data-sidebar="main"] .text-white {
    color: #16191f !important;
}

/* Topbar clock: keep light since topbar is dark */
html[data-theme="light"] header[data-topbar] #ldata-topbar-clock {
    color: #f1f5f9 !important;
}

/* Syslog level badges are colored via [data-level] (not via text-slate-*).
   In LIGHT theme the page surfaces become light, so the dark-theme badge palette becomes unreadable.
   Scope to #logsTable so this affects Syslog only. */
html[data-theme="light"] #logsTable [data-level] {
    background: rgba(148,163,184,.22) !important;
    border-color: rgba(100,116,139,.55) !important;
    color: #0f172a !important;
}

html[data-theme="light"] #logsTable [data-level="INFO"],
html[data-theme="light"] #logsTable [data-level="NOTICE"] {
    background: rgba(2,132,199,.12) !important;
    border-color: rgba(2,132,199,.35) !important;
    color: #075985 !important; /* sky-800 */
}

html[data-theme="light"] #logsTable [data-level="DEBUG"] {
    background: rgba(16,185,129,.12) !important;
    border-color: rgba(16,185,129,.35) !important;
    color: #047857 !important; /* emerald-700 */
}

html[data-theme="light"] #logsTable [data-level="WARN"] {
    background: rgba(245,158,11,.12) !important;
    border-color: rgba(245,158,11,.35) !important;
    color: #92400e !important; /* amber-800 */
}

html[data-theme="light"] #logsTable [data-level="ERR"],
html[data-theme="light"] #logsTable [data-level="CRIT"],
html[data-theme="light"] #logsTable [data-level="ALERT"],
html[data-theme="light"] #logsTable [data-level="EMERG"] {
    background: rgba(220,38,38,.10) !important;
    border-color: rgba(220,38,38,.35) !important;
    color: #991b1b !important; /* red-800 */
}

/* Syslog “Quick” range buttons: override page-local dark styles in LIGHT mode. */
html[data-theme=”light”] section[data-page=”general-syslog”] .qr-btn {
    background: #ffffff !important;
    border-color: #aab7b8 !important;
    color: #16191f !important;
}

html[data-theme=”light”] section[data-page=”general-syslog”] .qr-btn:hover {
    background: #f2f3f3 !important;
}

html[data-theme="light"] section[data-page="general-syslog"] .qr-btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--ui-brand, #3B82F6) 55%, transparent) !important;
    outline-offset: 2px;
}

/* In LIGHT theme, most form controls should use a light surface + dark text.
   Many pages use dark-slate utility backgrounds even in LIGHT, which makes
   black placeholders/text hard to read unless we normalize these classes. */
html[data-theme="light"] input.bg-slate-800\/40:not([type="checkbox"]):not([type="radio"]),
html[data-theme="light"] textarea.bg-slate-800\/40,
html[data-theme="light"] select.bg-slate-800\/40,
html[data-theme="light"] input.bg-slate-700\/60:not([type="checkbox"]):not([type="radio"]),
html[data-theme="light"] textarea.bg-slate-700\/60,
html[data-theme="light"] select.bg-slate-700\/60,
html[data-theme="light"] input.bg-slate-800\/60:not([type="checkbox"]):not([type="radio"]),
html[data-theme="light"] textarea.bg-slate-800\/60,
html[data-theme="light"] select.bg-slate-800\/60 {
    background-color: #ffffff !important;
    color: #16191f !important;
    border-color: #aab7b8 !important;
}

/* Checkboxes/radios sometimes use dark-slate bg utilities for DARK theme.
   In LIGHT, keep them readable, while still allowing the checked fill to show. */
html[data-theme="light"] input[type="checkbox"].bg-slate-800\/40,
html[data-theme="light"] input[type="radio"].bg-slate-800\/40,
html[data-theme="light"] input[type="checkbox"].bg-slate-700\/60,
html[data-theme="light"] input[type="radio"].bg-slate-700\/60,
html[data-theme="light"] input[type="checkbox"].bg-slate-800\/60,
html[data-theme="light"] input[type="radio"].bg-slate-800\/60 {
    background-color: rgba(255,255,255,.98) !important;
    border-color: rgba(100,116,139,.65) !important;
}

html[data-theme="light"] input[type="checkbox"].bg-slate-800\/40:checked,
html[data-theme="light"] input[type="radio"].bg-slate-800\/40:checked,
html[data-theme="light"] input[type="checkbox"].bg-slate-700\/60:checked,
html[data-theme="light"] input[type="radio"].bg-slate-700\/60:checked,
html[data-theme="light"] input[type="checkbox"].bg-slate-800\/60:checked,
html[data-theme="light"] input[type="radio"].bg-slate-800\/60:checked {
    background-color: currentColor !important;
    border-color: transparent !important;
}

html[data-theme="light"] input.bg-slate-800\/40::placeholder,
html[data-theme="light"] textarea.bg-slate-800\/40::placeholder,
html[data-theme="light"] input.bg-slate-700\/60::placeholder,
html[data-theme="light"] textarea.bg-slate-700\/60::placeholder,
html[data-theme="light"] input.bg-slate-800\/60::placeholder,
html[data-theme="light"] textarea.bg-slate-800\/60::placeholder {
    color: #687078 !important;
    opacity: 1 !important;
}

/* Placeholders should be black in LIGHT theme */
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder,
html[data-theme="light"] .form-input::placeholder,
html[data-theme="light"] .form-textarea::placeholder,
html[data-theme="light"] input::-webkit-input-placeholder,
html[data-theme="light"] textarea::-webkit-input-placeholder,
html[data-theme="light"] .form-input::-webkit-input-placeholder,
html[data-theme="light"] .form-textarea::-webkit-input-placeholder,
html[data-theme="light"] input::-moz-placeholder,
html[data-theme="light"] textarea::-moz-placeholder,
html[data-theme="light"] .form-input::-moz-placeholder,
html[data-theme="light"] .form-textarea::-moz-placeholder,
html[data-theme="light"] input:-ms-input-placeholder,
html[data-theme="light"] textarea:-ms-input-placeholder,
html[data-theme="light"] .form-input:-ms-input-placeholder,
html[data-theme="light"] .form-textarea:-ms-input-placeholder {
    color: #0f172a !important;
    opacity: 1 !important;
}

html[data-theme="light"] .placeholder-slate-300\/70::placeholder,
html[data-theme="light"] .placeholder-slate-400::placeholder,
html[data-theme="light"] .placeholder-slate-500::placeholder,
html[data-theme="light"] .placeholder-slate-300\/70::-webkit-input-placeholder,
html[data-theme="light"] .placeholder-slate-400::-webkit-input-placeholder,
html[data-theme="light"] .placeholder-slate-500::-webkit-input-placeholder,
html[data-theme="light"] .placeholder-slate-300\/70::-moz-placeholder,
html[data-theme="light"] .placeholder-slate-400::-moz-placeholder,
html[data-theme="light"] .placeholder-slate-500::-moz-placeholder,
html[data-theme="light"] .placeholder-slate-300\/70:-ms-input-placeholder,
html[data-theme="light"] .placeholder-slate-400:-ms-input-placeholder,
html[data-theme="light"] .placeholder-slate-500:-ms-input-placeholder {
    color: #0f172a !important;
    opacity: 1 !important;
}

/* Select text should be black in LIGHT theme (native <select>) */
html[data-theme="light"] select,
html[data-theme="light"] .form-select {
    color: #0f172a !important;
}

html[data-theme="light"] select option,
html[data-theme="light"] .form-select option {
    color: #0f172a !important;
}

/* Syslog filters: the Level/Source "select-like" buttons must remain readable in LIGHT. */
html[data-theme="light"] #levelsButton,
html[data-theme="light"] #sourcesButton {
    background-color: rgba(241,245,249,.92) !important; /* slate-100-ish */
    color: #0f172a !important;
    border-color: rgba(100,116,139,.65) !important;
}

html[data-theme="light"] #levelsButton *,
html[data-theme="light"] #sourcesButton * {
    color: #0f172a !important;
}

/* Syslog Level/Source dropdown menus are intentionally dark even in LIGHT.
   Our global `text-slate-*` remaps would otherwise turn their text dark. */
html[data-theme="light"] #levelsMenu,
html[data-theme="light"] #sourcesMenu {
    color: #f1f5f9 !important;
}

html[data-theme="light"] #levelsMenu .text-slate-100,
html[data-theme="light"] #levelsMenu .text-slate-200,
html[data-theme="light"] #levelsMenu .text-slate-300,
html[data-theme="light"] #levelsMenu .text-slate-400,
html[data-theme="light"] #levelsMenu .text-slate-500,
html[data-theme="light"] #sourcesMenu .text-slate-100,
html[data-theme="light"] #sourcesMenu .text-slate-200,
html[data-theme="light"] #sourcesMenu .text-slate-300,
html[data-theme="light"] #sourcesMenu .text-slate-400,
html[data-theme="light"] #sourcesMenu .text-slate-500 {
    color: #f1f5f9 !important;
}

html[data-theme="light"] #levelsMenu label,
html[data-theme="light"] #levelsMenu button,
html[data-theme="light"] #sourcesMenu label,
html[data-theme="light"] #sourcesMenu button {
    color: #f1f5f9 !important;
}

/* Page header title (text + icon): contrast per theme.
   Needs to come AFTER the LIGHT text-slate-* remaps to win specificity/order. */
html[data-theme="gray"] [data-page-header] [data-page-header-title],
html[data-theme="gray"] [data-page-header] [data-page-header-title] *,

html[data-theme="light"] [data-page-header] [data-page-header-title],
html[data-theme="light"] [data-page-header] [data-page-header-title] * {
    color: #0f172a !important;
}

html[data-theme] [data-page-header] [data-page-header-title] svg {
    fill: currentColor !important;
    stroke: currentColor !important;
}

/* Deeper blacks for BLACK theme (keeps the gray look but darker) */

/* "Not configured" fallback cards (Pages/General/*): the cards themselves are
   .ld-card (token-driven); remap their dark-only Tailwind text utilities onto
   tokens so they stay readable in all three themes. */
.ld-card .text-slate-300 { color: var(--ld-text-secondary); }
.ld-card .text-sky-300 { color: var(--ld-sky); }

/* ══════════════════════════════════════════════════════════════════════════
   LOGICAL SPACING — the RTL half of the shim.

   Every pl-/pr-/ml-/mr- call site is LEFT and RIGHT, so in Hebrew each one
   padded the wrong side. The logical equivalents are absent from this module's
   frozen bundle, so they are declared here and the markup swapped.
   ══════════════════════════════════════════════════════════════════════════ */
.pe-10 { padding-inline-end: 2.5rem; }

/* ══════════════════════════════════════════════════════════════════════════
   THE SLATE / ZINC MAP — the same map the other modules run on.

   The call sites name a colour by its Tailwind shade, and the only correction
   was a light-theme block: the two dark themes were never corrected at all.
   By role rather than hue — 100 value text, 200 body, 300 secondary, 400
   muted, 500 and below dim; 700-800 the card, 600 the surface above it, 900+
   the recess below; every border, ring and divider the one border token.

   Backgrounds move most, deliberately: a bg-slate-900/30 veil DARKENS what it
   covers, which The White-Channel Rule forbids.

   html[data-theme] carries the specificity to replace the light block, which
   is deleted with it.
   ══════════════════════════════════════════════════════════════════════════ */

html[data-theme] .bg-slate-700,
html[data-theme] .bg-slate-700\/40,
html[data-theme] .bg-slate-700\/50,
html[data-theme] .bg-slate-700\/60,
html[data-theme] .bg-slate-700\/70,
html[data-theme] .bg-slate-700\/80,
html[data-theme] .bg-slate-800,
html[data-theme] .bg-slate-800\/40,
html[data-theme] .bg-slate-800\/50,
html[data-theme] .bg-slate-800\/60,
html[data-theme] .bg-slate-800\/80 {
    background-color: var(--ld-card-bg);
}
html[data-theme] .bg-slate-500\/15 {
    background-color: var(--ld-surface-accent);
}
html[data-theme] .bg-slate-600,
html[data-theme] .bg-slate-600\/60 {
    background-color: var(--ld-surface-secondary);
}
html[data-theme] .bg-slate-900,
html[data-theme] .bg-slate-900\/40,
html[data-theme] .bg-slate-900\/60 {
    background-color: var(--ld-surface-subtle);
}
html[data-theme] .border-slate-500\/40,
html[data-theme] .border-slate-500\/60,
html[data-theme] .border-slate-600,
html[data-theme] .border-slate-600\/40,
html[data-theme] .border-slate-600\/50,
html[data-theme] .border-slate-600\/60 {
    border-color: var(--ld-border);
}
html[data-theme] .ring-slate-600\/60 {
    --tw-ring-color: var(--ld-border);
}
html[data-theme] .text-slate-200,
html[data-theme] .text-slate-200\/90,
html[data-theme] .text-slate-50 {
    color: var(--ld-text);
}
html[data-theme] .text-slate-500,
html[data-theme] .text-slate-900 {
    color: var(--ld-text-dim);
}
html[data-theme] .text-slate-400 {
    color: var(--ld-text-muted);
}
html[data-theme] .text-slate-300 {
    color: var(--ld-text-secondary);
}
html[data-theme] .text-slate-100 {
    color: var(--ld-text-value);
}

/* Logical spacing used by the markup; absent from the frozen bundle. */
.ms-1 { margin-inline-start: .25rem; }
/* Project home: use the shared shell palette and explicit layout rather than
   utility classes missing from older sites' compiled Tailwind bundles. */
main#content .home-shell {
    width: 100%;
    max-width: 1600px;
    min-height: 0;
    margin: 0 auto;
    padding: 12px 16px 28px !important;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    isolation: auto;
}
main#content .home-shell::before,
main#content .home-shell::after { display: none; }
main#content .home-content { position: static; }
main#content .home-hero {
    margin-bottom: 18px !important;
    padding: 22px 26px !important;
    border: 1px solid var(--ld-card-border);
    border-radius: var(--ld-radius-xl);
    background: var(--ld-card-bg);
    box-shadow: none;
    backdrop-filter: none;
    text-align: start;
}
main#content .home-hero > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 20px;
}
main#content .home-hero > div > div:first-child {
    max-width: none;
    margin: 0 !important;
    text-align: start !important;
}
main#content .home-hero > div > div:first-child > div:first-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0 0 8px;
    border: 0 !important;
    background: transparent;
    color: var(--ld-text-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
}
main#content .home-hero > div > div:first-child > div:first-child i { color: var(--ld-brand); }
main#content .home-title-text {
    margin: 0 0 6px;
    color: var(--ld-text);
    font-size: calc(var(--ld-interface-size, 12px) * 2) !important;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: none;
}
main#content .home-title-text > span {
    font-size: inherit !important;
    color: var(--ld-text);
    background: none;
    -webkit-text-fill-color: currentColor;
}
main#content .home-hero h1 + div { display: none; }
main#content .home-hero p {
    max-width: none;
    margin: 0 !important;
    color: var(--ld-text-secondary);
    font-size: 13px;
    line-height: 1.65;
}
main#content .home-hero > div > div:last-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 8px 12px;
    border: 1px solid var(--ld-success-border);
    border-radius: var(--ld-radius-full);
    background: var(--ld-success-bg);
    color: var(--ld-success-text);
    font-size: 12px;
    font-weight: 600;
}
main#content .home-hero > div > div:last-child > span:first-child {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: none;
}
main#content .home-content > .grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px !important;
}
main#content .home-card {
    display: block;
    position: relative;
    min-width: 0;
    min-height: 158px;
    padding: 24px 22px 40px !important;
    border: 1px solid var(--ld-card-border);
    border-radius: var(--ld-radius-xl);
    background: var(--ld-card-bg);
    color: var(--ld-text);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .06);
    text-align: start;
    text-decoration: none;
    backdrop-filter: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
main#content .home-card::before,
main#content .home-card::after { display: none; }
main#content .home-card:hover {
    transform: translateY(-2px);
    border-color: var(--ld-brand);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
main#content .home-card:focus-visible {
    outline: 2px solid var(--ld-brand);
    outline-offset: 3px;
}
main#content .home-card-inner { display: block; position: static; height: auto; }
main#content .home-card-inner > span:first-child {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: 16px;
    row-gap: 6px;
}
main#content .home-card-inner > span:first-child > span:first-child {
    display: block;
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0 !important;
}
main#content .home-icon {
    display: flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--card-accent) 28%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--card-accent) 12%, transparent);
    color: var(--card-accent);
    font-size: 22px;
    box-shadow: none;
}
main#content .home-icon i { font-size: calc(var(--ld-interface-size, 12px) * 1.8); }
main#content .home-card-inner > span:first-child > span:first-child > span:last-child,
main#content .home-card-inner > span:first-child > span:nth-child(3) { display: none; }
main#content .home-card-inner > span:first-child > span:nth-child(2) {
    display: block;
    grid-column: 2;
    grid-row: 1;
    color: var(--ld-text);
    font-size: calc(var(--ld-interface-size, 12px) * 1.5) !important;
    font-weight: 700;
    line-height: 1.4;
}
main#content .home-card-inner > span:first-child > span:last-child {
    display: block;
    grid-column: 2;
    grid-row: 2;
    margin: 0 !important;
    color: var(--ld-text-secondary);
    font-size: 13px;
    line-height: 1.6;
    overflow: visible;
    -webkit-line-clamp: unset;
}
main#content .home-card-inner > span:last-child {
    position: absolute;
    inset-inline-end: 18px;
    bottom: 14px;
    display: flex;
    padding: 0;
    border: 0 !important;
}
main#content .home-card-inner > span:last-child > span:first-child { display: none; }
main#content .home-arrow {
    display: flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ld-surface-accent);
    color: var(--ld-text-secondary);
    font-size: 12px;
    opacity: 1;
    transform: none;
    transition: background-color .18s ease, color .18s ease;
}
main#content .home-card:hover .home-arrow,
main#content .home-card:focus-visible .home-arrow { background: var(--ld-brand); color: #fff; }
html[dir="rtl"] main#content .home-arrow i { transform: rotate(180deg); }
@media (max-width: 1050px) {
    main#content .home-content > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    main#content .home-shell { padding: 8px 8px 24px !important; }
    main#content .home-hero { padding: 20px !important; margin-bottom: 14px !important; }
    main#content .home-hero > div { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 14px; }
    main#content .home-hero > div > div:last-child { justify-self: start; }
    main#content .home-title-text { font-size: calc(var(--ld-interface-size, 12px) * 1.85) !important; }
    main#content .home-content > .grid { grid-template-columns: minmax(0, 1fr); gap: 12px !important; }
    main#content .home-card { min-height: 140px; padding: 20px 18px 38px !important; }
    main#content .home-card-inner > span:first-child { column-gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    main#content .home-card,
    main#content .home-arrow { transition: none; }
    main#content .home-card:hover { transform: none; }
}

/* Shared interface typography is intentionally important inside the theme layer.
   Keep the home hierarchy in that same layer, scaling with the user's text size. */
@layer theme {
    main#content .home-title-text {
        font-size: calc(var(--ld-interface-size, 12px) * 2) !important;
        text-align: start !important;
    }
    main#content .home-title-text > span { font-size: inherit !important; }
    main#content .home-card-inner > span:first-child > span:nth-child(2) {
        font-size: calc(var(--ld-interface-size, 12px) * 1.5) !important;
    }
    main#content .home-hero p,
    main#content .home-card-inner > span:first-child > span:last-child {
        font-size: calc(var(--ld-interface-size, 12px) * 1.08) !important;
        text-align: start !important;
    }
    @media (max-width: 600px) {
        main#content .home-title-text { font-size: calc(var(--ld-interface-size, 12px) * 1.85) !important; }
    }
}
