*, *::before, *::after {
    box-sizing: border-box;
}

[x-cloak] {
    display: none !important;
}

a, a:hover {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

i:not(.lucide) {
    font-style: italic;
}

a > img, a > svg {
    cursor: pointer;
}

/* Disable selection & dragging (modern + iOS Safari) */
img, svg, .tooltip {
    user-select: none;
    /* standard */
    -webkit-user-select: none;
    /* iOS Safari */
    -webkit-user-drag: none;
    /* iOS Safari */
    cursor: inherit;
}

input {
    border: none;
    outline: none; /* removes focus ring */
    -webkit-appearance: none; /* removes iOS default bevel/border */
    -moz-appearance: none;
    appearance: none;
    box-shadow: none; /* removes iOS inner shadow */
}

body {
    margin: 0;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: white;
}

body > .site-main {
    flex: 1;
}

/* Alpine Transition Utilities */
.transition {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-200 {
    transition-duration: 150ms;
}

.duration-150 {
    transition-duration: 100ms;
}

.ease-out {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.ease-in {
    transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

.-translate-y-2 {
    transform: translateY(-0.5rem);
}

.translate-y-0 {
    transform: translateY(0);
}

.scale-95 {
    transform: scale(0.95);
}

.scale-100 {
    transform: scale(1);
}

.origin-top-right {
    transform-origin: top right;
}

.origin-top {
    transform-origin: top;
}

/* Combined utilities for Alpine to avoid transform conflicts */
.enter-start {
    transform: translateY(-0.1rem);
}

.enter-end {
    transform: translateY(0);
}

/* Disable default dropdown animation when using Alpine transitions on overlay */
.view-menu-overlay .mega-menu {
    animation: none;
}

.view-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 1rem; /* Match site-container padding or use to space menu */
    transform-origin: top;
}

@media (min-width: 768px) {
    .view-menu-overlay {
        transform-origin: top right;
    }
}

.view-menu-overlay .mega-menu {
    position: relative;
    top: 0;
    left: 0;
    width: auto;
    max-width: min(92vw, 960px);
    margin: 0 auto; /* Default mobile: centered */
    box-shadow: var(--glass-shadow);
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 0.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
    transform: translate(-2rem, -1rem)
}

@media (min-width: 768px) {
    .view-menu-overlay .mega-menu {
        grid-template-columns: 2fr 1fr;
        max-width: 800px;
        margin-right: 0;
        margin-left: auto;
        transform: translate(-2rem, -1rem);
    }
}

/* Important: Widget grid (12-column) */
body > .site-main > .site-container > .widget-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr; /* mobile: 1 per row */
    align-items: stretch; /* equal heights per row */
}

/* Light/Dark theme overrides (optional; adjust to taste) */
body.dusk {
    --card-bg: rgba(255, 255, 255, 0.08);
    --text-color: inherit;
    --btn-bg: rgba(255, 255, 255, 0.10);

    --glass-filter: blur(12px) saturate(160%);
    --glass-border-color: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Normal site background for dusk theme (no extra tint) */
body.dusk {
    background: black url('./img/background_dark.jpg') no-repeat center top fixed;
    background-size: cover;
}

body.dawn {
    --card-bg: rgba(255, 255, 255, 0.70); /* slightly brighter for light mode */
    --text-color: inherit;
    --btn-bg: rgba(0, 0, 0, 0.06);

    --glass-filter: blur(10px) saturate(140%);
    --glass-border-color: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}

/* Normal site background for dawn theme (no extra tint) */
body.dawn {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url('./img/background.jpg') no-repeat center top fixed;
    background-size: cover;
}

/* Tinted backdrop removed per request */
.modal.dawn {
    background: transparent;
}

/* Tinted backdrop removed per request */
.modal.dusk {
    background: transparent;
}

@media (max-width: 639px) {
    .modal.hide-dash-mobile.dawn {
        background: black url('./img/background.jpg') no-repeat center top fixed !important;
        background-size: cover !important;
    }

    .modal.hide-dash-mobile.dusk {
        background: black url('./img/background_dark.jpg') no-repeat center top fixed !important;
        background-size: cover !important;
    }
}

.modal.hide-dash-any.dawn {
    background: black url('./img/background.jpg') no-repeat center top fixed !important;
    background-size: cover !important;
}

.modal.hide-dash-any.dusk {
    background: black url('./img/background_dark.jpg') no-repeat center top fixed !important;
    background-size: cover !important;
}

.site-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 1.5rem 1rem;
}

.site-header {
    border-top: 0;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.site-header .brand-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.site-header .brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
}


.site-header .brand-badge {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #DE493E;
}

.site-header .site-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}

.site-header [data-span="12"] {
}

.welcome {
    padding-left: 1rem;
    min-width: 0;
    text-align: right;
}

.welcome-greeting,
.welcome-name {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.2rem;
    font-weight: 300;
    color: white;
    max-width: 12rem;
    vertical-align: bottom;
}

.welcome-greeting {
    margin-right: 0.35rem;
}

@media (max-width: 900px) {
    .welcome {
        display: none !important;
    }
}


/* Medium and up: 12-column grid, widgets span N columns via data-span */
@media (min-width: 640px) {
    body > .site-main > .site-container > .widget-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }



    /* Default: 2 per row (span 6) unless overridden */
    dash-card {
        grid-column: span 6;
    }

    dash-card[data-span="1"] {
        grid-column: span 1;
    }

    dash-card[data-span="2"] {
        grid-column: span 2;
    }

    dash-card[data-span="3"] {
        grid-column: span 3;
    }

    dash-card[data-span="4"] {
        grid-column: span 4;
    }

    dash-card[data-span="5"] {
        grid-column: span 5;
    }

    dash-card[data-span="6"] {
        grid-column: span 6;
    }

    dash-card[data-span="7"] {
        grid-column: span 7;
    }

    dash-card[data-span="8"] {
        grid-column: span 8;
    }

    dash-card[data-span="9"] {
        grid-column: span 9;
    }

    dash-card[data-span="10"] {
        grid-column: span 10;
    }

    dash-card[data-span="11"] {
        grid-column: span 11;
    }

    dash-card[data-span="12"] {
        grid-column: span 12;
    }
}

