/*
 * ICMM 2026 Personalise My Visit — namespaced, self-contained styling.
 *
 * Colours are the site's own palette (the gold used for buttons and
 * headings in the healthflex-child theme), darkened one step so white
 * text on it meets contrast requirements.
 *
 * Layout: a minimized launcher pill expands into a full-height,
 * right-docked workspace with a form pane and a results pane shown side
 * by side — no separate "invitation" step; editing and results live
 * together and results refresh in place.
 *
 * Ported from the sibling widget on Sites/esem.
 */

.icmm-pmv-widget {
    --icmm-pmv-primary: #8c6a2e;
    --icmm-pmv-primary-rgb: 140, 106, 46;
    --icmm-pmv-on-primary: #ffffff;
    --icmm-pmv-text: #16181d;
    --icmm-pmv-muted: #5b6470;
    --icmm-pmv-border: rgba(var(--icmm-pmv-primary-rgb), .18);
    --icmm-pmv-surface: #ffffff;
    --icmm-pmv-tint: rgba(var(--icmm-pmv-primary-rgb), .06);
    --icmm-pmv-shadow: 0 12px 36px rgba(15, 23, 42, .16), 0 2px 8px rgba(15, 23, 42, .08);
    --icmm-pmv-radius: 18px;
    --icmm-pmv-radius-sm: 10px;

    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    color: var(--icmm-pmv-text);
}

.icmm-pmv-widget *,
.icmm-pmv-widget *::before,
.icmm-pmv-widget *::after {
    box-sizing: border-box;
}

.icmm-pmv-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icmm-pmv-widget button {
    font-family: inherit;
}

/* ------------------------------------------------------------------ */
/* Focus visibility — a class-scoped selector always wins the           */
/* specificity fight against a theme-wide `outline: 0` reset, so no     */
/* !important is needed.                                                */
/* ------------------------------------------------------------------ */

.icmm-pmv-widget button:focus-visible,
.icmm-pmv-widget input:focus-visible,
.icmm-pmv-widget a:focus-visible {
    outline: 2px solid var(--icmm-pmv-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ------------------------------------------------------------------ */
/* Minimized launcher bar — the widget's default, persistent state.    */
/* Shows the visitor's last-used role/company right in the bar (or     */
/* placeholders if none yet) plus a one-click way into the workspace.  */
/* ------------------------------------------------------------------ */

.icmm-pmv-launcher {
    position: fixed;
    z-index: 5000;
    left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: calc(100vw - 24px);
    background: var(--icmm-pmv-surface);
    border: 1px solid var(--icmm-pmv-border);
    border-radius: 999px;
    box-shadow: var(--icmm-pmv-shadow);
    padding: 8px 8px 8px 14px;
}

.icmm-pmv-mini-field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--icmm-pmv-tint);
    border: 1px solid var(--icmm-pmv-border);
}

.icmm-pmv-mini-field-icon {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    color: var(--icmm-pmv-muted);
}

.icmm-pmv-mini-input {
    border: none;
    background: none;
    padding: 0;
    width: 130px;
    max-width: 30vw;
    font-size: 13px;
    font-weight: 600;
    color: var(--icmm-pmv-text);
}

.icmm-pmv-mini-input::placeholder {
    color: var(--icmm-pmv-muted);
    font-weight: 400;
}

.icmm-pmv-mini-input:focus {
    outline: none;
}

.icmm-pmv-mini-field:focus-within {
    border-color: var(--icmm-pmv-primary);
}

.icmm-pmv-launcher-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    background: var(--icmm-pmv-primary);
    color: var(--icmm-pmv-on-primary);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.icmm-pmv-launcher-cta:hover {
    opacity: .9;
}

.icmm-pmv-launcher-close {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: none;
    color: var(--icmm-pmv-muted);
    font-size: 16px;
    cursor: pointer;
}

.icmm-pmv-launcher-close:hover {
    background: var(--icmm-pmv-tint);
    color: var(--icmm-pmv-text);
}

@media (prefers-reduced-motion: no-preference) {
    .icmm-pmv-launcher {
        animation: icmm-pmv-rise .22s ease;
    }
}

/*
 * Below ~640px the role/company fields + CTA + close button don't fit on
 * one line, so flex-wrap pushes them onto stacked rows — but the 999px
 * pill radius meant for a single row then rendered that stacked box as an
 * oversized rounded blob instead of a card. Switch to a column layout with
 * a modest radius instead, and let each row take the full available width.
 */
@media (max-width: 640px) {
    .icmm-pmv-launcher {
        flex-direction: column;
        align-items: stretch;
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        border-radius: 20px;
        padding: 14px 14px 12px;
    }

    .icmm-pmv-mini-field {
        width: 100%;
    }

    .icmm-pmv-mini-input {
        width: auto;
        max-width: none;
        flex: 1 1 auto;
    }

    .icmm-pmv-launcher-cta {
        justify-content: center;
        width: 100%;
    }

    .icmm-pmv-launcher-close {
        position: absolute;
        top: 8px;
        right: 8px;
    }
}

@keyframes icmm-pmv-rise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------------------------------------------ */
/* States 1+2: the workspace — full-height, right-docked on desktop,   */
/* full-screen on mobile. Form pane and results pane live side by side */
/* on desktop; on mobile only one pane shows at a time.                */
/* ------------------------------------------------------------------ */

