/* Shared MiPrompts header AND footer, inspired by the supplied OpeXIntel layout. */
.miprompts_header,
.miprompts_header *,
.miprompt_footer,
.miprompt_footer * {
    box-sizing: border-box
}

.miprompts_header {
    --miprompts-header-blue: #2563eb;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(12px, 2vw, 26px);
    width: 100%;
    padding: 12px 3%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
    font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    color: #0f172a
}

.miprompts_header a {
    text-decoration: none
}

.miprompts_header_brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    white-space: nowrap
}

.miprompts_header_brand_icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 43px;
    height: 43px;
    border-radius: 11px;
    background: #2563eb;
    color: white;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 4px 12px #2563eb29
}

.miprompts_header_brand_text {
    display: flex;
    flex-direction: column;
    line-height: 1.08
}

.miprompts_header_brand_text strong {
    font-size: clamp(17px, 1.5vw, 23px);
    font-weight: 800;
    letter-spacing: -.03em
}

.miprompts_header_brand_text em {
    font-style: normal;
    color: #2563eb
}

.miprompts_header_brand_text small {
    color: #2563eb;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 800;
    text-transform: uppercase
}

.miprompts_header_navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(5px, .9vw, 18px)
}

.miprompts_header_nav_link {
    display: inline-block;
    padding: 9px 10px;
    border-radius: 8px;
    color: #334155;
    font-size: clamp(12px, .95vw, 15px);
    font-weight: 600;
    white-space: nowrap
}

.miprompts_header_nav_link:hover,
.miprompts_header_nav_link:focus-visible,
.miprompts_header_nav_link.miprompts_header_active {
    background: #eff6ff;
    color: #2563eb
}

.miprompts_header_actions {
    justify-self: end;
    display: flex;
    align-items: center
}

.miprompts_header_auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 11px;
    background: #2563eb;
    color: white !important;
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
    box-shadow: 0 5px 14px #2563eb25
}

.miprompts_header_auth:hover {
    background: #1d4ed8
}

.miprompts_header_profile {
    display: flex;
    align-items: center;
    gap: 12px
}

.miprompts_header_profile_name {
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere
}

.miprompts_header_toggle {
    display: none;
    align-items: center;
    gap: 7px;
    border: 1px solid #dbe3ee;
    background: white;
    border-radius: 10px;
    padding: 8px 10px;
    font: 600 13px inherit;
    color: #1e3a8a;
    cursor: pointer
}

@media(max-width:1050px) {
    .miprompts_header {
        grid-template-columns: 1fr auto auto;
        grid-template-areas: "brand actions toggle"
    }

    .miprompts_header_brand {
        grid-area: brand
    }

    .miprompts_header_actions {
        grid-area: actions
    }

    .miprompts_header_toggle {
        grid-area: toggle;
        display: flex
    }

    .miprompts_header_navigation {
        grid-area: nav;
        display: none;
        grid-column: 1/-1;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 10px
    }

    .miprompts_header_navigation.miprompts_header_open {
        display: flex
    }

    .miprompts_header_nav_link {
        padding: 10px 12px;
        font-size: 14px
    }
}

@media(max-width:640px) {
    .miprompts_header {
        grid-template-columns: 1fr auto;
        grid-template-areas: "brand toggle" "actions actions";
        gap: 10px;
        padding: 9px 4%
    }

    .miprompts_header_actions {
        justify-self: stretch
    }

    .miprompts_header_auth {
        width: 100%
    }

    .miprompts_header_profile {
        width: 100%;
        justify-content: space-between
    }

    .miprompts_header_brand_icon {
        width: 37px;
        height: 37px
    }

    .miprompts_header_brand_text strong {
        font-size: 17px
    }
}

/* Footer: reference-inspired five responsive columns; no oversized E logo. */
.miprompt_footer {
    width: 100%;
    padding: clamp(26px, 3.5vw, 48px) 4% 20px;
    background: #0e1629;
    color: white;
    font: 14px/1.6 "Avenir Next", "Segoe UI", system-ui, sans-serif
}

.miprompt_footer a {
    color: #b6c1d5;
    text-decoration: none
}

.miprompt_footer a:hover,
.miprompt_footer a:focus-visible {
    color: #fff;
    text-decoration: underline
}

.miprompt_footer_container {
    display: grid;
    grid-template-columns: 2fr repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 3vw, 46px);
    align-items: start;
    width: 100%
}

.miprompt_footer_column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0
}

.miprompt_footer_title {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.2;
    color: #fff
}

.miprompt_footer_heading {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #fff
}

