html, body {
    font-family: 'Inter', 'Noto Sans', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans Devanagari', 'Noto Naskh Arabic', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Localization: trim overflow on tight controls (matches English footprint) */
.hk-ui-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.hk-ui-tight .mud-button-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.hk-lang-menu .mud-list {
    max-height: min(28rem, 70vh);
    overflow-y: auto;
}
.btn-add-compact .mud-button-label {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 14rem;
}
html[dir="rtl"] .mud-drawer .mud-nav-link {
    text-align: right;
}

.cursor-pointer {
    cursor: pointer;
}

/* ─── Smooth page transitions ─── */
.mud-main-content {
    animation: fadeIn 0.35s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── App-wide: buttons and controls feel alive ─── */
.mud-icon-button:not(.mud-switch-base) {
    transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease !important;
}
.mud-icon-button:not(.mud-switch-base):hover {
    transform: scale(1.08);
}
.mud-icon-button:not(.mud-switch-base):active {
    transform: scale(0.95);
}

.mud-button-root:not(.mud-switch-base) {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}
.mud-button-root:not(.mud-switch-base):hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.mud-button-root:not(.mud-switch-base):active {
    transform: translateY(0);
}

/* Compact "Add" buttons so labels like "Add maintenance" fit without truncation */
.btn-add-compact.mud-button-root {
    font-size: 0.75rem !important;
    padding: 4px 10px !important;
    min-height: 32px !important;
    white-space: nowrap;
}
.btn-add-compact .mud-button-icon {
    margin-right: 4px;
}
.btn-add-compact .mud-icon-root {
    font-size: 1rem !important;
}

/* Nav links: gentle hover and active state */
.mud-nav-link {
    transition: background-color 0.2s ease, padding-left 0.2s ease !important;
    border-radius: 8px;
}
.mud-nav-link:hover {
    background-color: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent) !important;
    padding-left: 1.25rem !important;
}
.mud-nav-link.mud-nav-link-active {
    background-color: color-mix(in srgb, var(--mud-palette-primary) 18%, transparent) !important;
}

/* List items and chips */
.mud-list-item {
    transition: background-color 0.2s ease !important;
}
.mud-chip {
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
.mud-chip:hover {
    transform: scale(1.02);
}

/* Clean scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #BDBDBD; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9E9E9E; }

/* Cards: lift and soft shadow on hover */
.mud-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
.mud-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Dashboard stat cards: icon lifts with the card */
.dashboard-stat-card .stat-icon-wrap {
    transition: transform 0.25s ease;
}
.dashboard-stat-card:hover .stat-icon-wrap {
    transform: scale(1.06);
}

/* Dashboard welcome block — hero-style, distinctive typography */
.dashboard-welcome-block {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    margin-bottom: 2rem;
    padding: 1.75rem 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--mud-palette-primary) 8%, var(--mud-palette-surface)) 0%, color-mix(in srgb, var(--mud-palette-primary) 4%, var(--mud-palette-surface)) 100%);
    border: 1px solid var(--mud-palette-lines-default);
    width: 100%;
    box-sizing: border-box;
}
.dashboard-welcome-inner {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}
.dashboard-greeting {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mud-palette-primary);
    margin: 0 0 0.35rem 0;
    opacity: 0.95;
}
.dashboard-hello {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--mud-palette-text-primary);
    margin: 0 0 0.5rem 0;
}
.dashboard-date {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
    margin: 0;
    letter-spacing: 0.01em;
}

/* Dashboard section title (e.g. Quick summary) */
.dashboard-section-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}
.dashboard-section-head-icon {
    font-size: 0.5rem;
    color: var(--mud-palette-primary);
    opacity: 0.8;
}
.dashboard-section-title {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mud-palette-text-primary);
    margin: 0;
}

/* Clickable task rows */
.task-row {
    transition: background-color 0.2s ease;
}
.task-row:hover {
    background-color: var(--mud-palette-action-default-hover);
}

/* Drawer: mini by default (icons-only), expands after tap */
.app-drawer.mud-drawer {
    width: var(--drawer-mini-width) !important;
    max-width: var(--drawer-mini-width) !important;
    min-width: var(--drawer-mini-width) !important;
    overflow: hidden;
    transition: width 0.22s ease, max-width 0.22s ease, min-width 0.22s ease;
}

.app-drawer.drawer-expanded.mud-drawer {
    width: var(--drawer-expanded-width) !important;
    max-width: var(--drawer-expanded-width) !important;
    min-width: var(--drawer-expanded-width) !important;
}

/* Keep main content snapped to drawer edge in both states (desktop persistent rail only) */
.app-drawer.drawer-mini ~ .mud-main-content {
    margin-left: var(--drawer-mini-width) !important;
}

.app-drawer.drawer-expanded ~ .mud-main-content {
    margin-left: var(--drawer-expanded-width) !important;
}

/* Mobile: no side rail — temporary drawer overlays; main uses full width */
@media (max-width: 767px) {
    .app-drawer ~ .mud-main-content,
    .mud-layout > .mud-drawer ~ .mud-main-content {
        margin-left: 0 !important;
    }
}

/* Outside click area to collapse expanded drawer */
.drawer-outside-overlay {
    position: fixed;
    top: var(--mud-appbar-height, 64px);
    left: var(--drawer-expanded-width);
    right: 0;
    bottom: 0;
    z-index: 1095;
    background: transparent;
    /* Desktop UX: don't block clicks to the rest of the page. */
    pointer-events: none;
}

.app-drawer.mud-drawer .mud-drawer-content {
    width: 100% !important;
}

/* Mini nav icon stack */
.navmenu-mini {
    padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;
}

.navmenu-mini-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: var(--mini-icon-column-left);
    gap: 0.15rem;
}

.navmenu-mini-btn {
    width: var(--mini-icon-btn-size);
    height: var(--mini-icon-btn-size);
}

/* Main content: spacious padding and alignment for a relaxed feel */
.main-content {
    padding: 1.5rem 1.5rem 2rem !important;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 960px) {
    .main-content { padding-left: 2rem !important; padding-right: 2rem !important; }
}

/* Theme-aware border cards */
.theme-card {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--mud-default-borderradius);
}

/* Header: clickable logo + name toggles sidebar; drawer same width as brand */
.header-brand-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    cursor: pointer;
    padding: 6px 8px;
    margin: -6px -8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}
.header-brand-block:hover {
    background-color: color-mix(in srgb, currentColor 8%, transparent);
}
.header-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Expanded drawer content width */
.app-drawer.drawer-expanded.mud-drawer .mud-drawer-content {
    width: var(--drawer-expanded-width) !important;
}