.icmm-pmv-workspace {
    position: fixed;
    z-index: 5000;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--icmm-pmv-surface);
}

@media (min-width: 900px) {
    .icmm-pmv-workspace {
        left: auto;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(1040px, 86vw);
        flex-direction: row;
        box-shadow: var(--icmm-pmv-shadow);
        border-left: 1px solid var(--icmm-pmv-border);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .icmm-pmv-workspace {
        animation: icmm-pmv-slide-in .28s ease;
    }
}

@keyframes icmm-pmv-slide-in {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.icmm-pmv-floating-close {
    position: fixed;
    z-index: 5001;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--icmm-pmv-border);
    border-radius: 50%;
    background: var(--icmm-pmv-surface);
    box-shadow: var(--icmm-pmv-shadow);
    color: var(--icmm-pmv-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.icmm-pmv-floating-close:hover {
    color: var(--icmm-pmv-text);
}

/* ---- Form pane ---- */

.icmm-pmv-form-pane {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-bottom: 1px solid var(--icmm-pmv-border);
}

/*
 * The <form> element itself (a plain, unclassed element from
 * document.createElement('form')) is a direct child here and wraps
 * formPaneHead/formPaneBody/formPaneFoot. Left unstyled it defaults to
 * `display: block`, which silently breaks their flex sizing — the
 * interest-chip list's overflow-y:auto on formPaneBody never actually
 * engages, so long content spills past the fixed-position workspace with
 * no scrollbar anywhere to reach it.
 */
.icmm-pmv-form-pane form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.icmm-pmv-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (max-width: 899px) {
    .icmm-pmv-workspace[data-active-pane="results"] .icmm-pmv-form-pane {
        display: none;
    }

    .icmm-pmv-workspace[data-active-pane="form"] .icmm-pmv-results-pane {
        display: none;
    }
}

@media (min-width: 900px) {
    .icmm-pmv-form-pane {
        flex: 0 0 340px;
        width: 340px;
        border-bottom: none;
        border-right: 1px solid var(--icmm-pmv-border);
    }
}

.icmm-pmv-form-pane-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 10px;
}

.icmm-pmv-back-btn {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid var(--icmm-pmv-border);
    border-radius: 50%;
    background: none;
    color: var(--icmm-pmv-text);
    font-size: 16px;
    cursor: pointer;
}

.icmm-pmv-back-btn:hover {
    background: var(--icmm-pmv-tint);
}

.icmm-pmv-refresh-btn {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border: none;
    border-radius: 999px;
    background: var(--icmm-pmv-primary);
    color: var(--icmm-pmv-on-primary);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(var(--icmm-pmv-primary-rgb), .38), 0 1px 2px rgba(var(--icmm-pmv-primary-rgb), .2);
    transition: opacity .15s ease, box-shadow .15s ease, transform .15s ease;
}

.icmm-pmv-refresh-btn:hover {
    opacity: .92;
    box-shadow: 0 8px 22px rgba(var(--icmm-pmv-primary-rgb), .46), 0 1px 2px rgba(var(--icmm-pmv-primary-rgb), .25);
    transform: translateY(-1px);
}

/* Countdown while an automatic refresh is pending: a bar filling along
   the bottom of the button over the same 2s as AUTO_REFRESH_DELAY_MS in
   the JS. Under reduced motion it is a static bar and the label alone
   carries the message. */
.icmm-pmv-refresh-btn {
    position: relative;
    overflow: hidden;
}

.icmm-pmv-refresh-btn.is-pending::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, .75);
}

@media (prefers-reduced-motion: no-preference) {
    .icmm-pmv-refresh-btn.is-pending::after {
        width: 0;
        animation: icmm-pmv-countdown 2s linear forwards;
    }
}

@keyframes icmm-pmv-countdown {
    from { width: 0; }
    to   { width: 100%; }
}

.icmm-pmv-chip-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--icmm-pmv-muted);
}

@media (max-width: 899px) {
    .icmm-pmv-chip-hint {
        display: none;
    }
}

.icmm-pmv-refresh-btn:disabled {
    cursor: default;
    opacity: .85;
    box-shadow: 0 2px 8px rgba(var(--icmm-pmv-primary-rgb), .2);
    transform: none;
}

.icmm-pmv-refresh-icon {
    flex: 0 0 auto;
    font-size: 15px;
}

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

.icmm-pmv-form-pane-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 4px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.icmm-pmv-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.icmm-pmv-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--icmm-pmv-muted);
}

.icmm-pmv-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(var(--icmm-pmv-primary-rgb), .3);
    border-radius: var(--icmm-pmv-radius-sm);
    background-color: #fff;
    font-size: 15px;
    font-family: inherit;
    color: var(--icmm-pmv-text);
}

.icmm-pmv-chip-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.icmm-pmv-chip {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    border: 1px solid rgba(var(--icmm-pmv-primary-rgb), .25);
    border-radius: var(--icmm-pmv-radius-sm);
    background: #fff;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--icmm-pmv-text);
    cursor: pointer;
}

.icmm-pmv-chip:hover {
    background: var(--icmm-pmv-tint);
}

