::deep .mud-table {
    height: 100%;
}

a {
    text-decoration:underline !important;
}
    a:hover {
        font-weight: bold !important;
        color: var(--mud-palette-inherit) !important;
        transform: scale(0.98);
        transition: transform .5s ease;
    }


.mud-divider {
    height: .10em !important;
    color: var(--mud-palette-inherit) !important;
    margin: 1em 0 !important;
}

/*#if (SampleContent)*/
html, body, #app {
    font-family: NunitoRegular !important;
    font-size: 1rem;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    overflow-y: auto;
}

.page-wrapper {
    min-width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    top: -40px;
    padding-top: 0px;
    padding-bottom: 50px;
}


#swipeDrawer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 380px; /* adjust as needed */
    background: rgba(255, 255, 255, 0.90) !important;
    backdrop-filter: blur(10px);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transform: translateY(300px); /* leaves 100px visible */
    transition: transform 0.3s ease;
    touch-action: none;
    z-index: 100;
}
/* Drawer Handle Bar */
.drawer-handle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    width: 100%;
    border-bottom: 2px solid gray;
    padding-bottom: 15px;
}

.drawer-handle-bar {
    width: 80px;
    height: 5px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    margin: auto;
}

.drawer-open .drawer-spirit-anchor {
    transform: translateY(-6px);
    transition: transform .4s ease-out;
}

.drawer-closed .drawer-spirit-anchor {
    transform: translateY(0);
}
/* The anchor positions the bubble */
.drawer-spirit-anchor {
    position: absolute;
    top: calc(0px - 30px); /* lift it above the drawer top edge */
    right: 10px; /* distance from right edge */
    z-index: 5; /* above drawer content */
    pointer-events: none; /* don’t block swipe gestures */
}

.main-layout-spirit-anchor {
    position:relative;
    top: 20px !important;
}

/* size variant for the bubble */
.logo-bubble.bubble-sm {
    --size: 75px; /* smaller bubble */
    --glow: 14px;
    --tint: rgba(255,255,255,.18);
}

    /* If you want the pal perfectly circular and a bit tighter inside */
    .logo-bubble.bubble-sm .logo {
        width: 75%;
        height: 75%;
    }

/* Prevent the bubble from capturing touches when pointerless is present */
.pointerless,
.pointerless * {
    pointer-events: none !important;
}

.top-bar-buttons {
    margin-top: 10px;
    padding-top: 0;
    width: 100%;
}

.mind-tides-icon-button {
    border-radius: 50%;
    margin-right: 20px !important;
    width: 50px;
    height: 50px;
    padding: 0px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); /* Optional soft shadow */
    background-color: rgba(255,255,255, 0.75) !important;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

    /* When hovered, gently darken background */
    .mind-tides-icon-button:hover {
        background-color: #ffffff !important;
    }
