/* =============================================================================
   LPS License Manager — Foundation
   A focused, modern, Bootstrap-compatible framework tuned for this app.
   Provides the design tokens, reset, grid, utilities and components that the
   pages rely on. Loaded first; app chrome & refinements live in css/*.css.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand — a confident, enterprise blue */
    --lm-primary: #2563eb;
    --lm-primary-rgb: 37, 99, 235;
    --lm-primary-hover: #1d4ed8;
    --lm-primary-active: #1e40af;
    --lm-primary-light: #3b82f6;
    --lm-primary-light-rgb: 59, 130, 246;
    --lm-primary-50: #eff6ff;
    --lm-primary-100: #dbeafe;
    --lm-primary-200: #bfdbfe;

    /* Slate neutral scale */
    --lm-white: #ffffff;
    --lm-gray-50: #f8fafc;
    --lm-gray-100: #f1f5f9;
    --lm-gray-200: #e2e8f0;
    --lm-gray-300: #cbd5e1;
    --lm-gray-400: #94a3b8;
    --lm-gray-500: #64748b;
    --lm-gray-600: #475569;
    --lm-gray-700: #334155;
    --lm-gray-800: #1e293b;
    --lm-gray-900: #0f172a;
    --lm-gray-950: #020617;

    /* Semantic */
    --lm-success: #059669; --lm-success-rgb: 5, 150, 105; --lm-success-50: #ecfdf5; --lm-success-100: #d1fae5; --lm-success-700: #047857;
    --lm-warning: #d97706; --lm-warning-rgb: 217, 119, 6; --lm-warning-50: #fffbeb; --lm-warning-100: #fef3c7; --lm-warning-700: #b45309;
    --lm-danger:  #dc2626; --lm-danger-rgb: 220, 38, 38;  --lm-danger-50:  #fef2f2; --lm-danger-100:  #fee2e2; --lm-danger-700:  #b91c1c;
    --lm-info:    #0891b2; --lm-info-rgb: 8, 145, 178;     --lm-info-50:    #ecfeff; --lm-info-100:    #cffafe; --lm-info-700:    #0e7490;
    --lm-secondary: #64748b;

    /* Roles */
    --lm-text: #0f172a;
    --lm-text-body: #334155;
    --lm-text-muted: #64748b;
    --lm-body-bg: #f1f5f9;
    --lm-surface: #ffffff;
    --lm-border: #e2e8f0;
    --lm-border-strong: #cbd5e1;

    /* Layout */
    --lm-navbar-height: 60px;
    --lm-sidebar-width: 250px;
    --lm-sidebar-collapsed-width: 0px;

    /* Radii */
    --lm-radius-sm: 6px;
    --lm-radius: 8px;
    --lm-radius-md: 10px;
    --lm-radius-lg: 12px;
    --lm-radius-xl: 16px;
    --lm-radius-pill: 9999px;

    /* Shadows — slate-tinted for depth */
    --lm-shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
    --lm-shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
    --lm-shadow-md: 0 2px 4px -1px rgba(15, 23, 42, .06), 0 6px 16px -4px rgba(15, 23, 42, .10);
    --lm-shadow-lg: 0 4px 6px -2px rgba(15, 23, 42, .05), 0 12px 28px -6px rgba(15, 23, 42, .12);
    --lm-shadow-xl: 0 10px 20px -6px rgba(15, 23, 42, .10), 0 24px 48px -12px rgba(15, 23, 42, .18);

    /* Focus ring */
    --lm-focus-ring: 0 0 0 3px rgba(var(--lm-primary-rgb), .28);

    /* Transitions */
    --lm-transition: 150ms cubic-bezier(.4, 0, .2, 1);
    --lm-transition-fast: 100ms ease;

    /* Spacing scale (consumed by css/toast.css and app chrome) */
    --lm-spacing-xs: .25rem;
    --lm-spacing-sm: .5rem;
    --lm-spacing-md: 1rem;
    --lm-spacing-lg: 1.5rem;
    --lm-spacing-xl: 2rem;

    /* Monospace */
    --lm-font-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --lm-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* -----------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: var(--lm-font-sans);
    font-size: .9375rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--lm-text-body);
    background-color: var(--lm-body-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--lm-text);
    letter-spacing: -.011em;
}

h1, .h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; }
h2, .h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.018em; }
h3, .h3 { font-size: 1.25rem; }
h4, .h4 { font-size: 1.125rem; }
h5, .h5 { font-size: 1rem; }
h6, .h6 { font-size: .875rem; }

p { margin-top: 0; margin-bottom: 1rem; }

.display-4 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.lead {
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--lm-text-muted);
    line-height: 1.6;
}

small, .small { font-size: .8125rem; }

strong, b { font-weight: 600; }

a {
    color: var(--lm-primary);
    text-decoration: none;
    transition: color var(--lm-transition-fast);
}

a:hover {
    color: var(--lm-primary-hover);
    text-decoration: underline;
}