.icmm-pmv-chip[aria-pressed="true"] {
    background: rgba(var(--icmm-pmv-primary-rgb), .1);
    border-color: var(--icmm-pmv-primary);
    color: var(--icmm-pmv-primary);
}

.icmm-pmv-form-pane-foot {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--icmm-pmv-border);
}

.icmm-pmv-foot-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icmm-pmv-action {
    background: none;
    border: none;
    padding: 4px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--icmm-pmv-muted);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.icmm-pmv-action:hover {
    color: var(--icmm-pmv-primary);
}

.icmm-pmv-privacy-note {
    margin: 0;
    font-size: 11px;
    color: var(--icmm-pmv-muted);
}

/* ---- Results pane ---- */

.icmm-pmv-results-pane {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}

/* ---- Loading overlay ----
   Covers the whole results pane (tabs and ticket banner included) while a
   match is in flight. It replaced a 15px spinner inside the refresh
   button, which was easy to miss and, on a refresh, left the previous
   visit on screen looking current — so a visitor could read stale results
   believing they were the new ones. Blurring what is underneath says
   "these are being replaced" without throwing away the visitor's place.

   pointer-events stay ON (the default for a painted element) so the stale
   results underneath cannot be clicked or tabbed through mid-refresh. */
.icmm-pmv-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(255, 255, 255, .78);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* Beats the display:flex above — without this the [hidden] attribute the
   JS toggles would have no effect at all. */
.icmm-pmv-loading-overlay[hidden] {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    .icmm-pmv-loading-overlay {
        animation: icmm-pmv-loading-fade .18s ease-out;
    }
}

@keyframes icmm-pmv-loading-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.icmm-pmv-loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 300px;
    padding: 30px 26px;
    text-align: center;
    background: var(--icmm-pmv-surface);
    border: 1px solid var(--icmm-pmv-border);
    border-radius: var(--icmm-pmv-radius);
    box-shadow: var(--icmm-pmv-shadow);
}

.icmm-pmv-loading-ring {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border: 3px solid rgba(var(--icmm-pmv-primary-rgb), .16);
    border-top-color: var(--icmm-pmv-primary);
    border-radius: 50%;
}

@media (prefers-reduced-motion: no-preference) {
    .icmm-pmv-loading-ring {
        animation: icmm-pmv-spin .9s linear infinite;
    }
}

/* Frozen mid-spin, the single teal arc on an otherwise pale ring reads as
   a half-drawn circle rather than an indicator, so close the ring when
   there is no animation to explain the gap. */
@media (prefers-reduced-motion: reduce) {
    .icmm-pmv-loading-ring {
        border-color: rgba(var(--icmm-pmv-primary-rgb), .55);
    }
}

.icmm-pmv-loading-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--icmm-pmv-text);
}

/* min-height reserves the second line up front: the step text changes as
   the request progresses, and without it the card would visibly resize
   under the visitor each time a longer or shorter message swapped in. */
.icmm-pmv-loading-step {
    margin: 0;
    min-height: 2.6em;
    font-size: 13px;
    line-height: 1.3;
    color: var(--icmm-pmv-muted);
}

.icmm-pmv-loading-bar {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(var(--icmm-pmv-primary-rgb), .14);
    overflow: hidden;
}

/* Indeterminate on purpose. The wait is 7-12s on a cold AI pass but
   effectively instant on a cached one, so any percentage shown here would
   be invented — a bar that travels says "working" without claiming to
   know how far along it is. */
.icmm-pmv-loading-bar > span {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: 999px;
    background: var(--icmm-pmv-primary);
}

@media (prefers-reduced-motion: no-preference) {
    .icmm-pmv-loading-bar > span {
        animation: icmm-pmv-loading-slide 1.4s ease-in-out infinite;
    }
}

/* With motion suppressed a 40%-wide bar parked at the left reads as a
   stalled progress bar, so show a full, plainly static track instead. */
@media (prefers-reduced-motion: reduce) {
    .icmm-pmv-loading-bar > span {
        width: 100%;
        opacity: .55;
    }
}

@keyframes icmm-pmv-loading-slide {
    from { transform: translateX(-100%); }
    to   { transform: translateX(250%); }
}

.icmm-pmv-results-head {
    display: none;
}

.icmm-pmv-edit-btn {
    background: none;
    border: none;
    padding: 4px 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--icmm-pmv-primary);
    cursor: pointer;
}

.icmm-pmv-edit-btn:hover {
    text-decoration: underline;
}

@media (max-width: 899px) {
    .icmm-pmv-results-head {
        display: block;
        flex: 0 0 auto;
        padding: 14px 20px 0;
    }
}

.icmm-pmv-tablist {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--icmm-pmv-border);
    scrollbar-width: thin;
}

.icmm-pmv-tab-btn {
    flex: 0 0 auto;
    border: none;
    background: none;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--icmm-pmv-muted);
    cursor: pointer;
    white-space: nowrap;
}

/* A flex container's own trailing padding isn't reliably reachable when
   scrolled to the end (browsers vary), so the last tab could sit flush
   against — or past — the scrollport edge. A margin on the child scrolls
   correctly in every browser. */
.icmm-pmv-tab-btn:last-child {
    margin-right: 20px;
}

.icmm-pmv-tab-btn[aria-selected="true"] {
    color: var(--icmm-pmv-on-primary);
    background: var(--icmm-pmv-primary);
}