/* Paper / cards: subtle transition for a calmer feel */
.mud-paper {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.mud-paper.rounded-xl {
    overflow: hidden;
    border-radius: 1rem !important;
}
.mud-paper.rounded-lg {
    overflow: hidden;
    border-radius: 0.5rem !important;
}

/* Dialogs: gentle open feel */
.mud-dialog {
    animation: dialogFadeIn 0.25s ease-out;
}
@keyframes dialogFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* Avatar and dropdown triggers */
.mud-avatar {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mud-avatar:hover {
    transform: scale(1.05);
}

/* Notifications popover */
.notifications-popover {
    position: fixed;
    left: 50%;
    top: calc(var(--mud-appbar-height, 64px) + 12px);
    transform: translateX(-50%);
    z-index: 1300;
    width: 300px;
    max-width: calc(100vw - 24px);
}

/* Desktop: anchor directly under the bell icon wrapper (which is position:relative). */
@media (min-width: 768px) {
    .notifications-popover {
        position: absolute;
        left: auto;
        right: 0;
        top: calc(100% + 12px);
        transform: none;
        /* allow a little breathing room on very wide screens */
        max-width: 420px;
    }
}
.notifications-popover-paper {
    overflow: hidden;
    max-height: min(320px, 60vh);
    display: flex;
    flex-direction: column;
}
.notifications-popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    flex-shrink: 0;
}
.notifications-popover-empty {
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.notifications-popover-list {
    max-height: 220px;
    overflow-y: auto;
}
.notifications-popover-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}
.notifications-popover-item-clickable {
    cursor: pointer;
    outline: none;
    transition: background-color 0.15s ease;
}
.notifications-popover-item-clickable:hover {
    background-color: color-mix(in srgb, var(--mud-palette-action-default-hover) 65%, transparent);
}
.notifications-popover-item-clickable:focus-visible {
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--mud-palette-primary) 55%, transparent);
}
.notifications-popover-item .mud-typography-h6,
.notifications-popover-item .mud-typography-body2 {
    font-size: 0.8125rem;
}
.notifications-dismiss-btn {
    margin: -4px;
}

/* Loading state */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
}
.loading-progress circle {
    fill: none;
    stroke: #1976D2;
    stroke-width: 0.15rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: #E0E0E0;
    stroke-dasharray: calc(3.14 * 1.6rem);
    stroke-dashoffset: calc(3.14 * 1.6rem);
    animation: loading-spin 2s linear infinite;
}
@keyframes loading-spin {
    100% { stroke-dashoffset: 0; }
}

#blazor-error-ui {
    background: #FFF3CD;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.1);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    text-align: center;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE: breakpoint 768px, touch targets, safe areas, bottom nav
   See docs/MOBILE_PLAN.md and docs/MOBILE_IMPLEMENTATION.md
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --mobile-bottom-nav-height: 64px;
    --mobile-content-padding-x: 16px;
    --mobile-touch-min: 44px;
    --drawer-mini-width: 80px;
    --drawer-expanded-width: 260px;
    --mini-icon-column-left: 0px;
    --mini-icon-btn-size: 46px;
}

/* Mobile-only: show only below 768px */
.mobile-only {
    display: none !important;
}
@media (max-width: 767px) {
    .mobile-only {
        display: flex !important;
    }
}

/* Hide on mobile (e.g. rail is already hidden at 600px) */
@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }
}

