/* ==========================================================================
   TouristicIq — Component styles
   Uses tokens from tokens.css. No hardcoded colors here.
   ========================================================================== */

/* ---------- Layout utilities ---------- */
.tiq-stack        { display: flex; flex-direction: column; gap: var(--tiq-space-6); }
.tiq-stack--tight { gap: var(--tiq-space-3); }
.tiq-stack--loose { gap: var(--tiq-space-8); }

.tiq-row          { display: flex; align-items: center; gap: var(--tiq-space-3); }
.tiq-row--between { display: flex; align-items: center; justify-content: space-between; gap: var(--tiq-space-3); }
.tiq-row--end     { display: flex; align-items: center; justify-content: flex-end; gap: var(--tiq-space-2); }

.tiq-grid-2     { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--tiq-space-5); }
.tiq-grid-3     { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--tiq-space-5); }
.tiq-grid-2-1   { display: grid; grid-template-columns: 2fr 1fr; gap: var(--tiq-space-5); }
@media (max-width: 960px) {
    .tiq-grid-2, .tiq-grid-3, .tiq-grid-2-1 { grid-template-columns: 1fr; }
}

.tiq-text-mono  { font-family: var(--tiq-font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.tiq-text-muted { color: var(--tiq-text-secondary); }
.tiq-text-dim   { color: var(--tiq-text-tertiary); }

/* ==========================================================================
   TiqPageHeader
   ========================================================================== */
.tiq-page-header {
    display: flex;
    flex-direction: column;
    gap: var(--tiq-space-2);
    margin-bottom: var(--tiq-space-6);
    padding-bottom: var(--tiq-space-5);
    border-bottom: 1px solid var(--tiq-border-subtle);
}

/* ── App-bar global loading indicator ────────────────────────────────
   The MudAppBar normally draws a 1 px hairline at its bottom edge. When
   LoadingStateService.IsBusy is true, MainLayout adds .tiq-appbar--loading
   to the AppBar. The bottom edge then thickens to 3 px and a sliding
   gradient races across it, mirroring the bar style of GitHub / YouTube
   tab loaders — visible without stacking a second strip onto the layout. */
.mud-appbar {
    border-bottom: 1px solid var(--tiq-border-subtle);
    position: relative;
}
.tiq-appbar--loading {
    /* `!important` needed because .mud-appbar's static border-bottom also uses
       !important — without it the primary-color border stays visible and stacks
       on top of the loading strip. */
    border-bottom: 3px solid transparent !important;
}
.tiq-appbar--loading::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    overflow: hidden;
    background: var(--tiq-border-subtle);
}
.tiq-appbar--loading::before {
    content: "";
    position: absolute;
    bottom: -3px;
    left: -40%;
    width: 40%;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--mud-palette-primary) 50%,
        transparent 100%
    );
    animation: tiq-appbar-progress 1.4s linear infinite;
    z-index: 1;
}
@keyframes tiq-appbar-progress {
    0%   { left: -40%; }
    100% { left: 100%; }
}
.tiq-page-header__breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--tiq-space-2);
    font-size: var(--tiq-fs-sm);
    color: var(--tiq-text-tertiary);
}
.tiq-page-header__breadcrumb a,
.tiq-page-header__breadcrumb span {
    color: var(--tiq-text-tertiary);
    text-decoration: none;
    transition: color var(--tiq-duration-fast) var(--tiq-ease);
}
.tiq-page-header__breadcrumb a:hover { color: var(--tiq-text-primary); }

.tiq-page-header__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--tiq-space-4);
    flex-wrap: wrap;
}
.tiq-page-header__text {
    display: flex;
    flex-direction: column;
    gap: var(--tiq-space-1);
    min-width: 0;
}
.tiq-page-header__title {
    font-size: var(--tiq-fs-2xl);
    font-weight: var(--tiq-fw-semibold);
    letter-spacing: var(--tiq-ls-tight);
    color: var(--tiq-text-primary);
    margin: 0;
    line-height: var(--tiq-lh-tight);
}
.tiq-page-header__subtitle {
    font-size: var(--tiq-fs-md);
    color: var(--tiq-text-secondary);
    margin: 0;
    line-height: var(--tiq-lh-snug);
    max-width: 72ch;
}
.tiq-page-header__actions {
    display: flex;
    align-items: center;
    gap: var(--tiq-space-2);
    flex-shrink: 0;
}

/* ==========================================================================
   TiqSectionCard — unified surface panel
   ========================================================================== */
.tiq-section {
    background: var(--tiq-bg-surface);
    border: 1px solid var(--tiq-border-subtle);
    border-radius: var(--tiq-radius-lg);
    overflow: hidden;
    transition: border-color var(--tiq-duration-base) var(--tiq-ease),
                box-shadow var(--tiq-duration-base) var(--tiq-ease);
}
.tiq-section + .tiq-section { margin-top: var(--tiq-space-5); }

.tiq-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tiq-space-4);
    padding: var(--tiq-space-4) var(--tiq-space-5);
    border-bottom: 1px solid var(--tiq-border-subtle);
    min-height: 52px;
}
.tiq-section__titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.tiq-section__title {
    font-size: var(--tiq-fs-md);
    font-weight: var(--tiq-fw-semibold);
    letter-spacing: var(--tiq-ls-snug);
    color: var(--tiq-text-primary);
    margin: 0;
    line-height: 1.3;
}
.tiq-section__subtitle {
    font-size: var(--tiq-fs-sm);
    color: var(--tiq-text-secondary);
    margin: 0;
    line-height: 1.3;
}
.tiq-section__actions {
    display: flex;
    align-items: center;
    gap: var(--tiq-space-2);
    flex-shrink: 0;
}
.tiq-section__body {
    padding: var(--tiq-space-5);
}
.tiq-section--flush .tiq-section__body { padding: 0; }
.tiq-section--flush .tiq-section__header { padding: var(--tiq-space-3) var(--tiq-space-5); }

/* ==========================================================================
   TiqKpiCard — metric tile
   ========================================================================== */
.tiq-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--tiq-kpi-min, 220px), 1fr));
    gap: var(--tiq-space-4);
    margin-bottom: var(--tiq-space-6);
}

.tiq-kpi {
    background: var(--tiq-bg-surface);
    border: 1px solid var(--tiq-border-subtle);
    border-radius: var(--tiq-radius-lg);
    padding: var(--tiq-space-4) var(--tiq-space-5);
    display: flex;
    flex-direction: column;
    gap: var(--tiq-space-3);
    transition: border-color var(--tiq-duration-fast) var(--tiq-ease),
                box-shadow var(--tiq-duration-fast) var(--tiq-ease),
                background-color var(--tiq-duration-fast) var(--tiq-ease);
    min-height: 116px;
    position: relative;
}
.tiq-kpi[role="button"] { cursor: pointer; }
.tiq-kpi[role="button"]:hover {
    border-color: var(--tiq-border-default);
    box-shadow: var(--tiq-shadow-sm);
}
.tiq-kpi[role="button"]:active {
    background-color: var(--tiq-bg-hover);
}
.tiq-kpi__header {
    display: flex;
    align-items: center;
    gap: var(--tiq-space-2);
}
.tiq-kpi__icon {
    font-size: 1rem;
    color: var(--tiq-text-tertiary);
    line-height: 1;
}
.tiq-kpi__label {
    font-size: var(--tiq-fs-sm);
    font-weight: var(--tiq-fw-medium);
    color: var(--tiq-text-secondary);
    letter-spacing: var(--tiq-ls-normal);
    line-height: 1;
}
.tiq-kpi__value-row {
    display: flex;
    align-items: baseline;
    gap: var(--tiq-space-2);
}
.tiq-kpi__value {
    font-family: var(--tiq-font-sans);
    font-size: var(--tiq-fs-4xl);
    font-weight: var(--tiq-fw-semibold);
    letter-spacing: var(--tiq-ls-tight);
    line-height: 1;
    color: var(--tiq-text-primary);
    font-variant-numeric: tabular-nums;
}
.tiq-kpi__unit {
    font-size: var(--tiq-fs-md);
    color: var(--tiq-text-tertiary);
    font-weight: var(--tiq-fw-regular);
    font-variant-numeric: tabular-nums;
}
.tiq-kpi__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tiq-space-3);
    margin-top: auto;
    min-height: 20px;
}
.tiq-kpi__delta {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: var(--tiq-fs-sm);
    font-weight: var(--tiq-fw-medium);
    font-variant-numeric: tabular-nums;
}
.tiq-kpi__delta .material-icons { font-size: 0.875rem; }
.tiq-kpi__delta--positive { color: var(--tiq-color-success); }
.tiq-kpi__delta--negative { color: var(--tiq-color-danger); }
.tiq-kpi__delta--neutral  { color: var(--tiq-text-tertiary); }
.tiq-kpi__caption {
    font-size: var(--tiq-fs-sm);
    color: var(--tiq-text-tertiary);
}
.tiq-kpi__spark {
    width: 80px;
    height: 28px;
    margin-left: auto;
}
.tiq-sparkline {
    width: 100%;
    height: 100%;
    display: block;
}

/* ==========================================================================
   TiqStatusChip — semantic state chip (tokenized, 22px height)
   ========================================================================== */
.tiq-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 var(--tiq-space-2);
    height: var(--tiq-control-xs);
    font-size: var(--tiq-fs-xs);
    font-weight: var(--tiq-fw-medium);
    letter-spacing: 0;
    border-radius: var(--tiq-radius-sm);
    border: 1px solid transparent;
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.tiq-chip__icon  { font-size: 0.875rem; line-height: 1; }
.tiq-chip__dot   { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.tiq-chip__label { line-height: 1; }

.tiq-chip--success {
    color: var(--tiq-color-success);
    background: var(--tiq-color-success-subtle);
    border-color: color-mix(in srgb, var(--tiq-color-success) 20%, transparent);
}
.tiq-chip--success .tiq-chip__dot { background: var(--tiq-color-success); }

.tiq-chip--warning {
    color: var(--tiq-color-warning);
    background: var(--tiq-color-warning-subtle);
    border-color: color-mix(in srgb, var(--tiq-color-warning) 20%, transparent);
}
.tiq-chip--warning .tiq-chip__dot { background: var(--tiq-color-warning); }

.tiq-chip--danger {
    color: var(--tiq-color-danger);
    background: var(--tiq-color-danger-subtle);
    border-color: color-mix(in srgb, var(--tiq-color-danger) 20%, transparent);
}
.tiq-chip--danger .tiq-chip__dot { background: var(--tiq-color-danger); }

.tiq-chip--info {
    color: var(--tiq-color-info);
    background: var(--tiq-color-info-subtle);
    border-color: color-mix(in srgb, var(--tiq-color-info) 20%, transparent);
}
.tiq-chip--info .tiq-chip__dot { background: var(--tiq-color-info); }

.tiq-chip--brand {
    color: var(--tiq-text-brand);
    background: var(--tiq-brand-primary-subtle);
    border-color: color-mix(in srgb, var(--tiq-brand-primary) 20%, transparent);
}
.tiq-chip--brand .tiq-chip__dot { background: var(--tiq-brand-primary); }

.tiq-chip--neutral {
    color: var(--tiq-text-secondary);
    background: var(--tiq-bg-sunken);
    border-color: var(--tiq-border-subtle);
}
.tiq-chip--neutral .tiq-chip__dot { background: var(--tiq-text-tertiary); }

/* ==========================================================================
   TiqEmptyState — page & inline empty variants
   ========================================================================== */
.tiq-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--tiq-space-2);
    padding: var(--tiq-space-12) var(--tiq-space-6);
}
.tiq-empty--inline {
    padding: var(--tiq-space-10) var(--tiq-space-4);
}
.tiq-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--tiq-radius-lg);
    background: var(--tiq-brand-primary-subtle);
    color: var(--tiq-text-brand);
    margin-bottom: var(--tiq-space-3);
}
.tiq-empty__icon .material-icons { font-size: 1.375rem; line-height: 1; }
.tiq-empty__title {
    font-size: var(--tiq-fs-md);
    font-weight: var(--tiq-fw-semibold);
    color: var(--tiq-text-primary);
    margin: 0;
    letter-spacing: var(--tiq-ls-snug);
}
.tiq-empty__desc {
    font-size: var(--tiq-fs-base);
    color: var(--tiq-text-secondary);
    margin: 0;
    max-width: 44ch;
    line-height: var(--tiq-lh-snug);
}
.tiq-empty__actions {
    display: flex;
    gap: var(--tiq-space-2);
    margin-top: var(--tiq-space-4);
}

/* ==========================================================================
   TiqThemeToggle
   ========================================================================== */
.tiq-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--tiq-radius-md);
    border: none;
    background: transparent;
    color: var(--tiq-text-secondary);
    cursor: pointer;
    transition: background var(--tiq-duration-fast) var(--tiq-ease), color var(--tiq-duration-fast) var(--tiq-ease);
}
.tiq-theme-toggle:hover {
    background: var(--tiq-bg-hover);
    color: var(--tiq-text-primary);
}
.tiq-theme-toggle .material-icons { font-size: 1.125rem; }

/* ==========================================================================
   Nav brand header & logo
   ========================================================================== */