.icmm-pmv-results-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 20px 8px;
}

.icmm-pmv-tabpanel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.icmm-pmv-empty-state {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    color: var(--icmm-pmv-muted);
    font-size: 14px;
}

.icmm-pmv-ticket-banner {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--icmm-pmv-primary);
    color: var(--icmm-pmv-on-primary);
}

.icmm-pmv-ticket-text {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--icmm-pmv-on-primary);
}

.icmm-pmv-ticket-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--icmm-pmv-on-primary);
    color: var(--icmm-pmv-primary);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.icmm-pmv-ticket-cta:hover,
.icmm-pmv-ticket-cta:focus-visible {
    opacity: .9;
}

/* ---- Fallback (offline) content — simpler list when the match ---- */
/* request fails; rendered into the same results body.               */

.icmm-pmv-intro {
    margin: 0;
    color: var(--icmm-pmv-muted);
    font-size: 14px;
}

.icmm-pmv-rec-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.icmm-pmv-rec {
    border: 1px solid var(--icmm-pmv-border);
    border-radius: var(--icmm-pmv-radius-sm);
    padding: 12px 14px;
}

.icmm-pmv-rec--primary {
    background: var(--icmm-pmv-tint);
    border-color: rgba(var(--icmm-pmv-primary-rgb), .4);
}

.icmm-pmv-rec-link {
    font-weight: 700;
    font-size: 15px;
    color: var(--icmm-pmv-primary);
    text-decoration: none;
}

.icmm-pmv-rec-link:hover,
.icmm-pmv-rec-link:focus-visible {
    text-decoration: underline;
}

.icmm-pmv-rec-link--primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 18px;
    margin-top: 2px;
    border-radius: 999px;
    background: var(--icmm-pmv-primary);
    color: var(--icmm-pmv-on-primary);
    text-decoration: none;
}

.icmm-pmv-rec-link--primary:hover,
.icmm-pmv-rec-link--primary:focus-visible {
    text-decoration: none;
    opacity: .9;
}

.icmm-pmv-rec-reason {
    margin: 4px 0 0;
    color: var(--icmm-pmv-muted);
    font-size: 13px;
}

/* ------------------------------------------------------------------ */
/* Fit hero: gauge ring + narrative                                     */
/* ------------------------------------------------------------------ */

.icmm-pmv-fit-header {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: var(--icmm-pmv-radius-sm);
    background: linear-gradient(135deg, rgba(var(--icmm-pmv-primary-rgb), .12), rgba(var(--icmm-pmv-primary-rgb), .02));
    border: 1px solid rgba(var(--icmm-pmv-primary-rgb), .14);
}

/* On a phone the gauge beside the text left it a ~200px column, so a
   short paragraph still ran to a dozen lines. Stacked, the text gets the
   full width. */
@media (max-width: 520px) {
    .icmm-pmv-fit-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

.icmm-pmv-gauge-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.icmm-pmv-gauge {
    --icmm-pmv-pct: 0;
    position: relative;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: conic-gradient(var(--icmm-pmv-primary) calc(var(--icmm-pmv-pct) * 1%), rgba(var(--icmm-pmv-primary-rgb), .15) 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icmm-pmv-gauge::before {
    content: "";
    position: absolute;
    inset: 11px;
    border-radius: 50%;
    background: var(--icmm-pmv-surface);
}

.icmm-pmv-gauge-value {
    position: relative;
    z-index: 1;
    font-weight: 800;
    font-size: 22px;
    color: var(--icmm-pmv-text);
}

.icmm-pmv-gauge-label {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--icmm-pmv-primary);
}

.icmm-pmv-narrative-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.icmm-pmv-narrative-kicker {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--icmm-pmv-text);
}

.icmm-pmv-narrative {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--icmm-pmv-muted);
}

/* Shown while /narrate is still writing the paragraph; the results
   around it are already final. Three lines roughly the height of the
   text that replaces them, so the layout barely moves when it lands. */
.icmm-pmv-narrative--pending {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 3px 0;
}

.icmm-pmv-shimmer-line {
    display: block;
    height: 10px;
    border-radius: 5px;
    background: rgba(var(--icmm-pmv-primary-rgb), .12);
}

.icmm-pmv-shimmer-line:nth-last-of-type(2) {
    width: 92%;
}

.icmm-pmv-shimmer-line:last-of-type {
    width: 64%;
}

@media (prefers-reduced-motion: no-preference) {
    .icmm-pmv-shimmer-line {
        background: linear-gradient(90deg,
            rgba(var(--icmm-pmv-primary-rgb), .10) 25%,
            rgba(var(--icmm-pmv-primary-rgb), .22) 50%,
            rgba(var(--icmm-pmv-primary-rgb), .10) 75%);
        background-size: 200% 100%;
        animation: icmm-pmv-shimmer 1.4s ease-in-out infinite;
    }
}

@keyframes icmm-pmv-shimmer {
    from {
        background-position: 100% 0;
    }
    to {
        background-position: -100% 0;
    }
}

.icmm-pmv-matched-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.icmm-pmv-matched-tag {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--icmm-pmv-primary);
    background: var(--icmm-pmv-surface);
    border: 1px solid rgba(var(--icmm-pmv-primary-rgb), .3);
}