hr {
    height: 1px;
    margin: 1rem 0;
    border: 0;
    background-color: var(--lm-border);
    opacity: 1;
}

ul, ol { padding-left: 1.5rem; }

code, kbd, samp, pre, .font-monospace {
    font-family: var(--lm-font-mono);
}

code {
    font-size: .85em;
    color: var(--lm-primary-hover);
    background-color: var(--lm-gray-100);
    padding: .12em .38em;
    border-radius: 5px;
    word-wrap: break-word;
    border: 1px solid var(--lm-border);
}

img, svg { vertical-align: middle; }

:focus-visible {
    outline: 2px solid var(--lm-primary);
    outline-offset: 2px;
}

::selection {
    background-color: rgba(var(--lm-primary-rgb), .18);
}

/* -----------------------------------------------------------------------------
   3. Grid
   -------------------------------------------------------------------------- */
.container,
.container-fluid {
    width: 100%;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

.row {
    --lm-gutter-x: 1.5rem;
    --lm-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--lm-gutter-y));
    margin-right: calc(-.5 * var(--lm-gutter-x));
    margin-left: calc(-.5 * var(--lm-gutter-x));
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--lm-gutter-x) * .5);
    padding-left: calc(var(--lm-gutter-x) * .5);
    margin-top: var(--lm-gutter-y);
}

.g-0 { --lm-gutter-x: 0; --lm-gutter-y: 0; }
.g-1 { --lm-gutter-x: .25rem; --lm-gutter-y: .25rem; }
.g-2 { --lm-gutter-x: .5rem; --lm-gutter-y: .5rem; }
.g-3 { --lm-gutter-x: 1rem; --lm-gutter-y: 1rem; }
.g-4 { --lm-gutter-x: 1.5rem; --lm-gutter-y: 1.5rem; }
.g-5 { --lm-gutter-x: 3rem; --lm-gutter-y: 3rem; }

.col { flex: 1 0 0%; }
.col-auto { flex: 0 0 auto; width: auto; }

.col-1  { flex: 0 0 auto; width: 8.33333333%; }
.col-2  { flex: 0 0 auto; width: 16.66666667%; }
.col-3  { flex: 0 0 auto; width: 25%; }
.col-4  { flex: 0 0 auto; width: 33.33333333%; }
.col-5  { flex: 0 0 auto; width: 41.66666667%; }
.col-6  { flex: 0 0 auto; width: 50%; }
.col-7  { flex: 0 0 auto; width: 58.33333333%; }
.col-8  { flex: 0 0 auto; width: 66.66666667%; }
.col-9  { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.33333333%; }
.col-11 { flex: 0 0 auto; width: 91.66666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 576px) {
    .col-sm    { flex: 1 0 0%; }
    .col-sm-auto { flex: 0 0 auto; width: auto; }
    .col-sm-1  { flex: 0 0 auto; width: 8.33333333%; }
    .col-sm-2  { flex: 0 0 auto; width: 16.66666667%; }
    .col-sm-3  { flex: 0 0 auto; width: 25%; }
    .col-sm-4  { flex: 0 0 auto; width: 33.33333333%; }
    .col-sm-5  { flex: 0 0 auto; width: 41.66666667%; }
    .col-sm-6  { flex: 0 0 auto; width: 50%; }
    .col-sm-7  { flex: 0 0 auto; width: 58.33333333%; }
    .col-sm-8  { flex: 0 0 auto; width: 66.66666667%; }
    .col-sm-9  { flex: 0 0 auto; width: 75%; }
    .col-sm-10 { flex: 0 0 auto; width: 83.33333333%; }
    .col-sm-11 { flex: 0 0 auto; width: 91.66666667%; }
    .col-sm-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 768px) {
    .col-md    { flex: 1 0 0%; }
    .col-md-auto { flex: 0 0 auto; width: auto; }
    .col-md-1  { flex: 0 0 auto; width: 8.33333333%; }
    .col-md-2  { flex: 0 0 auto; width: 16.66666667%; }
    .col-md-3  { flex: 0 0 auto; width: 25%; }
    .col-md-4  { flex: 0 0 auto; width: 33.33333333%; }
    .col-md-5  { flex: 0 0 auto; width: 41.66666667%; }
    .col-md-6  { flex: 0 0 auto; width: 50%; }
    .col-md-7  { flex: 0 0 auto; width: 58.33333333%; }
    .col-md-8  { flex: 0 0 auto; width: 66.66666667%; }
    .col-md-9  { flex: 0 0 auto; width: 75%; }
    .col-md-10 { flex: 0 0 auto; width: 83.33333333%; }
    .col-md-11 { flex: 0 0 auto; width: 91.66666667%; }
    .col-md-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 992px) {
    .col-lg    { flex: 1 0 0%; }
    .col-lg-auto { flex: 0 0 auto; width: auto; }
    .col-lg-1  { flex: 0 0 auto; width: 8.33333333%; }
    .col-lg-2  { flex: 0 0 auto; width: 16.66666667%; }
    .col-lg-3  { flex: 0 0 auto; width: 25%; }
    .col-lg-4  { flex: 0 0 auto; width: 33.33333333%; }
    .col-lg-5  { flex: 0 0 auto; width: 41.66666667%; }
    .col-lg-6  { flex: 0 0 auto; width: 50%; }
    .col-lg-7  { flex: 0 0 auto; width: 58.33333333%; }
    .col-lg-8  { flex: 0 0 auto; width: 66.66666667%; }
    .col-lg-9  { flex: 0 0 auto; width: 75%; }
    .col-lg-10 { flex: 0 0 auto; width: 83.33333333%; }
    .col-lg-11 { flex: 0 0 auto; width: 91.66666667%; }
    .col-lg-12 { flex: 0 0 auto; width: 100%; }
}