/* Basic widget look (generic dash-card element) */
dash-card {
    grid-column: 1 / -1;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    text-shadow: 0 0 4px rgba(128, 128, 128, 0.3);
    height: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Hover interaction baseline: prepare for GPU-friendly transform */
    transform-origin: center;
    transform: translateZ(0);
    /* Use ease-in expo for requested feel; slower for smoother fade-in */
    transition: transform 450ms cubic-bezier(0.95, 0.05, 0.795, 0.035) 0s;
    will-change: transform;
}

/* Stacking Wrapper Support */
.widget-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    grid-column: 1 / -1; /* Mobile default */
    height: auto;
}

.widget-stack dash-card {
    grid-column: span 12 !important; /* Force full width within stack */
    height: auto !important; /* Allow natural height */
    align-self: stretch;
}

@media (min-width: 640px) {
    .widget-stack[data-span="1"] { grid-column: span 1; }
    .widget-stack[data-span="2"] { grid-column: span 2; }
    .widget-stack[data-span="3"] { grid-column: span 3; }
    .widget-stack[data-span="4"] { grid-column: span 4; }
    .widget-stack[data-span="5"] { grid-column: span 5; }
    .widget-stack[data-span="6"] { grid-column: span 6; }
    .widget-stack[data-span="7"] { grid-column: span 7; }
    .widget-stack[data-span="8"] { grid-column: span 8; }
    .widget-stack[data-span="9"] { grid-column: span 9; }
    .widget-stack[data-span="10"] { grid-column: span 10; }
    .widget-stack[data-span="11"] { grid-column: span 11; }
    .widget-stack[data-span="12"] { grid-column: span 12; }
}

/* Subtle scale-up on hover/focus with delayed start; instant revert on exit */
dash-card:hover,
dash-card:focus-visible {
    /* Slightly more subtle scale for smoother perception */
    transform: scale(1.020);
    /* Smaller entry delay so it starts sooner but not instantly */
    transition-delay: 25ms;
}