/* ------------------------------------------------------------------ */
/* Plan actions — email / print-to-PDF                                  */
/* ------------------------------------------------------------------ */

.icmm-pmv-plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.icmm-pmv-plan-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(var(--icmm-pmv-primary-rgb), .3);
    border-radius: 999px;
    background: var(--icmm-pmv-surface);
    color: var(--icmm-pmv-primary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.icmm-pmv-plan-btn:hover {
    background: var(--icmm-pmv-tint);
}

.icmm-pmv-email-capture {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--icmm-pmv-border);
    border-radius: var(--icmm-pmv-radius-sm);
    background: var(--icmm-pmv-tint);
}

.icmm-pmv-email-input {
    flex: 1 1 180px;
    min-height: 38px;
    padding: 6px 10px;
    border: 1px solid rgba(var(--icmm-pmv-primary-rgb), .3);
    border-radius: var(--icmm-pmv-radius-sm);
    font-size: 13px;
    font-family: inherit;
    color: var(--icmm-pmv-text);
    background: #fff;
}

.icmm-pmv-email-send {
    flex: 0 0 auto;
    border: none;
    border-radius: var(--icmm-pmv-radius-sm);
    padding: 6px 14px;
    background: var(--icmm-pmv-primary);
    color: var(--icmm-pmv-on-primary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.icmm-pmv-email-send:hover {
    opacity: .9;
}

.icmm-pmv-email-send:disabled {
    cursor: default;
    opacity: .7;
}

.icmm-pmv-email-status {
    flex: 1 1 100%;
    margin: 0;
    font-size: 12px;
    color: var(--icmm-pmv-muted);
}

/* ------------------------------------------------------------------ */
/* Event Highlights — numbered grid                                     */
/* ------------------------------------------------------------------ */

.icmm-pmv-section-label {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--icmm-pmv-muted);
}

.icmm-pmv-highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (max-width: 480px) {
    .icmm-pmv-highlights-grid {
        grid-template-columns: 1fr;
    }
}

.icmm-pmv-highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--icmm-pmv-border);
    border-radius: var(--icmm-pmv-radius-sm);
    background: var(--icmm-pmv-surface);
}

.icmm-pmv-highlight-num {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(var(--icmm-pmv-primary-rgb), .12);
    color: var(--icmm-pmv-primary);
    font-size: 11px;
    font-weight: 800;
}

.icmm-pmv-highlight-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--icmm-pmv-text);
}

/* ------------------------------------------------------------------ */
/* Section preview blocks ("Sessions to attend" + View all) in Highlights */
/* ------------------------------------------------------------------ */

.icmm-pmv-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.icmm-pmv-section-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--icmm-pmv-text);
}

.icmm-pmv-view-all {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--icmm-pmv-primary);
    cursor: pointer;
}

.icmm-pmv-view-all:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Session / speaker / exhibitor cards                                  */
/* ------------------------------------------------------------------ */

.icmm-pmv-card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.icmm-pmv-card-list--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (max-width: 560px) {
    .icmm-pmv-card-list--grid {
        grid-template-columns: 1fr;
    }
}

.icmm-pmv-card {
    position: relative;
    border: 1px solid var(--icmm-pmv-border);
    border-radius: var(--icmm-pmv-radius-sm);
    padding: 12px 14px;
    background: var(--icmm-pmv-surface);
    transition: box-shadow .15s ease, border-color .15s ease;
}

.icmm-pmv-card:hover {
    border-color: rgba(var(--icmm-pmv-primary-rgb), .4);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
}

.icmm-pmv-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.icmm-pmv-card-kicker {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--icmm-pmv-primary);
    background: rgba(var(--icmm-pmv-primary-rgb), .1);
}

.icmm-pmv-match-badge {
    margin-left: auto;
    flex: 0 0 auto;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--icmm-pmv-primary);
    background: rgba(var(--icmm-pmv-primary-rgb), .1);
    white-space: nowrap;
}

.icmm-pmv-card-meta {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--icmm-pmv-primary);
}

.icmm-pmv-card-title {
    display: inline-block;
    font-weight: 700;
    font-size: 15px;
    color: var(--icmm-pmv-text);
    text-decoration: none;
}

.icmm-pmv-card-title:hover,
.icmm-pmv-card-title:focus-visible {
    text-decoration: underline;
    color: var(--icmm-pmv-primary);
}

.icmm-pmv-card-sub {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--icmm-pmv-muted);
}

.icmm-pmv-empty {
    margin: 0;
    font-size: 13px;
    color: var(--icmm-pmv-muted);
}

.icmm-pmv-speaker-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.icmm-pmv-speaker-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    background: rgba(var(--icmm-pmv-primary-rgb), .08);
}

.icmm-pmv-speaker-info {
    min-width: 0;
}

/* ------------------------------------------------------------------ */
/* "See why this matches you" disclosure                                */
/* ------------------------------------------------------------------ */

.icmm-pmv-why {
    margin-top: 6px;
}

.icmm-pmv-why-toggle {
    background: none;
    border: none;
    padding: 2px 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--icmm-pmv-primary);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.icmm-pmv-why-body {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--icmm-pmv-muted);
}

/* ------------------------------------------------------------------ */
/* Calendar export — per-session and full-itinerary                     */
/* ------------------------------------------------------------------ */

