body.lwaf-calls-page-host h1,
body.lwaf-calls-page-host h2,
body.lwaf-calls-page-host h1.entry-title,
body.lwaf-calls-page-host .tve-page-title,
body.lwaf-calls-page-host .tcb-page-title-element h1,
body.lwaf-calls-page-host .tcb-flex-row h1,
body.lwaf-calls-page-host .thrv_heading h1,
body.lwaf-calls-page-host .thrv_heading h2,
body.lwaf-calls-page-host [class*="page-title"] h1,
body.lwaf-calls-page-host [class*="page-title"] h2 {
    color: #bc7712 !important;
    font-size: 1.25rem !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.lwaf-calls-page-host .tcb-page-title-element,
body.lwaf-calls-page-host .tve-page-title-wrapper,
body.lwaf-calls-page-host .thrv_heading,
body.lwaf-calls-page-host [class*="page-title"] {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    margin-top: 0 !important;
    margin-bottom: 4px !important;
}
@media (max-width: 759px) {
    body.lwaf-calls-page-host h1,
    body.lwaf-calls-page-host h2,
    body.lwaf-calls-page-host h1.entry-title,
    body.lwaf-calls-page-host .tve-page-title,
    body.lwaf-calls-page-host .tcb-page-title-element h1,
    body.lwaf-calls-page-host .tcb-flex-row h1,
    body.lwaf-calls-page-host .thrv_heading h1,
    body.lwaf-calls-page-host .thrv_heading h2,
    body.lwaf-calls-page-host [class*="page-title"] h1,
    body.lwaf-calls-page-host [class*="page-title"] h2 {
        font-size: 1.05rem !important;
    }
}

.lwaf-calls-page {
    --lwaf-fg: #1a1a1a;
    --lwaf-fg-soft: #2c2c2c;
    --lwaf-muted: #5d5d5d;
    --lwaf-muted-2: #8a8a8a;
    --lwaf-line: #e6e3dc;
    --lwaf-bg-soft: #f6f3ec;
    --lwaf-bg-card: #ffffff;
    --lwaf-accent: #bc7712;
    --lwaf-accent-dark: #8a560c;
    --lwaf-now-red: #d04a1f;
    --lwaf-radius: 10px;
    --lwaf-call-accent: var(--lwaf-accent);
    color: var(--lwaf-fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    font-size: 15px;
    max-width: 980px;
    margin: 0 auto;
    padding: 8px 14px 32px;
    -webkit-font-smoothing: antialiased;
}

.lwaf-calls-page h2 {
    font-size: 1.05rem;
    margin: 0 0 6px;
    font-weight: 700;
    letter-spacing: -0.005em;
    color: var(--lwaf-fg);
}

.lwaf-calls-page section { margin-bottom: 28px; }

/* ---- compact header — title on the left, tz pill on the right ---- */
.lwaf-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 2px 14px;
    border-bottom: 1px solid var(--lwaf-line);
    padding: 2px 0 4px;
    margin-bottom: 8px;
}
.lwaf-page-header__greeting {
    flex: 1 1 auto;
    font-size: 1rem;
    font-weight: 600;
    color: var(--lwaf-fg);
    line-height: 1.2;
    text-align: left;
    margin: 0;
}
.lwaf-page-header__tz {
    flex: 0 0 auto;
    text-align: right;
}
@media (max-width: 759px) {
    .lwaf-page-header {
        padding: 2px 0 3px;
        margin-bottom: 6px;
        gap: 0 10px;
    }
    .lwaf-page-header__greeting { font-size: 0.92rem; }
}

/* ---- masquerade (subordinate, collapsed) ---- */
.lwaf-masq {
    font-size: 0.78rem; color: var(--lwaf-muted);
    margin: 0 0 14px;
    border-top: 1px solid #eee; border-bottom: 1px solid #eee;
    padding: 4px 0;
}
.lwaf-masq summary { cursor: pointer; list-style: none; padding: 2px 4px; color: #888; }
.lwaf-masq summary::-webkit-details-marker { display: none; }
.lwaf-masq summary::before { content: '▸ '; color: #bbb; font-size: 0.7rem; }
.lwaf-masq[open] summary::before { content: '▾ '; }
.lwaf-masq__label { letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.7rem; color: #aaa; }
.lwaf-masq__exit { color: #999; text-decoration: none; margin-left: 6px; padding: 0 4px; border-radius: 3px; }
.lwaf-masq__exit:hover { background: #eee; color: #333; }
.lwaf-masq__no-match {
    margin-left: 6px;
    font-size: 0.7rem;
    color: var(--lwaf-now-red);
    font-style: italic;
}
.lwaf-masq__panel { padding: 8px 4px 4px; display: flex; flex-direction: column; gap: 6px; }
.lwaf-masq__search { width: 100%; padding: 5px 8px; border: 1px solid var(--lwaf-line); border-radius: 4px; font-size: 0.85rem; }
.lwaf-masq__results { max-height: 200px; overflow-y: auto; background: #fff; border: 1px solid var(--lwaf-line); border-radius: 4px; }
.lwaf-masq__results .item { padding: 6px 10px; cursor: pointer; border-bottom: 1px solid #f3f3f3; font-size: 0.82rem; color: var(--lwaf-fg); }
.lwaf-masq__results .item:hover { background: var(--lwaf-bg-soft); }
.lwaf-masq__results .item small { color: var(--lwaf-muted); display: block; font-size: 0.75rem; }
.lwaf-masq__meta { color: #aaa; font-size: 0.72rem; }
.lwaf-masq__showall {
    align-self: flex-start;
    padding: 3px 10px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--lwaf-fg);
    background: #fff;
    border: 1px solid var(--lwaf-line);
    border-radius: 999px;
    text-decoration: none !important;
}
.lwaf-masq__showall.is-on { background: var(--lwaf-accent); border-color: var(--lwaf-accent); color: #fff !important; }
.lwaf-masq__personas-section {
    display: flex; flex-direction: column; gap: 2px;
    padding: 2px 0 4px;
}
.lwaf-masq__personas {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px;
}
.lwaf-masq__personas-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #aaa;
    margin-right: 2px;
    min-width: 64px;
}
.lwaf-masq__persona {
    display: inline-block;
    padding: 3px 9px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--lwaf-fg);
    background: #fff;
    border: 1px solid var(--lwaf-line);
    border-radius: 999px;
    text-decoration: none !important;
    line-height: 1.4;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.lwaf-masq__persona:hover {
    background: var(--lwaf-bg-soft);
    border-color: var(--lwaf-accent);
    color: var(--lwaf-accent-dark);
}
.lwaf-masq__persona.is-active {
    background: var(--lwaf-accent);
    border-color: var(--lwaf-accent);
    color: #fff !important;
}
.lwaf-masq__persona.is-active:hover {
    background: var(--lwaf-accent-dark);
    border-color: var(--lwaf-accent-dark);
    color: #fff !important;
}
.lwaf-masq__persona.is-empty,
.lwaf-masq__persona.is-disabled {
    color: #ccc;
    background: transparent;
    border-style: dashed;
    cursor: not-allowed;
    pointer-events: auto;
}
.lwaf-masq__persona.is-disabled:hover {
    background: transparent;
    border-color: var(--lwaf-line);
    color: #ccc;
}

body.lwaf-loading {
    cursor: wait;
}
body.lwaf-loading * {
    cursor: wait !important;
}
body.lwaf-loading::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: #bc7712;
    z-index: 999999;
    pointer-events: none;
    animation: lwaf-loading-pulse 0.7s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(188, 119, 18, 0.7);
}
body.lwaf-loading::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    z-index: 999998;
    pointer-events: none;
}
@keyframes lwaf-loading-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}


/* ---- Split layout: detail (left) + agenda (right) ---- */
.lwaf-split {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "agenda"
        "detail";
    gap: 14px;
    align-items: stretch;
}
.lwaf-split > .lwaf-detail { grid-area: detail; }
.lwaf-split > .lwaf-agenda { grid-area: agenda; }
@media (min-width: 760px) {
    .lwaf-split {
        grid-template-columns: minmax(280px, 360px) 1fr;
        grid-template-areas: "detail agenda";
        gap: 18px;
    }
}

/* ---- Detail panel ---- */
.lwaf-detail {
    position: relative;
    background: var(--lwaf-bg-card);
    border: 1px solid var(--lwaf-line);
    border-radius: var(--lwaf-radius);
}
@media (min-width: 760px) {
    .lwaf-detail {
        position: sticky; top: 12px;
        align-self: flex-start;
    }
}
.lwaf-detail__panel {
    display: none;
    padding: 14px 16px 12px;
    border-left: 4px solid var(--lwaf-call-accent);
    box-sizing: border-box;
}
@media (min-width: 760px) {
    .lwaf-detail__panel { padding: 16px 18px 14px; }
}
.lwaf-detail__panel.is-active {
    display: block;
}
.lwaf-detail__action {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--lwaf-line);
    text-align: center;
}
.lwaf-action-stack {
    display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch;
    justify-content: center;
    gap: 6px;
}
.lwaf-action-stack > .lwaf-btn,
.lwaf-action-stack > .lwaf-cal-menu {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
}
.lwaf-action-stack > .lwaf-btn,
.lwaf-action-stack > .lwaf-cal-menu > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    box-sizing: border-box;
    padding: 8px 14px;
    white-space: nowrap;
}
.lwaf-action-note {
    flex: 1 0 100%;
    margin: 2px 0 0;
    font-size: 0.6rem;
    color: var(--lwaf-muted-2);
    font-style: italic;
    line-height: 1.2;
    text-align: center;
}
.lwaf-action-note:last-child { margin-bottom: 0; }

.lwaf-detail__body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
@media (min-width: 760px) {
    .lwaf-detail__body { align-items: center; }
}
.lwaf-detail__main {
    flex: 1 1 auto;
    min-width: 0;
}
.lwaf-detail__cadence {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lwaf-call-accent);
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
}
.lwaf-detail__title {
    margin: 0 0 4px;
    font-size: 1.18rem; font-weight: 700;
    color: var(--lwaf-call-accent);
    line-height: 1.1;
    letter-spacing: -0.01em;
}
@media (min-width: 760px) {
    .lwaf-detail__title { font-size: 1.32rem; }
}
.lwaf-detail__covering {
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0;
}
.lwaf-detail__when {
    font-size: 0.84rem;
    color: var(--lwaf-fg);
    line-height: 1.3;
    font-weight: 500;
}

.lwaf-detail__hosts {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    width: 64px;
}
.lwaf-detail__host-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}
.lwaf-detail__hosts--two {
    flex-direction: column;
    align-items: center;
    width: auto;
    gap: 0;
}
.lwaf-detail__hosts--two .lwaf-detail__host-item {
    flex-direction: column;
    align-items: center;
    width: auto;
    gap: 4px;
    text-align: center;
}
.lwaf-detail__hosts--two .lwaf-detail__host-item:last-child {
    flex-direction: column-reverse;
}
.lwaf-detail__hosts--two .lwaf-detail__host {
    margin: 0;
    line-height: 1.1;
}
.lwaf-detail__hosts--two .lwaf-detail__photo {
    width: 44px; height: 44px;
}
.lwaf-detail__hosts--two .lwaf-detail__host-item + .lwaf-detail__host-item {
    margin-top: -6px;
}
.lwaf-detail__hosts--two .lwaf-detail__host-item:last-child .lwaf-detail__photo {
    box-shadow: 0 0 0 2px #fff;
    position: relative;
    z-index: 1;
}
@media (max-width: 759px) {
    .lwaf-detail__hosts--two .lwaf-detail__host-item + .lwaf-detail__host-item {
        margin-top: -4px;
    }
}
.lwaf-detail__host {
    font-size: 0.7rem;
    color: var(--lwaf-muted);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
}
.lwaf-detail__photo {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid var(--lwaf-call-accent);
    background: var(--lwaf-bg-soft);
    display: block;
}
@media (min-width: 760px) {
    .lwaf-detail__photo { width: 56px; height: 56px; }
}
.lwaf-detail__explainer {
    font-size: 0.92rem; line-height: 1.6;
    color: var(--lwaf-fg);
    border-top: 1px solid var(--lwaf-line);
    padding-top: 12px;
    text-align: left;
}
.lwaf-detail__explainer p,
.lwaf-detail__explainer ul,
.lwaf-detail__explainer ol,
.lwaf-detail__explainer li {
    text-align: left;
}
.lwaf-detail__explainer p { margin: 0 0 0.55em; }
.lwaf-detail__explainer p:first-child { margin-top: 0; }
.lwaf-detail__explainer p:last-child { margin-bottom: 0; }
.lwaf-detail__explainer strong { color: var(--lwaf-call-accent); }

.lwaf-btn--invite {
    background: transparent !important;
    color: var(--lwaf-muted) !important;
    border: 1px dashed var(--lwaf-line);
    font-weight: 600;
    cursor: default;
}

/* ---- Agenda (right column) ---- */
.lwaf-agenda {
    background: var(--lwaf-bg-card);
    border: 1px solid var(--lwaf-line);
    border-radius: var(--lwaf-radius);
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 0;
    scrollbar-gutter: stable;
}
@media (min-width: 760px) {
    .lwaf-agenda { max-height: 580px; }
}
/* Subtle scrollbar treatment */
.lwaf-agenda::-webkit-scrollbar { width: 8px; }
.lwaf-agenda::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.08); border-radius: 4px;
}
.lwaf-agenda::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.15); }