dash-card[data-span="12"]:hover,
dash-card[data-span="12"]:focus-visible {
    transform: scale(1.005);
}

dash-card[data-span="11"]:hover,
dash-card[data-span="11"]:focus-visible {
    transform: scale(1.006);
}

dash-card[data-span="10"]:hover,
dash-card[data-span="10"]:focus-visible {
    transform: scale(1.007);
}

dash-card[data-span="9"]:hover,
dash-card[data-span="9"]:focus-visible {
    transform: scale(1.008);
}

dash-card[data-span="8"]:hover,
dash-card[data-span="8"]:focus-visible {
    transform: scale(1.010);
}

dash-card[data-span="7"]:hover,
dash-card[data-span="7"]:focus-visible {
    transform: scale(1.012);
}

dash-card[data-span="6"]:hover,
dash-card[data-span="6"]:focus-visible {
    transform: scale(1.015);
}

dash-card[data-span="5"]:hover,
dash-card[data-span="5"]:focus-visible {
    transform: scale(1.018);
}

dash-card[data-span="4"]:hover,
dash-card[data-span="4"]:focus-visible {
    transform: scale(1.020);
}

dash-card[data-span="3"]:hover,
dash-card[data-span="3"]:focus-visible {
    transform: scale(1.025);
}

dash-card[data-span="2"]:hover,
dash-card[data-span="2"]:focus-visible {
    transform: scale(1.035);
}

dash-card[data-span="1"]:hover,
dash-card[data-span="1"]:focus-visible {
    transform: scale(1.050);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    dash-card {
        transition: none !important;
    }

    dash-card:hover,
    dash-card:focus-visible {
        transform: none !important;
        transition: none !important;
    }
}

/* Modal (generic) */
.modal {
    position: fixed;
    inset: 0;
    /* Slightly dim the page content behind the modal */
    background: rgba(0, 0, 0, 0.25) !important;
    display: grid;
    /* Mobile/default: keep centered; desktop-specific offset added via media query below */
    place-items: center;
    pointer-events: none;
    opacity: 0;
    transition: none; /* remove fade animation to avoid blur glitches */
    /* Keep above any site backdrop or hero layers, but below panel */
    z-index: 950;
}

/* (Removed) view-menu specific transparent backdrop; we keep the standard backdrop tint */

.modal.is-open {
    pointer-events: auto;
    /* Mobile/default padding */
    padding: 1rem;
    opacity: 1;           /* appear instantly */
    animation: none;      /* no open animation */
    transition: none;     /* no transition to avoid blur flicker */
}

/* CLOSE */
.modal.is-close {
    pointer-events: auto;
    /* Mobile/default padding */
    padding: 1rem;
    opacity: 0;           /* hide instantly */
    animation: none;      /* no close animation */
    transition: none;     /* no transition to avoid blur flicker */
}

    /* Desktop-only: offset modal toward top and add extra top padding */
@media (min-width: 721px) {
    .modal {
        /* Offset the modal panel vertically toward the top while keeping it horizontally centered */
        place-items: start center;
    }

    .modal.is-open,
    .modal.is-close {
        /* Add extra space at the top and bottom to offset the panel upward and keep it away from edges */
        padding: 8vh 1rem;
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.modal-panel {
    position: relative;
    color: #fff;
    /* Allow the panel to grow with its content up to safe caps */
    width: auto;
    max-width: min(95vw, 960px);
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: .5rem;
    text-shadow: 0 0 4px rgba(128, 128, 128, 0.3);
    padding: 1rem;
    /* Ensure the dialog sits above the tinted overlay */
    z-index: 1000;
}

/* When anchored to a triggering element (e.g., match widget footprint) */
.modal-panel.is-anchored {
    position: absolute;
    max-width: none;
}

.modal-loader-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
}

.modal-panel.is-loading .modal-loader-overlay {
    display: flex;
}

.modal-panel.is-loading {
    min-height: 200px;
}

.modal-panel.is-loading .modal-body {
    display: none !important;
}

.modal-loader {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #fff;
    animation: modal-spin 0.8s linear infinite;
}

@keyframes modal-spin {
    to { transform: rotate(360deg); }
}


/* When a modal is open, visually hide interactive focus from underlying content */
body.modal-open {
    height: 100vh;
    height: 100dvh;
    overflow: hidden; /* prevent background scroll under modal on mobile/desktop */
}

.modal-header {
    position: relative;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 0.625rem 0;
}

/* Right-aligned action group in the modal header */
.modal-head-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
}

