/*
 * Card and empty-state primitives. These are reusable template surfaces.
 */

.app-card,
.lux-card,
.mobile-card,
.profile-card,
.shopping-card,
.directory-card,
.service-card,
.transport-card {
    max-width: 100%;
    min-width: 0;
    border: 1px solid var(--app-border-subtle);
    border-radius: var(--app-radius-xl);
    background: var(--app-surface-1);
    box-shadow: var(--app-shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.app-card-tier-2,
.app-panel,
.profile-dialog-section,
.config-dialog-section {
    max-width: 100%;
    min-width: 0;
    border: 1px solid var(--app-border-subtle);
    border-radius: var(--app-radius-xl);
    background: var(--app-surface-2);
}

.app-card-compact {
    padding: var(--app-space-4);
    border-radius: var(--app-radius-lg);
}

.app-grid,
.app-card-grid,
.profile-grid,
.directory-grid,
.shopping-list,
.setup-card-grid {
    min-width: 0;
    max-width: 100%;
}

.app-card-title {
    margin: 0;
    color: var(--app-text);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.18;
}

.app-card-meta,
.app-card-copy {
    color: var(--app-text-muted);
    font-size: 0.9rem;
    line-height: 1.38;
}

.app-chip,
.status-chip,
.profile-chip,
.shopping-chip,
.directory-chip,
.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--app-radius-pill);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(218, 224, 240, 0.78);
    font-size: 0.78rem;
    font-weight: 720;
    line-height: 1.1;
}

.app-empty-state-card {
    max-width: 100%;
    border-color: var(--app-border-subtle) !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(142, 154, 216, 0.08), transparent 16rem),
        var(--app-surface-1) !important;
}

@media (max-width: 768px) {
    .app-card,
    .lux-card,
    .mobile-card,
    .profile-card,
    .shopping-card,
    .directory-card,
    .service-card,
    .transport-card,
    .dayplan-card,
    .ios-calendar-empty,
    .ios-day-event-card,
    .ios-week-mobile-card,
    .ios-month-mobile-card,
    .network-contact-card,
    .maintenance-section-card,
    .maintenance-group-card,
    .maintenance-item-card,
    .shopping-filter-card,
    .shopping-section-card,
    .shopping-needed-panel,
    .shopping-store-card,
    .shopping-item-row,
    .shopping-bought-panel,
    .notes-command-bar,
    .notes-briefing-card,
    .notes-editor-card,
    .notes-editor-pane,
    .schoolrunsweek-day-card,
    .schoolrunsweek-slot-card,
    .house-card,
    .kids-card,
    .store-card,
    .stores-card,
    .location-card,
    .vehicle-card,
    .vehicles-card,
    .user-card,
    .settings-card,
    .settings-mobile-card,
    .feature-control-card,
    .preferences-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        border-radius: var(--app-radius-lg);
        box-sizing: border-box;
        overflow: hidden;
    }

    .app-chip,
    .status-chip,
    .profile-chip,
    .shopping-chip,
    .directory-chip,
    .filter-chip,
    .mud-chip,
    .mud-chip-root,
    .schoolrunsweek-chip {
        min-height: 26px;
        height: auto;
        max-width: 100%;
        padding-inline: 9px;
        font-size: 0.74rem;
        white-space: normal;
    }

    .app-empty-state,
    .app-empty-state-card,
    .empty-state,
    .dayplan-empty-state,
    .shopping-empty-state,
    .maintenance-empty-state,
    .schedule-empty-state {
        min-height: 0;
        max-width: 100%;
        padding: 10px 12px;
        gap: 8px;
        border-radius: var(--app-radius-lg);
        box-sizing: border-box;
    }

    .app-card-grid,
    .desktop-card-grid,
    .desktop-grid,
    .settings-card-grid,
    .settings-overview-grid,
    .settings-feature-grid,
    .settings-desktop-grid,
    .houses-grid,
    .kids-grid,
    .stores-grid,
    .locations-grid,
    .vehicles-grid,
    .users-grid,
    .directory-grid,
    .network-contact-grid,
    .shopping-layout,
    .maintenance-layout,
    .dashboard-grid,
    .dashboard-shortcuts {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

/* Legacy visual-audit card density repairs promoted from the audit layer. */
.shopping-ios-page .shopping-store-group,
.maintenance-page .maintenance-section-card,
.schoolrunsweek-day-card {
    border-color: rgba(198, 210, 255, 0.105) !important;
}

@media (max-width: 768px) {
    .shopping-ios-page .shopping-store-filter-card,
    .shopping-ios-page .shopping-section-card,
    .maintenance-page .maintenance-section-card,
    .maintenance-page .maintenance-group-card {
        padding: 18px !important;
        border-radius: 18px !important;
    }

    .shopping-ios-page .shopping-item-row,
    .shopping-ios-page .shopping-item-row.bought {
        min-height: auto !important;
        padding: 13px !important;
        gap: 10px !important;
    }

    .shopping-ios-page .shopping-item-actions,
    .maintenance-page .maintenance-item-actions {
        align-items: center !important;
        gap: 8px !important;
    }

    .maintenance-page .maintenance-quick-filter-chips {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        max-width: 100% !important;
        padding-right: 12px !important;
        scrollbar-width: none !important;
    }

    .maintenance-page .maintenance-quick-filter-chips::-webkit-scrollbar {
        display: none !important;
    }

    .schoolrunsweek-page .schoolrunsweek-day-card {
        padding: 14px !important;
        border-radius: 16px !important;
    }

    .schoolrunsweek-page .schoolrunsweek-slot-card,
    .schoolrunsweek-page .schoolrunsweek-assignment-card {
        padding: 12px !important;
        border-radius: 14px !important;
    }
}

/* Canonical mobile surface treatments promoted from the legacy mobile blueprint. */
@media (max-width: 1023.98px) {
    .ios-week-mobile-strip,
    .ios-month-mobile-strip {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: minmax(74px, 1fr) !important;
        gap: 10px !important;
        overflow-x: auto !important;
        padding: 0 2px 10px !important;
        scroll-padding-inline: 16px !important;
        scrollbar-width: none !important;
    }

    .ios-week-mobile-strip::-webkit-scrollbar,
    .ios-month-mobile-strip::-webkit-scrollbar {
        display: none;
    }

    .ios-week-mobile-day,
    .ios-month-mobile-day {
        height: 84px;
        border: 1px solid rgba(255, 255, 255, 0.075);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.026);
        color: rgba(244, 244, 247, 0.78);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .ios-week-mobile-day.active,
    .ios-month-mobile-day.active {
        background: linear-gradient(180deg, rgba(118, 145, 230, 0.94), rgba(77, 103, 187, 0.92));
        color: #f8f9ff;
        border-color: rgba(175, 190, 255, 0.35);
    }

    .ios-month-mobile-day-dot {
        min-width: 22px;
        height: 22px;
        padding: 0 7px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.13);
        font-size: 0.7rem;
        font-weight: 900;
    }

    .ios-day-event-card,
    .ios-week-mobile-card,
    .ios-month-mobile-card {
        padding: var(--omni-mobile-space-5) !important;
    }

    .ios-day-event-card {
        grid-template-columns: 74px 2px minmax(0, 1fr) !important;
    }

    .ios-day-event-title,
    .ios-week-mobile-title,
    .ios-month-mobile-event-title,
    .shopping-item-name {
        overflow-wrap: normal !important;
        word-break: normal !important;
        hyphens: none !important;
    }

    .omni-primary-card,
    .schedule-hero-panel,
    .schoolrunsweek-day-card,
    .shopping-section-card,
    .notes-editor-shell {
        border-radius: var(--omni-mobile-primary-radius) !important;
        background: var(--omni-mobile-primary) !important;
        border: 1px solid var(--omni-mobile-border) !important;
        box-shadow: var(--omni-mobile-shadow-2), inset 0 1px 0 rgba(255,255,255,0.046) !important;
    }

    .omni-operational-card,
    .shopping-store-group,
    .ios-day-event-card,
    .ios-week-mobile-card,
    .ios-month-mobile-card,
    .schoolrunsweek-section,
    .transport-slot-card {
        border-radius: var(--omni-mobile-section-radius) !important;
        background: var(--omni-mobile-section) !important;
        border: 1px solid var(--omni-mobile-border) !important;
        box-shadow: var(--omni-mobile-shadow-1), inset 0 1px 0 rgba(255,255,255,0.038) !important;
    }

    .shopping-item-row,
    .schoolrunsweek-assignment-card,
    .app-empty-state,
    .omni-surface-card {
        border-radius: var(--omni-mobile-card-radius) !important;
        background: var(--omni-mobile-utility) !important;
        border: 1px solid rgba(255,255,255,0.062) !important;
        box-shadow: none !important;
    }
}

/* Collapsed bridge feature/household composition files. Sources retired: app.global-features.css, app.global-household.css. */


/* Source bridge: app.global-features.css */

/*
 * Omnisant global feature composition layer.
 *
 * Mechanical consolidation source: Today, dialog, schedule date-nav, and event-dialog CSS.
 * Move surviving shared rules into cards/forms/modals/overlays/mobile/desktop over time.
 */

