/* Approved brand values are inherited. All styles are scoped to the new event and calendar components. */
body.wh-v4 .wh-event-workspace {
    --wh-event-blue: var(--wh5-navy, var(--c4-navy));
    --wh-event-teal: var(--wh5-teal, var(--c4-teal));
    min-width: 0;
}
body.wh-v4 .wh-event-workspace .wh-event-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 6px;
    border: 1px solid var(--ui-line);
    border-radius: 14px;
    background: var(--c4-pale);
    margin: 14px 0 18px;
}
body.wh-v4 .wh-event-workspace .wh-event-tabs button {
    flex: 1 1 auto;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--wh-event-blue);
    background: transparent;
    font: inherit;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
}
body.wh-v4 .wh-event-workspace .wh-event-tabs button[aria-selected="true"] {
    background: white;
    border-color: var(--ui-line);
    color: var(--wh-event-teal);
    box-shadow: 0 3px 12px rgba(15, 60, 70, .07);
}
body.wh-v4 .wh-event-workspace .wh-event-tabs button:focus-visible,
body.wh-v4 .wh-event-workspace a:focus-visible,
body.wh-v4 .wh-calendar-menu summary:focus-visible,
body.wh-v4 .wh-calendar-links a:focus-visible {
    outline: 3px solid var(--wh-event-teal, var(--c4-teal));
    outline-offset: 2px;
}
body.wh-v4 .wh-event-tab-panel[hidden] { display: none !important; }
body.wh-v4 .wh-event-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
body.wh-v4 .wh-event-mini-grid-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body.wh-v4 .wh-event-mini-stat {
    --wh-event-accent: var(--wh-event-blue);
    min-width: 0;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    padding: 12px 14px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--wh-event-accent) 7%, white), white 80%);
    border: 1px solid color-mix(in srgb, var(--wh-event-accent) 18%, white);
    border-left: 3px solid var(--wh-event-accent);
    border-radius: 12px;
}
body.wh-v4 .wh-event-tone-teal { --wh-event-accent: var(--wh-event-teal); }
body.wh-v4 .wh-event-tone-navy { --wh-event-accent: var(--c4-navy); }
body.wh-v4 .wh-event-tone-muted { --wh-event-accent: var(--c4-text); }
body.wh-v4 .wh-event-mini-stat span { color: var(--wh-event-blue); font-size: .76rem; font-weight: 700; overflow-wrap: anywhere; }
body.wh-v4 .wh-event-mini-stat strong { color: var(--wh-event-accent); font-size: clamp(1.4rem, 2vw, 1.72rem); line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
body.wh-v4 .wh-event-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; }
body.wh-v4 .wh-event-panel { min-width: 0; padding: 18px 20px; }
body.wh-v4 .wh-event-panel h2 { font-size: 1.14rem; margin: 0 0 6px; }
body.wh-v4 .wh-event-panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
body.wh-v4 .wh-event-panel-header p { margin: 0; }
body.wh-v4 .wh-event-breakdown { display: grid; gap: 12px; }
body.wh-v4 .wh-event-breakdown-row > div:first-child { display: flex; justify-content: space-between; gap: 10px; color: var(--wh-event-blue); font-size: .85rem; }
body.wh-v4 .wh-event-meter { height: 7px; overflow: hidden; border-radius: 20px; background: color-mix(in srgb, var(--wh-event-teal) 10%, white); margin-top: 5px; }
body.wh-v4 .wh-event-meter > span { display: block; height: 100%; background: var(--wh-event-accent); border-radius: inherit; }
body.wh-v4 .wh-event-action-list { display: grid; gap: 7px; }
body.wh-v4 .wh-event-action-list > a { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--ui-line); padding: 9px 12px; border-radius: 9px; color: var(--wh-event-blue); font-weight: 700; font-size: .85rem; text-decoration: none; }
body.wh-v4 .wh-event-action-list > a:hover { border-color: var(--wh-event-teal); }
body.wh-v4 .wh-event-more-tools > summary { cursor: pointer; color: var(--wh-event-teal); font-weight: 800; font-size: .85rem; padding: 8px 10px; }
body.wh-v4 .wh-event-more-tools[open] > .wh-event-action-list { margin-top: 5px; }
body.wh-v4 .wh-event-more-tools:focus-within > summary { outline-offset: 3px; }
body.wh-v4 .wh-event-inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
body.wh-v4 .wh-event-note { color: var(--c4-text); font-size: .82rem; line-height: 1.5; margin: 14px 0 0; }
body.wh-v4 .wh-event-empty { margin: 12px 0 0; padding: 16px; border: 1px dashed var(--ui-line); border-radius: 12px; }