.modal-title {
    margin: 0 0 6px 0;
    font-weight: 700;
    font-size: 1rem;
}

.modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: inherit;
    border: none;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0.25rem;
    filter: drop-shadow(0 0 4px rgba(128, 128, 128, .5));
    /* Keep position fixed; no translate to avoid any perceived movement */
    transform: none;
    opacity: 1; /* solid white */
    transition: opacity .15s ease-in-out;
    font-size: 1rem;
    cursor: pointer !important;
}

.modal-close * {
    pointer-events: none !important;
}

/* Ensure the close icon has a thicker stroke to match other UI icons */
.modal-close [data-lucide] {
    stroke-width: 2.25px;
}

/* Share button next to close, matching size and interaction */
.modal-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: inherit;
    border: none;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0.25rem;
    filter: drop-shadow(0 0 4px rgba(128, 128, 128, .5));
    /* Keep position fixed; no translate to avoid any perceived movement */
    transform: none;
    opacity: .45; /* 45% opacity at rest */
    transition: opacity .15s ease-in-out;
    font-size: 1rem;
    cursor: pointer !important;
}

/* Hover/focus: keep positions fixed and opacities as specified */
.modal-close:hover,
.modal-close:focus-visible {
    opacity: 1;
    transform: none;
}

.modal-share:hover,
.modal-share:focus-visible {
    opacity: 1;
    transform: none;
}

.modal-share * {
    pointer-events: none !important;
}

.modal-share [data-lucide] {
    stroke-width: 2.25px;
}

/* Slightly reduce icon size in modal header actions while keeping touch target */
.modal-head-actions [data-lucide] {
    width: 1.125rem;
    height: 1.125rem;
}

.modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-body .w-row {
    margin-bottom: 1.25rem;
}

.modal-body .w-row > div {
    display: flex;
    flex: 1;
    min-width: 0;
}

.modal-body .w-row .w-row-title {
    margin: 0 0 1rem 0;
    font-size: .9rem;
}

.modal-body .w-row .w-row-text {
    flex: 1 1 auto;
    margin: 0;
    padding-left: .6rem;
    border-left: 2px solid rgba(255, 255, 255, .2);
    font-size: .9rem;
    line-height: 1.5;
    min-width: 0;
    overflow-wrap: anywhere;
}

.modal-body .w-row > div > .w-row-text > .w-row-meta {
    display: block;
    margin-top: .8rem;
    color: rgba(255, 255, 255, .5);
}

.modal-body .w-row .w-row-link {
    flex: 0 0 auto;
    text-align: right;
    background: rgba(255, 255, 255, .2);
    border-radius: 0.375rem;
    padding: 0.5em 1em;
    font-size: .8rem;
    align-items: flex-end;
    align-self: flex-start;
    min-width: 0;
    height: auto;
}

.modal-body .row-meta {
    color: rgba(255, 255, 255, .5);
}

.is-notifications .row {
    margin-bottom: 1rem;
}

.is-notifications .row-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.is-notifications .row-text {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.is-notifications .row-text:first-of-type {
    margin-top: 0;
}

.modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    padding-top: 1rem;
}

.modal-actions:empty {
    display: none;
}

.modal-actions .w-btn {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: .375rem;
    padding: .6rem .9rem;
    font-size: .8rem;
    cursor: pointer;
}

.modal-actions .w-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Optional semantic sizes applied via options.size */
.modal-panel.is-sm {
    width: min(90vw, 25rem);
    max-height: min(90vh, 15rem);
}