.icmm-pmv-card-cal {
    display: inline-block;
    margin-top: 8px;
    background: none;
    border: 1px dashed rgba(var(--icmm-pmv-primary-rgb), .4);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--icmm-pmv-primary);
    cursor: pointer;
}

.icmm-pmv-card-cal:hover {
    background: var(--icmm-pmv-tint);
}

.icmm-pmv-itinerary {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: 1px solid rgba(var(--icmm-pmv-primary-rgb), .4);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--icmm-pmv-primary);
    cursor: pointer;
}

.icmm-pmv-itinerary:hover {
    background: var(--icmm-pmv-tint);
}

.icmm-pmv-itinerary:disabled {
    cursor: default;
    opacity: .5;
}

/* ------------------------------------------------------------------ */
/* My plan — the Sessions tab, grouped by day, one session per slot    */
/* ------------------------------------------------------------------ */

.icmm-pmv-planner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.icmm-pmv-plan-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--icmm-pmv-border);
    border-radius: var(--icmm-pmv-radius-sm);
    background: var(--icmm-pmv-tint);
}

.icmm-pmv-plan-summary-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--icmm-pmv-text);
}

.icmm-pmv-plan-summary .icmm-pmv-itinerary {
    background: var(--icmm-pmv-primary);
    border-color: var(--icmm-pmv-primary);
    color: var(--icmm-pmv-on-primary);
}

.icmm-pmv-plan-summary .icmm-pmv-itinerary:hover {
    opacity: .9;
    background: var(--icmm-pmv-primary);
}

.icmm-pmv-plan-day {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.icmm-pmv-plan-day-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--icmm-pmv-border);
    font-size: 14px;
    font-weight: 700;
    color: var(--icmm-pmv-text);
}

.icmm-pmv-plan-day-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--icmm-pmv-muted);
}

/* Left out of the plan: still readable and still swappable, but
   visibly not something the visitor is going to. */
.icmm-pmv-card--out {
    background: #fafbfc;
    border-style: dashed;
}

.icmm-pmv-card--out .icmm-pmv-card-title,
.icmm-pmv-card--out .icmm-pmv-card-meta,
.icmm-pmv-card--out .icmm-pmv-card-sub {
    opacity: .6;
}

.icmm-pmv-clash-note {
    margin: 8px 0 0;
    font-size: 12px;
    color: #8a5a00;
}

.icmm-pmv-plan-toggle {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    border: 1px solid rgba(var(--icmm-pmv-primary-rgb), .45);
    border-radius: 999px;
    background: var(--icmm-pmv-surface);
    font-size: 12px;
    font-weight: 700;
    color: var(--icmm-pmv-primary);
    cursor: pointer;
}

.icmm-pmv-plan-toggle:hover {
    background: var(--icmm-pmv-tint);
}

.icmm-pmv-plan-toggle.is-in {
    border-color: var(--icmm-pmv-primary);
    background: var(--icmm-pmv-primary);
    color: var(--icmm-pmv-on-primary);
}

.icmm-pmv-plan-toggle.is-in:hover {
    opacity: .9;
}

/* ------------------------------------------------------------------ */
/* Speaker profile — a sheet over the results pane                     */
/* ------------------------------------------------------------------ */

.icmm-pmv-speaker-name-btn {
    padding: 0;
    border: none;
    background: none;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}

.icmm-pmv-profile-open {
    display: inline-block;
    margin-top: 8px;
    padding: 0;
    border: none;
    background: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--icmm-pmv-primary);
    cursor: pointer;
}

.icmm-pmv-profile-open:hover {
    text-decoration: underline;
}

.icmm-pmv-profile {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    justify-content: flex-end;
    background: rgba(15, 23, 42, .28);
}

.icmm-pmv-profile[hidden] {
    display: none;
}

.icmm-pmv-has-profile .icmm-pmv-floating-close {
    display: none;
}

.icmm-pmv-profile-sheet {
    position: relative;
    width: min(460px, 100%);
    height: 100%;
    overflow-y: auto;
    padding: 22px 22px 28px;
    background: var(--icmm-pmv-surface);
    box-shadow: var(--icmm-pmv-shadow);
}

@media (prefers-reduced-motion: no-preference) {
    .icmm-pmv-profile-sheet {
        animation: icmm-pmv-slide-in .22s ease;
    }
}

.icmm-pmv-profile-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--icmm-pmv-tint);
    color: var(--icmm-pmv-text);
    font-size: 18px;
    cursor: pointer;
}

.icmm-pmv-profile-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 0 36px 14px 0;
}

.icmm-pmv-profile-avatar {
    position: relative;
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(var(--icmm-pmv-primary-rgb), .12);
    color: var(--icmm-pmv-primary);
    font-size: 22px;
    font-weight: 700;
}

.icmm-pmv-profile-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icmm-pmv-profile-ident {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.icmm-pmv-profile-ident .icmm-pmv-match-badge {
    margin: 6px 0 0;
}

.icmm-pmv-profile-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--icmm-pmv-text);
}

.icmm-pmv-profile-country {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--icmm-pmv-muted);
}

.icmm-pmv-profile-reason {
    margin: 0 0 18px;
    padding: 10px 12px;
    border-radius: var(--icmm-pmv-radius-sm);
    background: var(--icmm-pmv-tint);
    font-size: 13px;
    color: var(--icmm-pmv-text);
}