.drawer-brand-header {
    padding-left: var(--tiq-space-3) !important;
    padding-right: var(--tiq-space-3) !important;
    padding-top: var(--tiq-space-3) !important;
    min-height: var(--tiq-appbar-height) !important;
}
.nav-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--tiq-space-2);
    text-decoration: none;
    width: 100%;
}
.nav-logo {
    height: 56px;
    width: auto;
    max-width: 200px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}
.nav-logo--light { display: none; }
:root[data-theme="light"] .nav-logo--dark  { display: none; }
:root[data-theme="light"] .nav-logo--light { display: block; }

.nav-menu { padding: var(--tiq-space-2) var(--tiq-space-2) !important; }

/* Nav-menu items: centered baseline, rounded, no underline, hover + active state */
.nav-menu .mud-nav-link {
    align-items: center !important;
    line-height: 1.2;
    border-radius: 8px !important;
    margin: 2px var(--tiq-space-2) !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}
.nav-menu .mud-nav-link,
.nav-menu .mud-nav-link:hover,
.nav-menu .mud-nav-link:focus,
.nav-menu .mud-nav-link * {
    text-decoration: none !important;
}
.nav-menu .mud-nav-link:hover {
    background-color: var(--tiq-bg-hover) !important;
}
.nav-menu .mud-nav-link.active {
    background-color: rgba(13, 148, 136, 0.12) !important;
    color: var(--tiq-brand-primary) !important;
    font-weight: var(--tiq-fw-medium) !important;
}
.nav-menu .mud-nav-link.active .mud-nav-link-icon {
    color: var(--tiq-brand-primary) !important;
}

/* Suppress browser focus-ring on Mud inputs — Mud's own fieldset border is enough */
.mud-input-outlined-input:focus,
.mud-input-outlined-input:focus-visible,
.mud-picker input:focus,
.mud-picker input:focus-visible,
.mud-picker .mud-input-slot:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

/* AppBar bottom accent — primary-colored divider, sized to match the loading
   strip so toggling between idle and loading doesn't shift the bar height. */
.mud-appbar {
    border-bottom: 3px solid var(--tiq-brand-primary) !important;
}

/* Drop MudToolBar's default horizontal gutters inside the AppBar — we manage
   left/right spacing on the children themselves (brand block on the left,
   icon-button cluster on the right) so the brand can sit flush with the
   drawer's left edge. */
.mud-appbar .mud-toolbar.mud-toolbar-gutters.mud-toolbar-appbar {
    padding-left: 0.5rem !important;  /* Bootstrap px-2 */
    padding-right: 0.5rem !important;
}

/* Constrain ONLY the MudBlazor main layout — don't lock html/body globally
   because the AuthLayout pages (login / reset / 2fa / legal) need to be able
   to scroll on small viewports if their content is taller than the screen. */
html, body {
    height: 100%;
    margin: 0;
}

.mud-layout {
    height: 100vh;
    height: 100dvh; /* mobile-safe */
    overflow: hidden;
}

/* Main content default padding + own scroll container.
   margin-top puts content below the fixed AppBar; the scroll is internal so
   the scrollbar only spans the content area, not the AppBar. */
.mud-main-content {
    height: calc(100dvh - var(--mud-appbar-height, 56px));
    margin-top:    var(--mud-appbar-height, 56px);
    padding-top:    var(--tiq-space-6) !important;
    padding-bottom: var(--tiq-space-6) !important;
    padding-left:   var(--tiq-space-6) !important;
    padding-right:  var(--tiq-space-6) !important;
    overflow-y: auto;
    overflow-x: hidden;
}
@media (max-width: 720px) {
    .mud-main-content {
        padding-left:   var(--tiq-space-4) !important;
        padding-right:  var(--tiq-space-4) !important;
        padding-bottom: var(--tiq-space-4) !important;
    }
}

/* ============================================================
   Benchmark Overview dashboard
   ============================================================ */

/* 2-column layout: Needs Attention | Market Gap */
.bm-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tiq-space-4);
    margin-bottom: var(--tiq-space-4);
}
@media (max-width: 1100px) {
    .bm-overview-grid { grid-template-columns: 1fr; }
}

/* Market Gap stacked bar */
.market-gap__bar {
    display: flex;
    height: 28px;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--tiq-border-subtle);
}
.market-gap__segment {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: var(--tiq-fs-xs);
    font-weight: var(--tiq-fw-medium);
    min-width: 2px;
    transition: opacity 0.15s ease;
    white-space: nowrap;
}
.market-gap__segment:hover { opacity: 0.82; }
.market-gap__legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tiq-space-3);
    margin-top: var(--tiq-space-3);
    font-size: var(--tiq-fs-xs);
    color: var(--tiq-text-secondary);
}
.market-gap__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.market-gap__swatch {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
}
.market-gap__legend-count {
    color: var(--tiq-text-tertiary);
    font-family: var(--tiq-font-mono);
    font-size: var(--tiq-fs-xs);
}
.market-gap__axis {
    display: flex;
    justify-content: space-between;
    margin-top: var(--tiq-space-2);
    font-size: var(--tiq-fs-xs);
    color: var(--tiq-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Competitive heatmap */
.heatmap { overflow-x: auto; max-width: 100%; }
.heatmap__table {
    border-collapse: collapse;
    width: max-content;
    min-width: 100%;
    font-size: var(--tiq-fs-sm);
}
.heatmap__table th,
.heatmap__table td {
    padding: 6px 12px;
    text-align: center;
    white-space: nowrap;
}
.heatmap__table thead th {
    font-size: var(--tiq-fs-xs);
    font-weight: var(--tiq-fw-medium);
    color: var(--tiq-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--tiq-border-subtle);
    background: var(--tiq-bg-surface);
    padding: 10px 12px;
}
.heatmap__col--sticky {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--tiq-bg-surface);
}
.heatmap__col--hotel,
.heatmap__hotel {
    text-align: left !important;
    font-weight: var(--tiq-fw-medium);
    color: var(--tiq-text-primary);
}
.heatmap__col--code,
.heatmap__code {
    text-align: left !important;
    font-family: var(--tiq-font-mono);
    color: var(--tiq-text-tertiary);
    font-size: var(--tiq-fs-xs);
}
.heatmap__col--board,
.heatmap__board {
    text-align: left !important;
    color: var(--tiq-text-secondary);
    font-size: var(--tiq-fs-xs);
}
.heatmap__month { min-width: 60px; }
.heatmap__cell {
    font-family: var(--tiq-font-mono);
    font-weight: var(--tiq-fw-medium);
    padding: 0 !important;
}
.heatmap__cell-link {
    display: block;
    padding: 6px 12px;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.15s;
}
.heatmap__cell-link:hover { opacity: 0.8; }
.heatmap__cell--good {
    background: rgba(16, 185, 129, 0.18);
    color: var(--tiq-color-success);
}
.heatmap__cell--mid {
    background: rgba(245, 158, 11, 0.18);
    color: var(--tiq-color-warning);
}
.heatmap__cell--bad {
    background: rgba(239, 68, 68, 0.20);
    color: var(--tiq-color-danger);
}
.heatmap__cell--empty {
    color: var(--tiq-text-disabled);
}
.heatmap__cell--empty .heatmap__cell-link {
    cursor: default;
    pointer-events: none;
}
.heatmap__table tbody tr:hover td {
    background-color: var(--tiq-bg-hover);
}
.heatmap__table tbody tr:hover .heatmap__col--sticky {
    background: var(--tiq-bg-hover);
}

/* ==========================================================================
   Nav section headings
   ========================================================================== */
.nav-section-heading {
    display: block !important;
    font-size: var(--tiq-fs-xs) !important;
    font-weight: var(--tiq-fw-semibold) !important;
    color: var(--tiq-text-tertiary) !important;
    letter-spacing: var(--tiq-ls-wide) !important;
    padding: 0 var(--tiq-space-3) !important;
    margin: 0 0 var(--tiq-space-1) !important;
    text-transform: uppercase !important;
}
.nav-section-mt { margin-top: var(--tiq-space-5) !important; }

/* AppBar Title (legacy) */
.appbar-title {
    font-size: var(--tiq-fs-md) !important;
    font-weight: var(--tiq-fw-medium) !important;
    letter-spacing: var(--tiq-ls-normal) !important;
    color: var(--tiq-text-primary);
}

/* AppBar brand (logo next to drawer toggle) */
.appbar-brand {
    display: inline-flex;
    align-items: center;
    margin-left: var(--tiq-space-2);
    text-decoration: none;
    line-height: 1;
}
.appbar-logo {
    height: 40px;
    width: auto;
    max-width: 220px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}
.appbar-logo--light { display: none; }
:root[data-theme="light"] .appbar-logo--dark  { display: none; }
:root[data-theme="light"] .appbar-logo--light { display: block; }

/* Hide fullscreen button on mobile */
@media (max-width: 720px) {
    .appbar-icon-btn--hide-mobile { display: none !important; }
}

/* Drawer toggle — visible only on mobile/tablet. Desktop shows drawer permanently. */
.appbar-icon-btn--mobile-only { display: none !important; }
@media (max-width: 960px) {
    .appbar-icon-btn--mobile-only { display: inline-flex !important; }
}

/* Breadcrumb in AppBar (next to logo, hidden on mobile) */
.appbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--tiq-space-2);
    margin-left: var(--tiq-space-5);
    font-size: var(--tiq-fs-md);
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}
.appbar-breadcrumb-link {
    color: var(--tiq-text-secondary);
    text-decoration: none;
    transition: color var(--tiq-duration-fast) var(--tiq-ease);
}
.appbar-breadcrumb-link:hover {
    color: var(--tiq-text-primary);
}
.appbar-breadcrumb-current {
    color: var(--tiq-text-primary);
    font-weight: var(--tiq-fw-medium);
    overflow: hidden;
    text-overflow: ellipsis;
}
.appbar-breadcrumb-sep {
    color: var(--tiq-text-disabled);
    font-size: 1rem !important;
    line-height: 1;
}
@media (max-width: 960px) {
    .appbar-breadcrumb { display: none; }
}

/* AppBar icon button (reused + normalized) */
.appbar-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--tiq-radius-md);
    border: none;
    background: transparent;
    color: var(--tiq-text-secondary);
    cursor: pointer;
    text-decoration: none;
    margin-left: 2px;
    transition: background var(--tiq-duration-fast) var(--tiq-ease), color var(--tiq-duration-fast) var(--tiq-ease);
}
.appbar-icon-btn:hover {
    background: var(--tiq-bg-hover);
    color: var(--tiq-text-primary);
}
.appbar-icon-btn .material-icons { font-size: 1.125rem; line-height: 1; }

/* ─── Notification bell ────────────────────────────────────────────────
   Bell sits in the top-bar between LanguageSwitcher and ThemeToggle.
   Reuses .appbar-icon-btn for shape/hover so it visually matches the
   sidebar/fullscreen buttons. Badge is a small red pill anchored top-right
   showing unread count (capped at "99+"). */
.bell-trigger { position: relative; }
.bell-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--tiq-color-danger, #DC2626);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--tiq-bg-surface, #fff);
    pointer-events: none;
}

/* Dropdown panel — fixed-width, scrollable when the list gets long.
   Reuses tokens.css spacing so the panel matches the rest of the app. */