/* Touch-friendly minimum tap target (use on icon buttons and list rows) */
.touch-target-min {
    min-width: var(--mobile-touch-min);
    min-height: var(--mobile-touch-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Main content: on mobile, generous horizontal padding so nothing is clipped; content stays within frame */
@media (max-width: 767px) {
    .main-content.main-content-with-bottom-nav {
        padding-bottom: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 1rem) !important;
    }
    .main-content {
        padding-left: var(--mobile-content-padding-x) !important;
        padding-right: var(--mobile-content-padding-x) !important;
    }
    /* Prevent flex/grid children from overflowing and being clipped */
    .main-content > * {
        min-width: 0;
        max-width: 100%;
    }
    /* MudGrid: remove negative gutter drift; symmetric item padding; full-width cards */
    .main-content .mud-grid {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center;
    }

    .main-content .mud-grid-item {
        min-width: 0;
        padding-left: 6px !important;
        padding-right: 6px !important;
        box-sizing: border-box;
    }

    .main-content .dashboard-stat-grid > .mud-grid-item {
        flex: 0 0 calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important;
    }

    .main-content .homes-grid > .mud-grid-item {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .main-content .homes-grid .mud-card,
    .main-content .dashboard-stat-grid .mud-paper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Keep content centered and unshifted in the exact problem range */
@media (min-width: 600px) and (max-width: 958px) {
    :root {
        --drawer-mini-width: 72px;
        --drawer-expanded-width: 240px;
        --mini-icon-column-left: 0px;
        --mini-icon-btn-size: 44px;
    }
    .main-content {
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 599px) {
    :root {
        --drawer-mini-width: 64px;
        --drawer-expanded-width: 220px;
        --mini-icon-column-left: 0px;
        --mini-icon-btn-size: 42px;
    }
}

/* Section headers (e.g. Systems, Amenities): let subtitle wrap on mobile so it fits */
@media (max-width: 767px) {
    .section-header-mobile {
        flex-wrap: wrap !important;
    }
    .section-header-mobile .mud-typography {
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Centered section titles (mobile): Systems, Amenities, Garage, Yard */
@media (max-width: 767px) {
    .section-title-center {
        justify-content: flex-start !important;
        text-align: left;
    }
    .section-title-center .mud-typography {
        text-align: left;
    }
}

/* Systems: on mobile stacked full-width horizontal buttons; on desktop 2-column grid */
.systems-buttons-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
@media (min-width: 768px) {
    .systems-buttons-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}
.feature-chip-horizontal {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
}
.feature-chip-horizontal .mud-typography {
    font-size: 0.9rem;
    font-weight: 500;
}

/* FeatureChip: label wraps and slightly smaller on mobile so "Solar System" etc. fit */
@media (max-width: 767px) {
    .feature-chip-mobile .mud-typography {
        font-size: 0.85rem !important;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .feature-chip-mobile {
        min-width: 0;
    }
}

/* Amenities (Garage/Yard): chips wrap in main column; edit/delete stay top-right, never wrap */
.amenity-card-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
}
.amenity-card-main {
    flex: 1 1 0;
    min-width: 0;
}
.amenity-card-actions {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
}
.amenity-chips-wrap {
    width: 100%;
}

/* Home detail: title row stays aligned on narrow screens */
.home-detail-title-row {
    width: 100%;
    min-width: 0;
}
.home-detail-title-text {
    flex: 1 1 0;
    min-width: 0;
}

/* Dashboard: keep hero + section titles left-aligned on mobile */
@media (max-width: 767px) {
    .dashboard-welcome-block {
        text-align: left;
    }
    .dashboard-welcome-inner {
        text-align: left;
    }
    .dashboard-section-head {
        justify-content: flex-start;
        width: 100%;
    }
    .dashboard-home-group-header {
        min-width: 0;
        flex-wrap: wrap;
        row-gap: 8px;
    }
    .home-header-main {
        min-width: 0;
        flex: 1 1 100%;
    }
    .home-header-chips {
        flex: 0 0 auto;
    }
    .home-group-title {
        min-width: 0;
        flex: 1 1 auto;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: anywhere;
        line-height: 1.2;
    }
}

/* Systems paper: full width on mobile, no horizontal offset */
@media (max-width: 767px) {
    .systems-buttons-wrap {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
}

/* Compact header only on very small phones; keep 767/766 equal */
@media (max-width: 600px) {
    .appbar-with-brand .header-logo {
        width: 36px;
        height: 36px;
    }
    .appbar-with-brand .header-brand-block {
        min-height: 40px;
        gap: 6px;
    }
    .appbar-with-brand .header-brand-block .mud-typography {
        font-size: 1.1rem !important;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* List rows: comfortable min-height on mobile for touch */
@media (max-width: 767px) {
    .task-row,
    .mud-list-item-clickable {
        min-height: var(--mobile-touch-min);
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

/* Data tables: keep real rows/columns on narrow screens; scroll horizontally instead of stacking */
.hk-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    /* Always hide scrollbar thumb/track on mobile Chrome where it can steal the first swipe. */
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
    scrollbar-gutter: auto;
    scrollbar-color: transparent transparent;
    position: relative;
    padding-bottom: 8px;
}

.hk-table-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.hk-table-scroll .mud-simple-table,
.hk-table-scroll .mud-table-container,
.hk-table-scroll .mud-table-root {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scrollbar-color: transparent transparent;
}

.hk-table-scroll .mud-simple-table::-webkit-scrollbar,
.hk-table-scroll .mud-table-container::-webkit-scrollbar,
.hk-table-scroll .mud-table-root::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.hk-table-scroll::-webkit-scrollbar-thumb {
    background: transparent;
}

.hk-table-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.hk-table-scroll-indicator-track {
    display: none;
    position: sticky;
    left: 10px;
    bottom: 2px;
    z-index: 2;
    width: calc(100% - 20px);
    height: 4px;
    border-radius: 999px;
    margin: 6px 0 0;
    background: color-mix(in srgb, var(--mud-palette-lines-default) 70%, transparent);
    overflow: hidden;
    pointer-events: none;
}

.hk-table-scroll-indicator-thumb {
    height: 100%;
    width: 28px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--mud-palette-primary) 70%, var(--mud-palette-text-secondary));
    transform: translateX(0);
    transition: transform 0.05s linear;
}

@media (max-width: 767px) {
    .hk-table-scroll {
        /* Take full control of touch panning via JS so the first swipe + direction changes work reliably. */
        touch-action: none;
        overflow-y: hidden;
    }
}

.hk-table-scroll .mud-simple-table table {
    width: max-content;
    min-width: 100%;
}

.hk-table-scroll .mud-simple-table th,
.hk-table-scroll .mud-simple-table td {
    white-space: nowrap;
    vertical-align: middle;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.hk-table-scroll .mud-table {
    min-width: max(100%, 560px);
}

.hk-table-scroll .mud-table td,
.hk-table-scroll .mud-table th {
    white-space: nowrap;
    vertical-align: middle;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.hk-actions-row {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.hk-actions-row .mud-button-root {
    flex-shrink: 0;
}

/* Homes cards: stronger visual metadata pills */
.home-meta-row {
    margin-top: 2px;
}
.home-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 85%, transparent);
    background: color-mix(in srgb, var(--mud-palette-surface) 88%, transparent);
}
.home-meta-pill .mud-icon-root {
    font-size: 0.9rem;
    color: var(--mud-palette-primary);
}
.home-meta-pill .mud-typography {
    font-weight: 600;
    font-size: 0.85rem;
}

@media (max-width: 767px) {
    /* Home detail tabs: mobile-only native horizontal scrolling behavior. */
    .border-tabs-mobile.mud-tabs .mud-tabs-tabbar-content {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        /* Hide scrollbars: clicking a tab focuses the bar — :focus-within used to show a thumb and it never hid again. */
        scrollbar-width: none;
        -ms-overflow-style: none;
        scrollbar-color: transparent transparent;
    }

    .border-tabs-mobile.mud-tabs .mud-tabs-tabbar-content::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .border-tabs-mobile.mud-tabs .mud-tabs-tabbar-wrapper {
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        width: max-content !important;
        min-width: min-content !important;
    }

    .border-tabs-mobile.mud-tabs .mud-tab {
        flex: 0 0 auto !important;
        width: auto !important;
    }

    /* Home detail tabs: never show MudTabs scroll chevrons on mobile. */
    .border-tabs-mobile.mud-tabs .mud-tabs-scroll-button {
        display: none !important;
    }

    .border-tabs-mobile.mud-tabs .mud-tabs-tabbar-inner {
        min-height: 44px;
    }

    .border-tabs-mobile.mud-tabs .mud-tabs-tabbar-content {
        padding-left: 2px;
        padding-right: 2px;
    }

    .border-tabs-mobile.mud-tabs .mud-tab {
        min-height: 44px;
        min-width: 64px;
    }
}

/* Home detail tabs (all widths): keep horizontal scroll but never show a persistent bar after tab click/focus. */
.border-tabs-mobile.mud-tabs .mud-tabs-tabbar-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scrollbar-color: transparent transparent;
}
.border-tabs-mobile.mud-tabs .mud-tabs-tabbar-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Amenity task badges */
.amenity-task-chip {
    cursor: pointer;
    min-height: 24px;
}

/* Expense comparison (multi-month bars + category pills) */
.hk-exp-compare-panels .mud-expand-panel-header {
    padding: 10px 14px;
}

.hk-exp-compare-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}
.hk-exp-compare-bar-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hk-exp-compare-bar-row {
    display: grid;
    grid-template-columns: 72px 1fr min-content;
    align-items: center;
    gap: 10px;
}
.hk-exp-compare-bar-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mud-palette-text-secondary);
}
.hk-exp-compare-bar-track {
    height: 12px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--mud-palette-lines-default) 55%, transparent);
    overflow: hidden;
}
.hk-exp-compare-bar-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--mud-palette-primary) 0%, color-mix(in srgb, var(--mud-palette-primary) 65%, var(--mud-palette-secondary)) 100%);
    min-width: 2px;
    transition: width 0.25s ease;
}
.hk-exp-compare-bar-val {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}
.hk-exp-compare-cat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 2px;
}
.hk-exp-compare-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid var(--mud-palette-lines-default);
    background: color-mix(in srgb, var(--mud-palette-surface) 90%, transparent);
}
.hk-exp-compare-cat-sum {
    opacity: 0.85;
    font-size: 0.68rem;
    margin-left: 2px;
}

/* Two-month compare: vertical bars */
.hk-exp-compare-2m-chart {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 8px;
}

.hk-exp-compare-2m-chart-title {
    text-align: center;
    width: 100%;
    display: block;
}

