/* Issue #155: the Event Lobby - on top of ../common/duties.css (colors, cards, buttons, messages, dark mode); the conference theme
   (Theme.ashx) comes after it. Responsive: one column on phones, the sessions and sponsors in a grid on large screens; the tabs stick to the
   bottom of the screen on phones and sit under the header on large screens. No inline styles (CSP style-src 'self'). */
/* Issue #215 D7: .lobby-page holds header, tabs, <main id="main"> and the footer (the width box moved from main to it) */
/* Issue #231 U16: --nav-h = height of the bottom tab bar on phones (the bar keeps at least it); the page padding and the My Agenda save bar use it */
:root { --nav-h: 72px; --savebar-h: 60px; }
.lobby-page { max-width: 1100px; margin: 0 auto; padding: 24px 16px calc(var(--nav-h) + env(safe-area-inset-bottom)); }
main.lobby-main { max-width: none; margin: 0; padding: 0; }
main.lobby-main:focus { outline: none; }
.lobby-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 12px; }
.lobby-head .logo img { max-height: 56px; width: auto; }
.lobby-title { flex: 1 1 240px; }
.lobby-title .lobby-event { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.lobby-title .kicker { margin: 0 0 2px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lobby-title .dates { margin: 2px 0 0; color: var(--muted); }
.lobby-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: space-around; gap: 2px;
           padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--card, #fff); border-top: 1px solid var(--line);
           min-height: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
.lobby-nav a { flex: 1 1 0; text-align: center; padding: 8px 4px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--muted); }
.lobby-nav a.active { color: var(--accent); background: var(--soft); }
.lobby-offline { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: var(--soft); font-weight: 600; }
.lobby .card h2 { margin: 0 0 10px; font-size: var(--fs-h2); }
.lobby .muted { color: var(--muted); }
.lobby .small { font-size: .85rem; }
.lobby-sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lobby-session { display: grid; grid-template-columns: 4.5em 1fr auto; grid-template-areas: "time title star" "room speakers star"; gap: 0 10px;
               align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.lobby-session[hidden] { display: none; }
.lobby-session .time { grid-area: time; font-weight: 700; font-variant-numeric: tabular-nums; }
.lobby-session .room { grid-area: room; font-size: .85rem; color: var(--muted); }
.lobby-session .title { grid-area: title; font-weight: 600; }
.lobby-session .speakers { grid-area: speakers; font-size: .9rem; color: var(--muted); }
.lobby-session .star { grid-area: star; align-self: center; }
/* Issue #312: lists with a time range or a day - a wider time column; the day and the range are their own lines and never break inside */
.lobby-sessions.widetime .lobby-session { grid-template-columns: 6.6em 1fr auto; }
.lobby-sessions.withday .lobby-session { grid-template-columns: 7.8em 1fr auto; }
.lobby-session .time .day, .lobby-session .time .hm { display: block; white-space: nowrap; }
.lobby-session .time .day { font-size: .9rem; }
/* Issue #282: "Running now" of one slot - the time is in the heading, the room takes the time column */
.lobby-sessions.notime .lobby-session, .lobby-session.notime { grid-template-areas: "room title star" "room speakers star"; }
/* Issue #283: a schedule row with nothing in the time column (the slot heading has the time) - the room takes it, like the sessions */
.lobby-break.notime { grid-template-areas: "room title"; }
.star { min-width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--muted); }
.star.on { color: var(--star); }
/* Issue #206: service sessions (breaks, lunch …) – muted rows in their time slot, no link, no star; the running one on "Now" */
.lobby-breaks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.lobby-break { display: grid; grid-template-columns: 4.5em 1fr; grid-template-areas: "time title" ". room"; gap: 0 10px; padding: 6px 12px;
               border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); }