.modal-panel.is-md {
    width: min(90vw, 35rem);
    max-height: min(90vh, 35rem);
}

.modal-panel.is-lg {
    width: min(90vw, 55rem);
    max-height: min(90vh, 45rem);
}

.modal-panel.is-xl {
    width: min(95vw, 900px);
    height: 85vh;
    max-height: min(100vh, 60rem);
}

.modal-panel.is-xl .modal-body {
    display: flex;
    flex-direction: column;
}

.modal-panel.is-assistant.is-xl {
    width: min(95vw, 700px);
    height: min(70vh, 590px);
    min-height: 20vh;
    animation: assistantFadeIn 0.4s ease-out forwards;
    transition: height 0.4s ease-in-out, max-height 0.4s ease-in-out;
}


@media (max-width: 639px) {
    .modal-panel.is-xl,
    .modal-panel.is-notifications {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        max-width: min(95vw, 960px);
        max-height: 85vh;
        border-radius: .375rem;
    }
    .modal.is-open,
    .modal.is-close {
        padding: 1rem !important;
    }
    .modal-panel.is-sm,
    .modal-panel.is-md,
    .modal-panel.is-xl {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 639px) {
    .modal-panel.is-assistant.is-xl {
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 2rem);
        height: calc(100svh - 2rem);
        height: calc(100dvh - 2rem);
        max-height: calc(100dvh - 2rem);
    }

    .modal-panel.is-assistant.is-xl.is-keyboard-open {
        align-self: start;
        height: auto;
        max-height: none;
        min-height: 14rem;
    }

    .modal-panel.is-assistant.is-xl.is-keyboard-open .modal-body {
        overflow: hidden;
    }

    .modal-panel.is-assistant.is-xl.is-keyboard-open .webchat-container,
    .modal-panel.is-assistant.is-xl.is-keyboard-open .webchat-container > div {
        height: 100%;
        min-height: 0;
    }

    .modal-panel.is-assistant.is-xl.is-keyboard-open .webchat__stacked-layout {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
    }

    .modal-panel.is-assistant.is-xl.is-keyboard-open .webchat__basic-transcript,
    .modal-panel.is-assistant.is-xl.is-keyboard-open [role="log"],
    .modal-panel.is-assistant.is-xl.is-keyboard-open .webchat__basic-transcript__scrollable {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
    }

    .modal-panel.is-assistant.is-xl.is-keyboard-open .webchat__send-box,
    .modal-panel.is-assistant.is-xl.is-keyboard-open .webchat__send-box__main {
        position: sticky;
        bottom: 0;
        z-index: 2;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}

.modal-panel.is-assistant.is-xl.is-expanded {
    height: min(85vh, 60rem);
}

@media (max-width: 639px) {
    .modal-panel.is-assistant.is-xl.is-expanded {
        height: calc(100vh - 2rem);
        height: calc(100svh - 2rem);
        height: calc(100dvh - 2rem);
    }
}

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

@keyframes messageIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-panel.is-assistant .modal-body,
.modal-panel.is-support .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-panel.is-support .modal-body {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.modal-panel.is-assistant .webchat-container {
    height: 100%;
}

.modal-panel.is-assistant .webchat-container > div {
    height: 100%;
    width: 100%;
}

@media (max-width: 639px) {
    .modal-panel.is-support {
        display: flex;
        flex-direction: column;
        width: min(90vw, 35rem);
        max-width: min(90vw, 35rem);
        height: auto;
        max-height: min(calc(100vh - 2rem), 35rem);
        max-height: min(calc(100svh - 2rem), 35rem);
        max-height: min(calc(100dvh - 2rem), 35rem);
        border-radius: .375rem;
    }

    .modal:has(.modal-panel.is-support) {
        background: rgba(0, 0, 0, 0.32) !important;
    }

    .modal-panel.is-support.is-expanded {
        height: auto;
        max-height: min(calc(100vh - 2rem), 35rem);
        max-height: min(calc(100svh - 2rem), 35rem);
        max-height: min(calc(100dvh - 2rem), 35rem);
    }

}

.modal-panel.is-assistant .ac-pushButton,
.modal-panel.is-assistant .webchat__icon-button__shade,
.modal-panel.is-assistant .webchat__send-button {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    border-radius: .375rem;
    font-size: .8rem;
    cursor: pointer;
}

.modal-panel.is-assistant .webchat__send-icon {
    fill: white !important;
}

.modal-panel.is-assistant .ac-pushButton *,
.modal-panel.is-assistant .webchat__icon-button__shade *,
.modal-panel.is-assistant .webchat__send-button *,
.modal-panel.is-assistant .webchat__send-icon,
.modal-panel.is-assistant .webchat__send-icon * {
    pointer-events: none !important;
}

.modal-panel.is-assistant .ac-pushButton:hover,
.modal-panel.is-assistant .webchat__icon-button__shade:hover,
.modal-panel.is-assistant .webchat__send-button:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.modal-panel.is-assistant .webchat__stacked-layout__attachment,
.modal-panel.is-assistant .webchat__stacked-layout__message {
    max-width: 100% !important;
}

.modal-panel.is-assistant .webchat__basic-transcript__activity-indicator--focus {
    border: none !important;
}

.modal-panel.is-assistant .webchat__basic-transcript,
.modal-panel.is-assistant [role="log"],
.modal-panel.is-assistant .webchat__basic-transcript__scrollable {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.modal-panel.is-assistant .webchat__basic-transcript::-webkit-scrollbar,
.modal-panel.is-assistant [role="log"]::-webkit-scrollbar,
.modal-panel.is-assistant .webchat__basic-transcript__scrollable::-webkit-scrollbar {
    display: none !important;
}

/* Azure Bot Web Chat Overrides */
.modal-panel.is-assistant .webchat__stacked-layout {
    margin: 0 !important;
}

.modal-panel.is-assistant .webchat__send-box {
    margin-top: 1rem !important;
}

.modal-panel.is-assistant .webchat__bubble__content {
    border-style: none !important;
    border-radius: 6px !important;
}

.modal-panel.is-assistant .webchat__send-box__main {
    border-top-style: none !important;
    border-radius: 6px !important;
}

/* Headerless variant */
.modal-panel.no-header .modal-header {
    display: none;
}


/* Full-viewport backdrop shown behind the mega menu */
.menu-backdrop {
    position: fixed !important;
    /* Pin to viewport edges to avoid any transform-based doubling */
    inset: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    transform: none;
    background: transparent; /* kept clear as requested */
    opacity: 1;
    transition: opacity 150ms ease-out;
    z-index: 899; /* below nav-menu (900) but above other content */
}

/* Keep clear in both themes */
body.dawn .menu-backdrop,
body.dusk .menu-backdrop {
    background: transparent;
}


/* Footer layout */
.site-footer .site-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Group footer action buttons on the right */
.site-footer .footer-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

/* Share View: looks like small footer text, keeps icon, still clickable */
.share-view-link {
    background: transparent;
    border: none;
    color: inherit;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font: inherit;
    font-size: 0.75rem; /* match <small> */
    opacity: .5; /* match © Redmond */
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.share-view-link:hover {
    opacity: .8;
}

.share-view-link:active {
    opacity: 1;
}

.share-view-link [data-lucide] {
    width: 14px;
    height: 14px;
}

.share-view-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    transition: all 0.2s;
    user-select: none;
}

.share-view-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.share-view-btn:active {
    background: rgba(255, 255, 255, 0.3);
    /* Keep simple: no scale to avoid icon jump */
}

.share-view-btn [data-lucide] {
    width: 14px;
    height: 14px;
}

/* Keep icons steady: disable bell ring animation globally */
.animate-ring {
    display: inline-block;
    animation: none !important;
    transform-origin: inherit;
}

@keyframes ring-bell {
    0%, 5%, 12.5%, 20%, 27.5%, 100% {
        transform: rotate(0deg);
    }
    8.75% {
        transform: rotate(20deg);
    }
    16.25% {
        transform: rotate(-15deg);
    }
    23.75% {
        transform: rotate(10deg);
    }
}