.hk-exp-compare-2m-bars {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(24px, 8vw, 56px);
    min-height: 200px;
    padding: 8px 12px 0;
}
.hk-exp-compare-2m-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(42%, 160px);
    gap: 8px;
}
.hk-exp-compare-2m-amount {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 4.5rem;
}
.hk-exp-compare-2m-flag-line {
    min-height: 36px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 4px;
    margin-bottom: 2px;
}
.hk-exp-compare-2m-money {
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}
.hk-exp-compare-2m-money--highest {
    color: var(--mud-palette-warning);
}
.hk-exp-compare-2m-money--lowest {
    color: var(--mud-palette-success);
}
/* Higher/Lower / Highest/Lowest: colored word only; circular badge wraps arrow only */
.hk-exp-rank-label {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    box-sizing: border-box;
}

.hk-exp-rank-label__icon-bg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    line-height: 0;
    overflow: hidden;
}

.hk-exp-rank-label--low .hk-exp-rank-label__icon-bg {
    background-color: var(--mud-palette-success);
    color: var(--mud-palette-success-text, #fff);
}

.hk-exp-rank-label--high .hk-exp-rank-label__icon-bg {
    background-color: var(--mud-palette-warning);
    color: var(--mud-palette-warning-text, rgba(0, 0, 0, 0.87));
}

.hk-exp-rank-label__chev.mud-icon-root {
    font-size: 1.35rem !important;
    width: 1.35rem !important;
    height: 1.35rem !important;
    margin-top: 2px;
}

.hk-exp-rank-label--low .hk-exp-rank-label__word {
    color: var(--mud-palette-success);
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.hk-exp-rank-label--high .hk-exp-rank-label__word {
    color: var(--mud-palette-warning);
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

@media (max-width: 599px) {
    .hk-exp-compare-multi-bars .hk-exp-rank-label {
        gap: 6px;
    }

    .hk-exp-compare-multi-bars .hk-exp-rank-label__word {
        font-size: 0.62rem;
    }
}
.hk-exp-compare-2m-bar-wrap {
    width: 100%;
    max-width: 88px;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    border-radius: 8px 8px 0 0;
    background: color-mix(in srgb, var(--mud-palette-lines-default) 40%, transparent);
    overflow: hidden;
}
.hk-exp-compare-2m-bar {
    width: 100%;
    min-height: 4px;
    border-radius: 8px 8px 0 0;
    transition: height 0.3s ease;
}
.hk-exp-compare-2m-bar--a {
    background: linear-gradient(180deg, var(--mud-palette-primary) 0%, color-mix(in srgb, var(--mud-palette-primary) 70%, var(--mud-palette-secondary)) 100%);
}
.hk-exp-compare-2m-bar--b {
    background: linear-gradient(180deg, var(--mud-palette-secondary) 0%, color-mix(in srgb, var(--mud-palette-secondary) 65%, var(--mud-palette-primary)) 100%);
}
.hk-exp-compare-2m-meta {
    min-height: 2.6em;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--mud-palette-text-secondary);
    text-align: center;
    line-height: 1.25;
}
.hk-exp-compare-2m-cat-slot {
    width: 100%;
    min-height: 5.75rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
}

.hk-exp-compare-cat-row--pillar {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
}
.hk-exp-compare-2m-col--with-cats .hk-exp-compare-cat-pill {
    max-width: 100%;
}
.hk-exp-compare-2m-diff {
    text-align: center;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--mud-palette-lines-default);
    background: color-mix(in srgb, var(--mud-palette-surface) 92%, transparent);
}

.hk-exp-compare-2m-diff .hk-exp-compare-diff-main {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.hk-exp-compare-2m-diff .hk-exp-compare-diff-sub {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 4px;
    opacity: 0.9;
}

.hk-exp-basis-toggle .hk-exp-basis-btn.mud-button-root {
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: none;
}

.hk-exp-basis-toggle .hk-exp-basis-btn--paid.mud-button-outlined {
    border-color: color-mix(in srgb, var(--mud-palette-success) 65%, var(--mud-palette-lines-default)) !important;
    color: var(--mud-palette-success) !important;
}

.hk-exp-basis-toggle .hk-exp-basis-btn--projected.mud-button-outlined {
    border-color: color-mix(in srgb, var(--mud-palette-info) 65%, var(--mud-palette-lines-default)) !important;
    color: var(--mud-palette-info) !important;
}

/* Space after PAID/PROJECTED; wrapper so margin isn’t lost on MudSelect’s root */
.hk-exp-compare-to-wrap {
    display: block;
    width: 100%;
    margin-top: 1.25rem;
}

.hk-exp-compare-2m-bar--c {
    background: linear-gradient(180deg, var(--mud-palette-tertiary) 0%, color-mix(in srgb, var(--mud-palette-tertiary) 70%, var(--mud-palette-primary)) 100%);
}

.hk-exp-compare-2m-bar--d {
    background: linear-gradient(180deg, var(--mud-palette-warning) 0%, color-mix(in srgb, var(--mud-palette-warning) 75%, var(--mud-palette-secondary)) 100%);
}

.hk-exp-compare-2m-bar--e {
    background: linear-gradient(180deg, color-mix(in srgb, var(--mud-palette-info) 85%, var(--mud-palette-primary)) 0%, var(--mud-palette-info) 100%);
}

.hk-exp-compare-2m-bar--f {
    background: linear-gradient(180deg, color-mix(in srgb, var(--mud-palette-error) 55%, var(--mud-palette-primary)) 0%, color-mix(in srgb, var(--mud-palette-error) 40%, var(--mud-palette-secondary)) 100%);
}

.hk-exp-compare-2m-bar--multi-high {
    background: linear-gradient(
        180deg,
        var(--mud-palette-warning) 0%,
        color-mix(in srgb, var(--mud-palette-warning) 72%, var(--mud-palette-primary)) 100%
    );
}

.hk-exp-compare-2m-bar--multi-low {
    background: linear-gradient(
        180deg,
        var(--mud-palette-success) 0%,
        color-mix(in srgb, var(--mud-palette-success) 70%, var(--mud-palette-secondary)) 100%
    );
}

.hk-exp-compare-2m-meta--highest {
    color: var(--mud-palette-warning) !important;
    font-weight: 700;
}

.hk-exp-compare-2m-meta--lowest {
    color: var(--mud-palette-success) !important;
    font-weight: 700;
}

.hk-exp-compare-multi-bars {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: clamp(6px, 1.8vw, 16px);
    min-height: 180px;
    padding: 8px 4px 6px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.hk-exp-compare-multi-bars .hk-exp-compare-2m-col {
    flex: 0 0 auto;
    width: clamp(56px, 16vw, 92px);
    min-width: 52px;
    max-width: 96px;
    overflow: hidden;
    contain: layout;
}

.hk-exp-compare-multi-bars .hk-exp-compare-2m-bar-wrap {
    width: 100%;
    max-width: none;
    height: clamp(110px, 32vw, 160px);
}

.hk-exp-compare-multi-bars .hk-exp-compare-2m-money {
    font-size: clamp(0.62rem, 2.6vw, 0.92rem);
}

.hk-exp-compare-multi-bars .hk-exp-compare-2m-flag-line {
    min-height: 32px;
}

.hk-exp-compare-multi-bars .hk-exp-compare-2m-meta {
    font-size: clamp(0.58rem, 2.2vw, 0.72rem);
}

.hk-exp-compare-2m-meta--multimonth {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 2px;
    line-height: 1.2;
    padding: 0 1px;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: center;
}

.hk-exp-meta-monthline {
    font-weight: 700;
}

.hk-exp-meta-paidtag {
    font-size: 0.62em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

.hk-exp-compare-2m-cat-slot--multimonth {
    min-height: 5.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 1px;
    overflow: hidden;
}

.hk-exp-compare-multi-bars .hk-exp-compare-cat-row--pillar {
    width: 100%;
    max-width: 100%;
    align-items: stretch;
    gap: 5px;
}

.hk-exp-compare-cat-pill--multimonth {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 6px 4px 7px;
    border-radius: 8px;
    text-align: center;
    font-size: clamp(0.58rem, 2.4vw, 0.72rem);
}

.hk-exp-compare-cat-pill--multimonth .hk-exp-compare-cat-pill-iconrow {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    min-height: 1.25rem;
}

.hk-exp-compare-cat-pill--multimonth .hk-exp-compare-cat-pill-icon {
    flex-shrink: 0;
    opacity: 0.95;
}

.hk-exp-compare-cat-pill--multimonth .hk-exp-compare-cat-pill-count-badge {
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    padding: 1px 4px;
    border-radius: 4px;
    min-width: 1rem;
    text-align: center;
    color: var(--mud-palette-text-primary);
    background: color-mix(in srgb, var(--mud-palette-surface) 55%, var(--mud-palette-lines-default));
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 70%, transparent);
}

.hk-exp-compare-cat-pill--multimonth .hk-exp-compare-cat-pill-sum {
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
    width: 100%;
}

@media (min-width: 600px) {
    .hk-exp-compare-multi-bars {
        justify-content: center;
        overflow-x: visible;
        gap: clamp(10px, 2.2vw, 20px);
    }
    .hk-exp-compare-multi-bars .hk-exp-compare-2m-col {
        width: clamp(64px, 12vw, 88px);
        max-width: 88px;
    }
}

@media (min-width: 960px) {
    .hk-exp-compare-multi-bars .hk-exp-compare-2m-col {
        width: clamp(72px, 11%, 100px);
        max-width: 100px;
    }
}

/* BG only: multi-month columns are very narrow — row label + long words (e.g. Най-ниско) clip.
   Stack icon above text and allow wrapping; relax column clipping (lang set by locale.js). */
html[lang="bg"] .hk-exp-compare-multi-bars {
    gap: clamp(8px, 2.4vw, 18px);
}

html[lang="bg"] .hk-exp-compare-multi-bars .hk-exp-rank-label {
    flex-direction: column;
    gap: 3px;
    align-items: center;
    max-width: 100%;
}

html[lang="bg"] .hk-exp-compare-multi-bars .hk-exp-rank-label--low .hk-exp-rank-label__word,
html[lang="bg"] .hk-exp-compare-multi-bars .hk-exp-rank-label--high .hk-exp-rank-label__word {
    white-space: normal;
    text-align: center;
    line-height: 1.15;
    font-size: 0.58rem;
    max-width: 100%;
    overflow-wrap: break-word;
}

html[lang="bg"] .hk-exp-compare-multi-bars .hk-exp-compare-2m-col {
    overflow: visible;
    contain: none;
}

html[lang="bg"] .hk-exp-compare-multi-bars .hk-exp-compare-2m-flag-line {
    min-height: 42px;
    overflow: visible;
}

html[lang="bg"] .hk-exp-compare-multi-bars .hk-exp-compare-2m-amount {
    min-height: 5.25rem;
}

@media (max-width: 599px) {
    html[lang="bg"] .hk-exp-compare-multi-bars .hk-exp-rank-label--low .hk-exp-rank-label__word,
    html[lang="bg"] .hk-exp-compare-multi-bars .hk-exp-rank-label--high .hk-exp-rank-label__word {
        font-size: 0.54rem;
    }
}

/* Two-month pillars: reuse multi-month category pills under each bar */
.hk-exp-compare-2m-bars--with-cats .hk-exp-compare-2m-col--with-cats .hk-exp-compare-cat-row--pillar {
    width: 100%;
    max-width: 100%;
}

/* Slim list rows (dashboard upcoming + home detail maintenance / repairs / bills / expenses) */
.hk-list-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
    min-width: 0;
    padding: 6px 10px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    box-sizing: border-box;
}

.hk-list-row:last-child {
    border-bottom: none;
}

/* Home detail rows: content left, primary actions pinned right (maintenance / repairs / bills / expenses) */
.hk-list-row.hk-list-row--detail {
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.hk-list-row--detail .hk-list-row-lead {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.45rem;
    flex: 1 1 auto;
    min-width: 0;
}

.hk-list-row--detail .hk-list-row-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.hk-list-row--detail .hk-list-main {
    flex: 1 1 auto;
    min-width: 0;
}

.hk-list-row--detail .hk-list-row-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-top: 4px;
}

.hk-list-row--detail .hk-list-row-due-inline {
    margin-top: 0 !important;
    line-height: 1.2 !important;
    align-self: center;
}

.hk-list-row--detail .hk-list-row-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    flex-shrink: 0;
    align-self: center;
}

.hk-list-row--detail .hk-list-row-trail {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem;
    flex-shrink: 0;
    align-self: center;
}

.hk-list-row--detail .hk-list-row-trail .hk-list-amount {
    margin-right: 0.15rem;
}

/* Home detail: Maintenance / Repairs / Bills / Expenses — nested upcoming & completed lists */
.hk-category-lists-panels.mud-expansion-panels {
    border-radius: 12px;
    overflow: hidden;
}

.hk-category-lists-panels .hk-category-subpanel.mud-expansion-panel {
    box-shadow: none !important;
}

.hk-category-lists-panels .hk-category-subpanel.mud-expansion-panel:not(:last-child) {
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.hk-category-lists-panels .mud-expand-panel-content {
    padding: 0 8px 10px 8px;
}

.hk-upcoming-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    color: var(--mud-palette-warning-darken);
    background: color-mix(in srgb, var(--mud-palette-warning) 22%, transparent);
    border: 1px solid color-mix(in srgb, var(--mud-palette-warning) 35%, transparent);
}

.hk-completed-count-badge {
    color: var(--mud-palette-success-darken);
    background: color-mix(in srgb, var(--mud-palette-success) 22%, transparent);
    border: 1px solid color-mix(in srgb, var(--mud-palette-success) 35%, transparent);
}

/* Category/subsection header inside "Upcoming by Home" */
.hk-subsection-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px 6px 10px;
    margin: 12px 0 6px 0;
    border-left: 3px solid var(--hk-subsection-color, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--hk-subsection-color, var(--mud-palette-primary)) 12%, transparent);
}