.icmm-pmv-profile-talks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.icmm-pmv-profile-talk {
    padding: 10px 12px;
    border: 1px solid var(--icmm-pmv-border);
    border-radius: var(--icmm-pmv-radius-sm);
}

.icmm-pmv-profile-talk-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--icmm-pmv-text);
}

.icmm-pmv-profile-talk-session {
    font-size: 12px;
    font-weight: 600;
    color: var(--icmm-pmv-primary);
}

.icmm-pmv-profile-bio {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--icmm-pmv-text);
    white-space: pre-line;
}

.icmm-pmv-profile-all {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--icmm-pmv-primary);
}

/* ------------------------------------------------------------------ */
/* Send to my phone — QR code + link                                    */
/* ------------------------------------------------------------------ */

.icmm-pmv-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--icmm-pmv-border);
    border-radius: var(--icmm-pmv-radius-sm);
    background: var(--icmm-pmv-tint);
}

.icmm-pmv-share[hidden] {
    display: none;
}

.icmm-pmv-qr-box {
    flex: 0 0 auto;
    width: 150px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 8px;
    background: #fff;
    text-align: center;
}

.icmm-pmv-qr-svg {
    display: block;
    width: 142px;
    height: 142px;
}

.icmm-pmv-share-info {
    flex: 1 1 220px;
    min-width: 0;
}

.icmm-pmv-share-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--icmm-pmv-text);
}

.icmm-pmv-share-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.icmm-pmv-share-url {
    min-width: 0;
    font-size: 12px;
}

@media (max-width: 899px) {
    .icmm-pmv-qr-box {
        display: none;
    }
}

/* ------------------------------------------------------------------ */
/* Print sheet — "Download as PDF" renders this via the browser's own  */
/* print-to-PDF rather than a new client/server PDF dependency. Hidden */
/* on screen at all times; shown only while body.icmm-pmv-printing is  */
/* set (added right before window.print(), removed on 'afterprint'),   */
/* so it never affects the page's normal print behavior otherwise.     */
/* ------------------------------------------------------------------ */

.icmm-pmv-print-sheet {
    display: none;
}

/* Copy button: visible confirmation after a click. */
.icmm-pmv-action.is-flashed {
    border-color: #2e7d32;
    color: #2e7d32;
}

/* A named page, so only the PDF sheet gets margin-less pages (which is
   what stops browsers printing their own date / URL / page-number
   clutter in the margins). Printing any normal page of the site is
   unaffected. The sheet's own repeating spacer rows supply the margins. */
@page icmm-pmv-pdf {
    size: A4;
    margin: 0;
}