.bell-menu__list { padding: 0 !important; }
.bell-panel {
    width: 360px;
    max-width: calc(100vw - 24px);
    background: var(--tiq-bg-surface);
    color: var(--tiq-text-primary);
}
.bell-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--tiq-border-subtle);
}
.bell-panel__title {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tiq-text-tertiary);
}
.bell-panel__mark-all {
    background: transparent; border: none; cursor: pointer;
    font-size: 0.75rem; color: var(--tiq-text-brand, #0D9488);
    padding: 4px 6px; border-radius: 6px;
    transition: background var(--tiq-duration-fast) var(--tiq-ease);
}
.bell-panel__mark-all:hover { background: var(--tiq-brand-primary-subtle); }

.bell-panel__empty {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; padding: 24px 12px;
    color: var(--tiq-text-tertiary);
    font-size: 0.82rem;
}
.bell-panel__empty .material-icons { font-size: 28px; opacity: 0.45; }

.bell-list {
    list-style: none; padding: 0; margin: 0;
    max-height: 420px;
    overflow-y: auto;
}
.bell-list li + li { border-top: 1px solid var(--tiq-border-subtle); }

.bell-item {
    display: flex; align-items: flex-start; gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent; border: none; cursor: pointer;
    text-align: left;
    transition: background var(--tiq-duration-fast) var(--tiq-ease);
}
.bell-item:hover { background: var(--tiq-bg-hover); }
.bell-item--unread { background: color-mix(in srgb, var(--tiq-brand-primary) 4%, transparent); }
.bell-item--unread:hover { background: color-mix(in srgb, var(--tiq-brand-primary) 8%, transparent); }

.bell-item__icon {
    flex: 0 0 28px;
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: var(--tiq-brand-primary-subtle);
    color: var(--tiq-brand-primary-hover);
    font-size: 16px;
}
.bell-item__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.bell-item__title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tiq-text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bell-item--unread .bell-item__title::after {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--tiq-color-danger, #DC2626);
    border-radius: 50%;
    margin-left: 6px;
    vertical-align: middle;
}
.bell-item__msg {
    font-size: 0.76rem;
    color: var(--tiq-text-secondary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bell-item__when {
    font-size: 0.68rem;
    color: var(--tiq-text-tertiary);
    margin-top: 2px;
}

/* Drawer brand & footer refinements */
.drawer-signout-wrap { padding: var(--tiq-space-2); margin-top: auto; }
.drawer-signout-form { margin: 0; }
.drawer-signout-btn {
    display: flex; align-items: center; gap: var(--tiq-space-2);
    width: 100%;
    background: transparent;
    border: none;
    border-radius: var(--tiq-radius-md);
    padding: 6px var(--tiq-space-3);
    color: var(--tiq-text-secondary);
    font-size: var(--tiq-fs-base);
    font-weight: var(--tiq-fw-medium);
    cursor: pointer;
    transition: background var(--tiq-duration-fast) var(--tiq-ease), color var(--tiq-duration-fast) var(--tiq-ease);
}
.drawer-signout-btn:hover { background: var(--tiq-bg-hover); color: var(--tiq-text-primary); }
.drawer-signout-icon { font-size: 1rem; opacity: 0.6; }

.drawer-footer {
    padding: var(--tiq-space-3) var(--tiq-space-3) var(--tiq-space-4);
    border-top: 1px solid var(--tiq-border-subtle);
    font-size: var(--tiq-fs-xs);
    color: var(--tiq-text-tertiary);
    display: flex;
    flex-direction: column;
    gap: var(--tiq-space-1);
}
.drawer-version-row { display: flex; align-items: center; gap: var(--tiq-space-2); }
.drawer-version    { color: var(--tiq-text-tertiary); font-family: var(--tiq-font-mono); }
.drawer-beta {
    background: var(--tiq-brand-primary-subtle);
    color: var(--tiq-text-brand);
    font-size: 0.625rem;
    font-weight: var(--tiq-fw-semibold);
    padding: 1px 6px;
    border-radius: var(--tiq-radius-sm);
    letter-spacing: var(--tiq-ls-wide);
    text-transform: uppercase;
}
.drawer-license-chip {
    font-family: var(--tiq-font-mono);
    font-size: 0.625rem;
    color: var(--tiq-text-secondary);
    padding: 4px var(--tiq-space-2);
    background: var(--tiq-bg-hover);
    border: 1px solid var(--tiq-border-subtle);
    border-radius: var(--tiq-radius-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.drawer-copyright,
.drawer-powered { color: var(--tiq-text-tertiary); }
.drawer-powered { font-size: 0.625rem; }

/* User dropdown — refined */
.nav-user-details { position: relative; }
.nav-user-trigger {
    display: flex;
    align-items: center;
    gap: var(--tiq-space-2);
    padding: 4px var(--tiq-space-2) 4px 4px;
    border-radius: var(--tiq-radius-md);
    cursor: pointer;
    list-style: none;
    transition: background var(--tiq-duration-fast) var(--tiq-ease);
    user-select: none;
}
.nav-user-trigger::-webkit-details-marker { display: none; }
.nav-user-trigger:hover { background: var(--tiq-bg-hover); }
.nav-user-info   { display: flex; flex-direction: column; line-height: 1.1; margin-right: 2px; }
.nav-user-name   { font-size: var(--tiq-fs-sm); font-weight: var(--tiq-fw-medium); color: var(--tiq-text-primary); }
.nav-user-role   { font-size: 0.625rem; color: var(--tiq-text-tertiary); }
.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: var(--tiq-bg-raised);
    border: 1px solid var(--tiq-border-default);
    border-radius: var(--tiq-radius-md);
    box-shadow: var(--tiq-shadow-lg);
    padding: var(--tiq-space-1);
    z-index: var(--tiq-z-popover);
    animation: tiq-dropdown-in var(--tiq-duration-fast) var(--tiq-ease-out) both;
}
@keyframes tiq-dropdown-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.nav-user-dropdown-form { margin: 0; }
.nav-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--tiq-space-2);
    padding: 6px var(--tiq-space-3);
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    border-radius: var(--tiq-radius-sm);
    color: var(--tiq-text-secondary);
    font-size: var(--tiq-fs-base);
    font-family: var(--tiq-font-sans);
    text-decoration: none;
    cursor: pointer;
    transition: background var(--tiq-duration-fast) var(--tiq-ease), color var(--tiq-duration-fast) var(--tiq-ease);
}
.nav-user-dropdown-item:hover {
    background: var(--tiq-bg-hover);
    color: var(--tiq-text-primary);
}
.nav-user-dropdown-icon { font-size: 1rem; opacity: 0.7; }
.nav-user-dropdown-divider {
    height: 1px;
    background: var(--tiq-border-subtle);
    margin: var(--tiq-space-1) 0;
}

/* Language switcher refinement */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    background: var(--tiq-bg-hover);
    border-radius: var(--tiq-radius-md);
    margin-right: var(--tiq-space-2);
}
.lang-btn {
    padding: 2px var(--tiq-space-2);
    font-size: var(--tiq-fs-xs);
    font-weight: var(--tiq-fw-medium);
    border-radius: var(--tiq-radius-sm);
    color: var(--tiq-text-tertiary);
    text-decoration: none;
    letter-spacing: var(--tiq-ls-wide);
    transition: background var(--tiq-duration-fast) var(--tiq-ease), color var(--tiq-duration-fast) var(--tiq-ease);
}
.lang-btn:hover { color: var(--tiq-text-primary); }
.lang-btn--on {
    background: var(--tiq-bg-surface);
    color: var(--tiq-text-primary);
    box-shadow: var(--tiq-shadow-xs);
}
.lang-sep { display: none; }

/* ==========================================================================
   User cell in data tables (avatar + name + username)
   ========================================================================== */
.tiq-user-cell {
    display: flex;
    align-items: center;
    gap: var(--tiq-space-2);
}
.tiq-user-cell__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}
.tiq-user-cell__sub {
    font-size: var(--tiq-fs-sm);
    color: var(--tiq-text-tertiary);
}
.tiq-user-avatar {
    font-size: 0.65rem !important;
    font-weight: var(--tiq-fw-semibold) !important;
    background: var(--tiq-brand-primary) !important;
    color: #FFFFFF !important;
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0;
}

/* ==========================================================================
   Filter bar (used above data tables)
   ========================================================================== */
.tiq-filter-bar {
    display: grid;
    gap: var(--tiq-space-3);
    align-items: center;
    padding: var(--tiq-space-3) var(--tiq-space-4);
    background: var(--tiq-bg-surface);
    border: 1px solid var(--tiq-border-subtle);
    border-radius: var(--tiq-radius-lg);
    margin-bottom: var(--tiq-space-4);
}
.tiq-filter-bar .mud-input-root { margin: 0 !important; }
.tiq-filter-bar--search-and-filters {
    grid-template-columns: 2fr 1fr auto auto;
}
.tiq-filter-bar--single  { grid-template-columns: 1fr auto; }
.tiq-filter-bar--double  { grid-template-columns: 1fr 1fr auto auto; }
.tiq-audit-filter-bar    { grid-template-columns: 1fr 1fr 1fr 1fr 1fr 2fr auto; }
@media (max-width: 1100px) {
    .tiq-audit-filter-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 840px) {
    .tiq-filter-bar--search-and-filters,
    .tiq-filter-bar--double { grid-template-columns: 1fr; }
    .tiq-filter-bar--single { grid-template-columns: 1fr; }
}

/* Column-hover highlight for the Flight-Gap heatmap. JS toggles `.fg-col-hover`
   on all cells sharing the same `data-fg-col` value when any of them is hovered.
   Full-cell subtle gray overlay via inset box-shadow — blends with colored cell
   backgrounds (red / orange / green) instead of replacing them. The date header
   is intentionally excluded (only `tbody` selector) so only the row cells dim. */
tbody .fg-col-hover {
    box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.045);
}

/* ==========================================================================
   Filter grid — outlined filters sitting directly on the page (no MudPaper).
   Uses MudBlazor defaults for sizing.
   Only the resting (non-shrunk) label transform is nudged to vertically
   center it inside the dense outlined field. The .mud-shrink state is NOT
   touched, so MudBlazor's standard float-up animation works normally.
   ========================================================================== */
.tiq-filter-grid .mud-input-label-outlined:not(.mud-shrink) {
    transform: translate(14px, 11px) scale(1);
}

/* MudDateRangePicker ignoriert ShrinkLabel — per CSS dauerhaft in den
   "geschrumpften" Zustand zwingen. Wichtig: der Notch im Border darf NUR
   so breit wie der Label-Text sein, sonst wird der gesamte obere Border
   weggeschnitten. Wir lassen deswegen den span seine natürliche Textbreite
   einnehmen (visibility:hidden) und limitieren die Legend nicht auf 100%. */
.tiq-filter-grid .mud-picker .mud-input-label-outlined {
    transform: translate(14px, -6px) scale(0.75) !important;
}
.tiq-filter-grid .mud-picker fieldset.mud-input-outlined-border > legend {
    max-width: 1000px !important;
    visibility: hidden;
}
.tiq-filter-grid .mud-picker fieldset.mud-input-outlined-border > legend > span {
    display: inline-block;
    padding: 0 5px;
    visibility: hidden;
}

/* Table cell helpers — normalized across pages */
.cell-bold   { font-weight: var(--tiq-fw-semibold); color: var(--tiq-text-primary) !important; }
.cell-muted  { color: var(--tiq-text-tertiary) !important; }
.cell-mono   { font-family: var(--tiq-font-mono); font-variant-numeric: tabular-nums; font-size: var(--tiq-fs-sm); color: var(--tiq-text-primary); }

.table-empty {
    padding: var(--tiq-space-12) var(--tiq-space-6);
    text-align: center;
}

/* Action icon button cluster in tables */
.tiq-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* ==========================================================================
   Tiq Dialog Form — structured form inside MudDialog
   Pattern: stacked sections with headers, each section a grid of fields
   ========================================================================== */
.tiq-dlg {
    display: flex;
    flex-direction: column;
    gap: var(--tiq-space-5);
}
.tiq-dlg__section {
    display: flex;
    flex-direction: column;
    gap: var(--tiq-space-3);
}
.tiq-dlg__row { row-gap: var(--tiq-space-3); }
.tiq-dlg__section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--tiq-space-3);
    padding-bottom: var(--tiq-space-2);
    border-bottom: 1px solid var(--tiq-border-subtle);
}
.tiq-dlg__section-title {
    font-size: var(--tiq-fs-xs);
    font-weight: var(--tiq-fw-semibold);
    letter-spacing: var(--tiq-ls-wide);
    text-transform: uppercase;
    color: var(--tiq-text-tertiary);
    margin: 0;
}
.tiq-dlg__section-meta {
    font-size: var(--tiq-fs-xs);
    color: var(--tiq-text-tertiary);
    font-variant-numeric: tabular-nums;
}
.tiq-dlg__row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--tiq-space-3);
    align-items: start;
}
.tiq-dlg__col-12 { grid-column: span 12; }
.tiq-dlg__col-8  { grid-column: span 8; }
.tiq-dlg__col-6  { grid-column: span 6; }
.tiq-dlg__col-4  { grid-column: span 4; }
.tiq-dlg__col-3  { grid-column: span 3; }
.tiq-dlg__col-2  { grid-column: span 2; }
@media (max-width: 720px) {
    .tiq-dlg__col-8, .tiq-dlg__col-6, .tiq-dlg__col-4, .tiq-dlg__col-3, .tiq-dlg__col-2 { grid-column: span 12; }
}

/* Align controls (Switch, RadioGroup) with baseline of Input row */
.tiq-dlg__control-inline {
    grid-column: span 4;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--tiq-space-3);
    height: var(--tiq-control-lg);
    padding-top: 6px;
}

/* Chip-input pattern (text field + add button + chip list wrapping below) */
.tiq-chip-input {
    display: flex;
    flex-direction: column;
    gap: var(--tiq-space-2);
    grid-column: span 6;
}
.tiq-chip-input__row {
    display: flex;
    align-items: center;
    gap: var(--tiq-space-2);
}
.tiq-chip-input__field { flex: 1; min-width: 0; }
.tiq-chip-input__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 22px;
}

/* Hotels sub-table container inside dialog */
.tiq-dlg__subtable {
    border: 1px solid var(--tiq-border-subtle);
    border-radius: var(--tiq-radius-md);
    overflow: hidden;
    max-height: 240px;
    overflow-y: auto;
}
.tiq-dlg__subtable .mud-table { border-radius: 0 !important; }
.tiq-dlg__subtable .mud-table-body tr:last-child { border-bottom: none !important; }

/* Tighter dialog content in medium dialogs */
.mud-dialog.tiq-dlg-medium .mud-dialog-content {
    padding: var(--tiq-space-5) !important;
}
.mud-dialog.tiq-dlg-medium .mud-dialog-title {
    padding: var(--tiq-space-3) var(--tiq-space-5) !important;
}

/* Compact input sizing inside dialogs — MudBlazor dense mode ~40px */
.tiq-dlg .mud-input-control .mud-input.mud-input-outlined { min-height: var(--tiq-control-lg); }
.tiq-dlg .mud-input-input { font-size: var(--tiq-fs-md) !important; }
.tiq-dlg .mud-input-label { font-size: var(--tiq-fs-md) !important; }
.tiq-dlg .mud-input-helper-text { margin-top: 2px !important; font-size: 0.6875rem !important; line-height: 1.2 !important; }
.tiq-dlg .mud-input-control { margin-top: 0 !important; }