.miprompt_footer_description {
    margin: 0 0 9px;
    color: #bdc7d8;
    line-height: 1.7
}

.miprompt_footer_contact {
    margin: 0;
    overflow-wrap: anywhere
}

.miprompt_footer_column>a {
    font-weight: 500;
    overflow-wrap: anywhere
}

.miprompt_footer_bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid #2c3a59;
    margin-top: 32px;
    padding-top: 18px;
    color: #c1cadd;
    font-size: 12px
}

.miprompt_footer_bottom>span:nth-child(2) {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap
}

.miprompt_footer_powered_logo {
    height: 27px;
    width: auto;
    border-radius: 5px;
    object-fit: contain;
    background: #fff;
    padding: 2px
}

.miprompt_footer_social {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

@media(max-width:1000px) {
    .miprompt_footer_container {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .miprompt_footer_about {
        grid-column: 1/-1
    }
}

@media(max-width:550px) {
    .miprompt_footer_container {
        grid-template-columns: 1fr;
        gap: 24px
    }

    .miprompt_footer_about {
        grid-column: auto
    }

    .miprompt_footer_bottom {
        align-items: flex-start;
        flex-direction: column
    }
}

/* MiCore-style logged-in user card, scoped to the shared MiPrompts header. */
.miprompts_header_profile {
    position: relative;
    display: block;
    min-width: 0;
    color: #0f172a;
    font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

.miprompts_header_profile_trigger {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    padding: 7px 11px;
    border: 1px solid #e6ebf3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px #0f172a0d;
    max-width: 100%;
    user-select: none
}

.miprompts_header_profile_trigger::-webkit-details-marker {
    display: none
}

.miprompts_header_profile_trigger:focus-visible {
    outline: 3px solid #2563eb50;
    outline-offset: 2px
}

.miprompts_header_profile_main {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.2
}

.miprompts_header_profile_icon {
    font-size: 17px;
    line-height: 1
}

.miprompts_header_profile_name {
    font-size: clamp(12px, .9vw, 14px);
    font-weight: 700;
    color: #0f172a;
    white-space: normal;
    overflow-wrap: anywhere
}

.miprompts_header_profile_type {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e9ebfb;
    color: #2563eb;
    font-size: 10px;
    font-weight: 700;
    text-transform: capitalize;
    line-height: 1.4
}

.miprompts_header_profile_orgdept {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    font-size: clamp(10px, .8vw, 12px);
    line-height: 1.35;
    color: #475569;
    overflow-wrap: anywhere
}

.miprompts_header_profile_dropdown {
    position: absolute;
    z-index: 1100;
    right: 0;
    top: calc(100% + 5px);
    padding: 6px;
    background: #fff;
    border: 1px solid #e6ebf3;
    border-radius: 12px;
    box-shadow: 0 10px 24px #0f172a26;
    width: max-content
}

.miprompts_header_profile_dropdown a {
    display: block;
    padding: 9px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #0f172a
}

.miprompts_header_profile_dropdown a:hover,
.miprompts_header_profile_dropdown a:focus-visible {
    background: #f3f5f7;
    color: #2563eb
}

@media(max-width:640px) {
    .miprompts_header_actions {
        justify-self: stretch
    }

    .miprompts_header_profile {
        width: 100%
    }

    .miprompts_header_profile_trigger {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px
    }

    .miprompts_header_profile_orgdept {
        justify-content: flex-end;
        text-align: right
    }

    .miprompts_header_profile_dropdown {
        right: 0
    }
}

/* Account Sign Out menu appears only when profile details is open. */
.miprompts_header_profile:not([open]) .miprompts_header_profile_dropdown {
    display: none;
}

.miprompts_header_profile[open] .miprompts_header_profile_dropdown {
    display: block;
}

.miprompts_header_profile[open] .miprompts_header_profile_trigger {
    border-color: #bfdbfe;
}

/* MiCore-equivalent logo footprint: size only the MiPrompts header image. */
.miprompts_header .miprompts_header_brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    overflow: visible;
}

.miprompts_header .miprompts_header_logo {
    display: block;
    width: 190px;
    height: 52px;
    object-fit: contain;
    object-position: left center;
    border: 0;
    border-radius: 0;
    flex: 0 0 auto;
}

@media (max-width: 650px) {
    .miprompts_header .miprompts_header_logo {
        width: 145px;
        height: 42px;
    }
}

@media (max-width: 380px) {
    .miprompts_header .miprompts_header_logo {
        width: 120px;
        height: 38px;
    }
}