/* Day header — date number + month + day-of-week, like Google Calendar agenda */
.lwaf-agenda__day {
    display: flex; align-items: baseline; gap: 6px;
    padding: 14px 16px 4px;
    font-size: 0.78rem;
    color: var(--lwaf-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.lwaf-agenda__day:first-child { padding-top: 8px; }
.lwaf-agenda__day-num {
    font-size: 1.05rem; font-weight: 700; color: var(--lwaf-fg);
    letter-spacing: 0;
}
.lwaf-agenda__day-mon { font-weight: 700; color: var(--lwaf-fg); }
.lwaf-agenda__day-mon::after { content: ','; color: var(--lwaf-muted); margin-left: -3px; }
.lwaf-agenda__day-dow { color: var(--lwaf-muted); }
.lwaf-agenda__day.is-today .lwaf-agenda__day-num,
.lwaf-agenda__day.is-today .lwaf-agenda__day-mon { color: var(--lwaf-now-red); }
.lwaf-agenda__day-today {
    margin-left: auto;
    font-size: 0.66rem; font-weight: 700;
    color: var(--lwaf-now-red);
    letter-spacing: 0.08em;
}

/* Event row */
.lwaf-row {
    display: grid;
    grid-template-columns: 16px 64px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 7px 22px 7px 16px;
    border: none;
    background: transparent;
    text-align: left;
    font: inherit;
    color: var(--lwaf-fg);
    cursor: pointer;
    border-radius: 0;
    transition: background 0.1s ease;
}
.lwaf-row:hover { background: var(--lwaf-bg-soft); }
.lwaf-row.is-selected {
    background: color-mix(in srgb, var(--lwaf-call-accent) 12%, transparent);
    box-shadow: inset 3px 0 0 var(--lwaf-call-accent);
}
.lwaf-row.is-selected:hover {
    background: color-mix(in srgb, var(--lwaf-call-accent) 18%, transparent);
}
.lwaf-row.is-selected .lwaf-row__title { color: var(--lwaf-call-accent); font-weight: 700; }
.lwaf-row.is-selected .lwaf-row__time  { color: var(--lwaf-call-accent); font-weight: 600; }
.lwaf-row.is-ended .lwaf-row__time,
.lwaf-row.is-ended .lwaf-row__title { color: var(--lwaf-muted-2); }
.lwaf-row.is-ended .lwaf-row__time { text-decoration: line-through; }
.lwaf-row.is-ended .lwaf-row__dot  { opacity: 0.5; }
.lwaf-row.is-ended.is-selected .lwaf-row__title,
.lwaf-row.is-ended.is-selected .lwaf-row__time { color: var(--lwaf-call-accent); }
.lwaf-row__dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--lwaf-call-accent);
    justify-self: center;
}
.lwaf-row__time {
    font-size: 0.86rem;
    color: var(--lwaf-fg);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}