.lobby-break .time { grid-area: time; font-size: .85rem; font-variant-numeric: tabular-nums; }
.lobby-break .title { grid-area: title; font-style: italic; }
.lobby-break .room { grid-area: room; font-size: .85rem; }
.lobby-break-now { margin: 0 0 8px; font-style: italic; }
.lobby-detail .talks { padding-left: 1.2em; }
.lobby-filter { margin: 0 0 12px; }
/* issue #281: "My sessions" – the intro line with "Change my picks", the picker's way back, a pick whose time changed */
.lobby-mysessions-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 14px; }
.lobby-picksonly { margin: 0 0 14px; }
.lobby-session .lobby-moved { display: block; width: max-content; max-width: 100%; margin-top: 2px; font-weight: 600; }
.lobby-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.lobby-dl dt { font-weight: 600; }
.lobby-dl dd { margin: 0; }
.lobby-text { white-space: normal; }
.lobby-sponsors { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lobby-sponsor { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.lobby-sponsor img { display: block; max-width: 100%; max-height: 72px; width: auto; margin: 0 0 8px; background: #fff; border-radius: 6px; padding: 4px; }
.lobby-sponsor h3 { margin: 0 0 4px; font-size: var(--fs-h3); }
.lobby-sponsor p { margin: 4px 0 0; }
/* Issue #190 F3: speakers tab and speaker page */
.lobby-speakers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lobby-speaker a { display: grid; grid-template-columns: 56px 1fr; grid-template-areas: "photo name" "photo tagline"; gap: 0 12px; align-items: center;
                 padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); text-decoration: none; color: inherit; min-height: 56px; }
.lobby-speaker .name { grid-area: name; font-weight: 600; }
.lobby-speaker .tagline { grid-area: tagline; font-size: .9rem; color: var(--muted); }
.lobby-speaker-photo { grid-area: photo; width: 56px; height: 56px; object-fit: cover; border-radius: 50%; }
.lobby-profile-photo { float: right; width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin: 0 0 12px 12px; }
.lobby-profile .tagline { font-weight: 600; color: var(--muted); }
.lobby-profile h2 { clear: both; }
.lobby-links { padding-left: 1.2em; }
.lobby-materials, .lobby-cal { margin: 10px 0 0; }
/* Issue #190 F18: room door screen (tablet at the door; no navigation, no script) */
.lobby-room-screen .lobby-page { max-width: none; padding: 16px 24px; }
.lobby-room-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 0 0 12px; }
.lobby-room-head h1 { margin: 0; font-size: 2.6rem; }
.lobby-room-head .kicker { margin: 0; color: var(--muted); font-weight: 700; }
.lobby-room-clock { margin: 0; font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.lobby-room-now .title { font-size: 2rem; font-weight: 700; margin: 4px 0; }
.lobby-room-next .title { font-size: 1.4rem; font-weight: 600; margin: 4px 0; }
.lobby-room-screen .time { font-size: 1.3rem; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.lobby-room-screen .speakers { font-size: 1.2rem; color: var(--muted); margin: 0; }
.lobby-room-session { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.lobby-room-qr { margin: 0; text-align: center; }
.lobby-room-qr img { width: 200px; height: 200px; background: #fff; padding: 6px; border-radius: 8px; }
.lobby-room-qr figcaption { font-size: .9rem; color: var(--muted); }
.lobby-room-sponsor { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; }
.lobby-room-sponsor img { max-height: 72px; max-width: 280px; width: auto; background: #fff; border-radius: 6px; padding: 4px; }
/* Issue #228 F6: foyer screen (TV in the foyer; all rooms now and next, no navigation).
   Issue #245 item 3: six rooms per update ("Rooms 1–6 of 9"), the QR code and the sponsor row in a fixed band below them, type scaled
   with the viewport (readable from a distance on 960–1920 px TV browsers); with tv=1 (body.lobby-tv) the screen is exactly one
   viewport high and never scrolls. Item 4: the line "Not updated since HH:mm" of /common/screen.js (.screen-stale). */
.lobby-foyer { display: flex; flex-direction: column; gap: 16px; }
.lobby-foyer-main { min-width: 0; }
.lobby-foyer-pages { margin: 0 0 8px; font-weight: 700; color: var(--muted); font-size: clamp(.95rem, 1.3vw, 1.5rem); }
.lobby-foyer-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.lobby-foyer-room { margin: 0; overflow: hidden; }
.lobby-foyer-room h2 { margin: 0 0 8px; font-size: clamp(1.3rem, 2.2vw, 2.6rem); }
.lobby-foyer-room .label { margin: 8px 0 0; font-size: clamp(.85rem, 1.1vw, 1.3rem); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.lobby-foyer-room .title { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.lobby-foyer-now .title { font-size: clamp(1.15rem, 1.9vw, 2.2rem); font-weight: 700; margin: 2px 0; }
.lobby-foyer-next .title { font-size: clamp(1rem, 1.6vw, 1.8rem); font-weight: 600; margin: 2px 0; }
.lobby-foyer-screen .time { font-size: clamp(1rem, 1.5vw, 1.7rem); }
.lobby-foyer-screen .speakers { font-size: clamp(.95rem, 1.4vw, 1.6rem); }
.lobby-foyer-screen .lobby-room-head h1 { font-size: clamp(1.8rem, 3vw, 3.4rem); }
.lobby-foyer-screen .lobby-room-clock { font-size: clamp(1.6rem, 2.6vw, 3rem); }
.lobby-foyer-service { margin: 12px 0 0; }
.lobby-foyer-service ul { list-style: none; margin: 0; padding: 0; font-size: clamp(1rem, 1.5vw, 1.7rem); }
.lobby-foyer-service .title { font-weight: 700; }
.lobby-foyer-band { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 12px 0 0; border-top: 1px solid var(--line); }
.lobby-foyer-band .lobby-room-qr { flex: none; display: flex; align-items: center; gap: 12px; text-align: left; }
.lobby-foyer-band .lobby-room-qr img { width: clamp(110px, 16vh, 220px); height: clamp(110px, 16vh, 220px); }
.lobby-foyer-band figcaption { max-width: 260px; font-size: clamp(.9rem, 1.2vw, 1.4rem); }
.lobby-foyer-sponsors { flex: 1 1 320px; margin: 0; }
.lobby-foyer-sponsors h2 { font-size: clamp(1rem, 1.4vw, 1.6rem); margin: 0 0 8px; color: var(--muted); }
.lobby-foyer-sponsors ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 32px; }
.lobby-foyer-sponsors li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .85rem; }
.lobby-foyer-sponsors img { max-height: clamp(56px, 9vh, 110px); max-width: 220px; width: auto; background: #fff; border-radius: 6px; padding: 6px; }
@media (min-width: 900px) {
    .lobby-foyer-grid { grid-template-columns: repeat(3, 1fr); }
}
.screen-stale { margin: 0 0 8px; padding: 6px 10px; border-radius: 6px; background: var(--warn-soft); color: var(--warn); font-weight: 600; }
/* tv=1: exactly one viewport, no scrolling – the rooms take the free height, the band stays at the bottom */
body.lobby-tv { height: 100vh; overflow: hidden; }
.lobby-tv .lobby-page { height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; padding-bottom: 8px; }
.lobby-tv .lobby-main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.lobby-tv #screen { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.lobby-tv .lobby-foyer { flex: 1 1 auto; min-height: 0; }
.lobby-tv .lobby-foyer-main { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.lobby-tv .lobby-foyer-band { flex: none; }
.lobby-tv .site-foot { margin-top: 4px; padding-top: 4px; font-size: .8rem; }
@media (min-width: 760px) {
    .lobby-page { padding-bottom: 24px; }
    .lobby-nav { position: static; min-height: 0; justify-content: flex-start; padding: 0; margin: 0 0 16px; background: transparent; border-top: 0; border-bottom: 1px solid var(--line); }
    .lobby-nav a { flex: 0 0 auto; padding: 10px 16px; border-radius: 8px 8px 0 0; }
    .lobby-day .lobby-sessions, .lobby-sponsors { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
    .lobby-level .lobby-sponsors { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (min-width: 1100px) {
    .lobby-day .lobby-sessions { grid-template-columns: repeat(3, 1fr); }
}
/* Issue #201: session page – title, when/where chips, buttons, speaker cards with photos, readable abstract */
.lobby-detail-title { margin: 0 0 10px; font-size: 1.45rem; line-height: 1.25; overflow-wrap: anywhere; }
.lobby-detail-meta { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lobby-detail-meta li { padding: 4px 10px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: .9rem; }
.lobby-detail .buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 4px; }
.lobby-detail .lobby-materials a { font-weight: 600; }
.lobby .lobby-detail h2, .lobby .lobby-profile h2 { margin: 18px 0 8px; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.lobby-speaker-cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.lobby-speaker-box { display: grid; grid-template-columns: 56px 1fr; grid-template-areas: "photo name" "photo tagline"; gap: 0 12px; align-items: center;
                   padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); min-height: 56px; }
.lobby-initials { display: flex; align-items: center; justify-content: center; background: var(--line); color: var(--muted); font-weight: 700; font-size: 1.1rem; }
/* Issue #313: the abstract fills the card (the 70ch limit of #201 left half of it empty) */
.lobby-detail-abstract .abstract-text { font-size: 1rem; line-height: 1.65; }
.lobby-detail-abstract .abstract-text p { margin: 0 0 12px; }
@media (min-width: 900px) { .lobby-detail { padding: 24px 28px; } .lobby-detail-title { font-size: 1.75rem; } }
/* Issue #202: sponsors box on the Info tab – a strip of logos (or names) */
.lobby-sponsor-strip { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lobby-sponsor-strip li { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.lobby-sponsor-strip img { display: block; max-height: 40px; max-width: 120px; width: auto; }
.lobby-sponsor-strip span { font-weight: 600; color: #222; }
/* Issue #205: "My Agenda" - the Session Picker inside the Lobby (own class names: duties.css styles .slot and .opt for the volunteers) */
.lobby-agenda .sub { margin: 0 0 12px; }
.lobby-agenda .ask { max-width: 560px; margin: 0 0 14px; }
.lobby-agenda .ask .row { flex-wrap: wrap; }
.lobby-agenda .ask input[type=email] { min-width: 220px; }
.lobby-agenda h2.ask-title { font-size: 1rem; margin: 0 0 8px; }   /* issue #231 U9: h2 under the view h1 (beats .lobby .card h2) */
.lobby-agenda .disclaimer { font-size: .9rem; color: var(--muted); border-left: 4px solid var(--muted); padding: 8px 12px; margin: 0 0 14px; background: var(--soft); border-radius: 8px; }
.lobby-agenda .privacy { font-size: .85rem; color: var(--muted); margin: 18px 0 0; }
.lobby-agenda .tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 14px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.ag-legend { font-size: .9rem; color: var(--muted); margin: 0 0 8px; }
.ag-legend .swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: var(--warn-soft); border: 2px solid var(--warn-line); vertical-align: -2px; margin-right: 6px; }
.lobby-agenda h2.day { font-size: 1.05rem; margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.ag-slot { border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 10px; margin: 0 0 12px; padding: 12px 14px; background: var(--card); }
.ag-slot.open { background: var(--warn-soft); border-color: var(--warn-line); }
.ag-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.ag-set > legend { padding: 0; width: 100%; }
.ag-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.ag-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.ag-badge { display: none; font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--warn-line); color: #1d2330; }
.ag-slot.open .ag-badge { display: inline-block; }
.ag-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 8px; }
label.ag-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); cursor: pointer; }
label.ag-opt input { margin-top: 3px; flex: none; }
label.ag-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
label.ag-opt.none .ag-title { font-weight: 400; font-style: italic; color: var(--muted); }
label.ag-opt.lightning .ag-title::before { content: "\26A1  " / ""; }
.ag-title { display: block; font-weight: 600; }
.ag-speakers { display: block; color: var(--muted); font-size: .92rem; margin-top: 2px; }
.ag-room { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; text-transform: uppercase; letter-spacing: .03em; }
.ag-when { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ag-moved { display: block; margin-top: 6px; font-size: .88rem; font-weight: 600; color: var(--warn); background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: 6px; padding: 4px 8px; }
.ag-optwrap { display: flex; flex-direction: column; min-width: 0; }
.ag-optwrap > label.ag-opt { flex: 1 1 auto; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ag-optwrap > details.abstract, .ag-optwrap > .ag-link { border: 1px solid var(--line); border-top: 0; background: var(--card); padding: 6px 12px 8px; margin: 0; }
.ag-optwrap > :last-child { border-radius: 0 0 8px 8px; }
.ag-link { font-size: .88rem; }
.ag-rate { margin: 10px 0 0; font-size: .92rem; font-weight: 600; }
.ag-savebar { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 5; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
              margin: 14px -8px 0; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 -2px 12px rgba(0,0,0,.08); }
.ag-savebar .progress { color: var(--muted); font-size: .92rem; }
.ag-savebar .progress strong { color: var(--text); }
.ag-savebar .unsaved { display: none; color: var(--warn); font-weight: 600; }
.ag-savebar .unsaved.show { display: inline; }
/* Issue #230 X4: the change-mail box above the slots (was in the save bar); the dot of "Not saved yet" and the short texts only on phones */
.ag-notify { margin: 0 0 12px; }
.ag-notify .notify { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
.ag-notify .notify input { width: 18px; height: 18px; margin: 0; flex: none; }
.ag-legend .linkbtn { margin-left: 6px; }
.ag-savebar .ag-short, .ag-savebar .ag-dot { display: none; }
.ag-savebar .ag-dot { color: var(--warn); }
.ag-savebar:has(.unsaved.show) .ag-dot { display: inline; }
@media (max-width: 759.98px) {
    /* one line: "3/12 · ● · Save"; the long texts stay for screen readers (visually hidden like .sr-only) */
    .ag-savebar { flex-wrap: nowrap; padding: 8px 10px; gap: 8px; }
    .ag-savebar .ag-long, .ag-savebar .unsaved.show { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .ag-savebar .ag-short { display: inline; }
    .ag-savebar .progress { white-space: nowrap; }
    .ag-savebar .btn { flex: none; }
}
@media (min-width: 760px) { .ag-savebar { bottom: 0; } .ag-savebar .ag-dot { display: none !important; } }

/* ===== Issue #215: titles, stars, filters, back links and the #214 accessibility rules for the Lobby ===== */
/* D12: star color of a starred session: --star in tokens.css (4.5:1 on cards and the soft surface, light and dark) */
/* D4: every view has its own h1 (the event name in the header is the site name) */
.lobby-h1 { margin: 0 0 12px; font-size: 1.35rem; line-height: 1.25; overflow-wrap: anywhere; }
.lobby-profile-name { margin: 0 0 6px; font-size: 1.45rem; line-height: 1.25; overflow-wrap: anywhere; }
/* U8: the star on the session page keeps its ghost-button frame and has a visible label; the hint "Only on this device" next to it */
.star.btn { min-width: 0; border: 1px solid var(--accent); font-size: 1rem; line-height: 1.45; color: var(--accent); }
.star.btn .star-icon { font-size: 1.2rem; line-height: 1; }
.star.btn.on { color: var(--accent); }
.star.btn.on .star-icon { color: var(--star); }
.lobby-starbox { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
/* U7: "Only my stars" hides time slots and days without a visible session */
.lobby-day[hidden], .lobby-slotgroup[hidden], .lobby-nofilter[hidden] { display: none; }
.lobby-nofilter { margin: 0 0 12px; }
/* U9: back links */
.lobby-back { margin: 0 0 12px; }
/* D7: "Skip to content" as the first focusable element, visible only while focused */
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--card);
             color: var(--accent); border: 2px solid var(--focus); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
/* D2: form fields (if any) with a border of at least 3:1 */
:where(.lobby) :where(input:not([type=checkbox]):not([type=radio]), select, textarea) { border-color: var(--field-line); }
/* D16: the shared focus ring also on the tabs, stars, the filter, speaker cards and the language switch */
.lobby-nav a:focus-visible, .star:focus-visible, .lobby-speaker a:focus-visible, .lobby-filter label:has(> input:focus-visible),
.lang-switch a:focus-visible, .skip-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* D5: the fixed tab bar at the bottom of a phone never hides the focused element or an anchor target (issue #230 X4: from --nav-h) */
html { scroll-padding-top: 16px; scroll-padding-bottom: calc(var(--nav-h) + 8px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { html { scroll-padding-bottom: 16px; } }
/* U11: tabs at least 44 px high on touch screens */
@media (pointer: coarse) { .lobby-nav a { min-height: 44px; display: flex; align-items: center; justify-content: center; } }
/* D14: no animations or smooth scrolling for visitors who ask for reduced motion (also in duties.css; kept here for the Lobby's own rules) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* D5 with My Agenda: the save bar (--savebar-h, one line on phones since issue #230 X4) sits above the tab bar, so a focused choice needs
   room for both */
html:has(.ag-savebar) { scroll-padding-bottom: calc(var(--nav-h) + var(--savebar-h) + 16px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { html:has(.ag-savebar) { scroll-padding-bottom: 90px; } }

/* ===== Issue #219: day chips, past sessions, "Rate" on Now, the tab bar with icons and "More", Info, install tip ===== */
/* U2: the sticky day bar (chips + "Jump to now"); only the open day is shown, the others carry data-dayoff */
.lobby-daybar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 8px; margin: 0 -4px 12px; padding: 8px 4px;
                background: var(--bg); border-bottom: 1px solid var(--line); }
.lobby-days { display: flex; gap: 6px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.lobby-days a { flex: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text);
                text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.lobby-days a.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.lobby-jumpnow { flex: none; white-space: nowrap; }
.lobby-days a:focus-visible, .lobby-jumpnow:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (pointer: coarse) { .lobby-days a { min-height: 44px; display: inline-flex; align-items: center; } }
[data-dayoff] { display: none; }
html:has(.lobby-daybar) { scroll-padding-top: 76px; }
/* U2: an ended session or service session – a tag and a dashed border, never faded (D3 rule of #214) */
.lobby-session.past { border-style: dashed; background: transparent; }
.lobby-pasttag { display: inline-block; margin-top: 2px; font-weight: 600; }
.lobby-session .time .lobby-pasttag, .lobby-break .time .lobby-pasttag { display: block; width: max-content; }
/* U3: "Rate" under a session on Now, "Just finished" */
.lobby-session .lobby-rate { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
.lobby-justdone { border-left: 6px solid var(--accent); }
/* U4: tabs with an icon above a short label; on phones News, Speakers and Sponsors under "More" when there are more than five tabs */
.lobby-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1.2; }
.lobby-icon { flex: none; width: 22px; height: 22px; }
.lobby-nav .lbl { font-size: .78rem; }
.lobby-nav .lbl-long { display: none; }
.lobby-nav a.tab-overflow { display: none; }
.lobby-dot { position: absolute; top: 4px; right: calc(50% - 18px); width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--card); }
.lobby-dot[hidden] { display: none; }
.lobby-morelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lobby-morelist a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
                    background: var(--soft); text-decoration: none; font-weight: 600; color: inherit; }
.lobby-morelist .lobby-dot { position: static; }
.lobby-morelist a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (min-width: 760px) {
    .lobby-nav a { flex-direction: row; gap: 6px; }
    .lobby-nav .lbl { font-size: .9rem; }
    .lobby-nav .lbl-long { display: inline; }
    .lobby-nav .lbl-short { display: none; }
    .lobby-nav a.tab-overflow { display: flex; }
    .lobby-nav a.tab-more { display: none; }
    .lobby-icon { width: 18px; height: 18px; }
    .lobby-dot { top: 6px; right: 6px; }
}
/* U14: Info – "Copy" next to the Wi-Fi password, "For speakers" as one line at the bottom */
.lobby-wifi dd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
/* Issue #231 U15: a long network name or password wraps instead of pushing the page sideways at 375 px */
.lobby-wifi code { min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-all; }
.lobby-copy[hidden] { display: none; }
.lobby-speakersline { margin: 16px 0 0; }
/* U15: install tip with "Install" (where the browser offers it) and "Hide tip" */
.lobby-install { margin: 12px 0 0; }
.lobby-install[hidden], .lobby-install [hidden] { display: none; }
.lobby-install p { margin: 0 0 6px; }
.lobby-install-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== Issue #227: search and filters of the schedule ===== */
/* the search field always visible; the filters behind "Filter (n)" (details, works without script); "Clear filters" while anything is set */
.lobby-search { margin: 0 0 12px; }
.lobby-searchrow { display: flex; gap: 8px; }
.lobby-searchrow input[type=search] { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--field-line); border-radius: 10px;
                                      background: var(--card); color: var(--text); font: inherit; }
.lobby-searchrow .btn { flex: none; }
.lobby-filterbar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 8px 0 0; }
.lobby-filters { flex: 1 1 100%; }
.lobby-filters > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; list-style: none; }
.lobby-filters > summary::-webkit-details-marker { display: none; }
/* issue #231 U14: the arrow has empty alternative text, so screen readers do not read it out (first line = fallback for older browsers) */
.lobby-filters > summary::after { content: "\25BE"; content: "\25BE" / ""; margin-left: 6px; }
.lobby-filters[open] > summary::after { content: "\25B4"; content: "\25B4" / ""; }
.lobby-filterpanel { margin: 8px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); display: grid; gap: 12px; }
.lobby-fgroup { margin: 0; padding: 0; border: 0; min-width: 0; }
.lobby-fgroup legend { padding: 0; margin: 0 0 6px; font-weight: 700; }
.lobby-fvalues { display: flex; flex-wrap: wrap; gap: 6px; }
.lobby-fvalues.scroll { max-height: 14rem; overflow-y: auto; padding: 2px; }
.lobby-fvalues label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px;
                       background: var(--soft); cursor: pointer; }
.lobby-fvalues label:has(> input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.lobby-fvalues label:has(> input:focus-visible), .lobby-filters > summary:focus-visible, .lobby-searchrow input:focus-visible, .lobby-clear:focus-visible {
    outline: 2px solid var(--focus); outline-offset: 2px; }
.lobby-clear { flex: none; min-height: 44px; display: inline-flex; align-items: center; }
.lobby-filterstatus { margin: 0 0 12px; font-weight: 600; }
.lobby-nomatch { margin: 0; }
/* ===== Issue #230 ===== */
/* X1: the rest of "Just finished" behind "Rate other sessions (n)" */
.lobby-justmore { margin: 10px 0 0; }
.lobby-justmore[hidden] { display: none; }
.lobby-justmore > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.lobby-justmore > .lobby-sessions { margin-top: 8px; }
/* X2: with filters a chip names its matching sessions; a day without one is dashed */
.lobby-daycount { font-variant-numeric: tabular-nums; }
.lobby-days a.nohits { border-style: dashed; background: transparent; color: var(--muted); }
/* X3: removable chips of the chosen filters under the search row; time slots grouped by day */
.lobby-chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lobby-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border: 1px solid var(--accent); border-radius: 999px;
              background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .9rem; text-decoration: none; }
.lobby-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (pointer: coarse) { .lobby-chip { min-height: 44px; } }
.lobby-fslots { display: grid; gap: 10px; }
.lobby-fslots.scroll { max-height: 18rem; overflow-y: auto; padding: 2px; }
.lobby-fday { margin: 0; padding: 0; border: 0; min-width: 0; }
.lobby-fday legend { padding: 0; margin: 0 0 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }
/* X5: phones under 480 px - less padding, a narrower time column, the room under the title */
@media (max-width: 479.98px) {
    .lobby .card { padding: 14px 12px; }
    .lobby-session { grid-template-columns: 3.4em 1fr auto; grid-template-areas: "time title star" "time room star" "time speakers star"; gap: 0 8px; padding: 8px 10px; }
    .lobby-break { grid-template-columns: 3.4em 1fr; padding: 6px 10px; }
    /* Issue #282 / #283: without a time the card drops the time column */
    .lobby-sessions.notime .lobby-session, .lobby-session.notime { grid-template-columns: 1fr auto; grid-template-areas: "title star" "room star" "speakers star"; }
    .lobby-break.notime { grid-template-columns: 1fr; grid-template-areas: "title" "room"; }
    /* Issue #312: a time range or a day gets its own row above the title (day · range · "Ended" side by side, wrapping only between them) */
    .lobby-sessions.widetime .lobby-session, .lobby-sessions.withday .lobby-session { grid-template-columns: 1fr auto; grid-template-areas: "time star" "title star" "room star" "speakers star"; }
    .lobby-sessions.widetime .lobby-session .time .day, .lobby-sessions.widetime .lobby-session .time .hm,
    .lobby-sessions.widetime .lobby-session .time .lobby-pasttag { display: inline-block; margin: 0 .5em 2px 0; }
}
@media (min-width: 760px) {
    .lobby-filters { flex: 0 1 auto; }
    .lobby-filters[open] { flex-basis: 100%; }
    .lobby-fvalues.scroll { max-height: 18rem; }
}
/* Issue #231 U10/U11: headings and slots that lobby.js focuses (tabindex -1) show the ring only for keyboard focus */
.lobby [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.lobby h2[tabindex="-1"]:focus-visible, .lobby h3[tabindex="-1"]:focus-visible, .lobby-slotgroup[tabindex="-1"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
