/**
 * "Up next" strip — one line above the transcript with the next meeting and a Join link.
 *
 * Themed entirely through tokens the base sheet (css/style.css) defines and every theme redefines —
 * `--input-bg`, `--border`, `--text-primary`, `--accent-cta` — so it follows every theme
 * without a .light-theme block here. (The first cut named `--surface-2` and `--accent-contrast`, which no
 * theme defines, so it silently rendered its hard-coded fallbacks in every theme.)
 *
 * Only `opacity`/`transform` are animated (GPU-composited), per the performance rules.
 */

.up-next-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    margin: 0 0 8px 0;
    border-radius: 10px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    line-height: 1.3;
    /* Long titles must not push Join off the row or widen the page. */
    overflow: hidden;
}

.up-next-strip[hidden] {
    display: none !important;
}

.up-next-label {
    flex: 0 0 auto;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0.72;                /* dimmed primary: --text-secondary misses AA on --input-bg in dark */
}

.up-next-title {
    /* The one element allowed to shrink: the meeting title is arbitrary user content. */
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
    font-weight: 500;
}

.up-next-when {
    flex: 0 0 auto;
    color: var(--text-primary);
    opacity: 0.72;                /* dimmed primary: --text-secondary misses AA on --input-bg in dark */
    font-variant-numeric: tabular-nums;
}

/* Two classes on purpose: `html.light-theme a` (light.css) outranks one class and painted the label blue on the
   blue button. --accent-cta is specified for WHITE text in every theme; --accent is a translucent green. */
.up-next-strip .up-next-join {
    flex: 0 0 auto;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent-cta);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    transition: opacity 120ms ease;
}

.up-next-join:hover,
.up-next-join:focus-visible {
    opacity: 0.85;
}

/* Mobile-first PWA: at narrow widths the label is redundant next to the title, and the row needs
   the horizontal space for the title and Join. */
@media (max-width: 480px) {
    .up-next-strip {
        gap: 8px;
        padding: 7px 10px;
        font-size: 0.75rem;
    }
    .up-next-label {
        display: none;
    }
}

/* Desktop-only recovery link, shown for providers that can open a native app. Quieter than Join on purpose:
   it is the fallback when a registered Teams/Zoom handler is broken, not a second primary action. */
.up-next-strip .up-next-join-web {
    flex: 0 0 auto;
    color: var(--text-primary);
    opacity: 0.72;                /* dimmed primary: --text-secondary misses AA on --input-bg in dark */
    font-size: 0.7rem;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 120ms ease;
}

.up-next-join-web:hover,
.up-next-join-web:focus-visible {
    opacity: 0.8;
}

@media (max-width: 480px) {
    .up-next-join-web {
        display: none;   /* the phone has no native-app routing, and the row needs the width */
    }
}

/* "See all" — opens the calendar screen (plan tmp/plan-calendar-view.md §B2). A quiet text button, so Join
   stays the one primary action on the strip. 44px tall for touch. */
.up-next-strip .up-next-all {
    flex: 0 0 auto;
    min-height: 44px;
    margin: -12px -6px -12px 0;
    padding: 0 8px;
    border: 0;
    background: none;
    color: var(--accent);
    font-weight: 600; font-size: 0.72rem; font-family: inherit;
    cursor: pointer;
}
.up-next-strip .up-next-all:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
}