/* Switch label + switch tighter in dialogs */
.tiq-dlg .mud-switch {
    height: var(--tiq-control-lg);
    padding: 0 !important;
    margin: 0 !important;
}
.tiq-dlg .mud-switch-label {
    font-size: var(--tiq-fs-md) !important;
    color: var(--tiq-text-primary);
}

/* Radio group that sits in a form row — align to input baseline */
.tiq-dlg__radio-group {
    display: flex;
    align-items: center;
    gap: var(--tiq-space-4);
    height: var(--tiq-control-lg);
    padding-top: 6px;
}
.tiq-dlg__radio-group .mud-radio { margin-right: 0 !important; }
.tiq-dlg__radio-group .mud-radio .mud-typography { font-size: var(--tiq-fs-md) !important; color: var(--tiq-text-primary); }

/* Dialog title bar with title on left, close button on right */
.tiq-dlg-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tiq-space-3);
    width: 100%;
}
.tiq-dlg-title {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: var(--tiq-fs-xl);
    font-weight: var(--tiq-fw-semibold);
    color: var(--tiq-text-primary);
    letter-spacing: var(--tiq-ls-tight);
    margin: 0;
    line-height: 1.2;
}
.tiq-dlg-title__sep {
    color: var(--tiq-text-tertiary);
    font-weight: var(--tiq-fw-regular);
}
.tiq-dlg-title__sub {
    color: var(--tiq-text-secondary);
    font-weight: var(--tiq-fw-medium);
    font-size: var(--tiq-fs-lg);
}
.tiq-dlg-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--tiq-radius-md);
    border: none;
    background: transparent;
    color: var(--tiq-text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--tiq-duration-fast) var(--tiq-ease), color var(--tiq-duration-fast) var(--tiq-ease);
}
.tiq-dlg-close:hover { background: var(--tiq-bg-hover); color: var(--tiq-text-primary); }
.tiq-dlg-close .material-icons { font-size: 1.25rem; line-height: 1; }

/* Constrain specific dialog size classes */
.mud-dialog-container .mud-dialog.tiq-dlg-medium { max-width: 760px !important; }
.mud-dialog-container .mud-dialog.tiq-dlg-dense  { max-width: 900px !important; }

/* Two sections side-by-side (e.g. Room&Board + Schedule) */
.tiq-dlg__sections-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tiq-space-3);
}
@media (max-width: 720px) {
    .tiq-dlg__sections-row { grid-template-columns: 1fr; }
}

/* Chip list that sits inline on the same row as an input (no extra block below) */
.tiq-dlg__inline-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-height: 32px;
    padding-top: 6px;
}
.mud-dialog-container .mud-dialog.tiq-dlg-small  { max-width: 520px !important; }

/* Vertical center for rows — per user request */
.tiq-dlg__row { align-items: center; }

/* Chip rows inside a section (flows below the row of inputs) */
.tiq-dlg__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tiq-space-4);
    row-gap: 6px;
    margin-top: 2px;
}
.tiq-dlg__chip-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.tiq-dlg__chip-label {
    font-size: var(--tiq-fs-xs);
    color: var(--tiq-text-tertiary);
    font-weight: var(--tiq-fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tiq-ls-wide);
    margin-right: 2px;
}

/* Form pages (NewUser, NewTenant, job edit…) */
.tiq-form-wrap        { max-width: 880px; }
.tiq-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--tiq-space-6);
    row-gap: var(--tiq-space-4);
    align-items: start;
}
.tiq-form-grid-2 > [style*="span 2"],
.tiq-form-grid-2 > .tiq-form-full {
    grid-column: span 2;
}
@media (max-width: 720px) {
    .tiq-form-grid-2 { grid-template-columns: 1fr; }
    .tiq-form-grid-2 > [style*="span 2"],
    .tiq-form-grid-2 > .tiq-form-full { grid-column: span 1; }
}
.tiq-form-section-heading {
    display: block !important;
    color: var(--tiq-text-tertiary) !important;
    letter-spacing: var(--tiq-ls-wide) !important;
    margin-bottom: var(--tiq-space-1);
}
.tiq-form-grid-2--mb { margin-bottom: var(--tiq-space-5); }

/* Dialog section heading — used inside MudDialog */
.dialog-section-heading {
    display: block !important;
    color: var(--tiq-text-tertiary) !important;
    letter-spacing: var(--tiq-ls-wide) !important;
    margin-bottom: var(--tiq-space-2);
    margin-top: var(--tiq-space-1);
}

/* Security row pattern inside edit dialogs */
.edit-user-security-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tiq-space-4);
    padding: var(--tiq-space-2) var(--tiq-space-3);
    background: var(--tiq-bg-hover);
    border: 1px solid var(--tiq-border-subtle);
    border-radius: var(--tiq-radius-md);
}
.edit-user-security-row > div {
    display: flex;
    align-items: center;
    gap: var(--tiq-space-2);
}

/* Section with table inside — pull header padding tight */
.tiq-section--flush .tiq-section__body .mud-table {
    border-radius: 0;
}

/* Legacy .page-header fallback (still used by some pages during migration) */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--tiq-space-4);
    margin-bottom: var(--tiq-space-6);
    flex-wrap: wrap;
}
.page-title {
    font-size: var(--tiq-fs-3xl) !important;
    font-weight: var(--tiq-fw-semibold) !important;
    letter-spacing: var(--tiq-ls-tight) !important;
    color: var(--tiq-text-primary) !important;
    line-height: var(--tiq-lh-tight) !important;
}
.page-subtitle {
    font-size: var(--tiq-fs-md) !important;
    color: var(--tiq-text-secondary) !important;
    letter-spacing: var(--tiq-ls-normal) !important;
}

/* ==========================================================================
   Auth pages — minimalist full-height layout
   Container (login / reset / 2fa / legal) is vertically + horizontally
   centred on the viewport. Brand stays anchored at top, footer follows the
   card so it floats with it on tall viewports.
   ========================================================================== */
.tiq-auth {
    min-height: 100dvh; /* dvh = avoids iOS address-bar jump that 100vh has */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* pull whole stack (brand + card + footer) toward the middle */
    padding: var(--tiq-space-6);
    background: var(--tiq-bg-base);
    background-image:
        radial-gradient(circle at 20% 0%, var(--tiq-brand-primary-subtle) 0%, transparent 50%),
        radial-gradient(circle at 80% 100%, var(--tiq-brand-primary-subtle) 0%, transparent 50%);
    background-attachment: fixed;
}
.tiq-auth__brand {
    display: flex;
    justify-content: center;
    margin-bottom: var(--tiq-space-6);
    flex: 0 0 auto;
}
.tiq-auth__brand-link { display: inline-flex; }

/* Theme-aware logo swap: dark logo on dark theme, light logo on light theme */
.tiq-auth__logo {
    height: 96px;
    width: auto;
    display: block;
    max-width: 85vw;
    object-fit: contain;
}
.tiq-auth__logo--light { display: none; }
:root[data-theme="light"] .tiq-auth__logo--dark  { display: none; }
:root[data-theme="light"] .tiq-auth__logo--light { display: block; }

.tiq-auth__main {
    /* No flex:1 — vertical centring is done by the parent (.tiq-auth) on the
       whole brand+main+footer stack, so the brand pulls down toward the card. */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: var(--tiq-space-8);
}
.tiq-auth__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--tiq-space-2);
    padding-top: var(--tiq-space-2);
    font-size: var(--tiq-fs-sm);
    color: var(--tiq-text-tertiary);
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.tiq-auth__consent {
    color: var(--tiq-text-tertiary);
    font-size: var(--tiq-fs-xs);
    margin: 0;
    line-height: 1.6;
}
.tiq-auth__consent-link,
.tiq-auth__link {
    color: var(--tiq-text-secondary);
    text-decoration: none;
    transition: color var(--tiq-duration-fast) var(--tiq-ease);
}
.tiq-auth__consent-link:hover,
.tiq-auth__link:hover { color: var(--tiq-text-brand); }
.tiq-auth__links {
    display: flex;
    align-items: center;
    gap: var(--tiq-space-2);
    font-size: var(--tiq-fs-xs);
}
.tiq-auth__dot  { color: var(--tiq-text-disabled); }
.tiq-auth__copy {
    font-size: var(--tiq-fs-xs);
    color: var(--tiq-text-disabled);
}

/* Auth form card */
.tiq-auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--tiq-bg-surface);
    border: 1px solid var(--tiq-border-subtle);
    border-radius: var(--tiq-radius-xl);
    padding: var(--tiq-space-8);
    box-shadow: var(--tiq-shadow-lg);
}
.tiq-auth-card__title {
    font-size: var(--tiq-fs-2xl);
    font-weight: var(--tiq-fw-semibold);
    letter-spacing: var(--tiq-ls-tight);
    color: var(--tiq-text-primary);
    margin: 0 0 var(--tiq-space-1);
    line-height: 1.2;
}
.tiq-auth-card__subtitle {
    font-size: var(--tiq-fs-md);
    color: var(--tiq-text-secondary);
    margin: 0 0 var(--tiq-space-6);
}
.tiq-auth-card__centered { text-align: center; }

/* Auth error banner */
.tiq-auth-error {
    display: flex;
    align-items: center;
    gap: var(--tiq-space-2);
    background: var(--tiq-color-danger-subtle);
    border: 1px solid var(--tiq-color-danger-subtle);
    border-radius: var(--tiq-radius-md);
    color: var(--tiq-color-danger);
    font-size: var(--tiq-fs-sm);
    padding: var(--tiq-space-2) var(--tiq-space-3);
    margin-bottom: var(--tiq-space-4);
}
.tiq-auth-error__icon { font-size: 1rem; line-height: 1; }

/* Auth form */
.tiq-auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--tiq-space-4);
}

.tiq-auth-field {
    position: relative;
}
.tiq-auth-field input {
    width: 100%;
    height: 48px;
    background: var(--tiq-bg-sunken);
    border: 1px solid var(--tiq-border-default);
    border-radius: var(--tiq-radius-md);
    color: var(--tiq-text-primary);
    font-size: var(--tiq-fs-md);
    font-family: var(--tiq-font-sans);
    padding: 18px var(--tiq-space-3) 6px;
    outline: none;
    transition: border-color var(--tiq-duration-fast) var(--tiq-ease), box-shadow var(--tiq-duration-fast) var(--tiq-ease);
    box-sizing: border-box;
}
.tiq-auth-field input::placeholder { color: transparent; }
.tiq-auth-field input:hover  { border-color: var(--tiq-border-strong); }
.tiq-auth-field input:focus  {
    border-color: var(--tiq-brand-primary);
    box-shadow: var(--tiq-ring-focus);
}
.tiq-auth-field label {
    position: absolute;
    left: var(--tiq-space-3);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--tiq-fs-md);
    font-family: var(--tiq-font-sans);
    color: var(--tiq-text-tertiary);
    pointer-events: none;
    transition: top var(--tiq-duration-fast) var(--tiq-ease), font-size var(--tiq-duration-fast) var(--tiq-ease), transform var(--tiq-duration-fast) var(--tiq-ease);
}
.tiq-auth-field input:focus + label,
.tiq-auth-field input:not(:placeholder-shown) + label {
    top: 8px;
    transform: none;
    font-size: var(--tiq-fs-xs);
    color: var(--tiq-text-secondary);
}
.tiq-auth-val {
    color: var(--tiq-color-danger);
    font-size: var(--tiq-fs-xs);
    margin-top: 4px;
    padding-left: var(--tiq-space-3);
    display: block;
    font-family: var(--tiq-font-sans);
}

.tiq-auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -4px 0 var(--tiq-space-2);
}
.tiq-auth-check {
    display: flex;
    align-items: center;
    gap: var(--tiq-space-2);
    cursor: pointer;
    font-size: var(--tiq-fs-sm);
    color: var(--tiq-text-secondary);
}
.tiq-auth-check input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--tiq-border-strong);
    border-radius: var(--tiq-radius-xs);
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color var(--tiq-duration-fast) var(--tiq-ease), background var(--tiq-duration-fast) var(--tiq-ease);
}
.tiq-auth-check input[type=checkbox]:checked {
    background: var(--tiq-brand-primary);
    border-color: var(--tiq-brand-primary);
}
.tiq-auth-check input[type=checkbox]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0px;
    width: 5px;
    height: 9px;
    border: 1.5px solid #FFFFFF;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.tiq-auth-link {
    font-size: var(--tiq-fs-sm);
    color: var(--tiq-text-secondary);
    text-decoration: none;
    transition: color var(--tiq-duration-fast) var(--tiq-ease);
}
.tiq-auth-link:hover { color: var(--tiq-text-brand); }