/* ===== absorbed from omnisant.today.final.css ===== */
/* Final Today corrections: anchored mobile shell, machined controls, itinerary rail. */

.dayplan-toolbar-row .dayplan-user-picker,
.dayplan-toolbar-row .mud-input-control,
.dayplan-toolbar-row .mud-input-control-input-container {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.dayplan-toolbar-row .mud-input.mud-input-outlined,
.dayplan-toolbar-row .mud-select .mud-input {
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 14px !important;
    background:
        linear-gradient(180deg, rgba(12, 15, 23, 0.92), rgba(7, 10, 16, 0.92)) !important;
    border: 1px solid rgba(178, 187, 220, 0.15) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 10px 24px rgba(0, 0, 0, 0.16) !important;
    align-items: center !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.dayplan-toolbar-row .mud-input-outlined-border,
.dayplan-toolbar-row .mud-input::before,
.dayplan-toolbar-row .mud-input::after {
    border: 0 !important;
    box-shadow: none !important;
}

.dayplan-toolbar-row .mud-input.mud-input-outlined > input.mud-input-slot.mud-input-root,
.dayplan-toolbar-row .mud-input.mud-input-outlined > .mud-input-slot.mud-input-root,
.dayplan-toolbar-row .mud-input.mud-select-input > input.mud-input-slot.mud-input-root,
.dayplan-toolbar-row .mud-input.mud-select-input > .mud-input-slot.mud-input-root,
.dayplan-toolbar-row input.mud-input-root,
.dayplan-toolbar-row .mud-select-input,
.dayplan-toolbar-row .mud-input-slot {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: rgba(244, 241, 235, 0.90) !important;
    display: flex !important;
    align-items: center !important;
    font-size: 0.94rem !important;
    font-weight: 720 !important;
    line-height: 46px !important;
}

.dayplan-toolbar-row .mud-input.mud-select-input {
    padding: 0 !important;
}

.dayplan-toolbar-row .mud-input.mud-select-input > .mud-input-slot.mud-select-input {
    padding-left: 14px !important;
    padding-right: 48px !important;
}

.dayplan-toolbar-row .mud-input-adornment {
    align-self: stretch !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 46px !important;
    margin: 0 !important;
    border-left: 1px solid rgba(178, 187, 220, 0.12) !important;
    background: rgba(255, 255, 255, 0.018) !important;
    color: rgba(196, 201, 214, 0.78) !important;
}

.dayplan-toolbar-row .mud-input-adornment .mud-icon-button,
.dayplan-toolbar-row .mud-input-adornment .mud-icon-root {
    width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
}

.dayplan-user-picker .mud-input-label {
    display: none !important;
}

.dayplan-user-picker .mud-input-label.mud-input-label-animate,
.dayplan-user-picker .mud-input-label.mud-shrink {
    transform: none !important;
}

.dayplan-date-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
}

.dayplan-date-nav-button.mud-icon-button {
    flex: 0 0 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 14px !important;
    background: rgba(12, 15, 23, 0.66) !important;
    border: 1px solid rgba(178, 187, 220, 0.10) !important;
    color: rgba(244, 241, 235, 0.76) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
}

.dayplan-date-control {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 220px !important;
    max-width: 220px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 0 0 14px !important;
    border-radius: 14px !important;
    background:
        linear-gradient(180deg, rgba(12, 15, 23, 0.92), rgba(7, 10, 16, 0.92)) !important;
    border: 1px solid rgba(178, 187, 220, 0.15) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 10px 24px rgba(0, 0, 0, 0.16) !important;
    overflow: hidden !important;
}

.dayplan-date-native {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: rgba(244, 241, 235, 0.90) !important;
    font: inherit !important;
    font-size: 0.94rem !important;
    font-weight: 720 !important;
    line-height: 44px !important;
    font-variant-numeric: tabular-nums !important;
}

.dayplan-date-native::-webkit-calendar-picker-indicator {
    opacity: 0 !important;
    width: 48px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
}

.dayplan-date-icon {
    margin-left: -48px !important;
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 44px !important;
    min-width: 48px !important;
    padding: 10px 12px !important;
    border-left: 1px solid rgba(178, 187, 220, 0.12) !important;
    background: rgba(255, 255, 255, 0.018) !important;
    color: rgba(196, 201, 214, 0.78) !important;
    pointer-events: none !important;
}

.dayplan-user-wrap {
    flex: 0 0 220px !important;
    min-width: 220px !important;
}

.dayplan-today-button.mud-button-root {
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 14px !important;
    background: rgba(12, 15, 23, 0.66) !important;
    border: 1px solid rgba(178, 187, 220, 0.10) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
    color: rgba(244, 241, 235, 0.82) !important;
    font-weight: 760 !important;
}

.dayplan-list:has(.dayplan-card-timeline) {
    position: relative !important;
}

.dayplan-list:has(.dayplan-card-timeline)::before {
    left: 95px !important;
    width: 1px !important;
    background: linear-gradient(
        180deg,
        transparent 0,
        rgba(128, 139, 180, 0.22) 32px,
        rgba(128, 139, 180, 0.16) calc(100% - 32px),
        transparent 100%
    ) !important;
    box-shadow: none !important;
}

.dayplan-card-timeline {
    display: grid !important;
    grid-template-columns: 82px 30px minmax(0, 1fr) !important;
    gap: 0 !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
}

.dayplan-card-timeline .dayplan-rail-time {
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    justify-content: flex-end !important;
    padding-right: 6px !important;
    text-align: right !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums !important;
    letter-spacing: 0.01em !important;
}

.dayplan-card-timeline .dayplan-rail-track {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 100% !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.dayplan-card-timeline .dayplan-rail-track::before,
.dayplan-card-timeline .dayplan-rail-track::after {
    content: none !important;
    display: none !important;
}

.dayplan-card-timeline .dayplan-rail-dot {
    position: absolute !important;
    top: 18px !important;
    left: 50% !important;
    width: 8px !important;
    height: 8px !important;
    transform: translateX(-50%) !important;
    border-radius: 999px !important;
    background: rgba(142, 153, 203, 0.72) !important;
    box-shadow: 0 0 0 7px rgba(91, 106, 170, 0.08) !important;
}

.dayplan-card-timeline .dayplan-card-shell {
    grid-column: 3 !important;
    grid-row: 1 !important;
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
}

.dayplan-card-timeline:not(.dayplan-card-timeline-collapsed) .dayplan-card-shell {
    padding-right: 72px !important;
}

.dayplan-card-timeline:not(.dayplan-card-timeline-collapsed) .dayplan-collapse-toggle {
    position: absolute !important;
    top: 18px !important;
    right: 22px !important;
    z-index: 2 !important;
    margin: 0 !important;
}

.dayplan-card-timeline .dayplan-card-title {
    max-width: 100% !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

@media (max-width: 1023px) {
    .mud-drawer.app-drawer,
    .mud-drawer.app-drawer.mud-drawer-temporary,
    .mud-drawer.app-drawer.mud-drawer--open,
    .mud-drawer.app-drawer.mud-drawer--closed,
    .mud-drawer.app-drawer .mud-drawer-content,
    .mud-drawer-overlay,
    .mud-overlay-drawer {
        transition: none !important;
        transition-property: none !important;
        transition-duration: 0ms !important;
        animation: none !important;
    }

    .dayplan-toolbar-row {
        gap: 10px !important;
    }

    .dayplan-date-wrap {
        flex: 1 1 100% !important;
        min-width: 0 !important;
    }

    .dayplan-today-wrap {
        flex: 0 0 auto !important;
    }

    .dayplan-user-wrap {
        flex: 1 1 100% !important;
        min-width: 0 !important;
    }

    .dayplan-date-control {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        height: 44px !important;
        min-height: 44px !important;
        border-radius: 13px !important;
    }

    .dayplan-date-nav-button.mud-icon-button {
        flex-basis: 44px !important;
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        border-radius: 13px !important;
    }

    .dayplan-date-native,
    .dayplan-date-icon {
        height: 42px !important;
        min-height: 42px !important;
        line-height: 42px !important;
    }

    .dayplan-toolbar-row .mud-input.mud-input-outlined,
    .dayplan-toolbar-row .mud-select .mud-input,
    .dayplan-today-button.mud-button-root {
        height: 44px !important;
        min-height: 44px !important;
        border-radius: 13px !important;
    }

    .dayplan-toolbar-row input.mud-input-root,
    .dayplan-toolbar-row .mud-select-input,
    .dayplan-toolbar-row .mud-input-slot {
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        line-height: 44px !important;
    }

    .dayplan-toolbar-row .mud-input-adornment,
    .dayplan-toolbar-row .mud-input-adornment .mud-icon-button,
    .dayplan-toolbar-row .mud-input-adornment .mud-icon-root {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
    }

    .dayplan-list:has(.dayplan-card-timeline)::before {
        left: 94px !important;
    }

    .dayplan-card-timeline {
        grid-template-columns: 82px 28px minmax(0, 1fr) !important;
    }

    .dayplan-card-timeline .dayplan-rail-time {
        width: 82px !important;
        min-width: 82px !important;
        max-width: 82px !important;
        font-size: 0.74rem !important;
    }

    .dayplan-card-timeline .dayplan-rail-track {
        width: 28px !important;
        min-width: 28px !important;
    }
}

@media (max-width: 420px) {
    .dayplan-list:has(.dayplan-card-timeline)::before {
        left: 96px !important;
    }

    .dayplan-card-timeline {
        grid-template-columns: 84px 28px minmax(0, 1fr) !important;
    }

    .dayplan-card-timeline .dayplan-rail-time {
        width: 84px !important;
        min-width: 84px !important;
        max-width: 84px !important;
    }
}


/* ===== absorbed from dayplan-dialog.css ===== */
/* Day plan edit dialog: system-panel form anatomy. Main Today date rail is intentionally untouched. */

.mud-dialog:has(.dayplan-edit-section) {
    max-width: min(1080px, calc(100vw - 48px)) !important;
    border-radius: 22px !important;
    overflow: hidden !important;
}

.dayplan-edit-section.config-dialog-section {
    padding: 22px !important;
    border-radius: 18px !important;
}

.dayplan-edit-section .config-dialog-section-header {
    gap: 10px !important;
    margin-bottom: 18px !important;
}

.dayplan-edit-section .config-dialog-helper {
    max-width: 720px !important;
    line-height: 1.45 !important;
}

.dayplan-edit-timing-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    align-items: end !important;
}

.dayplan-edit-control {
    display: grid !important;
    gap: 7px !important;
    min-width: 0 !important;
}

.dayplan-edit-control-label {
    padding-left: 2px !important;
    color: rgba(196, 201, 214, 0.64) !important;
    font-size: 0.66rem !important;
    font-weight: 820 !important;
    letter-spacing: 0.15em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

.dayplan-edit-control-shell {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 0 0 15px !important;
    border-radius: 14px !important;
    background:
        linear-gradient(180deg, rgba(12, 15, 23, 0.92), rgba(7, 10, 16, 0.94)) !important;
    border: 1px solid rgba(178, 187, 220, 0.15) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
    overflow: hidden !important;
}

.dayplan-edit-native-input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: rgba(244, 241, 235, 0.92) !important;
    font: inherit !important;
    font-size: 0.96rem !important;
    font-weight: 730 !important;
    line-height: 46px !important;
    font-variant-numeric: tabular-nums !important;
}

.dayplan-edit-native-input::-webkit-calendar-picker-indicator {
    opacity: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.dayplan-edit-date-picker {
    width: 100% !important;
    min-width: 0 !important;
}

.dayplan-edit-date-picker .mud-input-control,
.dayplan-edit-date-picker .mud-input-control-input-container {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding-top: 0 !important;
}

.dayplan-edit-date-picker .mud-input-control-input-container {
    height: 48px !important;
    min-height: 48px !important;
}

.dayplan-edit-date-picker .mud-input.mud-input-outlined {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, rgba(12, 15, 23, 0.92), rgba(7, 10, 16, 0.94)) !important;
    border-color: rgba(178, 187, 220, 0.15) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

.dayplan-edit-date-picker input.mud-input-slot,
.dayplan-edit-date-picker input.mud-input-root {
    height: 46px !important;
    min-height: 46px !important;
    line-height: 46px !important;
    padding: 0 0 0 15px !important;
    color: rgba(244, 241, 235, 0.92) !important;
    font-size: 0.96rem !important;
    font-weight: 730 !important;
    font-variant-numeric: tabular-nums !important;
}

.dayplan-edit-date-picker .mud-input-adornment-end {
    flex: 0 0 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 46px !important;
    margin: 0 !important;
    border-left: 1px solid rgba(178, 187, 220, 0.12) !important;
    background: rgba(255, 255, 255, 0.018) !important;
}

.dayplan-edit-date-picker .mud-picker-input-button {
    width: 48px !important;
    height: 46px !important;
    min-width: 48px !important;
    min-height: 46px !important;
    border-radius: 0 !important;
    color: rgba(196, 201, 214, 0.80) !important;
}

.dayplan-edit-control-icon {
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 46px !important;
    min-width: 48px !important;
    padding: 11px 12px !important;
    border-left: 1px solid rgba(178, 187, 220, 0.12) !important;
    background: rgba(255, 255, 255, 0.018) !important;
    color: rgba(196, 201, 214, 0.80) !important;
    pointer-events: none !important;
}

.dayplan-edit-time-shell {
    gap: 8px !important;
    padding-left: 10px !important;
    padding-right: 8px !important;
}

.dayplan-edit-time-picker {
    flex: 1 1 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    min-width: 0 !important;
    height: 36px !important;
    border-radius: 11px !important;
    background: rgba(255, 255, 255, 0.022) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
    overflow: hidden !important;
}

.dayplan-edit-time-select {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 36px !important;
    padding: 0 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: rgba(244, 241, 235, 0.92) !important;
    font: inherit !important;
    font-size: 0.88rem !important;
    font-weight: 740 !important;
    line-height: 36px !important;
    text-align: center !important;
    text-align-last: center !important;
    appearance: none !important;
    cursor: pointer !important;
}

.dayplan-edit-time-select option {
    background: #111620 !important;
    color: rgba(244, 241, 235, 0.94) !important;
}

.dayplan-edit-time-hour {
    flex-basis: 28% !important;
}

.dayplan-edit-time-minute {
    flex-basis: 30% !important;
}

.dayplan-edit-time-meridiem {
    flex-basis: 32% !important;
    border-left: 1px solid rgba(178, 187, 220, 0.10) !important;
}

.dayplan-edit-time-separator {
    flex: 0 0 auto !important;
    color: rgba(196, 201, 214, 0.54) !important;
    font-size: 0.9rem !important;
    font-weight: 760 !important;
    line-height: 1 !important;
}

.dayplan-edit-time-clear {
    flex: 0 0 auto !important;
    height: 34px !important;
    min-width: 76px !important;
    padding: 0 12px !important;
    border: 1px solid rgba(178, 187, 220, 0.12) !important;
    border-radius: 11px !important;
    background: rgba(255, 255, 255, 0.028) !important;
    color: rgba(244, 241, 235, 0.78) !important;
    font: inherit !important;
    font-size: 0.82rem !important;
    font-weight: 760 !important;
    cursor: pointer !important;
    transition: background-color 140ms ease-out, border-color 140ms ease-out, color 140ms ease-out !important;
}

.dayplan-edit-time-clear:hover:not(:disabled) {
    background: rgba(155, 166, 226, 0.12) !important;
    border-color: rgba(190, 198, 238, 0.22) !important;
    color: rgba(244, 241, 235, 0.94) !important;
}

.dayplan-edit-time-clear:disabled {
    opacity: 0.38 !important;
    cursor: default !important;
}

.dayplan-edit-section .mud-input-control,
.dayplan-edit-section .mud-autocomplete,
.dayplan-edit-section .mud-select,
.dayplan-edit-section .mud-numeric-field {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

.dayplan-edit-section .mud-input-control + .mud-input-control,
.dayplan-edit-section .mud-input-control + .mud-autocomplete,
.dayplan-edit-section .mud-autocomplete + .mud-input-control,
.dayplan-edit-section .mud-select + .mud-select,
.dayplan-edit-section .mud-select + .mud-input-control {
    margin-top: 14px !important;
}

.dayplan-edit-section .mud-input.mud-input-outlined:not(.mud-input-multiline),
.dayplan-edit-section .mud-input.mud-input-outlined.mud-select-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 14px !important;
}

.dayplan-edit-section .mud-input-slot,
.dayplan-edit-section input.mud-input-slot,
.dayplan-edit-section .mud-select-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
}

.dayplan-edit-section .mud-input-label {
    color: rgba(196, 201, 214, 0.58) !important;
    font-size: 0.64rem !important;
    font-weight: 790 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
}

.dayplan-edit-section textarea.mud-input-slot {
    min-height: 104px !important;
    padding-top: 14px !important;
    line-height: 1.45 !important;
}

@media (max-width: 720px) {
    .mud-dialog:has(.dayplan-edit-section) {
        max-width: calc(100vw - 20px) !important;
        border-radius: 18px !important;
    }

    .dayplan-edit-section.config-dialog-section {
        padding: 18px !important;
    }

    .dayplan-edit-timing-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .dayplan-edit-time-shell {
        height: auto !important;
        min-height: 48px !important;
        align-items: stretch !important;
        padding: 7px !important;
    }

    .dayplan-edit-time-picker {
        height: 40px !important;
    }

    .dayplan-edit-time-select {
        height: 40px !important;
        line-height: 40px !important;
    }

    .dayplan-edit-time-clear {
        height: 40px !important;
        min-width: 70px !important;
        padding-inline: 10px !important;
    }
}


/* ===== absorbed from schedule-date-nav-fix.css ===== */
/* Schedule date nav architecture: four independent controls, no grid collision. */

.ios-calendar-page .ios-calendar-toolbar.schedule-control-surface {
    display: grid !important;
    grid-template-columns: minmax(0, max-content) minmax(240px, 360px) !important;
    grid-template-areas:
        "date user"
        "mode action" !important;
    column-gap: 26px !important;
    row-gap: 12px !important;
    align-items: center !important;
    justify-content: end !important;
    overflow: visible !important;
}

.ios-calendar-page .ios-calendar-date-nav-row {
    grid-area: date !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
}

.ios-calendar-page .ios-calendar-viewing-row {
    grid-area: user !important;
    justify-self: end !important;
    align-self: center !important;
    width: clamp(260px, 24vw, 360px) !important;
    min-width: 260px !important;
    max-width: 360px !important;
    margin: 0 !important;
    transform: none !important;
    position: relative !important;
    z-index: 1 !important;
}

.ios-calendar-page .ios-calendar-viewing-row .ios-calendar-user-picker,
.ios-calendar-page .ios-calendar-viewing-row .mud-input-control,
.ios-calendar-page .ios-calendar-viewing-row .mud-input-control-input-container,
.ios-calendar-page .ios-calendar-viewing-row .mud-select,
.ios-calendar-page .ios-calendar-viewing-row .mud-input,
.ios-calendar-page .ios-calendar-viewing-row .mud-input-root,
.ios-calendar-page .ios-calendar-viewing-row .mud-input-outlined {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: var(--omni-schedule-control-h, 40px) !important;
    min-height: var(--omni-schedule-control-h, 40px) !important;
}

.ios-calendar-page .ios-calendar-viewing-row .mud-input {
    display: flex !important;
    align-items: center !important;
    border-radius: var(--omni-button-radius-machined, 12px) !important;
    overflow: hidden !important;
}

.ios-calendar-page .ios-calendar-viewing-row .mud-input-slot,
.ios-calendar-page .ios-calendar-viewing-row .mud-select-input {
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: var(--omni-schedule-control-h, 40px) !important;
    min-height: var(--omni-schedule-control-h, 40px) !important;
    padding: 0 46px 0 14px !important;
    line-height: var(--omni-schedule-control-h, 40px) !important;
}

.ios-calendar-page .ios-calendar-viewing-row .mud-input-label,
.ios-calendar-page .ios-calendar-viewing-row .mud-input-label.mud-shrink,
.ios-calendar-page .ios-calendar-viewing-row .mud-input-label.mud-input-label-animate {
    display: none !important;
}

.ios-calendar-page .ios-calendar-mode-row {
    grid-area: mode !important;
    display: contents !important;
    margin: 0 !important;
}

.ios-calendar-page .ios-calendar-mode-row .ios-calendar-view-switch {
    grid-area: mode !important;
    justify-self: start !important;
    align-self: center !important;
    width: clamp(320px, 27vw, 420px) !important;
    max-width: 100% !important;
}

.ios-calendar-page .ios-calendar-mode-row .ios-calendar-generate-button {
    grid-area: action !important;
    justify-self: end !important;
    align-self: center !important;
    width: auto !important;
    min-width: 190px !important;
    margin: 0 !important;
}

.ios-calendar-page .ios-calendar-date-nav-row > .ios-calendar-nav-button,
.ios-calendar-page .ios-calendar-date-nav-row > .ios-calendar-nav-button.mud-icon-button {
    position: static !important;
    flex: 0 0 var(--omni-schedule-control-h, 40px) !important;
    width: var(--omni-schedule-control-h, 40px) !important;
    min-width: var(--omni-schedule-control-h, 40px) !important;
    max-width: var(--omni-schedule-control-h, 40px) !important;
    height: var(--omni-schedule-control-h, 40px) !important;
    min-height: var(--omni-schedule-control-h, 40px) !important;
    max-height: var(--omni-schedule-control-h, 40px) !important;
    grid-column: auto !important;
    grid-row: auto !important;
    grid-area: auto !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ios-calendar-page .ios-calendar-date-picker-shell {
    position: relative !important;
    flex: 0 0 clamp(260px, 22vw, 300px) !important;
    width: clamp(260px, 22vw, 300px) !important;
    min-width: 260px !important;
    max-width: 300px !important;
    height: var(--omni-schedule-control-h, 40px) !important;
    min-height: var(--omni-schedule-control-h, 40px) !important;
    display: block !important;
    grid-column: auto !important;
    grid-row: auto !important;
    grid-area: auto !important;
    overflow: visible !important;
    transform: none !important;
    margin: 0 !important;
}

.ios-calendar-page .ios-calendar-date-picker-shell .ios-calendar-date-display {
    display: none !important;
}

.ios-calendar-page .ios-calendar-date-picker-shell .ios-calendar-date-control,
.ios-calendar-page .ios-calendar-date-picker-shell .mud-input-control,
.ios-calendar-page .ios-calendar-date-picker-shell .mud-input-control-input-container,
.ios-calendar-page .ios-calendar-date-picker-shell .mud-picker,
.ios-calendar-page .ios-calendar-date-picker-shell .mud-input,
.ios-calendar-page .ios-calendar-date-picker-shell .mud-input-root,
.ios-calendar-page .ios-calendar-date-picker-shell .mud-input-outlined {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: var(--omni-schedule-control-h, 40px) !important;
    min-height: var(--omni-schedule-control-h, 40px) !important;
}

.ios-calendar-page .ios-calendar-date-picker-shell .mud-input,
.ios-calendar-page .ios-calendar-date-picker-shell .mud-input-root,
.ios-calendar-page .ios-calendar-date-picker-shell .mud-input-outlined {
    display: flex !important;
    align-items: center !important;
    border-radius: var(--omni-button-radius-machined, 12px) !important;
    overflow: hidden !important;
}

.ios-calendar-page .ios-calendar-date-picker-shell .mud-input-slot,
.ios-calendar-page .ios-calendar-date-picker-shell input.mud-input-slot {
    display: block !important;
    flex: 0 0 calc(100% - 46px) !important;
    min-width: 0 !important;
    width: calc(100% - 46px) !important;
    inline-size: calc(100% - 46px) !important;
    max-width: calc(100% - 46px) !important;
    height: var(--omni-schedule-control-h, 40px) !important;
    min-height: var(--omni-schedule-control-h, 40px) !important;
    box-sizing: border-box !important;
    padding: 0 8px 0 14px !important;
    line-height: var(--omni-schedule-control-h, 40px) !important;
    color: rgba(244, 241, 235, 0.92) !important;
    -webkit-text-fill-color: rgba(244, 241, 235, 0.92) !important;
    text-shadow: none !important;
    caret-color: transparent !important;
}

.ios-calendar-page .ios-calendar-date-picker-shell .mud-input > input.mud-input-slot {
    flex-basis: calc(100% - 46px) !important;
    width: calc(100% - 46px) !important;
    inline-size: calc(100% - 46px) !important;
}

.ios-calendar-page .ios-calendar-date-picker-shell .mud-input > div.mud-input-slot {
    display: none !important;
    flex: 0 0 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
}

.ios-calendar-page .ios-calendar-date-picker-shell .mud-input-adornment-end {
    position: static !important;
    align-self: stretch !important;
    flex: 0 0 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    height: var(--omni-schedule-control-h, 40px) !important;
    min-height: var(--omni-schedule-control-h, 40px) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border-left: 1px solid rgba(178, 187, 220, 0.12) !important;
    background: rgba(255, 255, 255, 0.018) !important;
}

.ios-calendar-page .ios-calendar-date-picker-shell button.mud-picker-input-button,
.ios-calendar-page .ios-calendar-date-picker-shell .mud-input-adornment-end button.mud-icon-button {
    position: static !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    color: rgba(223, 226, 237, 0.86) !important;
    opacity: 1 !important;
}

.ios-calendar-page .ios-calendar-date-picker-shell .mud-input-adornment-end .mud-icon-root {
    color: rgba(223, 226, 237, 0.86) !important;
    fill: currentColor !important;
    opacity: 1 !important;
}

.ios-calendar-page .ios-calendar-date-nav-row > .ios-calendar-today-button,
.ios-calendar-page .ios-calendar-date-nav-row > .ios-calendar-today-button.mud-button-root {
    position: static !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 86px !important;
    height: var(--omni-schedule-control-h, 40px) !important;
    min-height: var(--omni-schedule-control-h, 40px) !important;
    max-height: var(--omni-schedule-control-h, 40px) !important;
    grid-column: auto !important;
    grid-row: auto !important;
    grid-area: auto !important;
    transform: none !important;
    margin: 0 !important;
}

@media (max-width: 767.98px) {
    .ios-calendar-page .ios-calendar-toolbar.schedule-control-surface {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .ios-calendar-page .ios-calendar-date-nav-row {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .ios-calendar-page .ios-calendar-date-picker-shell {
        order: 1 !important;
        flex: 1 0 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .ios-calendar-page .ios-calendar-date-nav-row > .ios-calendar-nav-button:first-child {
        order: 2 !important;
    }

    .ios-calendar-page .ios-calendar-date-nav-row > .ios-calendar-today-button {
        order: 3 !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .ios-calendar-page .ios-calendar-date-nav-row > .ios-calendar-nav-button:nth-of-type(2) {
        order: 4 !important;
    }

    .ios-calendar-page .ios-calendar-viewing-row,
    .ios-calendar-page .ios-calendar-mode-row,
    .ios-calendar-page .ios-calendar-generate-button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .ios-calendar-page .ios-calendar-mode-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .ios-calendar-page .ios-calendar-mode-row .ios-calendar-view-switch {
        width: 100% !important;
    }
}


/* ===== absorbed from event-dialog-refinement.css ===== */
/* Add/Edit Event modal refinement.
   Keep MudBlazor picker mechanics intact; calm the global luxury control layer only here. */

.mud-dialog:has(.event-edit-dialog-shell) {
    width: min(880px, calc(100vw - 56px)) !important;
    max-width: min(880px, calc(100vw - 56px)) !important;
    border-radius: 22px !important;
    border: 1px solid rgba(210, 218, 245, 0.085) !important;
    background: rgba(17, 20, 29, 0.99) !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
}

.mud-dialog:has(.event-edit-dialog-shell) .mud-dialog-content {
    padding: 20px 30px 104px !important;
    max-height: min(76vh, 740px) !important;
    overflow: auto !important;
}

.mud-dialog:has(.event-edit-dialog-shell) .mud-dialog-actions {
    gap: 10px !important;
    padding: 14px 30px 18px !important;
    border-top: 1px solid rgba(210, 218, 245, 0.07) !important;
    background: rgba(8, 10, 16, 0.96) !important;
    backdrop-filter: blur(10px) saturate(0.9) !important;
}

.event-edit-dialog-shell {
    display: grid !important;
    gap: 16px !important;
}

.event-edit-dialog-shell .config-dialog-section {
    padding: 16px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(210, 218, 245, 0.065) !important;
    background: rgba(255, 255, 255, 0.022) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.024) !important;
}

.event-edit-dialog-shell .config-dialog-section-header {
    margin-bottom: 12px !important;
    gap: 6px !important;
}

.event-edit-dialog-shell .config-dialog-section-kicker {
    color: rgba(183, 194, 232, 0.78) !important;
    font-size: 0.67rem !important;
    font-weight: 760 !important;
    letter-spacing: 0.15em !important;
    line-height: 1.15 !important;
}

.event-edit-dialog-shell .config-dialog-helper {
    color: rgba(214, 217, 226, 0.68) !important;
    font-size: 0.84rem !important;
    line-height: 1.38 !important;
    margin-top: 2px !important;
}

.event-edit-dialog-shell .config-dialog-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
}

.event-edit-dialog-shell .config-dialog-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.event-edit-dialog-shell .event-schedule-picker,
.event-edit-dialog-shell .mud-picker,
.event-edit-dialog-shell .mud-picker-inline,
.event-edit-dialog-shell .mud-input-control {
    width: 100% !important;
    min-width: 0 !important;
}

.mud-dialog:has(.event-edit-dialog-shell) .event-edit-dialog-shell .event-schedule-picker {
    padding-top: 14px !important;
}

.event-edit-dialog-shell .mud-input-control {
    margin: 8px 0 12px !important;
}

.event-edit-dialog-shell .config-dialog-section > .mud-input-control:last-child,
.event-edit-dialog-shell .config-dialog-grid .mud-input-control {
    margin-bottom: 0 !important;
}

.event-edit-dialog-shell .mud-input-control > .mud-input-control-input-container {
    min-height: 0 !important;
    align-items: stretch !important;
    margin-top: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.event-edit-dialog-shell .mud-input.mud-input-outlined:not(.mud-input-multiline),
.event-edit-dialog-shell .mud-select .mud-input.mud-input-outlined,
.event-edit-dialog-shell .mud-picker .mud-input.mud-input-outlined {
    height: 42px !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    border: 1px solid rgba(210, 218, 245, 0.105) !important;
    background: rgba(6, 9, 15, 0.78) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
}

.event-edit-dialog-shell .mud-input.mud-input-outlined.mud-focused,
.event-edit-dialog-shell .mud-input-control:hover .mud-input.mud-input-outlined {
    border-color: rgba(160, 172, 226, 0.28) !important;
    background: rgba(8, 11, 18, 0.86) !important;
}

.event-edit-dialog-shell .mud-input-outlined .mud-input-outlined-border {
    border-color: transparent !important;
    border-radius: 12px !important;
}

.event-edit-dialog-shell .mud-input-slot,
.event-edit-dialog-shell input.mud-input-slot,
.event-edit-dialog-shell .mud-select-input {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 42px 0 12px !important;
    line-height: 42px !important;
    color: rgba(242, 239, 232, 0.9) !important;
    font-size: 0.9rem !important;
    font-weight: 620 !important;
    letter-spacing: 0 !important;
}

.event-edit-dialog-shell textarea.mud-input-slot {
    height: auto !important;
    min-height: 88px !important;
    max-height: none !important;
    padding: 14px 12px !important;
    line-height: 1.42 !important;
    white-space: pre-wrap !important;
}

.event-edit-dialog-shell .mud-input.mud-input-multiline {
    min-height: 96px !important;
    height: auto !important;
    align-items: stretch !important;
    border-radius: 14px !important;
}

.event-edit-dialog-shell .mud-input-label,
.event-edit-dialog-shell .mud-input-label.mud-shrink,
.event-edit-dialog-shell .mud-input-label.mud-input-label-animate {
    transform: translate(12px, -8px) scale(0.78) !important;
    max-width: calc(100% - 28px) !important;
    padding: 0 5px !important;
    border-radius: 6px !important;
    background: rgba(17, 20, 29, 0.98) !important;
    color: rgba(205, 211, 229, 0.82) !important;
    font-size: 0.72rem !important;
    font-weight: 720 !important;
    letter-spacing: 0.035em !important;
    line-height: 1 !important;
    text-transform: none !important;
    pointer-events: none !important;
}

.mud-dialog:has(.event-edit-dialog-shell) .event-edit-dialog-shell .event-schedule-picker .mud-input-label,
.mud-dialog:has(.event-edit-dialog-shell) .event-edit-dialog-shell .event-schedule-picker .mud-input-label.mud-shrink,
.mud-dialog:has(.event-edit-dialog-shell) .event-edit-dialog-shell .event-schedule-picker .mud-input-label.mud-input-label-animate {
    transform: translate(12px, -22px) scale(0.82) !important;
    padding: 0 !important;
    background: transparent !important;
    color: rgba(183, 194, 232, 0.78) !important;
    font-size: 0.67rem !important;
    font-weight: 760 !important;
    letter-spacing: 0.15em !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
}

.event-edit-dialog-shell .mud-input-adornment-end {
    position: static !important;
    align-self: stretch !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    min-width: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-left: 1px solid rgba(210, 218, 245, 0.075) !important;
    background: rgba(255, 255, 255, 0.018) !important;
}

.event-edit-dialog-shell button.mud-picker-input-button,
.event-edit-dialog-shell .mud-input-adornment-end .mud-icon-button,
.event-edit-dialog-shell .mud-input-adornment-end .mud-icon-button-root {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.event-edit-dialog-shell .mud-input-adornment-end .mud-icon-root,
.event-edit-dialog-shell .mud-picker-input-button .mud-icon-root {
    color: rgba(218, 222, 234, 0.76) !important;
}

body:has(.event-edit-dialog-shell) .mud-popover,
body:has(.event-edit-dialog-shell) .mud-popover .mud-list {
    z-index: 1700 !important;
    border-radius: 16px !important;
    border: 1px solid rgba(210, 218, 245, 0.09) !important;
    background: rgba(12, 15, 23, 0.99) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5) !important;
}

body:has(.event-edit-dialog-shell) .mud-picker-container {
    background: rgba(12, 15, 23, 0.99) !important;
}

@media (max-width: 767px) {
    .mud-dialog:has(.event-edit-dialog-shell) {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        border-radius: 18px !important;
    }

    .mud-dialog:has(.event-edit-dialog-shell) .mud-dialog-content {
        padding: 16px 16px 96px !important;
        max-height: min(78vh, 680px) !important;
    }

    .mud-dialog:has(.event-edit-dialog-shell) .mud-dialog-actions {
        padding: 12px 16px 16px !important;
    }

    .event-edit-dialog-shell .config-dialog-section {
        padding: 14px !important;
        border-radius: 14px !important;
    }

    .event-edit-dialog-shell .config-dialog-grid-two {
        grid-template-columns: 1fr !important;
    }
}


/* Source bridge: app.global-household.css */

/*
 * Omnisant global household/account layer.
 * Mechanical consolidation source: profile.control.css.
 */

/* ===== absorbed from profile.control.css ===== */
.household-profile-page {
    --profile-radius: 18px;
    --profile-card-bg: linear-gradient(180deg, rgba(25, 28, 38, 0.86), rgba(12, 15, 23, 0.94));
    --profile-border: rgba(198, 210, 255, 0.12);
    --profile-border-strong: rgba(198, 210, 255, 0.2);
    --profile-text: rgba(242, 244, 252, 0.92);
    --profile-muted: rgba(209, 216, 236, 0.68);
    --profile-soft: rgba(166, 177, 210, 0.52);
    max-width: 1680px;
    margin-inline: auto;
}

.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(18px, 2.4vw, 34px);
    align-items: end;
    padding: clamp(20px, 3.1vw, 34px);
    border: 1px solid var(--profile-border);
    border-radius: 20px;
    background:
        radial-gradient(circle at 16% 8%, rgba(138, 154, 210, 0.12), transparent 32%),
        linear-gradient(135deg, rgba(24, 27, 38, 0.92), rgba(10, 13, 20, 0.98));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.profile-hero-copy {
    max-width: 620px;
}

.profile-kicker,
.profile-card-kicker,
.profile-panel-kicker,
.profile-vendor-group-title {
    color: rgba(178, 188, 228, 0.72);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.profile-hero h2 {
    margin: 8px 0 8px;
    color: var(--profile-text);
    font-size: clamp(1.55rem, 2.3vw, 2.36rem);
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: -0.024em;
}

.profile-hero p,
.profile-panel p {
    margin: 0;
    color: var(--profile-muted);
    font-size: clamp(0.92rem, 1.1vw, 1.02rem);
    line-height: 1.48;
}

.profile-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(98px, 1fr));
    gap: 8px;
    align-self: end;
    justify-self: end;
    width: min(100%, 360px);
    min-width: 0;
}

.profile-hero-stats div {
    min-height: 78px;
    padding: 14px 12px;
    border: 1px solid rgba(198, 210, 255, 0.1);
    border-radius: 14px;
    background: rgba(8, 11, 18, 0.5);
}

.profile-hero-stats span {
    display: block;
    color: rgba(246, 247, 252, 0.94);
    font-size: 1.22rem;
    font-weight: 760;
    line-height: 1;
}

.profile-hero-stats small {
    display: block;
    margin-top: 6px;
    color: rgba(194, 202, 228, 0.68);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
}

.profile-command-rail {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0 10px;
    padding: 10px;
    border: 1px solid rgba(198, 210, 255, 0.1);
    border-radius: 16px;
    background: rgba(14, 17, 25, 0.72);
}

.profile-search {
    flex: 0 1 520px;
    width: min(520px, 100%);
    max-width: 520px;
    min-width: 260px;
    margin-inline: 0 auto !important;
}

.profile-command-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.profile-primary-command,
.profile-secondary-command {
    min-height: 38px;
    border-radius: 10px !important;
    font-weight: 760 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.profile-primary-command {
    padding-inline: 16px !important;
}

.profile-add-split {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid rgba(198, 210, 255, 0.16);
    border-radius: 14px;
    background: rgba(14, 17, 25, 0.72);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
    overflow: hidden;
}

.profile-add-split .profile-add-main {
    border-radius: 0 !important;
    box-shadow: none !important;
    min-width: 112px;
}

.profile-add-split .profile-add-arrow .mud-menu-button-root {
    width: 42px !important;
    min-width: 42px !important;
    height: 100% !important;
    min-height: 38px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-left: 1px solid rgba(7, 10, 17, 0.24) !important;
    padding: 0 !important;
}

.profile-add-split .mud-button-root:hover,
.profile-add-split .mud-menu-button-root:hover {
    transform: none;
}

.profile-add-menu .mud-button-root {
    min-height: 38px !important;
    border-radius: 10px !important;
    padding-inline: 16px !important;
    font-weight: 760 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.profile-secondary-command {
    color: rgba(224, 229, 246, 0.76) !important;
    border-color: rgba(198, 210, 255, 0.11) !important;
    background: rgba(9, 12, 19, 0.36) !important;
}

.profile-category-rail {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 0 2px 6px;
    scrollbar-width: none;
}

.profile-category-rail::-webkit-scrollbar {
    display: none;
}

.profile-category-chip {
    flex: 0 0 auto;
    min-height: 31px;
    padding: 0 12px;
    border: 1px solid rgba(198, 210, 255, 0.1);
    border-radius: 999px;
    color: rgba(219, 224, 241, 0.64);
    background: rgba(11, 14, 22, 0.66);
    font-size: 0.78rem;
    font-weight: 750;
}

.profile-category-chip.is-active {
    color: rgba(239, 242, 252, 0.9);
    border-color: rgba(174, 185, 222, 0.28);
    background: linear-gradient(180deg, rgba(92, 101, 138, 0.58), rgba(54, 62, 88, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 18px rgba(30, 38, 71, 0.14);
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    gap: 24px;
    align-items: start;
}

.profile-section-stack {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.profile-main-column,
.profile-side-column,
.profile-section {
    min-width: 0;
}

.profile-section {
    margin-top: 18px;
}

.profile-section-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.profile-section-heading-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.profile-section-heading span {
    color: rgba(244, 245, 250, 0.92);
    font-size: 1.08rem;
    font-weight: 760;
    letter-spacing: -0.015em;
}

.profile-section-heading small {
    color: var(--profile-muted);
    font-size: 0.84rem;
}

.profile-attention-grid,
.profile-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.profile-card-grid-wide {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.profile-card-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.profile-attention-card,
.profile-memory-card,
.profile-panel,
.profile-inline-empty {
    border: 1px solid var(--profile-border);
    border-radius: var(--profile-radius);
    background: var(--profile-card-bg);
}

.profile-attention-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 18px;
}

.profile-attention-card .mud-icon-root {
    color: rgba(176, 187, 238, 0.84);
}

.profile-attention-card strong {
    display: block;
    color: rgba(246, 247, 252, 0.95);
    font-size: 1.4rem;
    line-height: 1;
}

.profile-attention-card span {
    display: block;
    margin-top: 5px;
    color: var(--profile-muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.profile-attention-card.is-clear {
    background: linear-gradient(180deg, rgba(21, 28, 32, 0.76), rgba(10, 15, 19, 0.9));
}

.profile-attention-card.is-clear .mud-icon-root {
    color: rgba(151, 210, 176, 0.72);
}

.profile-health-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 17px 18px;
    border: 1px solid var(--profile-border);
    border-radius: var(--profile-radius);
    background:
        radial-gradient(circle at 12% 0%, rgba(132, 145, 202, 0.08), transparent 34%),
        var(--profile-card-bg);
}

.profile-health-card.is-clear {
    border-color: rgba(151, 210, 176, 0.14);
}

.profile-health-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(198, 210, 255, 0.1);
    border-radius: 14px;
    color: rgba(176, 187, 238, 0.82);
    background: rgba(8, 11, 18, 0.5);
}

.profile-health-card.is-clear .profile-health-icon {
    color: rgba(151, 210, 176, 0.78);
}

.profile-health-copy {
    min-width: 0;
}

.profile-health-copy span {
    display: block;
    color: rgba(246, 247, 252, 0.94);
    font-size: 1rem;
    font-weight: 820;
    letter-spacing: -0.01em;
}

.profile-health-copy p {
    margin: 4px 0 0;
    color: var(--profile-muted);
    font-size: 0.86rem;
    line-height: 1.38;
}

.profile-memory-card {
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 20px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.profile-memory-card-clickable {
    cursor: pointer;
    transition: border-color 150ms ease-out, background 150ms ease-out, box-shadow 150ms ease-out;
}

.profile-memory-card-clickable:hover,
.profile-memory-card-clickable:focus-visible {
    border-color: rgba(198, 210, 255, 0.22);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    outline: none;
}

.profile-memory-card-primary {
    border-color: var(--profile-border-strong);
    background:
        radial-gradient(circle at 24% 0%, rgba(143, 156, 218, 0.13), transparent 36%),
        var(--profile-card-bg);
}

.profile-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 32px;
}

.profile-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

.profile-menu .mud-button-root,
.profile-menu .mud-icon-button {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
}

.profile-memory-card h3,
.profile-panel h3 {
    margin: 12px 0 6px;
    color: var(--profile-text);
    font-size: 1.12rem;
    font-weight: 850;
    letter-spacing: -0.015em;
    line-height: 1.16;
}

.profile-memory-card p {
    margin: 0;
    color: var(--profile-muted);
    font-size: 0.92rem;
    line-height: 1.42;
}

.profile-meta-row,
.profile-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.profile-meta-row span {
    min-width: 0;
    color: rgba(207, 214, 235, 0.72);
    font-size: 0.8rem;
    font-weight: 750;
}

.profile-meta-warning {
    color: rgba(244, 198, 136, 0.86) !important;
}

.profile-meta-owner {
    color: rgba(238, 241, 252, 0.88) !important;
}

.profile-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 25px;
    padding: 0 10px;
    border: 1px solid rgba(198, 210, 255, 0.11);
    border-radius: 999px;
    color: rgba(218, 224, 244, 0.78);
    background: rgba(8, 11, 18, 0.54);
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.profile-sensitive {
    border-color: rgba(232, 193, 130, 0.22);
    color: rgba(238, 206, 154, 0.86);
    background: rgba(96, 67, 27, 0.22);
}

.profile-card-note {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(198, 210, 255, 0.09);
    color: rgba(215, 221, 240, 0.78);
    font-size: 0.86rem;
    line-height: 1.48;
}

.profile-card-note strong {
    color: rgba(240, 242, 250, 0.88);
    margin-right: 4px;
}

.profile-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
}

.profile-metric-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.profile-metric-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid rgba(198, 210, 255, 0.08);
    border-radius: 12px;
    background: rgba(8, 11, 18, 0.48);
}

.profile-metric-row strong {
    color: rgba(246, 247, 252, 0.94);
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1;
}

.profile-metric-row span {
    color: rgba(211, 218, 240, 0.68);
    font-size: 0.78rem;
    font-weight: 760;
}

.profile-summary-updated {
    display: block;
    margin-top: 14px;
    color: rgba(189, 198, 225, 0.56);
    font-size: 0.76rem;
    font-weight: 740;
}

.profile-mini-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.profile-mini-list span {
    padding: 11px 12px;
    border-radius: 12px;
    color: rgba(218, 224, 243, 0.78);
    background: rgba(8, 11, 18, 0.52);
    font-size: 0.82rem;
    font-weight: 750;
}

.profile-vendor-group {
    margin-top: 22px;
}

.profile-vendor-group-title {
    margin-bottom: 12px;
}

.profile-inline-empty,
.profile-vendor-empty {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 18px;
    color: var(--profile-muted);
}

.profile-vendor-empty {
    justify-content: space-between;
    max-width: 760px;
    padding: 20px;
    border: 1px solid rgba(198, 210, 255, 0.12);
    border-radius: 18px;
    background:
        radial-gradient(circle at 10% 0%, rgba(137, 148, 197, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(20, 23, 32, 0.84), rgba(10, 13, 20, 0.94));
}

.profile-vendor-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(198, 210, 255, 0.12);
    border-radius: 13px;
    color: rgba(184, 194, 232, 0.78);
    background: rgba(8, 11, 18, 0.48);
}

.profile-vendor-empty-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.profile-vendor-empty h3 {
    margin: 0 0 4px;
    color: rgba(242, 244, 252, 0.9);
    font-size: 1rem;
    font-weight: 760;
    letter-spacing: -0.01em;
}

.profile-vendor-empty p {
    margin: 0;
    color: var(--profile-muted);
    font-size: 0.86rem;
    line-height: 1.42;
}

.profile-empty {
    margin-top: 28px;
}

@media (max-width: 1100px) {
    .profile-hero,
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-panel {
        position: static;
    }

    .profile-hero-stats {
        justify-self: stretch;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .household-profile-page {
        width: min(100% - 28px, 560px);
    }

    .profile-hero {
        padding: 19px;
        border-radius: 18px;
    }

    .profile-hero h2 {
        font-size: clamp(1.55rem, 8vw, 1.95rem);
        line-height: 1.08;
    }

    .profile-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-width: 0;
    }

    .profile-hero-stats div {
        min-height: 68px;
        padding: 12px 10px;
    }

    .profile-command-rail {
        flex-direction: column;
        align-items: stretch;
        margin-top: 12px;
    }

    .profile-search {
        flex-basis: auto;
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .profile-command-actions,
    .profile-section-heading-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 9px;
    }

    .profile-command-actions .mud-button-root,
    .profile-section-heading-actions .mud-button-root {
        width: 100%;
    }

    .profile-card-grid,
    .profile-card-grid-wide,
    .profile-card-grid-compact,
    .profile-attention-grid {
        grid-template-columns: 1fr;
    }

    .profile-memory-card {
        min-height: 0;
        padding: 18px;
    }

    .profile-category-chip {
        min-height: 30px;
        padding-inline: 11px;
        font-size: 0.75rem;
    }

    .profile-section {
        margin-top: 16px;
    }

    .profile-vendor-empty {
        align-items: flex-start;
        flex-direction: column;
        max-width: none;
        padding: 18px;
    }

    .profile-vendor-empty .mud-button-root {
        width: 100%;
    }

    .profile-view-header {
        flex-direction: column;
    }

    .profile-view-badges {
        justify-content: flex-start;
    }

    .profile-view-grid {
        grid-template-columns: 1fr;
    }
}

/* Profile CRUD dialogs: compact private-aviation intake form. */
.mud-dialog:has(.profile-dialog-shell) {
    width: min(840px, calc(100vw - 48px)) !important;
    max-width: min(840px, calc(100vw - 48px)) !important;
    max-height: calc(100dvh - 48px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 1px solid rgba(198, 210, 255, 0.13) !important;
    border-radius: 20px !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(139, 151, 203, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(22, 25, 34, 0.985), rgba(10, 13, 20, 0.995)) !important;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.46) !important;
}

.mud-dialog:has(.profile-dialog-shell) .mud-dialog-title {
    position: sticky;
    top: 0;
    flex: 0 0 auto;
    z-index: 3;
    min-height: 54px;
    padding: 14px 22px 13px !important;
    border-bottom: 1px solid rgba(198, 210, 255, 0.085);
    background: rgba(18, 21, 30, 0.985);
}

.mud-dialog:has(.profile-dialog-shell) .mud-dialog-title .mud-typography,
.mud-dialog:has(.profile-dialog-shell) .mud-dialog-title h6 {
    color: rgba(242, 244, 252, 0.92);
    font-size: 1rem !important;
    font-weight: 760 !important;
    letter-spacing: -0.01em;
}

.mud-dialog:has(.profile-dialog-shell) .mud-dialog-content {
    flex: 1 1 auto;
    max-height: calc(100dvh - 148px);
    overflow-y: auto;
    padding: 14px 20px 82px !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(190, 200, 235, 0.28) transparent;
}

.mud-dialog:has(.profile-dialog-shell) .mud-dialog-content::-webkit-scrollbar {
    width: 8px;
}

.mud-dialog:has(.profile-dialog-shell) .mud-dialog-content::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(190, 200, 235, 0.24);
}

.mud-dialog:has(.profile-dialog-shell) .mud-dialog-actions {
    position: sticky;
    bottom: 0;
    flex: 0 0 auto;
    z-index: 3;
    min-height: 56px;
    padding: 8px 20px 10px !important;
    gap: 10px;
    border-top: 1px solid rgba(198, 210, 255, 0.085);
    background: linear-gradient(180deg, rgba(12, 15, 22, 0.96), rgba(8, 11, 17, 0.99));
    box-shadow: 0 -10px 22px rgba(0, 0, 0, 0.18);
}

.mud-dialog:has(.profile-dialog-shell) .mud-dialog-actions .mud-button-root {
    min-height: 44px;
    height: 44px;
    border-radius: 11px !important;
    padding-inline: 17px !important;
    font-weight: 760 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.mud-dialog:has(.profile-dialog-shell) .mud-dialog-actions .mud-button-filled-primary {
    color: rgba(9, 11, 18, 0.96) !important;
    background: linear-gradient(180deg, rgba(166, 176, 226, 0.96), rgba(127, 138, 196, 0.96)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 22px rgba(80, 91, 150, 0.18) !important;
}

.mud-dialog:has(.profile-dialog-shell) .mud-dialog-actions .mud-button-text {
    color: rgba(224, 229, 246, 0.72) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    box-shadow: none !important;
}

.mud-dialog:has(.profile-view-shell) {
    width: min(720px, calc(100vw - 48px)) !important;
    max-width: min(720px, calc(100vw - 48px)) !important;
    max-height: calc(100dvh - 48px) !important;
    overflow: hidden !important;
    border: 1px solid rgba(198, 210, 255, 0.13) !important;
    border-radius: 20px !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(139, 151, 203, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(22, 25, 34, 0.985), rgba(10, 13, 20, 0.995)) !important;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.46) !important;
}

.mud-dialog:has(.profile-view-shell) .mud-dialog-content {
    max-height: calc(100dvh - 132px);
    overflow-y: auto;
    padding: 20px 22px 16px !important;
}

.mud-dialog:has(.profile-view-shell) .mud-dialog-actions {
    min-height: 58px;
    padding: 8px 22px 12px !important;
    border-top: 1px solid rgba(198, 210, 255, 0.085);
    background: rgba(8, 11, 17, 0.96);
}

.mud-dialog:has(.profile-view-shell) .mud-dialog-actions .mud-button-root {
    min-height: 42px;
    border-radius: 11px !important;
    padding-inline: 18px !important;
    font-weight: 760 !important;
    text-transform: none !important;
}

.profile-view-shell {
    display: grid;
    gap: 16px;
}

.profile-view-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(198, 210, 255, 0.09);
}

.profile-view-kicker,
.profile-view-section-title {
    color: rgba(178, 188, 228, 0.74);
    font-size: 0.68rem;
    font-weight: 820;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-view-header h2 {
    margin: 7px 0 5px;
    color: rgba(246, 247, 252, 0.95);
    font-size: 1.35rem;
    font-weight: 790;
    line-height: 1.12;
    letter-spacing: -0.018em;
}

.profile-view-header p {
    margin: 0;
    color: rgba(209, 216, 236, 0.7);
    font-size: 0.92rem;
    line-height: 1.42;
}

.profile-view-badges {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 auto;
}

.profile-view-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.profile-view-field {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(198, 210, 255, 0.09);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
}

.profile-view-field-full {
    grid-column: 1 / -1;
}

.profile-view-field span {
    display: block;
    margin-bottom: 6px;
    color: rgba(178, 188, 228, 0.66);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.profile-view-field strong {
    display: block;
    overflow-wrap: anywhere;
    color: rgba(244, 246, 252, 0.92);
    font-size: 0.95rem;
    font-weight: 690;
    line-height: 1.34;
}

.profile-view-section {
    display: grid;
    gap: 11px;
    padding-top: 2px;
}

.profile-view-body {
    padding: 14px;
    border: 1px solid rgba(198, 210, 255, 0.09);
    border-radius: 13px;
    color: rgba(218, 224, 243, 0.78);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.profile-dialog-shell.config-dialog-shell {
    display: grid;
    gap: 12px;
}

.profile-dialog-shell .validation-message,
.profile-dialog-shell .mud-alert,
.profile-dialog-shell .validation-summary-errors {
    font-size: 0.82rem;
}

.profile-dialog-shell .config-dialog-section {
    padding: 14px !important;
    border: 1px solid rgba(198, 210, 255, 0.095) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.022) !important;
    box-shadow: none !important;
}

.profile-dialog-shell .config-dialog-section-header {
    margin-bottom: 12px !important;
    padding: 0 !important;
}

.profile-dialog-shell .profile-passport-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.profile-dialog-shell .config-dialog-section-kicker {
    color: rgba(178, 188, 228, 0.74) !important;
    font-size: 0.68rem !important;
    font-weight: 820 !important;
    letter-spacing: 0.11em !important;
    text-transform: uppercase;
}

.profile-dialog-shell .config-dialog-grid,
.profile-dialog-shell .config-dialog-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(24px, 3vw, 30px);
    row-gap: 18px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    align-self: start;
    width: 100%;
    min-width: 0;
    gap: 6px;
}

.profile-field > label {
    color: rgba(205, 210, 225, 0.68);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    margin-bottom: 0;
    text-transform: uppercase;
}

.profile-span-full {
    grid-column: 1 / -1;
}

.profile-dialog-shell .mud-input-control {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
}

.profile-dialog-shell .mud-input-control > .mud-input-control-input-container {
    margin-top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
}

.profile-dialog-shell .mud-input-label {
    display: none !important;
}

.profile-dialog-shell .mud-input,
.profile-dialog-shell .mud-field {
    width: 100% !important;
    min-height: 50px !important;
    height: 50px !important;
    max-height: none !important;
    max-width: 100% !important;
    min-width: 0;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.052) !important;
    box-shadow: none !important;
    color: rgba(248, 248, 250, 0.95) !important;
    overflow: hidden !important;
}

.profile-dialog-shell .mud-input-root,
.profile-dialog-shell .mud-input-slot,
.profile-dialog-shell input,
.profile-dialog-shell textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    color: rgba(248, 248, 250, 0.95) !important;
    font-size: 0.94rem !important;
    font-weight: 620 !important;
    line-height: 1.35 !important;
}

.profile-dialog-shell .mud-input > input.mud-input-slot,
.profile-dialog-shell .mud-input > textarea.mud-input-slot,
.profile-dialog-shell .mud-input > div.mud-input-slot.mud-select-input {
    min-height: 50px !important;
    height: 50px !important;
    padding: 0 14px !important;
    align-items: center;
    background: transparent !important;
}

.profile-dialog-shell .mud-input > input.mud-input-slot,
.profile-dialog-shell input.mud-input-root,
.profile-dialog-shell .mud-input > textarea.mud-input-slot,
.profile-dialog-shell textarea.mud-input-root {
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

.mud-dialog .profile-dialog-shell .profile-field .mud-input.mud-input-outlined:not(.mud-select-input) > div.mud-input-slot.mud-input-root {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    flex: 0 0 0 !important;
    padding: 0 !important;
}

.profile-dialog-shell textarea.mud-input-slot,
.profile-dialog-shell textarea {
    min-height: 108px !important;
    height: auto !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    align-items: flex-start;
    resize: vertical;
}

.profile-note-field .mud-input-slot,
.profile-note-field textarea {
    min-height: 112px !important;
}

.profile-note-field .mud-input,
.profile-note-field .mud-field,
.profile-dialog-shell .mud-input-multiline {
    height: auto !important;
    min-height: 112px !important;
}

.profile-dialog-shell .profile-note-field .mud-input-control,
.profile-dialog-shell .profile-note-field .mud-input-control > .mud-input-control-input-container,
.profile-dialog-shell .profile-note-field .mud-input {
    height: auto !important;
    min-height: 112px !important;
    align-items: stretch !important;
}

.profile-dialog-shell .profile-note-field .mud-input > textarea.mud-input-slot,
.profile-dialog-shell .profile-note-field textarea.mud-input-root {
    min-height: 112px !important;
    height: 112px !important;
    line-height: 1.35 !important;
    padding: 12px 14px !important;
}

.profile-dialog-shell .mud-input-adornment {
    width: 46px;
    min-width: 46px;
    margin-inline: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.025);
    background: transparent !important;
    color: rgba(214, 220, 240, 0.7) !important;
}

.profile-dialog-shell .mud-select .mud-input-adornment,
.profile-dialog-shell .mud-select-input + .mud-input-adornment,
.profile-dialog-shell .mud-picker-input .mud-input-adornment {
    border-left-color: rgba(255, 255, 255, 0.04);
}

.profile-dialog-shell .mud-input-outlined-border {
    border-color: rgba(255, 255, 255, 0.12) !important;
    border-width: 1px !important;
}

.profile-dialog-shell .mud-input:hover .mud-input-outlined-border,
.profile-dialog-shell .mud-field:hover .mud-input-outlined-border {
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.profile-dialog-shell .mud-input:focus-within .mud-input-outlined-border,
.profile-dialog-shell .mud-field:focus-within .mud-input-outlined-border {
    border-color: rgba(170, 183, 236, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(170, 183, 236, 0.12);
}

.profile-dialog-shell .mud-input ::placeholder,
.profile-dialog-shell input::placeholder,
.profile-dialog-shell textarea::placeholder {
    color: rgba(220, 225, 235, 0.52) !important;
    font-weight: 520 !important;
    opacity: 1;
}

.profile-dialog-shell .mud-select,
.profile-dialog-shell .mud-select-input,
.profile-dialog-shell .mud-picker-input {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
}

.profile-dialog-shell .mud-select-input {
    color: rgba(248, 248, 250, 0.95) !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-dialog-shell .mud-input.mud-input-adorned-end > input.mud-input-slot,
.profile-dialog-shell .mud-input.mud-input-adorned-end > textarea.mud-input-slot,
.profile-dialog-shell .mud-input.mud-input-adorned-end > div.mud-input-slot.mud-select-input {
    padding-right: 48px !important;
}

.profile-dialog-shell .mud-picker-input button,
.profile-dialog-shell .mud-input-adornment button {
    color: rgba(214, 220, 240, 0.74) !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    background: transparent !important;
}

.profile-flag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
    min-width: 0;
    align-self: end;
}

.profile-passport-edit-card {
    padding: 12px;
    border: 1px solid rgba(198, 210, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.026);
}

.profile-passport-edit-card + .profile-passport-edit-card {
    margin-top: 12px;
}

.profile-passport-card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.profile-dialog-shell .config-dialog-checkbox {
    flex: 0 0 auto;
    width: auto !important;
    max-width: 100%;
    min-height: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 12px 0 7px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow: none !important;
}

.profile-dialog-shell .config-dialog-checkbox .mud-input-control-input-container,
.profile-dialog-shell .config-dialog-checkbox .mud-checkbox {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    min-height: 0 !important;
    width: auto !important;
}

.profile-dialog-shell .config-dialog-checkbox .mud-button-root {
    padding: 0 !important;
}

.profile-dialog-shell .config-dialog-checkbox .mud-icon-button,
.profile-dialog-shell .config-dialog-checkbox button.mud-button-root.mud-icon-button,
.profile-dialog-shell .config-dialog-checkbox span.mud-button-root.mud-icon-button {
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    padding: 2px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: transparent !important;
}

.profile-dialog-shell .config-dialog-checkbox .mud-checkbox-dense,
.profile-dialog-shell .config-dialog-checkbox .mud-svg-icon {
    font-size: 1rem !important;
}

.profile-dialog-shell .config-dialog-checkbox .mud-typography {
    color: rgba(224, 229, 246, 0.8);
    font-size: 0.84rem;
    font-weight: 740;
}

.mud-popover .mud-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(190, 200, 235, 0.34) rgba(8, 10, 16, 0.86);
}

.mud-popover .mud-list::-webkit-scrollbar {
    width: 8px;
}

.mud-popover .mud-list::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(8, 10, 16, 0.86);
}

.mud-popover .mud-list::-webkit-scrollbar-thumb {
    border: 2px solid rgba(8, 10, 16, 0.86);
    border-radius: 999px;
    background: rgba(190, 200, 235, 0.34);
}

.mud-popover .mud-list::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

@media (max-width: 700px) {
    .mud-dialog:has(.profile-dialog-shell) {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100dvh - 24px) !important;
        border-radius: 18px !important;
    }

    .mud-dialog:has(.profile-dialog-shell) .mud-dialog-title {
        min-height: 54px;
        padding: 14px 18px 13px !important;
    }

    .mud-dialog:has(.profile-dialog-shell) .mud-dialog-content {
        max-height: calc(100dvh - 138px);
        padding: 14px 14px 84px !important;
    }

    .mud-dialog:has(.profile-dialog-shell) .mud-dialog-actions {
        padding: 10px 16px calc(12px + env(safe-area-inset-bottom)) !important;
    }

    .profile-dialog-shell .config-dialog-section {
        padding: 14px !important;
    }

    .profile-dialog-shell .config-dialog-grid,
    .profile-dialog-shell .config-dialog-grid-two {
        grid-template-columns: 1fr;
        row-gap: 16px;
    }

    .profile-flag-row {
        align-items: center;
        flex-direction: row;
    }
}