.hk-subsection-header .hk-list-title-text {
    line-height: 1.25 !important; /* keep consistent with list titles */
}

/* Animated expand/collapse wrapper for each "Home" group */
.hk-home-group-body {
    overflow: hidden;
    transition: max-height 260ms ease, opacity 220ms ease;
    max-height: 1200px;
    opacity: 1;
    pointer-events: auto;
}

.hk-home-group-body--collapsed {
    max-height: 0px;
    opacity: 0;
    pointer-events: none;
}

.hk-list-row--clickable:active {
    background-color: var(--mud-palette-action-default-hover);
}

.hk-list-main {
    flex: 1 1 auto;
    min-width: 0;
}

.hk-list-title-text {
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    line-height: 1.25 !important;
}

.hk-list-meta-text {
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    line-height: 1.2 !important;
    margin-top: 1px !important;
}

.hk-list-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    flex-shrink: 0;
}

.hk-list-amount {
    flex-shrink: 0;
    font-size: 0.8125rem !important;
    min-width: 5rem;
    text-align: right;
    align-self: center;
}

.hk-list-icon-btn.mud-icon-button {
    padding: 4px !important;
}

.btn-row-action.mud-button-root {
    font-size: 0.68rem !important;
    padding: 2px 8px !important;
    min-height: 30px !important;
}