.tiq-auth-btn {
    width: 100%;
    height: 44px;
    background: var(--tiq-brand-primary);
    color: #FFFFFF;
    border: none;
    border-radius: var(--tiq-radius-md);
    font-size: var(--tiq-fs-md);
    font-weight: var(--tiq-fw-medium);
    letter-spacing: var(--tiq-ls-normal);
    font-family: var(--tiq-font-sans);
    cursor: pointer;
    transition: background var(--tiq-duration-fast) var(--tiq-ease), box-shadow var(--tiq-duration-fast) var(--tiq-ease);
    margin-top: var(--tiq-space-2);
}
.tiq-auth-btn:hover  { background: var(--tiq-brand-primary-hover); box-shadow: var(--tiq-shadow-md); }
.tiq-auth-btn:active { background: var(--tiq-brand-primary-darken); box-shadow: var(--tiq-shadow-xs); }
.tiq-auth-btn:disabled { background: var(--tiq-bg-active); color: var(--tiq-text-disabled); cursor: not-allowed; }

/* Outline button variant for auth (e.g., "Resend email") */
.tiq-auth-btn--outline {
    background: transparent;
    color: var(--tiq-text-primary);
    border: 1px solid var(--tiq-border-strong);
}
.tiq-auth-btn--outline:hover {
    background: var(--tiq-bg-hover);
    box-shadow: none;
}

.tiq-auth-divider {
    border: none;
    border-top: 1px solid var(--tiq-border-subtle);
    margin: var(--tiq-space-5) 0;
}

.tiq-auth-footer-row {
    text-align: center;
    font-size: var(--tiq-fs-sm);
    color: var(--tiq-text-secondary);
    margin-top: var(--tiq-space-4);
}

.tiq-auth-icon--success { color: var(--tiq-color-success); }
.tiq-auth-icon--error   { color: var(--tiq-color-danger); }
.tiq-auth-icon--info    { color: var(--tiq-brand-primary-hover); }
.tiq-auth-icon--warn    { color: var(--tiq-color-warning); }

/* ==========================================================================
   Auth duo layout — form card + showcase carousel side by side
   ========================================================================== */
.tiq-auth-duo {
    display: flex;
    align-items: stretch;
    gap: var(--tiq-space-6);
    width: 100%;
    max-width: 860px;
    justify-content: center;
}
.tiq-auth-duo > .tiq-auth-card { flex-shrink: 0; width: 420px; }

.tiq-auth-showcase {
    display: flex;
    flex-direction: column;
    width: 380px;
    flex-shrink: 0;
    background: var(--tiq-bg-surface);
    border: 1px solid var(--tiq-border-subtle);
    border-radius: var(--tiq-radius-xl);
    padding: var(--tiq-space-8) var(--tiq-space-6);
    position: relative;
    overflow: hidden;
}
.tiq-auth-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, var(--tiq-brand-primary-subtle) 0%, transparent 55%),
        radial-gradient(circle at 100% 100%, var(--tiq-brand-primary-ghost) 0%, transparent 55%);
    pointer-events: none;
}
.tiq-auth-showcase > * { position: relative; z-index: 1; }

/* Carousel stage — absolute slides so they can cross-fade */
.tiq-auth-carousel {
    position: relative;
    flex: 1;
    min-height: 280px;
}
.tiq-auth-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
}
.tiq-auth-slide__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--tiq-radius-lg);
    background: var(--tiq-brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--tiq-space-4);
    box-shadow: 0 8px 24px -8px rgba(13, 148, 136, 0.55);
}
.tiq-auth-slide__icon .material-icons {
    color: #FFFFFF;
    font-size: 1.75rem;
    line-height: 1;
}
.tiq-auth-slide__title {
    font-size: var(--tiq-fs-xl);
    font-weight: var(--tiq-fw-semibold);
    letter-spacing: var(--tiq-ls-tight);
    color: var(--tiq-text-primary);
    margin: 0 0 6px;
    font-family: var(--tiq-font-sans);
}
.tiq-auth-slide__subtitle {
    font-size: var(--tiq-fs-sm);
    font-weight: var(--tiq-fw-semibold);
    color: var(--tiq-text-brand);
    letter-spacing: var(--tiq-ls-wide);
    text-transform: uppercase;
    margin: 0 0 var(--tiq-space-4);
}
.tiq-auth-slide__divider {
    width: 32px;
    border: none;
    border-top: 1px solid var(--tiq-border-default);
    margin: 0 auto var(--tiq-space-4);
}
.tiq-auth-slide__desc {
    font-size: var(--tiq-fs-base);
    color: var(--tiq-text-secondary);
    font-family: var(--tiq-font-sans);
    line-height: var(--tiq-lh-loose);
    margin: 0;
    max-width: 32ch;
}

/* Dots */
.tiq-auth-dots {
    display: flex;
    gap: var(--tiq-space-2);
    justify-content: center;
    padding-top: var(--tiq-space-6);
    flex-shrink: 0;
}
.tiq-auth-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--tiq-radius-full);
    background: var(--tiq-border-strong);
    opacity: 0.4;
    transform: scale(1);
}

/* Apply animations via positional selector — no inline style, no reduced-motion gate
   (carousel carries meaningful product content, so it plays for all users). */
.tiq-auth-slide:nth-child(1) { animation: tiq-slide-fade-1 15s ease-in-out infinite; }
.tiq-auth-slide:nth-child(2) { animation: tiq-slide-fade-2 15s ease-in-out infinite; }
.tiq-auth-slide:nth-child(3) { animation: tiq-slide-fade-3 15s ease-in-out infinite; }

.tiq-auth-dot:nth-child(1) { animation: tiq-dot-active-1 15s ease-in-out infinite; }
.tiq-auth-dot:nth-child(2) { animation: tiq-dot-active-2 15s ease-in-out infinite; }
.tiq-auth-dot:nth-child(3) { animation: tiq-dot-active-3 15s ease-in-out infinite; }

/* Keyframes — 15s cycle, 3 slides (~4.8s visible each, ~0.3s cross-fade).
   animation-fill-mode defaults to "none", which is fine for infinite loops. */
@keyframes tiq-slide-fade-1 {
    0%      { opacity: 1; }
    30%     { opacity: 1; }
    33.33%  { opacity: 0; }
    96.67%  { opacity: 0; }
    100%    { opacity: 1; }
}
@keyframes tiq-slide-fade-2 {
    0%      { opacity: 0; }
    30%     { opacity: 0; }
    33.33%  { opacity: 1; }
    63.33%  { opacity: 1; }
    66.67%  { opacity: 0; }
    100%    { opacity: 0; }
}
@keyframes tiq-slide-fade-3 {
    0%      { opacity: 0; }
    63.33%  { opacity: 0; }
    66.67%  { opacity: 1; }
    96.67%  { opacity: 1; }
    100%    { opacity: 0; }
}
@keyframes tiq-dot-active-1 {
    0%      { background: var(--tiq-brand-primary); opacity: 1; transform: scale(1.3); }
    30%     { background: var(--tiq-brand-primary); opacity: 1; transform: scale(1.3); }
    33.33%  { background: var(--tiq-border-strong); opacity: 0.4; transform: scale(1); }
    96.67%  { background: var(--tiq-border-strong); opacity: 0.4; transform: scale(1); }
    100%    { background: var(--tiq-brand-primary); opacity: 1; transform: scale(1.3); }
}
@keyframes tiq-dot-active-2 {
    0%      { background: var(--tiq-border-strong); opacity: 0.4; transform: scale(1); }
    30%     { background: var(--tiq-border-strong); opacity: 0.4; transform: scale(1); }
    33.33%  { background: var(--tiq-brand-primary); opacity: 1; transform: scale(1.3); }
    63.33%  { background: var(--tiq-brand-primary); opacity: 1; transform: scale(1.3); }
    66.67%  { background: var(--tiq-border-strong); opacity: 0.4; transform: scale(1); }
    100%    { background: var(--tiq-border-strong); opacity: 0.4; transform: scale(1); }
}
@keyframes tiq-dot-active-3 {
    0%      { background: var(--tiq-border-strong); opacity: 0.4; transform: scale(1); }
    63.33%  { background: var(--tiq-border-strong); opacity: 0.4; transform: scale(1); }
    66.67%  { background: var(--tiq-brand-primary); opacity: 1; transform: scale(1.3); }
    96.67%  { background: var(--tiq-brand-primary); opacity: 1; transform: scale(1.3); }
    100%    { background: var(--tiq-border-strong); opacity: 0.4; transform: scale(1); }
}

/* Stack on narrow screens */
@media (max-width: 880px) {
    .tiq-auth-duo {
        flex-direction: column;
        align-items: center;
    }
    .tiq-auth-duo > .tiq-auth-card,
    .tiq-auth-showcase {
        width: 100%;
        max-width: 420px;
    }
    .tiq-auth-showcase { display: none; }
}

/* ==========================================================================
   Legacy .lc-* auth aliases — route old class names to new Tiq components.
   Kept so the 12 remaining SSR auth pages (forgot-password, reset, 2fa etc.)
   still render correctly without per-file rewrites.
   ========================================================================== */
.lc {
    width: 100%;
    max-width: 420px;
    background: var(--tiq-bg-surface);
    border: 1px solid var(--tiq-border-subtle);
    border-radius: var(--tiq-radius-xl);
    padding: var(--tiq-space-8);
    box-shadow: var(--tiq-shadow-lg);
    box-sizing: border-box;
}
.lc--center { text-align: center; }

.lc-icon {
    font-family: 'Material Icons';
    font-style: normal;
    font-size: 2.5rem;
    line-height: 1;
    display: block;
    margin-bottom: var(--tiq-space-3);
}
.lc-icon--error   { color: var(--tiq-color-danger); }
.lc-icon--success { color: var(--tiq-color-success); }
.lc-icon--info    { color: var(--tiq-brand-primary-hover); }
.lc-icon--warn    { color: var(--tiq-color-warning); }

.lc-title {
    font-size: var(--tiq-fs-2xl);
    font-weight: var(--tiq-fw-semibold);
    color: var(--tiq-text-primary);
    letter-spacing: var(--tiq-ls-tight);
    margin: 0 0 var(--tiq-space-1);
    font-family: var(--tiq-font-sans);
    line-height: 1.2;
}
.lc-subtitle {
    font-size: var(--tiq-fs-md);
    color: var(--tiq-text-secondary);
    margin: 0 0 var(--tiq-space-6);
    font-family: var(--tiq-font-sans);
}

.lc-err-icon {
    font-family: 'Material Icons';
    font-size: 1rem;
    flex-shrink: 0;
    line-height: 1;
}
.lc-err {
    display: flex;
    align-items: center;
    gap: var(--tiq-space-2);
    background: var(--tiq-color-danger-subtle);
    border: 1px solid var(--tiq-color-danger-subtle);
    border-radius: var(--tiq-radius-md);
    color: var(--tiq-color-danger);
    font-size: var(--tiq-fs-sm);
    padding: var(--tiq-space-2) var(--tiq-space-3);
    margin-bottom: var(--tiq-space-4);
}

.lc-field {
    position: relative;
    margin-bottom: var(--tiq-space-4);
}
.lc-field input {
    width: 100%;
    height: 48px;
    background: var(--tiq-bg-sunken);
    border: 1px solid var(--tiq-border-default);
    border-radius: var(--tiq-radius-md);
    color: var(--tiq-text-primary);
    font-size: var(--tiq-fs-md);
    font-family: var(--tiq-font-sans);
    padding: 18px var(--tiq-space-3) 6px;
    outline: none;
    transition: border-color var(--tiq-duration-fast) var(--tiq-ease), box-shadow var(--tiq-duration-fast) var(--tiq-ease);
    box-sizing: border-box;
}
.lc-field input::placeholder { color: transparent; }
.lc-field input:hover { border-color: var(--tiq-border-strong); }
.lc-field input:focus {
    border-color: var(--tiq-brand-primary);
    box-shadow: var(--tiq-ring-focus);
}
.lc-field label {
    position: absolute;
    left: var(--tiq-space-3);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--tiq-fs-md);
    font-family: var(--tiq-font-sans);
    color: var(--tiq-text-tertiary);
    pointer-events: none;
    transition: top var(--tiq-duration-fast) var(--tiq-ease), font-size var(--tiq-duration-fast) var(--tiq-ease), transform var(--tiq-duration-fast) var(--tiq-ease);
}
.lc-field input:focus + label,
.lc-field input:not(:placeholder-shown) + label {
    top: 8px;
    transform: none;
    font-size: var(--tiq-fs-xs);
    color: var(--tiq-text-secondary);
}

.lc-val {
    color: var(--tiq-color-danger);
    font-size: var(--tiq-fs-xs);
    margin-top: 4px;
    padding-left: var(--tiq-space-3);
    display: block;
    font-family: var(--tiq-font-sans);
}

.lc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 var(--tiq-space-4);
}
.lc-chk-wrap {
    display: flex;
    align-items: center;
    gap: var(--tiq-space-2);
    cursor: pointer;
}
.lc-chk-wrap input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--tiq-border-strong);
    border-radius: var(--tiq-radius-xs);
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color var(--tiq-duration-fast) var(--tiq-ease), background var(--tiq-duration-fast) var(--tiq-ease);
}
.lc-chk-wrap input[type=checkbox]:checked {
    background: var(--tiq-brand-primary);
    border-color: var(--tiq-brand-primary);
}
.lc-chk-wrap input[type=checkbox]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0px;
    width: 5px;
    height: 9px;
    border: 1.5px solid #FFFFFF;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}