.lwaf-row__title {
    font-size: 0.92rem;
    color: var(--lwaf-fg);
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.lwaf-row.is-selected .lwaf-row__title { font-weight: 600; }
.lwaf-row__live {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--lwaf-now-red);
    color: #fff;
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1.4;
    animation: lwaf-pulse 1.6s ease-in-out infinite;
}
@keyframes lwaf-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }

/* "Now" line — Google Calendar-style red marker between events */
.lwaf-now-line {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 16px;
    margin: 2px 0;
    color: var(--lwaf-now-red);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}
.lwaf-now-line__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--lwaf-now-red);
    flex: 0 0 auto;
}
.lwaf-now-line__rule {
    flex: 1 1 auto;
    height: 1px;
    background: var(--lwaf-now-red);
    opacity: 0.65;
}

/* Week separator */
.lwaf-week-break {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px 6px;
    color: var(--lwaf-muted-2);
}
.lwaf-week-break::before,
.lwaf-week-break::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: var(--lwaf-line);
}
.lwaf-week-break__label {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    flex: 0 0 auto;
}

/* ---- Schedule "no events" state ---- */
.lwaf-schedule__none {
    padding: 18px; background: var(--lwaf-bg-soft);
    border-radius: var(--lwaf-radius); color: var(--lwaf-muted);
    font-size: 0.92rem;
    text-align: center;
}