@media (max-width: 767px) {
    .hk-list-row:not(.hk-list-row--detail) {
        padding: 5px 8px;
        gap: 0.3rem;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .hk-list-row:not(.hk-list-row--detail) .mud-chip {
        flex-shrink: 0;
    }

    .hk-list-row:not(.hk-list-row--detail) .hk-list-main {
        flex: 1 1 100%;
        order: 2;
    }

    .hk-list-row:not(.hk-list-row--detail) .hk-list-aside {
        order: 3;
    }

    .hk-list-row.hk-list-row--detail {
        padding: 8px 8px;
        gap: 0.4rem;
    }

    .hk-list-row--detail .hk-list-row-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: min(112px, 38%);
    }

    /* Dashboard root: avoid clipping / horizontal drift from overflow + nested grids */
    .dashboard-content {
        width: 100%;
        max-width: 100%;
        overflow-x: visible;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Bottom navigation bar (mobile) */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-bottom-nav-height);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--mud-palette-surface);
    border-top: 1px solid var(--mud-palette-lines-default);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-sizing: content-box;
}
.mobile-bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    min-height: var(--mobile-touch-min);
    color: var(--mud-palette-text-secondary);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 8px;
}
.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item:active {
    color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
}
.mobile-bottom-nav .nav-item.active {
    color: var(--mud-palette-primary);
    font-weight: 600;
}
.mobile-bottom-nav .nav-item .nav-icon {
    font-size: 1.5rem;
}
.mobile-bottom-nav .nav-item .nav-icon.mud-icon-root {
    color: inherit;
    font-size: 1.5rem;
}

/* Help & Data page mobile polish */
.hk-help-file-input {
    width: 100%;
    max-width: 100%;
}

.hk-help-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Subscription page: keep plan cards aligned on desktop */
.hk-subscription-plan-grid .mud-grid-item {
    display: flex;
}

.hk-subscription-plan-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hk-subscription-plan-card .mud-button-root {
    margin-top: auto !important;
    align-self: flex-start;
}

.hk-subscription-manage-card {
    width: 100%;
    box-sizing: border-box;
}

.hk-sub-days-row {
    margin-top: 4px;
    font-weight: 600;
}

.hk-sub-days-good {
    color: color-mix(in srgb, var(--mud-palette-success) 82%, white 18%);
}

.hk-sub-days-warn {
    color: color-mix(in srgb, var(--mud-palette-warning) 82%, white 18%);
}

.hk-sub-days-danger {
    color: color-mix(in srgb, var(--mud-palette-error) 80%, white 20%);
}

.hk-help-notify-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.hk-help-notify-toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hk-help-notify-toggle-row .mud-switch {
    margin: 0;
}

.hk-help-notify-label {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.hk-help-notify-test-btn.mud-button-root {
    margin-left: 52px;
    align-self: flex-start;
}

@media (max-width: 767px) {
    .hk-cal-tabs.mud-tabs .mud-tabs-tabbar-content {
        justify-content: center;
    }

    .hk-cal-tabs.mud-tabs .mud-tabs-tabbar-wrapper {
        width: 100% !important;
        justify-content: center;
    }

    .hk-help-page .mud-typography-h4 {
        font-size: 1.5rem !important;
        line-height: 1.25;
    }

    .hk-help-actions {
        width: 100%;
    }

    .hk-help-actions .mud-button-root:not(.mud-switch-base) {
        width: 100%;
    }

    .hk-help-actions .mud-switch {
        width: auto;
        align-self: flex-start;
    }

    .hk-help-notify-label {
        font-size: 0.95rem;
    }

    .hk-help-notify-test-btn.mud-button-root {
        margin-left: 52px;
    }

    .hk-onboard-dialog-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .hk-onboard-dialog-actions .mud-button-root {
        flex: 1 1 0;
    }
}

/* Snackbar above bottom nav on mobile */
@media (max-width: 767px) {
    .mud-snackbar-location-bottom {
        bottom: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 8px) !important;
    }
}

/* ─── Route transition overlay (perceived loading on navigation) ─── */
.nav-transition-wrap {
    position: relative;
    min-height: 100%;
}

.nav-transition-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: color-mix(in srgb, var(--mud-palette-background) 50%, transparent);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.nav-transition-bar {
    flex-shrink: 0;
}

/* ─── Logged-out landing hero ─── */
.landing-hero {
    min-height: calc(65vh - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.75rem;
    border-radius: 20px;
    margin: 0 auto;
    max-width: 720px;
    background:
        radial-gradient(ellipse 120% 90% at 50% -10%,
            color-mix(in srgb, var(--mud-palette-primary) 24%, transparent) 0%,
            transparent 58%),
        radial-gradient(ellipse 100% 70% at 100% 100%,
            color-mix(in srgb, var(--mud-palette-secondary) 16%, transparent) 0%,
            transparent 55%);
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 80%, transparent);
}

.landing-hero-inner {
    text-align: center;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
}

.landing-icon-wrap {
    display: inline-flex;
    padding: 0;
    border-radius: 0;
    background: transparent;
    margin-bottom: 1.75rem;
    align-items: center;
    justify-content: center;
}

.landing-icon-wrap img {
    height: 104px;
    width: auto;
    object-fit: contain;
}

.landing-headline {
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: rgba(17,24,39,0.78);
}

.landing-headline--dark {
    color: rgba(255,255,255,0.92) !important;
}

.landing-headline--light {
    color: rgba(17,24,39,0.78) !important;
}


.landing-subtitle {
    margin-top: 0.75rem !important;
    line-height: 1.55;
    color: rgba(17,24,39,0.65);
}

.landing-subtitle--dark {
    color: rgba(255,255,255,0.82) !important;
}

.landing-subtitle--light {
    color: rgba(17,24,39,0.65) !important;
}

.landing-tagline-rotate {
    position: relative;
    min-height: 2.75rem;
    margin: 1.25rem 0 1.5rem;
}