/* Compact KPI geometry, softer tinted backgrounds; no form, navigation or shared sidebar selectors. */
body.wh-v4.wh-compact-workspace :is(.wh-premium-admin, .wh-premium-participant, .wh-premium-profile) .wh-premium-stat {
    min-height: 86px;
    padding: 11px 13px;
    gap: 6px;
    background: linear-gradient(130deg, color-mix(in srgb, var(--wh-premium-tone) 7%, white), white 75%);
}
body.wh-v4.wh-compact-workspace :is(.wh-premium-admin, .wh-premium-participant, .wh-premium-profile) .wh-premium-stat > strong {
    font-size: clamp(1.45rem, 1.9vw, 1.83rem);
}
body.wh-v4.wh-compact-workspace :is(.wh-premium-admin, .wh-premium-participant, .wh-premium-profile) .wh-premium-stat-top > span:first-child {
    font-size: .76rem;
}
body.wh-v4.wh-compact-workspace .wh-premium-admin .wh-premium-quicklinks > a {
    background: linear-gradient(130deg, color-mix(in srgb, var(--wh5-teal, var(--c4-teal)) 6%, white), white 84%);
}

/* Participants: calendar links are visible without opening unrelated More options menus. */
body.wh-v4 .wh-calendar-menu { position: relative; display: inline-block; max-width: 100%; }
body.wh-v4 .wh-calendar-menu > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    min-height: 35px;
    padding: 6px 11px;
    border-radius: 9px;
    border: 1px solid var(--wh5-teal, var(--c4-teal));
    background: color-mix(in srgb, var(--wh5-teal, var(--c4-teal)) 8%, white);
    color: var(--wh5-navy, var(--c4-navy));
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}
body.wh-v4 .wh-calendar-menu > summary::-webkit-details-marker { display: none; }
body.wh-v4 .wh-calendar-menu > summary::before { content: '▦'; margin-right: 7px; }
body.wh-v4 .wh-calendar-menu-links { display: grid; gap: 6px; padding: 9px; border: 1px solid var(--ui-line); background: #fff; border-radius: 10px; min-width: min(240px, 76vw); margin-top: 6px; box-shadow: 0 8px 18px rgba(12, 45, 70, .08); }
body.wh-v4 .wh-calendar-menu-links a { color: var(--wh5-navy, var(--c4-navy)); font-size: .8rem; font-weight: 700; text-decoration: none; padding: 6px 8px; border-radius: 6px; }
body.wh-v4 .wh-calendar-menu-links a:hover { background: color-mix(in srgb, var(--wh5-teal, var(--c4-teal)) 8%, white); }
body.wh-v4 .wh-reminder-public { margin: 16px 0; padding: 12px 15px; border: 1px solid var(--ui-line); border-radius: 12px; background: color-mix(in srgb, var(--wh5-teal, var(--c4-teal)) 5%, white); }
body.wh-v4 .wh-reminder-public .wh-reminder-label { color: var(--wh5-navy, var(--c4-navy)); font-weight: 800; display: block; margin-bottom: 8px; }
body.wh-v4 .wh-reminder-public small { display: block; margin-top: 8px; color: var(--wh5-navy, var(--c4-navy)); }
body.wh-v4 .wh-calendar-links, body.wh-v4 .wh-public-card-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
body.wh-v4 .wh-calendar-links a, body.wh-v4 .wh-public-direct-register { display: inline-flex; padding: 7px 11px; border: 1px solid var(--wh5-teal, var(--c4-teal)); border-radius: 8px; background: #fff; color: var(--wh5-navy, var(--c4-navy)); text-decoration: none; font-size: .83rem; font-weight: 700; }
body.wh-v4 .wh-public-card-actions .wh4-register { flex: 1 1 auto; }
body.wh-v4 .wh-public-direct-register { flex: 1 1 auto; justify-content: center; }
@media (max-width: 1040px) {
    body.wh-v4 .wh-event-mini-grid-five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    body.wh-v4 .wh-event-duo { grid-template-columns: 1fr; }
    body.wh-v4 .wh-event-mini-grid, body.wh-v4 .wh-event-mini-grid-five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.wh-v4 .wh-event-panel { padding: 14px; }
    body.wh-v4 .wh-event-workspace .wh-event-tabs { flex-wrap: nowrap; overflow-x: auto; }
    body.wh-v4 .wh-event-workspace .wh-event-tabs button { white-space: nowrap; }
}
@media (max-width: 360px) {
    body.wh-v4 .wh-event-mini-stat { padding: 10px; }
    body.wh-v4 .wh-event-workspace .wh-event-tabs button { font-size: .77rem; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    body.wh-v4 .wh-event-workspace *, body.wh-v4 .wh-calendar-menu * { transition-duration: .01ms !important; }
}