.lc-chk-wrap span {
    font-size: var(--tiq-fs-sm);
    color: var(--tiq-text-secondary);
    font-family: var(--tiq-font-sans);
    user-select: none;
}

.lc-link {
    font-size: var(--tiq-fs-sm);
    color: var(--tiq-text-secondary);
    text-decoration: none;
    font-family: var(--tiq-font-sans);
    transition: color var(--tiq-duration-fast) var(--tiq-ease);
}
.lc-link:hover { color: var(--tiq-text-brand); }

.lc-btn {
    width: 100%;
    height: 44px;
    background: var(--tiq-brand-primary);
    color: #FFFFFF;
    border: none;
    border-radius: var(--tiq-radius-md);
    font-size: var(--tiq-fs-md);
    font-weight: var(--tiq-fw-medium);
    letter-spacing: var(--tiq-ls-normal);
    font-family: var(--tiq-font-sans);
    cursor: pointer;
    transition: background var(--tiq-duration-fast) var(--tiq-ease), box-shadow var(--tiq-duration-fast) var(--tiq-ease);
}
.lc-btn:hover  { background: var(--tiq-brand-primary-hover); box-shadow: var(--tiq-shadow-md); }
.lc-btn:active { background: var(--tiq-brand-primary-darken); }

.lc-btn-outline {
    display: block;
    width: 100%;
    background: transparent;
    color: var(--tiq-text-primary);
    border: 1px solid var(--tiq-border-strong);
    border-radius: var(--tiq-radius-md);
    font-size: var(--tiq-fs-md);
    font-weight: var(--tiq-fw-medium);
    padding: 10px var(--tiq-space-4);
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: background var(--tiq-duration-fast) var(--tiq-ease), border-color var(--tiq-duration-fast) var(--tiq-ease);
    font-family: var(--tiq-font-sans);
    cursor: pointer;
}
.lc-btn-outline:hover { background: var(--tiq-bg-hover); }

.lc-divider {
    border: none;
    border-top: 1px solid var(--tiq-border-subtle);
    margin: var(--tiq-space-5) 0;
}

.lc-footer {
    text-align: center;
    font-size: var(--tiq-fs-sm);
    color: var(--tiq-text-tertiary);
    margin-top: var(--tiq-space-4);
}

/* 6-digit OTP input (PayPal-style, used on 2FA page) */
.lc-otp {
    display: flex;
    justify-content: center;
    gap: var(--tiq-space-2);
    margin: var(--tiq-space-2) 0 var(--tiq-space-5);
}
.lc-otp-box {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: var(--tiq-fw-semibold);
    font-family: var(--tiq-font-sans);
    color: var(--tiq-text-primary);
    background: var(--tiq-bg-surface);
    border: 1px solid var(--tiq-border-default);
    border-radius: var(--tiq-radius-md);
    transition: border-color var(--tiq-duration-fast) var(--tiq-ease),
                box-shadow var(--tiq-duration-fast) var(--tiq-ease);
    caret-color: var(--tiq-brand-primary);
    padding: 0;
}
.lc-otp-box:focus {
    outline: none;
    border-color: var(--tiq-brand-primary);
    box-shadow: 0 0 0 3px var(--tiq-brand-primary-subtle);
}
.lc-otp-box::-webkit-outer-spin-button,
.lc-otp-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.lc-val--center { text-align: center; display: block; }

/* Two-column auth layout (login card + info/steps panel) */
.lc-duo {
    display: flex;
    align-items: stretch;
    gap: var(--tiq-space-6);
    width: 100%;
    max-width: 860px;
    justify-content: center;
}
.lc-duo > .lc { flex-shrink: 0; width: 420px; }

/* Right-side info panel with numbered steps (2FA, Recovery pages) */
.lc-info {
    display: flex;
    flex-direction: column;
    width: 380px;
    flex-shrink: 0;
    background: var(--tiq-bg-surface);
    border: 1px solid var(--tiq-border-subtle);
    border-radius: var(--tiq-radius-xl);
    padding: var(--tiq-space-8) var(--tiq-space-6);
    position: relative;
    overflow: hidden;
    box-shadow: var(--tiq-shadow-lg);
}
.lc-info::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, var(--tiq-brand-primary-subtle) 0%, transparent 55%),
        radial-gradient(circle at 100% 100%, var(--tiq-brand-primary-ghost) 0%, transparent 55%);
    pointer-events: none;
}
.lc-info > * { position: relative; z-index: 1; }

.lc-info-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--tiq-brand-primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--tiq-space-3);
    color: var(--tiq-text-brand);
}
.lc-info-icon-wrap span {
    font-family: 'Material Icons';
    font-size: 1.75rem;
    line-height: 1;
}

.lc-info-title {
    font-size: var(--tiq-fs-lg);
    font-weight: var(--tiq-fw-semibold);
    color: var(--tiq-text-primary);
    text-align: center;
    margin: 0 0 var(--tiq-space-1);
    letter-spacing: var(--tiq-ls-tight);
}
.lc-info-subtitle {
    font-size: var(--tiq-fs-sm);
    color: var(--tiq-text-secondary);
    text-align: center;
    margin: 0 0 var(--tiq-space-5);
}
.lc-info-divider {
    border: none;
    border-top: 1px solid var(--tiq-border-subtle);
    margin: 0 0 var(--tiq-space-5);
}

.lc-info-steps {
    display: flex;
    flex-direction: column;
    gap: var(--tiq-space-4);
}
.lc-info-step {
    display: flex;
    align-items: flex-start;
    gap: var(--tiq-space-3);
}
.lc-info-step-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--tiq-brand-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--tiq-fs-xs);
    font-weight: var(--tiq-fw-semibold);
    line-height: 1;
}
.lc-info-step p {
    margin: 0;
    font-size: var(--tiq-fs-sm);
    color: var(--tiq-text-secondary);
    line-height: 1.45;
}

/* Responsive: stack on narrow viewports */
@media (max-width: 860px) {
    .lc-duo {
        flex-direction: column;
        align-items: center;
    }
    .lc-duo > .lc,
    .lc-info {
        width: 100%;
        max-width: 420px;
    }
    .lc-info { display: none; }
}

/* Contact card (Legal page) */
.tiq-contact              { max-width: 480px; }
.tiq-contact__list {
    display: flex;
    flex-direction: column;
    gap: var(--tiq-space-3);
    text-align: left;
}
.tiq-contact__row {
    display: flex;
    align-items: center;
    gap: var(--tiq-space-3);
    padding: var(--tiq-space-3) var(--tiq-space-4);
    background: var(--tiq-brand-primary-subtle);
    border: 1px solid var(--tiq-brand-primary-subtle);
    border-radius: var(--tiq-radius-md);
}
.tiq-contact__icon {
    font-size: 1.25rem;
    color: var(--tiq-text-brand);
    flex-shrink: 0;
}
.tiq-contact__text { min-width: 0; }
.tiq-contact__label {
    font-size: var(--tiq-fs-xs);
    color: var(--tiq-text-tertiary);
    font-family: var(--tiq-font-sans);
    margin-bottom: 2px;
}
.tiq-contact__link,
.tiq-contact__value {
    font-size: var(--tiq-fs-md);
    color: var(--tiq-text-primary);
    font-family: var(--tiq-font-sans);
    text-decoration: none;
}
.tiq-contact__link:hover { color: var(--tiq-text-brand); }

/* Legal pages (Imprint, Privacy Policy, Terms, Acceptable Use) */
.tiq-legal         { max-width: 520px; }
.tiq-legal--wide   { max-width: 560px; }
/* Wider variant for the long-form policy pages (Privacy / Terms / AUP) where
   line-length matters for readability. ~720px keeps text in the comfortable
   55-75 chars-per-line range for body copy. */
.tiq-legal--xl     { max-width: 720px; text-align: left; }

.tiq-legal__body {
    text-align: left;
    font-size: var(--tiq-fs-md);
    color: var(--tiq-text-secondary);
    font-family: var(--tiq-font-sans);
    line-height: var(--tiq-lh-loose);
}
.tiq-legal__body p { margin: 0 0 var(--tiq-space-5); }
.tiq-legal__body p:last-child { margin-bottom: 0; }
.tiq-legal__body--centered { text-align: center; }

.tiq-legal__heading {
    font-weight: var(--tiq-fw-semibold);
    color: var(--tiq-text-primary);
    margin: var(--tiq-space-6) 0 6px !important;
}
/* The first heading sits flush against the divider above. */
.tiq-legal__body > .tiq-legal__heading:first-child { margin-top: 0 !important; }

.tiq-legal__body strong { color: var(--tiq-text-primary); font-weight: var(--tiq-fw-semibold); }

/* Bulleted lists used inside policy bodies (Privacy categories, Terms items,
   AUP prohibitions). Indented enough to read as a list, not enough to feel
   nested. */
.tiq-legal__list {
    margin: 0 0 var(--tiq-space-5);
    padding-left: var(--tiq-space-6);
    list-style: disc;
}
.tiq-legal__list li {
    margin: 0 0 var(--tiq-space-2);
    line-height: var(--tiq-lh-loose);
}
.tiq-legal__list li:last-child { margin-bottom: 0; }

/* Effective-date line right under the page subtitle on policy pages. */
.tiq-legal__effective {
    margin: var(--tiq-space-2) 0 0;
    font-size: var(--tiq-fs-sm);
    color: var(--tiq-text-disabled);
    font-style: italic;
}

/* Secondary paragraphs (jurisdiction note, EU-ODR pointer) — muted so the
   primary contact block above stays visually dominant. */
.tiq-legal__muted {
    color: var(--tiq-text-disabled);
    font-size: var(--tiq-fs-sm);
    line-height: var(--tiq-lh-snug);
}

/* ==========================================================================
   Cookie consent banner — tokenized
   ========================================================================== */
.cookie-banner-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.45);
}
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: var(--tiq-space-4) var(--tiq-space-6);
    background: var(--tiq-bg-raised);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--tiq-border-subtle);
    box-shadow: var(--tiq-shadow-lg);
}
.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--tiq-space-6);
    flex-wrap: wrap;
}
.cookie-banner-text-wrap { flex: 1; min-width: 240px; }
.cookie-banner-title {
    color: var(--tiq-text-primary);
    font-size: var(--tiq-fs-md);
    font-weight: var(--tiq-fw-semibold);
    margin: 0 0 4px 0;
    font-family: var(--tiq-font-sans);
    display: flex;
    align-items: center;
    gap: 8px;
}
.cookie-banner-icon {
    font-size: 1.25em;
    line-height: 1;
    flex-shrink: 0;
    color: var(--tiq-text-primary);
}
.cookie-banner-body {
    color: var(--tiq-text-secondary);
    font-size: var(--tiq-fs-sm);
    font-family: var(--tiq-font-sans);
    margin: 0;
    line-height: var(--tiq-lh-snug);
}
.cookie-banner-actions {
    display: flex;
    gap: var(--tiq-space-2);
    flex-shrink: 0;
    align-items: center;
}
.cookie-banner-form { margin: 0; }
.cookie-btn {
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--tiq-font-sans);
    font-size: var(--tiq-fs-sm);
    font-weight: var(--tiq-fw-medium);
    padding: 8px var(--tiq-space-4);
    border-radius: var(--tiq-radius-md);
    transition: background var(--tiq-duration-fast) var(--tiq-ease), box-shadow var(--tiq-duration-fast) var(--tiq-ease);
}
.cookie-btn-essential {
    background: transparent;
    color: var(--tiq-text-secondary);
    border-color: var(--tiq-border-strong);
}
.cookie-btn-essential:hover { background: var(--tiq-bg-hover); color: var(--tiq-text-primary); }
.cookie-btn-all {
    background: var(--tiq-brand-primary);
    color: #fff;
    border: none;
}
.cookie-btn-all:hover { background: var(--tiq-brand-primary-hover); box-shadow: var(--tiq-shadow-md); }

/* ==========================================================================
   Activity feed (used on dashboard)
   ========================================================================== */