.landing-tagline-item {
    position: absolute;
    left: 0;
    right: 0;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--mud-palette-secondary);
    opacity: 0;
    animation: landingTaglineCycle 9s ease-in-out infinite;
}

.landing-tagline-item:nth-child(1) {
    animation-delay: 0s;
}

.landing-tagline-item:nth-child(2) {
    animation-delay: 3s;
}

.landing-tagline-item:nth-child(3) {
    animation-delay: 6s;
}

@keyframes landingTaglineCycle {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    4%, 28% {
        opacity: 1;
        transform: translateY(0);
    }
    33%, 100% {
        opacity: 0;
        transform: translateY(-8px);
    }
}

.landing-cta-row {
    margin-top: 0.5rem;
}

.landing-trust {
    opacity: 0.9;
}

@media (max-width: 600px) {
    .landing-hero {
        min-height: auto;
        padding: 1.75rem 1rem;
    }

    .landing-headline {
        font-size: 1.65rem !important;
    }

    .landing-icon-wrap img {
        height: 80px;
    }
}

/* ─── Login / sign-up / forgot-password dialog (class on MudDialog) ─── */
.hk-auth-dialog .mud-input-label.mud-input-label-inputcontrol:not(.mud-shrink) {
    opacity: 0.72;
}

/* Validation: keep border + helper "Required" red; labels stay muted (not error red) */
.hk-auth-dialog .mud-input-control.mud-input-error .mud-input-label-inputcontrol.mud-input-error,
.hk-auth-dialog .mud-input-control.mud-input-error .mud-input-label.mud-input-label-inputcontrol.mud-input-error {
    color: var(--mud-palette-text-secondary) !important;
    opacity: 0.78 !important;
}

/* Outlined fields: clip native paint (incl. autofill) to the same radius as .mud-input-outlined-border */
.hk-auth-dialog .mud-input.mud-input-outlined {
    border-radius: var(--mud-default-borderradius);
    overflow: hidden;
}

.hk-auth-dialog .mud-input.mud-input-outlined input.mud-input-root-outlined,
.hk-auth-dialog .mud-input.mud-input-outlined textarea.mud-input-root-outlined {
    background-color: transparent !important;
    border-radius: calc(var(--mud-default-borderradius) - 1px);
}

.hk-auth-dialog .mud-input.mud-input-outlined input.mud-input-root-outlined:-webkit-autofill,
.hk-auth-dialog .mud-input.mud-input-outlined input.mud-input-root-outlined:-webkit-autofill:hover,
.hk-auth-dialog .mud-input.mud-input-outlined input.mud-input-root-outlined:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--mud-palette-text-primary);
    caret-color: var(--mud-palette-text-primary);
    transition: background-color 99999s ease-out;
    -webkit-box-shadow: 0 0 0 1000px var(--mud-palette-surface) inset;
    box-shadow: 0 0 0 1000px var(--mud-palette-surface) inset;
    border-radius: calc(var(--mud-default-borderradius) - 2px);
}

/* Password toggle: strip UA “button” panel (often solid black in dark mode); keep icon on field background */
.hk-auth-dialog .mud-input-adornment {
    background: transparent !important;
    box-shadow: none !important;
}

.hk-auth-dialog .mud-input-adornment .mud-icon-button.mud-input-adornment-icon-button,
.hk-auth-dialog .mud-input-adornment button.mud-icon-button {
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent !important;
    color: var(--mud-palette-action-default);
    box-shadow: none !important;
}

.hk-auth-dialog .mud-input-adornment .mud-icon-button:hover,
.hk-auth-dialog .mud-input-adornment button.mud-icon-button:hover {
    transform: none !important;
    box-shadow: none !important;
    background-color: color-mix(in srgb, var(--mud-palette-action-default-hover) 22%, transparent) !important;
}

.hk-auth-dialog .mud-input-adornment .mud-icon-button:focus-visible,
.hk-auth-dialog .mud-input-adornment button.mud-icon-button:focus-visible {
    transform: none !important;
    box-shadow: none !important;
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 1px;
}

.hk-auth-dialog .mud-input-adornment .mud-icon-button:focus-within,
.hk-auth-dialog .mud-input-adornment .mud-icon-button:active,
.hk-auth-dialog .mud-input-adornment button.mud-icon-button:focus-within,
.hk-auth-dialog .mud-input-adornment button.mud-icon-button:active {
    background-color: transparent !important;
    box-shadow: none !important;
}

.hk-auth-dialog .mud-dialog-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    padding: 8px 12px 14px;
}

.hk-auth-dialog .mud-dialog-actions > * {
    flex: 0 1 auto;
}

.hk-auth-dialog .mud-dialog-actions .mud-button-root {
    min-height: 34px !important;
    padding: 4px 10px !important;
}

.hk-auth-dialog .mud-dialog-actions .mud-button-label {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
    letter-spacing: 0.02em !important;
}