/* ---- Timezone pill + popover editor ---- */
.lwaf-tz {
    position: relative;
    width: 100%;
    margin: 2px 0 0;
}
.lwaf-tz__label {
    font-size: 0.82rem;
    color: var(--lwaf-muted);
}
.lwaf-tz__label strong {
    color: var(--lwaf-fg);
    font-weight: 600;
}
.lwaf-tz__edit {
    background: none; border: none;
    padding: 0 0 0 4px;
    font-size: 0.78rem;
    color: var(--lwaf-accent-dark);
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
}
.lwaf-tz__edit:hover { color: var(--lwaf-accent); }
.lwaf-tz__nudge {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.76rem;
    color: var(--lwaf-muted);
    font-style: italic;
}
.lwaf-tz__editor {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 200;
    width: 280px;
    max-width: calc(100vw - 28px);
    padding: 12px;
    background: #fff;
    border: 1px solid var(--lwaf-line);
    border-radius: var(--lwaf-radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    display: flex; flex-direction: column; align-items: stretch; gap: 8px;
}
.lwaf-tz__editor-label {
    font-size: 0.78rem;
    color: var(--lwaf-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    display: flex; flex-direction: column; gap: 4px;
    margin: 0;
}
.lwaf-tz__select {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    border: 1px solid var(--lwaf-line);
    border-radius: 4px;
    font-size: 0.88rem;
    background: #fff;
    font-family: inherit;
    color: var(--lwaf-fg);
}
.lwaf-tz__editor-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 2px;
}
.lwaf-tz__cancel {
    background: transparent; border: 1px solid var(--lwaf-line);
    color: var(--lwaf-muted); padding: 6px 12px;
    border-radius: 4px; font-size: 0.85rem; cursor: pointer; font-family: inherit;
}
.lwaf-tz__cancel:hover { border-color: var(--lwaf-fg); color: var(--lwaf-fg); }
.lwaf-tz__status { font-size: 0.78rem; flex: 1 1 auto; text-align: left; }
.lwaf-tz__status.is-ok    { color: #2a7a3f; }
.lwaf-tz__status.is-error { color: #b53d18; }

/* ---- Buttons ---- */
.lwaf-btn {
    display: inline-block;
    padding: 8px 18px;
    background: var(--lwaf-accent);
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.2;
    transition: filter 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.lwaf-btn:hover { filter: brightness(0.92); transform: translateY(-1px); }
.lwaf-btn--small { padding: 6px 12px; font-size: 0.85rem; }
.lwaf-btn--big { padding: 10px 22px; font-size: 0.95rem; }
.lwaf-btn--neutral { background: var(--lwaf-fg) !important; }
.lwaf-btn--join { background: var(--lwaf-call-accent); }
.lwaf-btn--host { background: #2f6f7e !important; }
.lwaf-btn--host:hover { background: #265a66 !important; }

.lwaf-host-notice {
    background: #eef5f6;
    border: 1px solid #cfe3e6;
    border-left: 4px solid #2f6f7e;
    border-radius: var(--lwaf-radius);
    padding: 12px 16px;
    margin: 0 0 16px;
    font-size: 0.95rem;
    color: var(--lwaf-fg-soft);
    line-height: 1.5;
}
.lwaf-host-notice strong { color: #2f6f7e; }

.lwaf-btn--addcal {
    background: #fff !important;
    color: var(--lwaf-call-accent) !important;
    box-shadow: inset 0 0 0 1.5px var(--lwaf-call-accent);
    font-weight: 600;
}
.lwaf-btn--addcal:hover {
    background: color-mix(in srgb, var(--lwaf-call-accent) 8%, #fff) !important;
    filter: none;
}
.lwaf-btn__icon {
    display: inline-block;
    margin-right: 4px;
    font-weight: 700;
    transform: translateY(-0.5px);
}

.lwaf-cal-menu { position: relative; display: inline-block; }

/* ---- CTA swap + add-to-calendar footnote ---- */
.lwaf-cta-swap__future[hidden],
.lwaf-cta-swap__live[hidden] { display: none; }
.lwaf-calls-page .lwaf-cta-footnote {
    margin: 18px auto -5px !important;
    padding: 0 !important;
    max-width: 34em;
    font-size: 13.5px !important;
    font-style: italic !important;
    line-height: 1.35 !important;
    color: var(--lwaf-muted) !important;
}
.lwaf-cal-menu > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}
.lwaf-cal-menu > summary::-webkit-details-marker { display: none; }
.lwaf-cal-menu[open] > summary {
    background: color-mix(in srgb, var(--lwaf-call-accent) 8%, #fff) !important;
}
.lwaf-cal-menu__items {
    position: absolute;
    z-index: 5;
    top: calc(100% + 4px);
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--lwaf-line);
    border-radius: 8px;
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.lwaf-cal-menu__item {
    display: block;
    padding: 8px 12px;
    color: var(--lwaf-fg) !important;
    text-decoration: none !important;
    font-size: 0.86rem;
    font-weight: 500;
    border-bottom: 1px solid var(--lwaf-line);
    transition: background 0.1s ease;
}
.lwaf-cal-menu__item:last-child { border-bottom: none; }
.lwaf-cal-menu__item:hover {
    background: var(--lwaf-bg-soft);
    color: var(--lwaf-call-accent) !important;
}

.lwaf-btn--replay {
    background: var(--lwaf-fg) !important;
    color: #fff !important;
}
.lwaf-btn--replay:hover { filter: brightness(1.15); }
.lwaf-btn__sub {
    font-size: 0.78em;
    font-weight: 500;
    opacity: 0.82;
    margin-left: 4px;
}

.lwaf-btn--disabled {
    background: var(--lwaf-bg-soft) !important;
    color: var(--lwaf-muted) !important;
    box-shadow: inset 0 0 0 1px var(--lwaf-line);
    cursor: not-allowed;
    font-weight: 600;
}
.lwaf-btn--disabled:hover {
    transform: none; filter: none; background: var(--lwaf-bg-soft) !important;
}

/* ---- Help footer ---- */
.lwaf-help {
    background: var(--lwaf-bg-soft);
    border-radius: var(--lwaf-radius);
    padding: 12px 14px;
    color: var(--lwaf-fg);
    font-size: 0.86rem;
    line-height: 1.55;
}
.lwaf-help p { margin: 0; }
.lwaf-help a { color: var(--lwaf-accent-dark); text-decoration: underline; }

/* ---- Eligibility footnote — same card visual as upsell bars ---- */
.lwaf-eligibility {
    background: color-mix(in srgb, var(--lwaf-accent) 6%, #fff);
    border: 1px solid color-mix(in srgb, var(--lwaf-accent) 30%, var(--lwaf-line));
    border-left: 4px solid var(--lwaf-accent);
    border-radius: var(--lwaf-radius);
    padding: 14px 18px;
    margin: 14px 0 10px;
    font-size: 0.9rem;
    color: var(--lwaf-fg);
    line-height: 1.5;
    text-align: left;
}
.lwaf-eligibility__title {
    margin: 0;
    padding: 0;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--lwaf-accent-dark);
    text-align: left;
}
.lwaf-eligibility__list {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}
.lwaf-eligibility__list li {
    margin: 0 !important;
    padding: 18px 0 !important;
    border-top: 1px dashed color-mix(in srgb, var(--lwaf-accent) 40%, var(--lwaf-line));
    text-align: left;
    list-style: none;
}
.lwaf-eligibility__list li:first-child {
    border-top: none;
}
.lwaf-eligibility__list li strong:first-child {
    color: var(--lwaf-accent-dark);
    font-weight: 700;
}

/* ---- Topics note ---- */
.lwaf-topics-note {
    background: color-mix(in srgb, var(--lwaf-now-red) 9%, #fff);
    border: 1.5px dashed var(--lwaf-now-red);
    border-radius: var(--lwaf-radius);
    padding: 11px 16px;
    margin: 0 0 14px;
    text-align: left;
}
.lwaf-topics-note p {
    margin: 0;
    padding: 0 !important;
    font-size: 0.875rem !important;
    line-height: 1.5;
    color: var(--lwaf-fg-soft);
}
.lwaf-topics-note a { color: var(--lwaf-now-red); text-decoration: underline; font-weight: 600; }

/* ---- Upsell bar ---- */
.lwaf-upsell {
    background: color-mix(in srgb, var(--lwaf-accent) 8%, #fff);
    border: 1px solid color-mix(in srgb, var(--lwaf-accent) 35%, var(--lwaf-line));
    border-left: 4px solid var(--lwaf-accent);
    border-radius: var(--lwaf-radius);
    padding: 12px 16px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--lwaf-fg);
    line-height: 1.5;
    text-align: left;
}
.lwaf-upsell + .lwaf-upsell {
    margin-top: -4px;
}
.lwaf-upsell strong {
    color: var(--lwaf-accent-dark);
    margin-right: 4px;
}
.lwaf-upsell__item { display: block; }
.lwaf-upsell__item + .lwaf-upsell__item { margin-top: 10px; }
.lwaf-upsell a {
    color: var(--lwaf-accent-dark);
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}
.lwaf-upsell a:hover { color: var(--lwaf-accent); }

/* ---- Redirect-handler notice ---- */
.lwaf-redirect-banner {
    --rb-accent: var(--lwaf-redirect-color);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--rb-accent);
    border: 0;
    border-left: 6px solid rgba(0, 0, 0, 0.28);
    border-radius: var(--lwaf-radius);
    padding: 16px 18px;
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.5;
    text-align: left;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.lwaf-calls-page { --lwaf-redirect-color: #2f6f7e; }
.lwaf-redirect-banner--next    { --rb-accent: var(--lwaf-redirect-color); }
.lwaf-redirect-banner--unknown { --rb-accent: var(--lwaf-now-red); }
.lwaf-redirect-banner__text { flex: 1 1 auto; text-wrap: balance; }
.lwaf-redirect-banner__text strong { font-weight: 700; }
.lwaf-redirect-banner__text a,
.lwaf-redirect-banner__text a:hover,
.lwaf-redirect-banner__text a:focus {
    color: #fff !important;
    font-weight: 600;
    text-decoration: underline;
}
.lwaf-redirect-banner__text a:hover { text-decoration-thickness: 2px; }
.lwaf-redirect-banner__dismiss {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 0;
    padding: 0;
    margin: 0;
    width: 26px;
    height: 26px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    border-radius: 6px;
}
.lwaf-redirect-banner__dismiss:hover {
    background: rgba(255, 255, 255, 0.32);
}
.lwaf-redirect-banner__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.lwaf-redirect-banner__reset {
    display: inline-block;
    font-size: 0.92rem;
    color: #fff !important;
    text-decoration: underline;
    opacity: 0.9;
}
.lwaf-redirect-banner__reset:hover {
    opacity: 1;
    text-decoration-thickness: 2px;
}

/* ---- Empty state ---- */
.lwaf-empty {
    padding: 32px 24px;
    background: var(--lwaf-bg-soft);
    border-radius: var(--lwaf-radius);
    text-align: left;
}
.lwaf-empty h2 {
    margin: 0 0 14px;
    text-align: center;
    color: var(--lwaf-fg);
}
.lwaf-empty p {
    margin: 0 0 12px;
    color: var(--lwaf-fg);
    font-size: 0.95rem;
    line-height: 1.55;
}
.lwaf-empty p:last-child { margin-bottom: 0; }
.lwaf-empty a {
    color: var(--lwaf-accent-dark);
    text-decoration: underline;
    font-weight: 600;
}

/* ---- Mobile tightening (Yeti 2026-09-11): banner, intro type, and no inner scroll trap ---- */
@media (max-width: 759px) {
    #tve_editor .lwaf-calls-banner, .tve_flt .lwaf-calls-banner { padding-top: 14px !important; padding-bottom: 14px !important; }
    #tve_editor .lwaf-calls-banner h1, #tve_editor .lwaf-calls-banner h1 span, .tve_flt .lwaf-calls-banner h1 { font-size: 34px !important; line-height: 1.15 !important; margin: 0 !important; }
    #tve_editor .lwaf-calls-banner .tve-page-section-in { min-height: 0 !important; padding-top: 8px !important; padding-bottom: 8px !important; }
    /* The agenda scrolls inside its box again, opened at today (calls.js) so history sits above, out of the way. */
    .lwaf-calls-page .lwaf-agenda { max-height: none !important; overflow: visible !important; }   /* phones: natural height; ended calls fold behind "Show N earlier calls" (calls.js, Yeti 2026-09-14) */
    .lwaf-calls-page .lwaf-page-header { font-size: 19px !important; line-height: 1.35 !important; }
    .lwaf-calls-page .lwaf-page-header__greeting { font-size: 19px !important; }
    .lwaf-calls-page .lwaf-page-header__tz, .lwaf-calls-page .lwaf-tz, .lwaf-calls-page .lwaf-tz__label { font-size: 16px !important; }
    .lwaf-calls-page .lwaf-empty { font-size: 16px !important; line-height: 1.5 !important; }
}

/* Banner text vertically centred: Thrive's text element carries a 30px bottom margin and the desktop
   section 60px/2px padding, which pushed the title up. */
#tve_editor .lwaf-calls-banner .thrv_text_element, .tve_flt .lwaf-calls-banner .thrv_text_element { margin-bottom: 0 !important; margin-top: 0 !important; }
@media (min-width: 760px) {
    #tve_editor .lwaf-calls-banner, .tve_flt .lwaf-calls-banner { padding-top: 36px !important; padding-bottom: 36px !important; }
    #tve_editor .lwaf-calls-banner .tve-page-section-in { min-height: 0 !important; }
}

/* Ended calls folded above today (calls.js). */
.lwaf-agenda .lwaf-past { display: none !important; }
.lwaf-agenda .lwaf-past-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; margin: 0 0 8px; padding: 0 14px; border: 1.5px dashed #c9d4de; border-radius: 12px; background: #f6f9fb; color: #0a4d7a; font: 500 14.5px/1.2 Ubuntu, system-ui, sans-serif; cursor: pointer; }
.lwaf-agenda .lwaf-past-toggle:hover { background: #e6f3fa; border-color: #39a3d1; border-style: solid; }