@media print {
    /* The isolation itself (hiding every other direct child of <body>) is
       done in JS by beginPrintIsolation(). Colours are hardcoded because
       the sheet is moved outside .icmm-pmv-widget, where the custom
       properties no longer resolve. */
    body.icmm-pmv-printing {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    body.icmm-pmv-printing .icmm-pmv-print-sheet {
        display: block !important;
        page: icmm-pmv-pdf;
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0 16mm;
        color: #1d1d1f;
        background: #fff;
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-size: 10pt;
        line-height: 1.45;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Undo theme print styles inside the sheet: justified text, printed
       link addresses, odd margins. */
    .icmm-pmv-print-sheet * {
        box-sizing: border-box;
        text-align: left !important;
        letter-spacing: normal;
        word-spacing: normal;
        text-transform: none;
        float: none;
    }
    .icmm-pmv-print-sheet a {
        color: #8c6a2e !important;
        text-decoration: underline;
    }
    .icmm-pmv-print-sheet a::after {
        content: none !important;
    }
    .icmm-pmv-print-sheet p,
    .icmm-pmv-print-sheet h1,
    .icmm-pmv-print-sheet h2,
    .icmm-pmv-print-sheet h3,
    .icmm-pmv-print-sheet ul {
        margin: 0;
        padding: 0;
    }

    table.icmm-pmv-pdf-frame,
    .icmm-pmv-pdf-frame tr,
    .icmm-pmv-pdf-frame td {
        width: 100%;
        border: 0 !important;
        border-collapse: collapse;
        padding: 0 !important;
        margin: 0;
        background: none !important;
        vertical-align: top;
    }
    .icmm-pmv-pdf-gap {
        height: 14mm;
    }

    /* Header */
    .icmm-pmv-pdf-header {
        display: flex;
        align-items: center;
        gap: 6mm;
        padding-bottom: 5mm;
        border-bottom: 2px solid #8c6a2e;
        margin-bottom: 5mm !important;
    }
    .icmm-pmv-pdf-logo {
        flex: 0 0 auto;
        max-height: 15mm;
        max-width: 62mm;
        width: auto;
        height: auto;
    }
    .icmm-pmv-pdf-heading {
        flex: 1 1 auto;
        min-width: 0;
    }
    .icmm-pmv-pdf-kicker {
        font-size: 8.5pt;
        color: #6b6b70;
    }
    .icmm-pmv-print-sheet .icmm-pmv-pdf-title {
        font-size: 20pt;
        line-height: 1.15;
        font-weight: 700;
        color: #1d1d1f;
        margin: 1mm 0 !important;
    }
    .icmm-pmv-pdf-who {
        font-size: 10pt;
        color: #3a3a3c;
    }

    .icmm-pmv-pdf-summary {
        font-size: 10.5pt;
        color: #3a3a3c;
        margin-bottom: 6mm !important;
        max-width: 165mm;
    }

    /* Sections */
    .icmm-pmv-pdf-section {
        margin-bottom: 6mm;
    }
    .icmm-pmv-print-sheet .icmm-pmv-pdf-h2 {
        display: flex;
        align-items: center;
        gap: 2.5mm;
        font-size: 12pt;
        font-weight: 700;
        color: #8c6a2e;
        padding-bottom: 1.5mm !important;
        border-bottom: 1px solid #e2d6bf;
        margin-bottom: 1mm !important;
        break-after: avoid;
        page-break-after: avoid;
    }
    .icmm-pmv-pdf-count {
        font-size: 8.5pt;
        font-weight: 600;
        color: #fff;
        background: #8c6a2e;
        border-radius: 999px;
        padding: 0 2mm;
        line-height: 1.6;
    }
    .icmm-pmv-print-sheet .icmm-pmv-pdf-day {
        font-size: 10pt;
        font-weight: 700;
        color: #1d1d1f;
        background: #f5efe3;
        padding: 1.2mm 2.5mm !important;
        margin: 3mm 0 0 !important;
        border-radius: 1mm;
        break-after: avoid;
        page-break-after: avoid;
    }

    /* One item: time on the left, what on the right. */
    .icmm-pmv-pdf-row {
        display: flex;
        gap: 5mm;
        padding: 2.2mm 2.5mm;
        border-bottom: 1px solid #eeeeef;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .icmm-pmv-pdf-when {
        flex: 0 0 27mm;
        display: flex;
        flex-direction: column;
    }
    .icmm-pmv-pdf-when-main {
        font-weight: 700;
        font-variant-numeric: tabular-nums;
        color: #1d1d1f;
    }
    .icmm-pmv-pdf-when-sub {
        font-size: 9pt;
        color: #6b6b70;
    }
    .icmm-pmv-pdf-what {
        flex: 1 1 auto;
        min-width: 0;
    }
    .icmm-pmv-pdf-item-title {
        font-weight: 700;
        color: #1d1d1f;
    }
    .icmm-pmv-pdf-where {
        font-size: 9pt;
        color: #6b6b70;
    }
    .icmm-pmv-pdf-why {
        font-size: 9pt;
        color: #3a3a3c;
        margin-top: 0.6mm !important;
    }
    .icmm-pmv-pdf-link {
        font-size: 9pt;
        color: #8c6a2e;
        margin-top: 0.6mm !important;
    }

    /* Exhibitors: two columns of name + one line. */
    .icmm-pmv-pdf-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 6mm;
    }
    .icmm-pmv-pdf-cell {
        padding: 2.2mm 2.5mm;
        border-bottom: 1px solid #eeeeef;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* Closing box: the only place addresses are listed. */
    .icmm-pmv-pdf-box {
        margin-top: 7mm;
        padding: 4mm 5mm;
        background: #f5efe3;
        border-radius: 1.5mm;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .icmm-pmv-pdf-box-title {
        font-weight: 700;
        margin-bottom: 1.5mm !important;
    }
    .icmm-pmv-print-sheet .icmm-pmv-pdf-list {
        list-style: none;
    }
    .icmm-pmv-pdf-list li {
        margin: 0.8mm 0;
        font-size: 9.5pt;
    }
    .icmm-pmv-pdf-stamp {
        margin-top: 4mm !important;
        font-size: 8pt;
        color: #8e8e93;
    }
}

@media (prefers-reduced-motion: reduce) {
    .icmm-pmv-card-cal,
    .icmm-pmv-itinerary,
    .icmm-pmv-refresh-btn,
    .icmm-pmv-rec-link--primary {
        transition: none;
    }
}

/* ---------------------------------------------------------------- */
/* Workshop cards. Denser than a session card because a workshop is a  */
/* separate paid, full-day commitment: the visitor needs directors,    */
/* date, fee and venue in front of them, plus who is teaching it.      */
/* ---------------------------------------------------------------- */

.icmm-pmv-card--workshop {
    border-left: 3px solid #8c6a2e;
}


.icmm-pmv-workshop-faculty {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e2e5e9;
}

.icmm-pmv-workshop-faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.icmm-pmv-workshop-person {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.icmm-pmv-workshop-person-photo {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #eef1f4;
}

.icmm-pmv-workshop-person-info {
    min-width: 0;
}

.icmm-pmv-workshop-person-name {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #16181d;
    overflow-wrap: anywhere;
}

.icmm-pmv-workshop-person-info .icmm-pmv-card-sub {
    margin: 2px 0 0;
    font-size: 11px;
    line-height: 1.35;
}

.icmm-pmv-workshop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.icmm-pmv-workshop-action {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #8c6a2e;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #8c6a2e;
    text-decoration: none;
    line-height: 1.3;
}

.icmm-pmv-workshop-action:hover,
.icmm-pmv-workshop-action:focus {
    background: #8c6a2e;
    color: #fff;
}

@media (max-width: 480px) {
    .icmm-pmv-workshop-faculty-grid {
        grid-template-columns: 1fr;
    }
}