.hk-auth-dialog .mud-dialog-actions .mud-button-filled {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

/* Quick-pick chips (less typing, tap a suggestion) */
.hk-quick-picks {
    margin: 4px 0 8px;
}
.hk-quick-picks-label {
    display: block;
    margin-bottom: 6px;
}
.hk-quick-picks-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.hk-quick-pick-chip {
    cursor: pointer;
}

/* Home category picker (Dashboard): MudButton stacks multiple children — one inner row; label must stretch full width */
.hk-home-pick-dialog-content {
    max-height: min(58vh, 380px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.hk-home-pick-dialog-content .hk-home-pick-list {
    width: 100%;
    max-width: 100%;
}

.hk-home-pick-dialog-content .hk-home-pick-btn.mud-button-root {
    width: 100% !important;
    max-width: 100%;
    display: flex !important;
    justify-content: stretch !important;
    align-items: stretch !important;
    padding: 8px 4px !important;
    min-height: unset !important;
    height: auto !important;
}

.hk-home-pick-dialog-content .hk-home-pick-btn .mud-button-label {
    width: 100% !important;
    max-width: 100%;
    flex: 1 1 auto !important;
    display: block !important;
    text-align: start !important;
}

/* Row 1: icon + full name. Row 2: due/overdue pills under the name (not beside it). */
.hk-home-pick-dialog-content .hk-home-pick-row {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 6px;
    align-items: start;
    padding: 4px 0;
}

.hk-home-pick-dialog-content .hk-home-pick-icon {
    grid-row: 1;
    grid-column: 1;
    margin-top: 2px;
}

.hk-home-pick-dialog-content .hk-home-pick-name {
    grid-row: 1;
    grid-column: 2;
    min-width: 0;
    font-size: 0.95rem;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.hk-home-pick-dialog-content .hk-home-pick-chips {
    grid-row: 2;
    grid-column: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.hk-home-pick-dialog-content .hk-home-pick-chip {
    flex-shrink: 0;
    white-space: nowrap;
    max-width: none;
}

.hk-home-pick-dialog-content .hk-home-pick-chip .mud-chip-content {
    white-space: nowrap;
}

/* Reduce accidental horizontal browser-navigation gestures while dialog is open */
.mud-dialog-container,
.mud-dialog {
    touch-action: pan-y;
    overscroll-behavior-x: contain;
}

/* ─── Calendar / schedule page ─── */
.hk-calendar-page {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.hk-cal-login-empty {
    text-align: center;
}

.hk-cal-login-empty .mud-typography {
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
}

/* Schedule page: obvious loading state (thin linear bar alone looked like an empty screen on dark theme). */
.hk-cal-loading-panel {
    min-height: 11rem;
    width: 100%;
    box-sizing: border-box;
}

.hk-cal-loading-bar {
    min-height: 6px;
    border-radius: 3px;
}

/* Tab panels: avoid zero-height flex children on narrow viewports so month/agenda content stays visible. */
.hk-cal-tabs.mud-tabs {
    width: 100%;
    align-self: stretch;
}

.hk-cal-tab-body {
    width: 100%;
    min-height: 12rem;
    box-sizing: border-box;
}

.hk-cal-month-wrap {
    overflow-x: auto;
}

.hk-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 8px;
}

.hk-cal-wd {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--mud-palette-text-secondary);
    letter-spacing: 0.04em;
}

.hk-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.hk-cal-cell {
    --hk-cal-cell-h: 100px;
    height: var(--hk-cal-cell-h);
    min-height: var(--hk-cal-cell-h);
    max-height: var(--hk-cal-cell-h);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    padding: 6px 6px 8px;
    background: var(--mud-palette-surface);
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-sizing: border-box;
    overflow: hidden;
}

.hk-cal-cell--has-events {
    padding: 0;
}

.hk-cal-cell--has-events > .mud-menu {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.hk-cal-day-menu--fill.mud-menu {
    flex: 1;
    min-height: 0;
}

.hk-cal-day-menu--fill .mud-menu-activator {
    width: 100% !important;
    height: 100%;
    min-height: 0;
    display: block;
}

/* Full-cell menu trigger: neutral MudButton, no horizontal offset inside day box */
.hk-cal-cell-activator-btn.mud-button {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    height: 100%;
    min-height: 0;
    min-width: 0 !important;
    padding: 6px 6px 8px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    text-align: left !important;
    text-transform: none !important;
    border-radius: 9px !important;
    line-height: normal !important;
    -webkit-tap-highlight-color: transparent;
}

.hk-cal-cell-activator-btn.mud-button .mud-button-label {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex !important;
}

.hk-cal-cell-activator-inner {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
}

.hk-cal-cell-activator-btn.mud-button:hover {
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, transparent) !important;
}

.hk-cal-events--empty {
    flex: 1;
    min-height: 0;
}

.hk-cal-today {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--mud-palette-primary) 40%, transparent);
}

.hk-cal-other-month {
    opacity: 0.4;
}

.hk-cal-daynum {
    font-size: 0.8rem;
    font-weight: 700;
}

.hk-cal-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-height: 0;
    justify-content: flex-start;
    overflow: hidden;
}

/* Busy day (3+ items): center the summary chip instead of stretching it full height */
.hk-cal-events:has(.hk-cal-count-chip) {
    justify-content: center;
    align-items: stretch;
}

.hk-cal-pill {
    border: none;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 5px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    line-height: 1.2;
}

.hk-cal-pill-task {
    background: color-mix(in srgb, var(--mud-palette-warning) 30%, transparent);
    color: var(--mud-palette-text-primary);
}

.hk-cal-pill-repair {
    background: color-mix(in srgb, var(--mud-palette-info) 30%, transparent);
    color: var(--mud-palette-text-primary);
}

.hk-cal-pill-bill {
    background: color-mix(in srgb, var(--mud-palette-success) 30%, transparent);
    color: var(--mud-palette-text-primary);
}

.hk-cal-pill--preview {
    display: block;
    pointer-events: none;
    user-select: none;
    flex-shrink: 0;
}

.hk-cal-count-chip {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 2.25rem;
    padding: 8px 10px;
    border-radius: 12px;
    text-align: center;
    background: linear-gradient(
        165deg,
        color-mix(in srgb, var(--mud-palette-primary) 18%, var(--mud-palette-surface)) 0%,
        color-mix(in srgb, var(--mud-palette-primary) 8%, var(--mud-palette-surface)) 100%
    );
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 32%, transparent);
    box-shadow:
        0 1px 0 color-mix(in srgb, var(--mud-palette-text-primary) 7%, transparent),
        0 3px 12px color-mix(in srgb, #000 28%, transparent);
}

.hk-cal-count-chip__n {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--mud-palette-primary);
}

.hk-cal-more {
    font-size: 0.62rem;
    color: var(--mud-palette-text-secondary);
    padding-left: 2px;
}

.hk-cal-day-menu:not(.hk-cal-day-menu--fill) {
    width: 100%;
}

.hk-cal-pill--menu {
    width: auto;
    flex-shrink: 0;
    display: inline-block;
    padding: 2px 6px;
}

.hk-cal-menu-item-inner {
    max-width: min(280px, 85vw);
}

.hk-cal-home-filter-wrap {
    max-width: min(100%, 22rem);
}

.hk-cal-home-filter-menu {
    width: 100%;
}

.hk-cal-home-filter-menu .mud-menu-activator {
    width: 100%;
}

.hk-cal-home-filter-btn.mud-button-root {
    justify-content: space-between;
}

.hk-cal-home-filter-value {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.hk-agenda-row {
    display: grid;
    grid-template-columns: 52px 1fr 28px;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    cursor: pointer;
}

.hk-agenda-row:last-child {
    border-bottom: none;
}

.hk-agenda-row:hover {
    background: color-mix(in srgb, var(--mud-palette-primary) 7%, transparent);
}

.hk-agenda-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hk-agenda-dow {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--mud-palette-text-secondary);
    text-transform: uppercase;
}

.hk-agenda-dom {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.1;
}

.hk-agenda-past .hk-agenda-dom {
    color: var(--mud-palette-error);
}

.hk-agenda-soon .hk-agenda-dom {
    color: var(--mud-palette-warning);
}

.hk-agenda-body {
    min-width: 0;
}

.hk-agenda-icon {
    opacity: 0.72;
}

@media (max-width: 600px) {
    .hk-cal-login-empty .mud-typography {
        max-width: 18rem;
    }

    .hk-cal-cell {
        --hk-cal-cell-h: 88px;
        padding: 4px;
    }

    .hk-cal-cell-activator-btn.mud-button {
        padding: 4px 4px 6px !important;
    }

    .hk-cal-pill {
        font-size: 0.58rem;
        padding: 2px 4px;
    }

    .hk-cal-count-chip {
        padding: 6px 7px;
        border-radius: 10px;
    }

    .hk-cal-count-chip__n {
        font-size: 0.98rem;
    }

    .mobile-bottom-nav .nav-item {
        font-size: 0.62rem;
        padding: 4px 2px;
    }

    .mobile-bottom-nav .nav-item .nav-icon,
    .mobile-bottom-nav .nav-item .nav-icon.mud-icon-root {
        font-size: 1.25rem;
    }
}