.tiq-activity {
    display: flex;
    flex-direction: column;
    gap: var(--tiq-space-1);
}
.tiq-activity__item {
    display: flex;
    align-items: flex-start;
    gap: var(--tiq-space-3);
    padding: var(--tiq-space-2) var(--tiq-space-3);
    border-radius: var(--tiq-radius-md);
    transition: background var(--tiq-duration-fast) var(--tiq-ease);
}
.tiq-activity__item:hover { background: var(--tiq-bg-hover); }
.tiq-activity__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}
.tiq-activity__dot--success { background: var(--tiq-color-success); }
.tiq-activity__dot--danger  { background: var(--tiq-color-danger); }
.tiq-activity__dot--warning { background: var(--tiq-color-warning); }
.tiq-activity__dot--info    { background: var(--tiq-color-info); }
.tiq-activity__dot--neutral { background: var(--tiq-text-tertiary); }
.tiq-activity__body { flex: 1; min-width: 0; }
.tiq-activity__title {
    font-size: var(--tiq-fs-md);
    color: var(--tiq-text-primary);
    margin: 0;
    line-height: var(--tiq-lh-snug);
}
.tiq-activity__meta {
    font-size: var(--tiq-fs-sm);
    color: var(--tiq-text-tertiary);
    margin: 0;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Module rows (dashboard)
   ========================================================================== */
.tiq-module-row         { padding: 4px 0; }
.tiq-license-empty      { margin: 0; }
.tiq-module-icon        { font-size: 1.125rem; color: var(--tiq-text-tertiary); }
.tiq-module-icon--on    { color: var(--tiq-text-brand); }
.tiq-module-link        { color: var(--tiq-text-tertiary); text-decoration: none; font-weight: var(--tiq-fw-medium); transition: color var(--tiq-duration-fast) var(--tiq-ease); }
.tiq-module-link:hover  { color: var(--tiq-text-primary); }
.tiq-module-link--on    { color: var(--tiq-text-primary); }

/* Key-value rows (license panel, detail views) */
.tiq-kv-label { font-size: var(--tiq-fs-sm); color: var(--tiq-text-tertiary); }
.tiq-kv-value { font-size: var(--tiq-fs-sm); color: var(--tiq-text-primary); }

/* ==========================================================================
   Welcome banner (dashboard)
   ========================================================================== */
.tiq-welcome {
    display: flex;
    flex-direction: column;
    gap: var(--tiq-space-1);
    padding-bottom: var(--tiq-space-4);
    margin-bottom: var(--tiq-space-6);
    border-bottom: 1px solid var(--tiq-border-subtle);
}
.tiq-welcome__hello {
    font-size: var(--tiq-fs-xl);
    font-weight: var(--tiq-fw-semibold);
    color: var(--tiq-text-primary);
    letter-spacing: var(--tiq-ls-snug);
    margin: 0;
}
.tiq-welcome__sub {
    font-size: var(--tiq-fs-md);
    color: var(--tiq-text-secondary);
    margin: 0;
}

/* ==========================================================================
   Dashboard — modul-zentriertes Layout
   ========================================================================== */

/* Modul-Sektion ohne umschließende Karte — nur eine Überschrift + Stat-Grid.
   Auf-Stack mit `.tiq-stack` setzt den vertikalen Abstand zwischen Sektionen. */
.tiq-module-section {
    display: flex;
    flex-direction: column;
    gap: var(--tiq-space-4);
    margin-bottom: var(--tiq-space-8);   /* space-7 existiert im Token-Set nicht */
}
.tiq-module-section + .tiq-module-section { margin-top: 0; }
.tiq-module-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tiq-space-3);
}
.tiq-module-section__title {
    font-size: var(--tiq-fs-lg);
    font-weight: var(--tiq-fw-semibold);
    letter-spacing: var(--tiq-ls-snug);
    color: var(--tiq-text-primary);
    margin: 0;
}

/* Stat-Grid für Modul-KPIs — auto-fill, gleiche Höhe/Breite, leichtes
   "lifted-surface"-Look mit subtilem Gradient und Icon links. */
.tiq-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--tiq-space-4);
}
.tiq-stat-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--tiq-space-3);
    padding: var(--tiq-space-4) var(--tiq-space-4);
    border-radius: 12px;
    background: linear-gradient(
        160deg,
        var(--tiq-bg-surface) 0%,
        color-mix(in srgb, var(--tiq-bg-surface) 92%, transparent) 100%);
    border: 1px solid var(--tiq-border-subtle);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: transform var(--tiq-duration-fast) var(--tiq-ease),
                box-shadow var(--tiq-duration-fast) var(--tiq-ease),
                border-color var(--tiq-duration-fast) var(--tiq-ease);
    min-height: 110px;
}
.tiq-stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    border-color: color-mix(in srgb, var(--tiq-brand-primary) 35%, var(--tiq-border-subtle));
}
.tiq-stat-card__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 22px;
    background: var(--tiq-brand-primary-subtle);
    color: var(--tiq-brand-primary-hover);
}
.tiq-stat-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.tiq-stat-card__label {
    font-size: 0.72rem;
    font-weight: var(--tiq-fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tiq-text-tertiary);
}
.tiq-stat-card__value {
    font-size: 1.5rem;
    font-weight: var(--tiq-fw-bold);
    line-height: 1.05;
    color: var(--tiq-text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tiq-stat-card__value--text {
    font-size: 1.2rem;
    letter-spacing: 0;
}
.tiq-stat-card__hint {
    font-size: var(--tiq-fs-sm);
    color: var(--tiq-text-secondary);
}
/* Akzent-Variante: Score-Kachel hebt sich mit Brand-Tint im Icon hervor. */
.tiq-stat-card--accent .tiq-stat-card__icon {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--tiq-brand-primary) 25%, transparent),
        color-mix(in srgb, var(--tiq-brand-primary-hover) 15%, transparent));
    color: var(--tiq-brand-primary-hover);
}

/* Info-Grid (License / Plan / Module / Expires) — exakt 4 gleich große
   Karten, eine eigene Reihe; bricht auf < 1000 px in 2-Spalter, auf
   < 600 px in 1-Spalter. */
.tiq-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--tiq-space-4);
    margin-bottom: var(--tiq-space-4);
}

/* ── Dashboard Row: 3 equal-width cards (Trend + Query-Hotlist + Hotel-Hotlist).
   Stacks below 1100 px → 2 columns, below 700 px → 1 column. The hotlist
   columns are narrow at 1/3 of a wide viewport, so the link layout uses a
   compact score-chip on the right instead of separate metric columns. */
.tiq-dashboard-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--tiq-space-4);
    margin-bottom: var(--tiq-space-4);
}
@media (max-width: 1100px) {
    .tiq-dashboard-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .tiq-dashboard-row { grid-template-columns: 1fr; }
}

.tiq-trend-card,
.tiq-hotlist {
    display: flex;
    flex-direction: column;
    gap: var(--tiq-space-3);
    padding: var(--tiq-space-4);
    border-radius: 12px;
    background: var(--tiq-surface-card, var(--mud-palette-surface));
    border: 1px solid var(--mud-palette-lines-default);
}

/* Trend card */
.tiq-trend-card__header { display: flex; flex-direction: column; gap: 2px; }
.tiq-trend-card__title  { margin: 0; font-size: var(--tiq-fs-md); font-weight: var(--tiq-fw-semibold); color: var(--tiq-text-primary); }
.tiq-trend-card__sub    { font-size: var(--tiq-fs-sm); color: var(--tiq-text-tertiary); }
.tiq-trend-card__chart  { width: 100%; height: 95px; display: block; }
.tiq-trend-card__empty  {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: var(--tiq-fs-sm);
    color: var(--tiq-text-tertiary);
    min-height: 95px;
}
.tiq-trend-card__footer { display: flex; align-items: baseline; justify-content: space-between; gap: var(--tiq-space-3); }
.tiq-trend-card__latest { display: inline-flex; align-items: baseline; gap: 6px; }
.tiq-trend-card__latest-label { font-size: var(--tiq-fs-sm); color: var(--tiq-text-tertiary); }
.tiq-trend-card__latest-val   { font-size: 1.15rem; font-weight: var(--tiq-fw-semibold); font-variant-numeric: tabular-nums; }
.tiq-trend-card__delta {
    font-size: var(--tiq-fs-sm);
    font-weight: var(--tiq-fw-medium);
    font-variant-numeric: tabular-nums;
}
.tiq-trend-card__delta--up   { color: var(--tiq-color-success, #059669); }
.tiq-trend-card__delta--down { color: var(--tiq-color-danger,  #DC2626); }

/* Hotlist */
.tiq-hotlist__header { display: flex; flex-direction: column; gap: 2px; }
.tiq-hotlist__title  { margin: 0; font-size: var(--tiq-fs-md); font-weight: var(--tiq-fw-semibold); color: var(--tiq-text-primary); }
.tiq-hotlist__sub    { font-size: var(--tiq-fs-sm); color: var(--tiq-text-tertiary); }
.tiq-hotlist__empty  {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: var(--tiq-fs-sm);
    color: var(--tiq-text-tertiary);
    min-height: 80px;
}
.tiq-hotlist__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.tiq-hotlist__item { margin: 0; }
.tiq-hotlist__link {
    display: grid;
    grid-template-columns: 10px 1fr auto 18px;
    align-items: center;
    gap: var(--tiq-space-3);
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
.tiq-hotlist__link:hover { background: var(--tiq-bg-hover, rgba(0,0,0,0.04)); }
/* Static variant for non-clickable rows (e.g. competitor list — no drill-in target). */
.tiq-hotlist__link--static {
    cursor: default;
    grid-template-columns: 24px 1fr auto;
}
.tiq-hotlist__link--static:hover { background: transparent; }
/* Operator logo for the Top-Competitors variant — square thumbnail, slight
   padding so the logo doesn't touch the bordered background. Placeholder
   shows the first letter of the operator code when no logo URL is on file. */
.tiq-hotlist__logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    background: var(--mud-palette-surface);
    padding: 2px;
    box-sizing: border-box;
    flex: 0 0 auto;
}
.tiq-hotlist__logo--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: var(--tiq-fw-semibold);
    color: var(--tiq-text-tertiary);
    background: var(--tiq-bg-hover);
    text-transform: uppercase;
    padding: 0;
}
.tiq-hotlist__dot {
    width: 10px; height: 10px; border-radius: 50%;
    display: inline-block; flex: 0 0 auto;
}
.tiq-hotlist__dot--danger  { background: #DC2626; }
.tiq-hotlist__dot--warning { background: #D97706; }
.tiq-hotlist__dot--info    { background: #6B7280; }
.tiq-hotlist__name { display: flex; flex-direction: column; min-width: 0; }
.tiq-hotlist__hotel {
    font-weight: var(--tiq-fw-medium);
    color: var(--tiq-text-primary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tiq-hotlist__query {
    font-size: var(--tiq-fs-xs, 0.72rem);
    color: var(--tiq-text-tertiary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tiq-hotlist__metrics { display: inline-flex; gap: 12px; font-size: var(--tiq-fs-sm); color: var(--tiq-text-secondary); white-space: nowrap; }
.tiq-hotlist__metric strong { color: var(--tiq-text-primary); font-variant-numeric: tabular-nums; }
/* Compact value chip — used in the narrow 1/3 cards instead of two metric columns
   so the hotel/query name has more room. Tabular numbers keep digits aligned. */
.tiq-hotlist__score-chip {
    font-size: var(--tiq-fs-sm);
    font-weight: var(--tiq-fw-semibold);
    font-variant-numeric: tabular-nums;
    color: var(--tiq-text-primary);
    white-space: nowrap;
}
.tiq-hotlist__chev { font-size: 18px !important; opacity: 0.45; }
@media (max-width: 1000px) {
    .tiq-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .tiq-info-grid { grid-template-columns: 1fr; }
}
.tiq-info-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--tiq-space-3);
    padding: var(--tiq-space-4);
    border-radius: 12px;
    background: linear-gradient(
        145deg,
        var(--tiq-bg-surface) 0%,
        color-mix(in srgb, var(--tiq-bg-surface) 88%, transparent) 100%);
    border: 1px solid var(--tiq-border-subtle);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: transform var(--tiq-duration-fast) var(--tiq-ease),
                box-shadow var(--tiq-duration-fast) var(--tiq-ease);
    min-height: 110px;
    overflow: hidden;
}
.tiq-info-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.20);
}
.tiq-info-card__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--tiq-brand-primary-subtle);
    color: var(--tiq-brand-primary-hover);
}
.tiq-info-card__icon .material-icons { font-size: 22px; }
.tiq-info-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.tiq-info-card__label {
    font-size: 0.72rem;
    font-weight: var(--tiq-fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tiq-text-tertiary);
}
.tiq-info-card__value {
    font-size: 1.15rem;
    font-weight: var(--tiq-fw-semibold);
    color: var(--tiq-text-primary);
    line-height: 1.15;
}
.tiq-info-card__value-sub {
    font-size: 0.9rem;
    color: var(--tiq-text-tertiary);
    font-weight: var(--tiq-fw-medium);
    margin-left: 2px;
}
.tiq-info-card__hint {
    font-size: var(--tiq-fs-sm);
    color: var(--tiq-text-secondary);
    font-family: ui-monospace, 'JetBrains Mono', monospace;
}
.tiq-info-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}
.tiq-info-card__chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--tiq-bg-hover);
    color: var(--tiq-text-tertiary);
    font-size: 0.7rem;
    font-weight: var(--tiq-fw-medium);
    border: 1px solid transparent;
}
.tiq-info-card__chip .material-icons { font-size: 12px; }
.tiq-info-card__chip--on {
    background: var(--tiq-brand-primary-subtle);
    color: var(--tiq-text-brand);
    border-color: color-mix(in srgb, var(--tiq-brand-primary) 30%, transparent);
}

/* Status-Modifier (--success/--warning/--brand/--muted) bewusst no-op:
   Alle License-/Modules-Icons sollen dieselbe Brand-Tönung tragen wie die
   Benchmarking-Stat-Cards, damit die Sektion homogen wirkt. Klassen bleiben
   am Markup, falls später eine selektive Hervorhebung gewünscht ist. */

/* Small neutral config chip used on the Benchmark Queries list — denser than
   a TiqStatusChip, lets us stack several facts (duration, board, rooms, flight
   type, transfer) in one cell without visual noise. */
.tiq-meta-chip {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    background: var(--tiq-bg-hover);
    color: var(--tiq-text-secondary);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

/* =============================================================================
   Results page — sticky table headers (every table inside .tiq-results-page)
   Inline styles on individual th (e.g. heatmap left-sticky Route column) keep
   working thanks to specificity; we only add top/z-index/background here.
   ========================================================================== */
.tiq-results-page table thead th,
.tiq-results-page .mud-table-head th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--mud-palette-surface);
}