/* Ripple Effect */ `
.mind-tides-icon-button::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    transform: scale(0);
    opacity: 0.75;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Trigger Ripple */
.mind-tides-icon-button:active::after {
    transform: scale(4);
    opacity: 0;
}

/* Button Press Effect */
.mind-tides-icon-button:active {
    transform: scale(0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* Drawer Content */
.drawer-content {
    padding: 1rem;
    max-height: 70vh;
    overflow-y: auto;
}
.mt-body {
    margin-top: 0;
    padding-top: 0 !important;
}



@media only screen and (max-width: 960px) {
    .mt-body {
        min-height: calc(100vh - 50px);
        padding-bottom: 205px;
        padding-top: 80px !important;
    }
}


.mt-page-header {
    top: 0;
    z-index: 50;
    padding: 0px;
    background-color: transparent !important;
    width:100%;
}

.mt-header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mt-header-icon {
    opacity: 0.9;
}

.mt-header-title {
    letter-spacing: .3px;
}

/* Mind Tides Unified Error Panel */
.mt-header-error {
    /* Gradient uses your system-wide error + theme primary color */
    background: white !important;
    color: var(--mud-palette-primary) !important;
    border-radius: 50rem;
    border: 1px solid rgba(var(--mud-palette-primary-rgb), 0.25);
    padding: 10px 14px;
    margin: 10px 0px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Optimized for dark mode */
body.dark-theme .mt-header-error {
    background: linear-gradient( 135deg, var(--mud-palette-primary) 0%, color-mix(in srgb, var(--mud-palette-primary) 20%, black 30%) 100% ) !important;
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--mud-palette-error-text) !important;
}

.mt-header-sub {
    margin-top: 2px;
}

/* Wrapper that animates open/close */
.mt-progress-wrap {
    overflow: hidden;
    /* space above the bar */
    margin-top: 5px;
    margin-bottom: 5px;
    /* animation props */
    transition: max-height 220ms ease, opacity 220ms ease, transform 220ms ease;
    will-change: max-height, opacity, transform;
}

/* Closed state — hidden & collapsed */
.mt-slide-closed {
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
}

/* Open state — enough height for bar + caption */
.mt-slide-open {
    max-height: 48px; /* adjust if your caption wraps */
    opacity: 1;
    transform: translateY(0);
}

/* The bar itself */
.mt-header-progress {
    height: 6px;
    border-radius: 999px;
}

/* Caption under the bar */
.mt-progress-caption {
    margin-top: 4px;
}

/* ========== Bubble Core ========== */
.logo-bubble {
    --size: 70px;
    --glow: 20px;
    --tint: rgba(255,255,255,.25); /* brighter inner tint */
    --ring1: rgba(255,255,255,.60); /* more visible highlight ring */
    --ring2: rgba(255,255,255,.20);
    --shadow: rgba(0,0,0,.18);
    position: relative;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    display: grid;
    place-items: center;
    isolation: isolate;
    /* whiter glass */
    background: radial-gradient(120% 120% at 30% 30%, 
        rgba(255,255,255,.65) 0%, 
        rgba(255,255,255,.45) 35%, 
        rgba(255,255,255,.25) 60%, 
        rgba(255,255,255,.12) 100%
    );
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    /* cleaner glow and highlight edges */
    box-shadow: inset 0 0 0 1px var(--ring2), inset 0 0 24px var(--tint), 0 8px 20px -6px var(--shadow), 0 0 var(--glow) rgba(255,255,255,.18);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .logo-bubble::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: radial-gradient(90% 70% at 30% 25%, rgba(255,255,255,.95), transparent 65%), radial-gradient(70% 50% at 65% 70%, rgba(255,255,255,.98), transparent 60%);
        mix-blend-mode: screen;
        pointer-events: none;
    }

    .logo-bubble::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: radial-gradient(60% 60% at 50% 50%, rgba(255,255,255,.05) 0%, transparent 60%), conic-gradient(from 210deg, rgba(255,255,255,.25) 0 10%, transparent 10% 100%);
        mix-blend-mode: screen;
        filter: blur(2px);
        opacity: .8;
        pointer-events: none;
    }
    /* contained logo */
    .logo-bubble .logo {
        width: 90%; /* adjust your logo scale */
        height: 90%;
        object-fit: contain;
        filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
        user-select: none;
        -webkit-user-drag: none;
    }

    /* Hover: slightly “inflate” */
    .logo-bubble:hover {
        box-shadow: inset 0 0 0 1px var(--ring1), inset 0 0 24px rgba(255,255,255,.08), 0 12px 28px -8px rgba(0,0,0,.28), 0 0 calc(var(--glow) + 4px) rgba(255,255,255,.16);
        transform: translateY(-2px) scale(1.02);
    }

.mt-pal-bubble {
    position: relative;
    margin:0px !important;
    width: 100px !important;
    height: 100px !important;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.75); /* stronger white rim */
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 35%, rgba(255,255,255,0.1) 65%, rgba(0,0,0,0.0) 100%);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45); /* deeper shadow */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

    .mt-pal-bubble .image {
        width: 100% !important;
        height: 100% !important;
        border-radius: 50% !important;
        display: block;
        background-size:cover;
    }

    /* optional subtle hover */
    .mt-pal-bubble:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
    }

.mt-pal-bubble--selected {

    border: 6px solid var(--mud-palette-primary);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6), /* inner glow */
    0 10px 24px rgba(0, 0, 0, 0.55); /* deeper drop shadow */
}

    .mt-pal-bubble--selected::after {
        content: "";
        position: absolute;
        inset: -4px; /* slightly outside the main bubble */
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.9); /* highlight ring */
        box-shadow: 0 0 14px rgba(255, 255, 255, 0.55);
        pointer-events: none; /* don't interfere with clicks */
    }


.mt-spiritpal-current {
    padding: 12px !important;
    border-radius: 12px !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.mt-spiritpal-grid {
    margin-top:5px !important;
    margin-bottom: 20px !important;
}

/* ============================
   Shared Pill Base
   ============================ */

.mud-input > input.mud-input-root-outlined, div.mud-input-slot.mud-input-root-outlined {
    padding: 10px !important;
}

.mud-list-item-text {
    color: var(--mud-palette-primary) !important;
}

.mud-input > input.mud-input-root-outlined.mud-input-root-adorned-end, div.mud-input-slot.mud-input-root-outlined.mud-input-root-adorned-end {
    text-indent:10px !important;
}

.mt-rounded-pill,
.mt-rounded-pill .mud-input {
    border-radius: 50rem !important;
    max-width: 300px !important;
}

    /* Glassy input container */
    .mt-rounded-pill .mud-input-control-input-container {
        border-radius: 50rem !important;
        box-shadow: inset 0 0 6px rgba(255,255,255,0.25), inset 0 0 12px rgba(255,255,255,0.10), 0 0 12px rgba(255,255,255,0.15);
        background: rgba(255,255,255,0.12) !important;
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
        transition: border .25s ease, box-shadow .25s ease;
    }

        /* Focused: stronger glass highlight */
        .mt-rounded-pill .mud-input-control-input-container.mud-input-focused {
            border: 6px solid rgba(255,255,255,0.75) !important;
            box-shadow: inset 0 0 10px rgba(255,255,255,0.45), 0 0 16px rgba(255,255,255,0.30), 0 0 22px rgba(255,255,255,0.25);
        }

    /* Adornment (icons: email/eye) */
    .mt-rounded-pill .mud-input-adornment {
        color: rgba(255,255,255,0.95) !important;
        text-shadow: 0 0 4px rgba(255,255,255,0.65);
    }

    /* Base white pill border */
    .mt-rounded-pill .mud-input-outlined-border {
        border-width: 2px !important;
        border-style: solid !important;
        border-color: var(--mud-palette-skeleton) !important;
        border-radius: 999px !important;
        box-shadow: none !important;
    }

    /* ============================
   Rounded Pill Buttons
   ============================ */

    .mt-rounded-pill.mud-button {
        border-width: 2px !important;
        border-style: solid !important;
        border-color: var(--mud-palette-surface) !important;
        border-radius: 50rem !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        box-shadow: 0 0 8px rgba(255,255,255,0.25);
        background-color: var(--mud-palette-skeleton) !important;
        padding:5px 15px !important;
    }

        .mt-rounded-pill.mud-button:hover {
            border-color: rgba(255,255,255,0.85) !important;
            box-shadow: 0 0 12px rgba(255,255,255,0.35);
            transform: translateY(-1px);
            transition: 0.2s ease;
        }

        .mt-rounded-pill.mud-button:active {
            transform: scale(0.98);
            box-shadow: 0 0 6px rgba(255,255,255,0.20);
        }

    /* =========================================
   Field-level error styling for pill inputs
   ========================================= */

    /* When the field has an error, tint the pill border + glow */
    .mt-rounded-pill .mud-input-control.mud-input-error .mud-input-control-input-container {
        border-color: var(--mud-palette-primary) !important; /* or var(--mud-palette-error) */
        box-shadow: inset 0 0 6px rgba(255,255,255,0.25), inset 0 0 12px rgba(255,255,255,0.10), 0 0 10px color-mix(in srgb, var(--mud-palette-error) 60%, transparent 40%);
    }

        /* Focus + error */
        .mt-rounded-pill .mud-input-control.mud-input-error .mud-input-control-input-container.mud-input-focused {
            border-width: 4px !important;
            border-color: var(--mud-palette-primary) !important; /* or var(--mud-palette-error) */
            box-shadow: inset 0 0 10px rgba(255,255,255,0.35), 0 0 18px color-mix(in srgb, var(--mud-palette-error) 70%, transparent 30%);
        }

    /* Error helper text under the pill */
    .mt-rounded-pill .mud-input-helper-text.mud-input-error {
        font-size: 0.70rem;
        margin-left: 12px;
        color: white !important; /* or var(--mud-palette-error) */
    }

    /* Spacing between pill and error text */
    .mt-rounded-pill .mud-input-control {
        margin-bottom: 0.5rem;
    }

/* ============================
   Global autofill reset
   ============================ */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* ============================================
   Mind Tides Autofill Styling for Pill Inputs
   ============================================ */

.mt-rounded-pill input:-webkit-autofill,
.mt-rounded-pill input:-webkit-autofill:hover,
.mt-rounded-pill input:-webkit-autofill:focus {
    box-shadow: 0 0 10px rgba(255,255,255,0.25);
    border-color: color-mix(in srgb, var(--mud-palette-primary) 70%, #ffffff 30%) !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
}

/* Firefox */
.mt-rounded-pill input:-moz-autofill {
    box-shadow: 0 0 10px rgba(255,255,255,0.25);
    border-color: color-mix(in srgb, var(--mud-palette-primary) 70%, #ffffff 30%) !important;
    -moz-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
}


.mt-section-title {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Base: mobile-first, single column */
.mt-feature-grid {
    margin-top: .5rem;
}

.mt-feature-item {
    margin-bottom: 0.25rem;
}

    .mt-feature-item i,
    .mt-feature-icon {
        margin-right: 0.5rem;
        font-size: 1.25rem; /* your bumped size */
    }

/* Desktop / tablet: switch to two columns */
@media (min-width: 960px) {
    .mt-feature-grid {
        margin-top: .5rem;
    }
    mud-grid-item-md-6 {
        max-width: 100% !important;
    }
}

/* Wrapper */
.mt-haptics-slider {
    max-width: 240px !important;
    margin-top: 4px;
    margin-left: 5px;
}

    /* --------------------------------------- */
    /*  BASE TRACK (unfilled)                  */
    /* --------------------------------------- */
    .mt-haptics-slider .mud-slider-track {
        height: 8px !important;
        border-radius: 9999px;
        background-color: var(--mud-palette-inherit) !important;
        opacity: 0.45;
    }

    /* --------------------------------------- */
    /*  ACTIVE TRACK (filled portion)          */
    /* --------------------------------------- */
    .mt-haptics-slider .mud-slider-track-active {
        height: 8px !important;
        border-radius: 9999px;
        background: var(--mud-palette-primary);
        opacity: 0.9;
    }

    /* --------------------------------------- */
    /*  THUMB                                  */
    /* --------------------------------------- */
    .mt-haptics-slider .mud-slider-thumb {
        width: 20px;
        height: 20px;
        border-radius: 9999px;
        border: 2px solid var(--mud-palette-text-primary);
        background: var(--mud-palette-primary);
        box-shadow: 0 0 4px rgba(0,0,0,0.25);
        transition: box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
    }

        /* Hover / focus */
        .mt-haptics-slider .mud-slider-thumb:hover,
        .mt-haptics-slider .mud-slider-thumb.mud-focus-visible {
            transform: scale(1.05);
            background: var(--mud-palette-primary-hover);
        }

    /* --------------------------------------- */
    /*  ENABLED GLOW STATE                     */
    /* --------------------------------------- */
    .mt-haptics-slider.mt-haptics-slider-on .mud-slider-thumb {
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--mud-palette-primary) 45%, transparent), 0 0 14px color-mix(in srgb, var(--mud-palette-primary) 90%, transparent);
    }

    .mt-haptics-slider.mt-haptics-slider-on .mud-slider-track-active {
        opacity: 1;
    }

    /* --------------------------------------- */
    /*  DISABLED STATE                         */
    /* --------------------------------------- */
    .mt-haptics-slider.mt-haptics-slider-off .mud-slider-track {
        background-color: var(--mud-palette-lines-default);
        opacity: 0.4;
    }

    .mt-haptics-slider.mt-haptics-slider-off .mud-slider-track-active {
        background-color: var(--mud-palette-lines-default);
        opacity: 0.6;
    }

    .mt-haptics-slider.mt-haptics-slider-off .mud-slider-thumb {
        background: var(--mud-palette-surface);
        border-color: var(--mud-palette-lines-default);
        box-shadow: none;
        opacity: 0.7;
    }

.mt-spiritpal-page {
    padding: 16px;
}



.mt-spiritpal-card {
    cursor: pointer;
    border-radius: 16px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border 0.15s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width:100%;
    height:150px;
    padding:20px;
    padding-left:20px !important;
}

    .mt-spiritpal-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }

.mt-spiritpal-card--selected {
    border: 2px solid var(--mud-palette-primary);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.mt-spiritpal-avatar,
.mt-spiritpal-avatar-preview {
    width: 100px !important;
    height: 100px !important;
    border-radius: 999px;
}

.mt-spirit-avatar-image {
    width: 60px !important;
    height: 60px !important;
}

.mt-spiritpal-actions {
    margin-top: 16px;
}

.confirmation-mud-dialog {
    min-height: 200px;
    color: var(--mud-palette-primary) !important;
}

/* Gradient dialog header */
.mud-dialog .mud-dialog-title {
    background: linear-gradient( 
        to bottom, 
        color-mix(in srgb, var(--mud-palette-primary) 100%, white 20%) 20%, 
        var(--mud-palette-primary) 80%, 
        color-mix(in srgb, var(--mud-palette-primary) 100%, black 10%) 100% ) !important;
    /* keep your existing styles */
    padding: 10px !important;
    height: 55px;
    color: white;
    display: flex;
    align-items: center;
    border-top: 2px solid white;
    border-left: 2px solid white;
    border-right: 2px solid white;
}

/* Close button in the title */
.mud-dialog .mud-dialog-title .mud-button-close {
    color: inherit; /* uses contrastText */
}

/* Content area */
.mud-dialog .mud-dialog-content {
    padding:0px !important;
}

/* Frosted-glass style backdrop for dialogs using BackgroundClass = "blur" */
.blur {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px); /* just in case */
    background-color: rgba(0, 0, 0, 0.35);
}

/* Optional: tighten the confirmation text */
.confirmation-mud-dialog {
    line-height: 1.5;
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .mud-dialog {
        margin: 10px !important;
        max-width: 95vw !important;
    }
}