@media (min-width: 1200px) {
    .col-xl-1  { flex: 0 0 auto; width: 8.33333333%; }
    .col-xl-2  { flex: 0 0 auto; width: 16.66666667%; }
    .col-xl-3  { flex: 0 0 auto; width: 25%; }
    .col-xl-4  { flex: 0 0 auto; width: 33.33333333%; }
    .col-xl-6  { flex: 0 0 auto; width: 50%; }
    .col-xl-8  { flex: 0 0 auto; width: 66.66666667%; }
    .col-xl-12 { flex: 0 0 auto; width: 100%; }
}

/* -----------------------------------------------------------------------------
   4. Components — Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .5rem .9rem;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    color: var(--lm-gray-700);
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: var(--lm-radius-sm);
    transition: color var(--lm-transition-fast), background-color var(--lm-transition-fast), border-color var(--lm-transition-fast), box-shadow var(--lm-transition-fast), transform var(--lm-transition-fast);
}

.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: var(--lm-focus-ring); }
.btn:active { transform: translateY(.5px); }
.btn:disabled,
.btn[disabled] { opacity: .6; cursor: not-allowed; pointer-events: none; }

.btn i, .btn .fas, .btn .far, .btn .fa { font-size: .9em; }

/* Solid variants */
.btn-primary {
    color: #fff;
    background-color: var(--lm-primary);
    border-color: var(--lm-primary);
    box-shadow: 0 1px 2px rgba(var(--lm-primary-rgb), .25);
}
.btn-primary:hover { color: #fff; background-color: var(--lm-primary-hover); border-color: var(--lm-primary-hover); }
.btn-primary:active { background-color: var(--lm-primary-active); border-color: var(--lm-primary-active); }

.btn-secondary {
    color: var(--lm-gray-700);
    background-color: var(--lm-gray-100);
    border-color: var(--lm-gray-200);
}
.btn-secondary:hover { color: var(--lm-gray-900); background-color: var(--lm-gray-200); border-color: var(--lm-gray-300); }

.btn-success { color: #fff; background-color: var(--lm-success); border-color: var(--lm-success); }
.btn-success:hover { color: #fff; background-color: var(--lm-success-700); border-color: var(--lm-success-700); }

.btn-danger { color: #fff; background-color: var(--lm-danger); border-color: var(--lm-danger); }
.btn-danger:hover { color: #fff; background-color: var(--lm-danger-700); border-color: var(--lm-danger-700); }

.btn-warning { color: #fff; background-color: var(--lm-warning); border-color: var(--lm-warning); }
.btn-warning:hover { color: #fff; background-color: var(--lm-warning-700); border-color: var(--lm-warning-700); }

.btn-info { color: #fff; background-color: var(--lm-info); border-color: var(--lm-info); }
.btn-info:hover { color: #fff; background-color: var(--lm-info-700); border-color: var(--lm-info-700); }

.btn-dark { color: #fff; background-color: var(--lm-gray-800); border-color: var(--lm-gray-800); }
.btn-dark:hover { color: #fff; background-color: var(--lm-gray-900); border-color: var(--lm-gray-900); }

.btn-light { color: var(--lm-gray-800); background-color: var(--lm-gray-100); border-color: var(--lm-gray-200); }
.btn-light:hover { background-color: var(--lm-gray-200); }

/* Outline variants */
.btn-outline-primary { color: var(--lm-primary); border-color: var(--lm-border-strong); background-color: #fff; }
.btn-outline-primary:hover { color: #fff; background-color: var(--lm-primary); border-color: var(--lm-primary); }

.btn-outline-secondary { color: var(--lm-gray-600); border-color: var(--lm-border-strong); background-color: #fff; }
.btn-outline-secondary:hover { color: var(--lm-gray-900); background-color: var(--lm-gray-100); border-color: var(--lm-gray-400); }

.btn-outline-success { color: var(--lm-success-700); border-color: #a7f3d0; background-color: #fff; }
.btn-outline-success:hover { color: #fff; background-color: var(--lm-success); border-color: var(--lm-success); }

.btn-outline-danger { color: var(--lm-danger); border-color: #fecaca; background-color: #fff; }
.btn-outline-danger:hover { color: #fff; background-color: var(--lm-danger); border-color: var(--lm-danger); }

.btn-outline-warning { color: var(--lm-warning-700); border-color: #fde68a; background-color: #fff; }
.btn-outline-warning:hover { color: #fff; background-color: var(--lm-warning); border-color: var(--lm-warning); }

.btn-outline-info { color: var(--lm-info-700); border-color: #a5f3fc; background-color: #fff; }
.btn-outline-info:hover { color: #fff; background-color: var(--lm-info); border-color: var(--lm-info); }

.btn-link {
    color: var(--lm-primary);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    padding-left: .35rem;
    padding-right: .35rem;
}
.btn-link:hover { color: var(--lm-primary-hover); text-decoration: underline; }

/* Sizes */
.btn-sm { padding: .3rem .6rem; font-size: .8125rem; border-radius: 5px; gap: .3rem; }
.btn-lg { padding: .65rem 1.15rem; font-size: .95rem; border-radius: var(--lm-radius); }

/* Button groups */
.btn-group { display: inline-flex; vertical-align: middle; }
.btn-group > .btn { border-radius: 0; }
.btn-group > .btn:first-child { border-top-left-radius: var(--lm-radius-sm); border-bottom-left-radius: var(--lm-radius-sm); }
.btn-group > .btn:last-child { border-top-right-radius: var(--lm-radius-sm); border-bottom-right-radius: var(--lm-radius-sm); }
.btn-group > .btn:not(:first-child) { margin-left: -1px; }
.btn-group > .btn:hover { z-index: 1; }
.btn-group-sm > .btn { padding: .3rem .6rem; font-size: .8125rem; }

/* Close button */
.btn-close {
    box-sizing: content-box;
    width: .9em;
    height: .9em;
    padding: .35em;
    color: var(--lm-gray-500);
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748b'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/.9em auto no-repeat;
    border: 0;
    border-radius: var(--lm-radius-sm);
    opacity: .7;
    cursor: pointer;
    transition: var(--lm-transition-fast);
}
.btn-close:hover { opacity: 1; background-color: var(--lm-gray-100); }
.btn-close-white {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    opacity: .8;
}
.btn-close-white:hover { opacity: 1; background-color: rgba(255, 255, 255, .12); }

/* -----------------------------------------------------------------------------
   5. Components — Cards
   -------------------------------------------------------------------------- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--lm-surface);
    background-clip: border-box;
    border: 1px solid var(--lm-border);
    border-radius: var(--lm-radius-lg);
    box-shadow: var(--lm-shadow-sm);
}

.card-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.35rem;
    margin-bottom: 0;
    font-weight: 600;
    color: var(--lm-text);
    background-color: transparent;
    border-bottom: 1px solid var(--lm-border);
}
.card-header:first-child { border-radius: calc(var(--lm-radius-lg) - 1px) calc(var(--lm-radius-lg) - 1px) 0 0; }
.card-header h5, .card-header .card-title { margin-bottom: 0; }

.card-body { flex: 1 1 auto; padding: 1.35rem; }
.card-title { margin-bottom: .6rem; font-weight: 600; color: var(--lm-text); }
.card-text { margin-bottom: 1rem; color: var(--lm-text-body); }
.card-footer {
    padding: 1rem 1.35rem;
    background-color: var(--lm-gray-50);
    border-top: 1px solid var(--lm-border);
    border-radius: 0 0 calc(var(--lm-radius-lg) - 1px) calc(var(--lm-radius-lg) - 1px);
}

/* -----------------------------------------------------------------------------
   6. Components — Badges
   -------------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    padding: .32em .62em;
    font-size: .74rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .01em;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border-radius: var(--lm-radius-pill);
    color: #fff;
}

/* Soft-tinted badge variants — !important to override the .bg-* utilities */
.badge.bg-primary   { color: var(--lm-primary-hover) !important; background-color: var(--lm-primary-50) !important; box-shadow: inset 0 0 0 1px var(--lm-primary-100); }
.badge.bg-secondary { color: var(--lm-gray-600) !important; background-color: var(--lm-gray-100) !important; box-shadow: inset 0 0 0 1px var(--lm-gray-200); }
.badge.bg-success   { color: var(--lm-success-700) !important; background-color: var(--lm-success-50) !important; box-shadow: inset 0 0 0 1px var(--lm-success-100); }
.badge.bg-danger    { color: var(--lm-danger-700) !important; background-color: var(--lm-danger-50) !important; box-shadow: inset 0 0 0 1px var(--lm-danger-100); }
.badge.bg-warning   { color: var(--lm-warning-700) !important; background-color: var(--lm-warning-50) !important; box-shadow: inset 0 0 0 1px var(--lm-warning-100); }
.badge.bg-info      { color: var(--lm-info-700) !important; background-color: var(--lm-info-50) !important; box-shadow: inset 0 0 0 1px var(--lm-info-100); }
.badge.bg-light     { color: var(--lm-gray-700) !important; background-color: var(--lm-gray-100) !important; box-shadow: inset 0 0 0 1px var(--lm-gray-200); }
.badge.bg-dark      { color: #fff !important; background-color: var(--lm-gray-800) !important; }

/* -----------------------------------------------------------------------------
   7. Components — Alerts
   -------------------------------------------------------------------------- */
.alert {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .9rem 1.1rem;
    margin-bottom: 1rem;
    font-size: .9rem;
    border: 1px solid transparent;
    border-radius: var(--lm-radius);
}
.alert > i:first-child { margin-top: .12em; }

.alert-success { color: var(--lm-success-700); background-color: var(--lm-success-50); border-color: var(--lm-success-100); }
.alert-danger  { color: var(--lm-danger-700); background-color: var(--lm-danger-50); border-color: var(--lm-danger-100); }
.alert-warning { color: var(--lm-warning-700); background-color: var(--lm-warning-50); border-color: var(--lm-warning-100); }
.alert-info    { color: var(--lm-info-700); background-color: var(--lm-info-50); border-color: var(--lm-info-100); }

.alert-link { font-weight: 600; color: inherit; text-decoration: underline; }
.alert-dismissible { padding-right: 2.75rem; }
.alert-dismissible .btn-close { position: absolute; top: .55rem; right: .55rem; }

/* -----------------------------------------------------------------------------
   8. Components — Tables
   -------------------------------------------------------------------------- */
.table {
    width: 100%;
    margin-bottom: 0;
    color: var(--lm-text-body);
    border-collapse: collapse;
    vertical-align: middle;
    font-size: .875rem;
}

.table th,
.table td {
    padding: .8rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--lm-border);
}

.table thead th {
    padding-top: .7rem;
    padding-bottom: .7rem;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--lm-text-muted);
    background-color: var(--lm-gray-50);
    border-bottom: 1px solid var(--lm-border);
    text-align: left;
    white-space: nowrap;
}

.table tbody tr { transition: background-color var(--lm-transition-fast); }
.table tbody tr:last-child td { border-bottom: 0; }

.table-hover tbody tr:hover { background-color: var(--lm-gray-50); }
.table-striped tbody tr:nth-of-type(odd) { background-color: var(--lm-gray-50); }
.table-striped tbody tr:hover { background-color: var(--lm-gray-100); }

.table-sm th, .table-sm td { padding: .5rem .7rem; }

.table-light th, .table-light td { background-color: var(--lm-gray-50); }
.table-dark { color: #e2e8f0; background-color: var(--lm-gray-800); }
.table-dark th, .table-dark td { border-color: var(--lm-gray-700); background-color: transparent; }
.table-dark thead th { color: var(--lm-gray-300); background-color: var(--lm-gray-900); }

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* -----------------------------------------------------------------------------
   9. Components — Forms
   -------------------------------------------------------------------------- */
.form-label {
    display: inline-block;
    margin-bottom: .4rem;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--lm-gray-700);
}

.form-control,
.form-select {
    display: block;
    width: 100%;
    padding: .55rem .75rem;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--lm-text);
    background-color: var(--lm-white);
    background-clip: padding-box;
    border: 1px solid var(--lm-border-strong);
    border-radius: var(--lm-radius-sm);
    transition: border-color var(--lm-transition-fast), box-shadow var(--lm-transition-fast);
    appearance: none;
}

.form-control::placeholder { color: var(--lm-gray-400); opacity: 1; }

.form-control:focus,
.form-select:focus {
    color: var(--lm-text);
    background-color: var(--lm-white);
    border-color: var(--lm-primary);
    outline: 0;
    box-shadow: var(--lm-focus-ring);
}

.form-control:disabled,
.form-select:disabled {
    background-color: var(--lm-gray-100);
    color: var(--lm-gray-500);
    cursor: not-allowed;
}

textarea.form-control { min-height: calc(1.5em + 1.1rem + 2px); resize: vertical; }

.form-select {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m4 6 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 16px;
}

.form-text { margin-top: .4rem; font-size: .8125rem; color: var(--lm-text-muted); }

/* Checks & radios */
.form-check {
    display: block;
    min-height: 1.4rem;
    padding-left: 1.75rem;
    margin-bottom: .25rem;
}
.form-check-input {
    float: left;
    margin-left: -1.75rem;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: .18rem;
    vertical-align: top;
    background-color: var(--lm-white);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid var(--lm-border-strong);
    appearance: none;
    cursor: pointer;
    transition: var(--lm-transition-fast);
}
.form-check-input[type="checkbox"] { border-radius: 5px; }
.form-check-input[type="radio"] { border-radius: 50%; }
.form-check-input:focus { border-color: var(--lm-primary); outline: 0; box-shadow: var(--lm-focus-ring); }
.form-check-input:checked { background-color: var(--lm-primary); border-color: var(--lm-primary); }
.form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m3.5 8.5 3 3 6-6'/%3e%3c/svg%3e");
}
.form-check-input:checked[type="radio"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3ccircle cx='8' cy='8' r='3.2' fill='%23fff'/%3e%3c/svg%3e");
}
.form-check-label { color: var(--lm-text-body); cursor: pointer; }

/* Floating labels */
.form-floating { position: relative; }
.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.35rem + 2px);
    padding: 1.5rem .85rem .5rem;
}
.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem .85rem;
    color: var(--lm-gray-500);
    pointer-events: none;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
}
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    transform: scale(.82) translateY(-.5rem) translateX(.15rem);
    opacity: 1;
}
.form-floating > .form-control:focus ~ label { color: var(--lm-primary); }
.form-floating > .form-control::placeholder { color: transparent; }

/* Validation messages (Blazor) */
.validation-message, .text-danger.validation-message { color: var(--lm-danger); font-size: .8125rem; margin-top: .3rem; }
.valid.modified:not([type=checkbox]) { border-color: var(--lm-success); }
.invalid { border-color: var(--lm-danger); }

/* Input groups (basic) */
.input-group { display: flex; align-items: stretch; width: 100%; }
.input-group > .form-control { flex: 1 1 auto; width: 1%; }

/* -----------------------------------------------------------------------------
   10. Components — Modal
   -------------------------------------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}
.modal.show, .modal.d-block { display: block; }

.modal-dialog {
    position: relative;
    width: auto;
    max-width: 520px;
    margin: 1.75rem auto;
    pointer-events: none;
}
.modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 3.5rem); }
.modal-lg { max-width: 820px; }

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: var(--lm-surface);
    background-clip: padding-box;
    border: 1px solid var(--lm-border);
    border-radius: var(--lm-radius-lg);
    outline: 0;
    box-shadow: var(--lm-shadow-xl);
    overflow: hidden;
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid var(--lm-border);
    background-color: var(--lm-surface);
}
.modal-title { margin-bottom: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.4; color: var(--lm-text); }
.modal-body { position: relative; flex: 1 1 auto; padding: 1.5rem; }
.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--lm-border);
    background-color: var(--lm-gray-50);
}

.modal-backdrop { position: fixed; inset: 0; z-index: 1050; width: 100vw; height: 100vh; background-color: rgba(15, 23, 42, .55); }
.modal-backdrop.show { opacity: 1; }

/* -----------------------------------------------------------------------------
   11. Components — Dropdown
   -------------------------------------------------------------------------- */
.dropdown { position: relative; }
.dropdown-toggle { white-space: nowrap; }
.dropdown-toggle::after {
    display: inline-block;
    margin-left: .4em;
    vertical-align: .18em;
    content: "";
    border-top: .32em solid;
    border-right: .32em solid transparent;
    border-bottom: 0;
    border-left: .32em solid transparent;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 11rem;
    padding: .4rem;
    margin: .4rem 0 0;
    font-size: .875rem;
    color: var(--lm-text-body);
    text-align: left;
    list-style: none;
    background-color: var(--lm-surface);
    background-clip: padding-box;
    border: 1px solid var(--lm-border);
    border-radius: var(--lm-radius-md);
    box-shadow: var(--lm-shadow-lg);
}
.dropdown-menu.show { display: block; }
.dropdown-menu-end { right: 0; left: auto; }

/* Works without Bootstrap JS */
.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu { display: block; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    width: 100%;
    padding: .5rem .7rem;
    clear: both;
    font-weight: 500;
    color: var(--lm-text-body);
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    border-radius: var(--lm-radius-sm);
    cursor: pointer;
}
.dropdown-item:hover,
.dropdown-item:focus { color: var(--lm-primary-hover); background-color: var(--lm-primary-50); text-decoration: none; }
.dropdown-header { display: block; padding: .4rem .7rem; font-size: .78rem; font-weight: 600; color: var(--lm-text-muted); white-space: nowrap; }
.dropdown-divider { height: 0; margin: .4rem -.4rem; overflow: hidden; border-top: 1px solid var(--lm-border); }

/* -----------------------------------------------------------------------------
   12. Components — Nav & tabs
   -------------------------------------------------------------------------- */
.nav { display: flex; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; }
.nav-link {
    display: block;
    padding: .5rem .9rem;
    color: var(--lm-text-muted);
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
    transition: color var(--lm-transition-fast);
}
.nav-link:hover { color: var(--lm-text); }
.nav-item { list-style: none; }

.nav-tabs {
    gap: .25rem;
    border-bottom: 1px solid var(--lm-border);
}
.nav-tabs .nav-item { margin-bottom: -1px; }
.nav-tabs .nav-link {
    margin-bottom: -1px;
    padding: .7rem .95rem;
    font-weight: 500;
    color: var(--lm-text-muted);
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
}
.nav-tabs .nav-link:hover { color: var(--lm-text); border-bottom-color: var(--lm-border-strong); }
.nav-tabs .nav-link.active {
    color: var(--lm-primary);
    font-weight: 600;
    background: none;
    border-bottom-color: var(--lm-primary);
}

.tab-content > .tab-pane { display: none; }
.tab-content > .tab-pane.active,
.tab-content > .active { display: block; }

/* -----------------------------------------------------------------------------
   13. Components — Navbar (compat for TopNavigation)
   -------------------------------------------------------------------------- */
.navbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: .5rem 1rem; }
.navbar-brand { display: inline-flex; align-items: center; gap: .5rem; margin-right: 1rem; font-size: 1.15rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.navbar-nav { display: flex; flex-direction: row; align-items: center; padding-left: 0; margin-bottom: 0; list-style: none; }
.navbar-expand-lg { flex-flow: row nowrap; justify-content: flex-start; }
.navbar-dark { background-color: var(--lm-gray-900); }
.navbar-dark .navbar-brand { color: #fff; }
.navbar-dark .navbar-nav .nav-link { color: rgba(255, 255, 255, .82); }
.navbar-dark .navbar-nav .nav-link:hover { color: #fff; }

/* -----------------------------------------------------------------------------
   14. Components — Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    margin: 0;
    font-size: .85rem;
    list-style: none;
}
.breadcrumb-item { display: flex; align-items: center; color: var(--lm-text-muted); }
.breadcrumb-item + .breadcrumb-item { padding-left: .5rem; }
.breadcrumb-item + .breadcrumb-item::before {
    padding-right: .5rem;
    color: var(--lm-gray-400);
    content: "/";
}
.breadcrumb-item.active { color: var(--lm-gray-600); font-weight: 500; }
.breadcrumb-item a { color: var(--lm-text-muted); }
.breadcrumb-item a:hover { color: var(--lm-primary); }

/* -----------------------------------------------------------------------------
   15. Components — Spinner
   -------------------------------------------------------------------------- */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -.125em;
    border: .2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: lm-spin .7s linear infinite;
    color: var(--lm-primary);
}
.spinner-border-sm { width: 1rem; height: 1rem; border-width: .15em; }
@keyframes lm-spin { to { transform: rotate(360deg); } }

/* -----------------------------------------------------------------------------
   16. Components — List group
   -------------------------------------------------------------------------- */
.list-group { display: flex; flex-direction: column; padding-left: 0; margin-bottom: 0; border-radius: var(--lm-radius); }
.list-group-item {
    position: relative;
    display: block;
    padding: .75rem 1rem;
    color: var(--lm-text-body);
    background-color: var(--lm-surface);
    border: 1px solid var(--lm-border);
}
.list-group-item + .list-group-item { border-top-width: 0; }
.list-group-item:first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.list-group-item:last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.list-group-flush { border-radius: 0; }
.list-group-flush > .list-group-item { border-width: 0 0 1px; }
.list-group-flush > .list-group-item:last-child { border-bottom-width: 0; }

/* -----------------------------------------------------------------------------
   17. Components — Toast (Bootstrap-style, minimal)
   -------------------------------------------------------------------------- */
.toast {
    width: 350px;
    max-width: 100%;
    background-color: var(--lm-surface);
    border: 1px solid var(--lm-border);
    border-radius: var(--lm-radius);
    box-shadow: var(--lm-shadow-lg);
}
.toast-body { padding: .85rem 1rem; }

/* -----------------------------------------------------------------------------
   18. Utilities — Display
   -------------------------------------------------------------------------- */
.d-none { display: none !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }

@media (min-width: 576px) {
    .d-sm-none { display: none !important; }
    .d-sm-inline { display: inline !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }
}
@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-inline { display: inline !important; }
    .d-md-inline-block { display: inline-block !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
}
@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-inline { display: inline !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }
}

/* Flex */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-fill { flex: 1 1 auto !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.align-self-center { align-self: center !important; }
.align-self-start { align-self: flex-start !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }

/* Gap */
.gap-0 { gap: 0 !important; }
.gap-1 { gap: .25rem !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

/* -----------------------------------------------------------------------------
   19. Utilities — Spacing
   -------------------------------------------------------------------------- */
.m-0 { margin: 0 !important; }
.m-1 { margin: .25rem !important; }
.m-2 { margin: .5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }
.m-auto { margin: auto !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .25rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-auto { margin-top: auto !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .25rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-auto { margin-bottom: auto !important; }

.ms-0 { margin-left: 0 !important; }
.ms-1 { margin-left: .25rem !important; }
.ms-2 { margin-left: .5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-auto { margin-left: auto !important; }

.me-0 { margin-right: 0 !important; }
.me-1 { margin-right: .25rem !important; }
.me-2 { margin-right: .5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-4 { margin-right: 1.5rem !important; }
.me-auto { margin-right: auto !important; }

.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: .25rem !important; margin-right: .25rem !important; }
.mx-2 { margin-left: .5rem !important; margin-right: .5rem !important; }
.mx-3 { margin-left: 1rem !important; margin-right: 1rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: .25rem !important; margin-bottom: .25rem !important; }
.my-2 { margin-top: .5rem !important; margin-bottom: .5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: .25rem !important; }
.p-2 { padding: .5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: .25rem !important; }
.pt-2 { padding-top: .5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: .25rem !important; }
.pb-2 { padding-bottom: .5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }

.ps-0 { padding-left: 0 !important; }
.ps-2 { padding-left: .5rem !important; }
.ps-3 { padding-left: 1rem !important; }

.pe-0 { padding-right: 0 !important; }
.pe-2 { padding-right: .5rem !important; }
.pe-3 { padding-right: 1rem !important; }

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: .25rem !important; padding-right: .25rem !important; }
.px-2 { padding-left: .5rem !important; padding-right: .5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: .25rem !important; padding-bottom: .25rem !important; }
.py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* -----------------------------------------------------------------------------
   20. Utilities — Sizing & position
   -------------------------------------------------------------------------- */
.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }
.mw-100 { max-width: 100% !important; }
.h-100 { height: 100% !important; }
.h-auto { height: auto !important; }
.mh-100 { max-height: 100% !important; }
.min-vh-100 { min-height: 100vh !important; }
.vh-100 { height: 100vh !important; }

.position-static { position: static !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }
.fixed-top { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; }
.fixed-bottom { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1030; }
.sticky-top { position: sticky; top: 0; z-index: 1020; }
.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }

/* -----------------------------------------------------------------------------
   21. Utilities — Text
   -------------------------------------------------------------------------- */
.text-start { text-align: left !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-nowrap { white-space: nowrap !important; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }
.text-decoration-none { text-decoration: none !important; }
.text-break { word-wrap: break-word !important; word-break: break-word !important; }

.fw-normal { font-weight: 400 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }
.fst-italic { font-style: italic !important; }
.font-monospace { font-family: var(--lm-font-mono) !important; }
.lh-1 { line-height: 1 !important; }

.text-muted { color: var(--lm-text-muted) !important; }
.text-primary { color: var(--lm-primary) !important; }
.text-secondary { color: var(--lm-gray-500) !important; }
.text-success { color: var(--lm-success) !important; }
.text-danger { color: var(--lm-danger) !important; }
.text-warning { color: var(--lm-warning) !important; }
.text-info { color: var(--lm-info) !important; }
.text-light { color: var(--lm-gray-100) !important; }
.text-dark { color: var(--lm-gray-800) !important; }
.text-white { color: #fff !important; }
.text-body { color: var(--lm-text-body) !important; }
.text-reset { color: inherit !important; }

/* -----------------------------------------------------------------------------
   22. Utilities — Background, border, shadow, misc
   -------------------------------------------------------------------------- */
.bg-primary { background-color: var(--lm-primary) !important; }
.bg-secondary { background-color: var(--lm-gray-500) !important; }
.bg-success { background-color: var(--lm-success) !important; }
.bg-danger { background-color: var(--lm-danger) !important; }
.bg-warning { background-color: var(--lm-warning) !important; }
.bg-info { background-color: var(--lm-info) !important; }
.bg-light { background-color: var(--lm-gray-50) !important; }
.bg-dark { background-color: var(--lm-gray-900) !important; }
.bg-white { background-color: #fff !important; }
.bg-body { background-color: var(--lm-body-bg) !important; }
.bg-transparent { background-color: transparent !important; }

.border { border: 1px solid var(--lm-border) !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid var(--lm-border) !important; }
.border-bottom { border-bottom: 1px solid var(--lm-border) !important; }
.border-primary { border-color: var(--lm-primary) !important; }

.rounded { border-radius: var(--lm-radius) !important; }
.rounded-0 { border-radius: 0 !important; }
.rounded-1 { border-radius: var(--lm-radius-sm) !important; }
.rounded-2 { border-radius: var(--lm-radius) !important; }
.rounded-3 { border-radius: var(--lm-radius-lg) !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: var(--lm-radius-pill) !important; }

.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: var(--lm-shadow-sm) !important; }
.shadow { box-shadow: var(--lm-shadow-md) !important; }
.shadow-lg { box-shadow: var(--lm-shadow-lg) !important; }

.opacity-50 { opacity: .5 !important; }
.opacity-75 { opacity: .75 !important; }
.overflow-auto { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.rounded-top { border-top-left-radius: var(--lm-radius) !important; border-top-right-radius: var(--lm-radius) !important; }

.list-unstyled { padding-left: 0; list-style: none; }
.list-inline { padding-left: 0; list-style: none; }
.list-inline-item { display: inline-block; }

/* -----------------------------------------------------------------------------
   23. Accessibility helpers
   -------------------------------------------------------------------------- */
.visually-hidden,
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