/* =============================================================================
   Per-tab header inside the Results page (and any other tabbed view). Sits
   at the top of each tab body: short headline + one-line description so the
   user knows what the tab represents without having to read the data first.
   Slightly larger than the inline section labels we used to have.
   ========================================================================== */
.bm-tab-header                  { padding: 4px 16px 14px; margin: 0; }
.bm-tab-header__title           { font-size: 1.05rem; font-weight: 600;
                                  margin: 0 0 4px;
                                  color: var(--mud-palette-text-primary);
                                  letter-spacing: 0; line-height: 1.3; }
.bm-tab-header__desc            { font-size: 0.82rem; margin: 0;
                                  color: var(--mud-palette-text-secondary);
                                  line-height: 1.45; }

/* =============================================================================
   Segmented control — flat pill track with three text-only buttons. Replaces
   MudToggleGroup wherever we want a clean look without fighting MudBlazor's
   default outlined/divider styling. Used on the Queries sub-header (product
   filter) and inside the QueryDialog (Board filter Exact/Min/Max).
   ========================================================================== */
.bm-segmented        { display: inline-flex; align-items: stretch; gap: 2px;
                       padding: 2px; border-radius: 7px;
                       background: var(--mud-palette-action-disabled-background); }
.bm-segmented__item  { appearance: none; background: transparent; border: none;
                       outline: none; cursor: pointer;
                       padding: 3px 10px; border-radius: 5px;
                       font-family: inherit; font-size: 0.75rem; font-weight: 500;
                       letter-spacing: 0; line-height: 1.4;
                       color: var(--mud-palette-text-secondary);
                       transition: background 140ms ease, color 140ms ease; }
.bm-segmented__item:hover         { color: var(--mud-palette-text-primary); }
.bm-segmented__item:focus-visible { box-shadow: 0 0 0 2px var(--mud-palette-primary-hover); }
.bm-segmented__item.is-active     { background: var(--mud-palette-primary-hover);
                                    color: var(--mud-palette-primary);
                                    font-weight: 600; }
.bm-segmented__item.is-active:hover { color: var(--mud-palette-primary); }

/* Inline number-input variant of the segmented pill — used on the
   DMC Action Plan toolbar for "min € / min %" renegotiate thresholds.
   Static prefix label + transparent native number input share the same
   pill so visually it sits next to the icon-only segmented controls. */
.bm-segmented__prefix { padding: 3px 6px 3px 8px; align-self: center;
                        font-family: inherit; font-size: 0.75rem; font-weight: 500;
                        letter-spacing: 0; line-height: 1.4;
                        color: var(--mud-palette-text-secondary); }
.bm-segmented__input  { appearance: textfield; -moz-appearance: textfield;
                        background: transparent; border: none; outline: none;
                        width: 48px; padding: 3px 8px 3px 0; border-radius: 5px;
                        font-family: inherit; font-size: 0.75rem; font-weight: 500;
                        line-height: 1.4;
                        color: var(--mud-palette-text-primary);
                        text-align: right;
                        transition: background 140ms ease, color 140ms ease; }
.bm-segmented__input::-webkit-outer-spin-button,
.bm-segmented__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bm-segmented__input:focus-visible { background: var(--mud-palette-primary-hover);
                                     color: var(--mud-palette-primary); }
.bm-segmented__input::placeholder  { color: var(--mud-palette-text-secondary);
                                     opacity: 0.55; }

/* =============================================================================
   Ranking heatmap (Results page → Ranking tab). Fixed-height scroll viewport
   with sticky thead (vertical scroll keeps the date / week / month rows
   pinned) and sticky left column (horizontal scroll keeps the hotel-name
   column pinned). Both scroll axes live on the outer .bm-rankheatmap so
   sticky positioning has a single reference container.
   ========================================================================== */
.bm-rankheatmap                       { max-height: 65vh; overflow: auto;
                                        border: 1px solid var(--mud-palette-lines-default);
                                        border-radius: 6px; }
.bm-rankheatmap thead                 { position: sticky; top: 0; z-index: 2;
                                        background: var(--mud-palette-surface); }
.bm-rankheatmap thead th              { background: var(--mud-palette-surface); }
/* Left hotel column sits above the right thead during horizontal scroll
   (z-index 3 > thead's 2) so it overlaps cleanly instead of disappearing
   under the date stack. */
.bm-rankheatmap__left                 { position: sticky; left: 0; z-index: 3;
                                        background: var(--mud-palette-surface); }
.bm-rankheatmap__left tbody td        { background: var(--mud-palette-surface); }

/* =============================================================================
   Competitor-Gap Matrix (Results page → Matrix tab, Package only)
   Two-table split (same pattern as the Heatmap tab): fixed meta columns
   in a non-scrolling left table, hotel columns in a horizontally
   scrollable right table. Row heights match across both tables so the
   rows line up; only the hotel area scrolls.
   ========================================================================== */
.bm-cgmatrix              { margin: 0; padding: 0;
                            border: 1px solid var(--mud-palette-lines-default);
                            border-radius: 6px; overflow: hidden; }
.bm-cgmatrix__split       { display: flex; align-items: flex-start;
                            font-size: 0.76rem;
                            max-height: 65vh; overflow: auto; }

/* Common cell styling used by both tables. */
.bm-cgmatrix__left,
.bm-cgmatrix__right       { border-collapse: collapse; background: var(--mud-palette-surface);
                            font-variant-numeric: tabular-nums; }
.bm-cgmatrix__left th,
.bm-cgmatrix__right th    { height: 130px; padding: 6px 8px; font-weight: 600;
                            color: var(--mud-palette-text-secondary);
                            background: var(--mud-palette-action-disabled-background);
                            border-bottom: 1px solid var(--mud-palette-lines-default);
                            vertical-align: bottom; text-align: center;
                            white-space: nowrap; line-height: 1.25; font-size: 0.72rem;
                            box-sizing: border-box;
                            position: sticky; top: 0; z-index: 2; }
.bm-cgmatrix__left td,
.bm-cgmatrix__right td    { height: 36px; padding: 4px 8px; text-align: center;
                            border-bottom: 1px solid var(--mud-palette-lines-default);
                            white-space: nowrap; font-weight: 600;
                            box-sizing: border-box;
                            vertical-align: middle;
                            line-height: 1; }
.bm-cgmatrix__left tr:last-child td,
.bm-cgmatrix__right tr:last-child td { border-bottom: none; }

/* ── Left table — fixed widths per column. Same widths on th + td so
       headers align with their column. Sticky-left so horizontal scroll
       keeps the meta columns pinned; z-index 3 puts the whole left
       column above the right thead (z-index 2) so it stays cleanly on
       top during horizontal scroll instead of dipping under the
       rotated hotel headers. ──────────────────────────────────────── */
.bm-cgmatrix__left        { flex: 0 0 auto; table-layout: fixed;
                            position: sticky; left: 0; z-index: 3;
                            background: var(--mud-palette-surface); }
.bm-cgmatrix__left td     { background: var(--mud-palette-surface); }
.bm-cgmatrix__c-date      { width:  84px; min-width:  84px; max-width:  84px; }
.bm-cgmatrix__c-dep       { width:  52px; min-width:  52px; max-width:  52px; }
.bm-cgmatrix__c-air       { width:  78px; min-width:  78px; max-width:  78px; }
.bm-cgmatrix__c-times     { width: 130px; min-width: 130px; max-width: 130px;
                            white-space: pre-line !important; line-height: 1.25; }
.bm-cgmatrix__c-min,
.bm-cgmatrix__c-max,
.bm-cgmatrix__c-avg       { width:  34px; min-width:  34px; max-width:  34px;
                            padding: 4px 2px; font-size: 0.7rem; }

.bm-cgmatrix__date        { color: var(--mud-palette-text-secondary); font-weight: 500;
                            text-align: left; }
.bm-cgmatrix__meta        { color: var(--mud-palette-text-primary); font-weight: 500;
                            text-align: left;
                            text-overflow: ellipsis; overflow: hidden; }

/* ── Right wrap — scroll axes now live on the .bm-cgmatrix__split parent
       so sticky positioning has a single reference container. Border-left
       gives the visual seam between the meta-table and the hotel grid. */
.bm-cgmatrix__right-wrap  { flex: 0 0 auto;
                            border-left: 1px solid var(--mud-palette-lines-default); }
.bm-cgmatrix__right       { width: max-content; }

/* ── Hotel columns: 90° rotated headers via writing-mode ─────────────── */
.bm-cgmatrix__right th.bm-cgmatrix__hotel {
                            padding: 6px 0;            /* match left-table th vertical padding */
                            min-width: 32px; max-width: 32px; width: 32px;
                            vertical-align: bottom; }
.bm-cgmatrix__rot-wrap    { display: flex; align-items: flex-end; justify-content: center;
                            height: 100%; }
.bm-cgmatrix__rot         { writing-mode: vertical-rl;
                            transform: rotate(180deg);   /* read bottom → top */
                            white-space: nowrap; line-height: 1;
                            font-size: 0.72rem; font-weight: 600;
                            color: var(--mud-palette-text-primary);
                            max-height: 118px; overflow: hidden; }
.bm-cgmatrix__right td    { min-width: 32px; max-width: 32px; width: 32px;
                            padding: 4px 4px; font-size: 0.72rem; }

/* ── Cell colour bands (diff sign) ───────────────────────────────────── */
.bm-cgmatrix__pos         { color: var(--mud-palette-success);
                            background: rgba(5,150,105,0.08); }
/* Negative-value tiers — escalating red tint so values worth reacting
   to (≤ −50, ≤ −100) jump out of the grid without scanning every cell. */
.bm-cgmatrix__neg         { color: var(--mud-palette-error);
                            background: rgba(220,38,38,0.10); }
.bm-cgmatrix__neg-mid     { color: var(--mud-palette-error);
                            background: rgba(220,38,38,0.32);
                            font-weight: 700; }
.bm-cgmatrix__neg-strong  { color: #ffffff;
                            background: rgba(220,38,38,0.85);
                            font-weight: 700; }
.bm-cgmatrix__zero        { color: var(--mud-palette-text-secondary); }
.bm-cgmatrix__empty       { color: var(--mud-palette-text-secondary); opacity: 0.4; }

/* DMC Action Plan — collapsed-hotel rows.
   Hides every body row whose hotel group is currently collapsed via the
   per-hotel toggle button on the group header. The group header itself
   keeps rendering (it still gets one row from the underlying data set)
   so the user can re-expand. */
.bm-row-collapsed         { display: none; }

/* DMC Action Plan — vertical-center every body cell so that wrapped
   content (action chip + room badge + numeric cells) sits on the same
   baseline. Targets the table via a scoped class so other MudTables
   stay on their MudBlazor defaults. */
.dmc-unified-table tbody td { vertical-align: middle !important; }
/* Extra breathing room on the unified DMC table — Dense gives ~2 px / 8 px
   which feels cramped at this row complexity (chip + counters + numerics).
   Padding bumped on both axes so cells aren't flush with the table edges. */
.dmc-unified-table tbody td,
.dmc-unified-table thead th { padding-top: 14px !important;
                              padding-bottom: 14px !important;
                              padding-left: 18px !important;
                              padding-right: 18px !important; }

/* Best Price (Competitor Matrix) — two-table split so the hotel-name
   column stays fixed while the operator columns scroll horizontally.
   Same pattern as bm-cgmatrix / heatmap (see feedback memo). Row heights
   must match across both tables (header + body) so rows align by
   construction without any sticky/offset math. */
.bm-bestprice              { font-size: 0.8rem; }
.bm-bestprice__left,
.bm-bestprice__right       { border-collapse: collapse; }
.bm-bestprice__left        { flex: 0 0 auto; background: var(--mud-palette-surface); }
.bm-bestprice__right-wrap  { flex: 1 1 auto; min-width: 0; overflow-x: auto;
                             border-left: 1px solid var(--mud-palette-lines-default); }
.bm-bestprice__right       { width: max-content; }

/* Header row — same height on both tables. */
.bm-bestprice__hotel-th,
.bm-bestprice__op-th       { height: 36px;
                             padding: 6px 12px;
                             font-weight: 600; font-size: 0.78rem;
                             background: var(--mud-palette-action-disabled-background);
                             border-bottom: 1px solid var(--mud-palette-lines-default);
                             box-sizing: border-box; }
.bm-bestprice__op-th       { text-align: center; min-width: 90px; }

/* Body cells — fixed row height so the left hotel-name column and the
   right operator grid line up regardless of which cells are populated.
   92 px ≈ 5 lines (price + 4 meta lines) + padding. */
.bm-bestprice__hotel-td,
.bm-bestprice__cell        { height: 92px;
                             border-bottom: 1px solid var(--mud-palette-lines-default);
                             box-sizing: border-box; }
.bm-bestprice__hotel-td    { padding: 6px 12px;
                             white-space: nowrap; font-weight: 500; vertical-align: middle; }
.bm-bestprice__cell        { padding: 4px 8px; text-align: center; vertical-align: top;
                             min-width: 90px; }
