/* 1. One compact, non-sticky toolbar. Website and app remain independently scoped. */
.oebai-programme .op-toolbar { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:22px 0 14px; padding:16px; border:1px solid #dce3db; border-radius:8px; background:#f7f8f4; }
.oebai-programme .op-toolbar .op-filter-field { flex:1 1 145px; min-width:0; margin:0; display:grid; gap:5px; font-size:12px; }
.oebai-programme .op-toolbar .op-filter-field:first-child { flex-basis:205px; }
.oebai-programme .op-toolbar select,.oebai-programme .op-toolbar input { width:100%; min-width:0; min-height:42px; padding:8px 10px; border:1px solid #c6d3c2; border-radius:5px; background:#fff; color:#273d30; font:inherit; }
.oebai-programme .op-view-choice { display:grid; gap:5px; font-size:12px; }
.oebai-programme .op-view-choice > div { display:flex; }
.oebai-programme .op-view-choice button,.oebai-programme .op-my-programme { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:42px; padding:8px 12px; border:1px solid #bcccba; border-radius:5px; background:#fff; color:#174c35; font:inherit; font-size:13px; cursor:pointer; text-decoration:none; }
.oebai-programme .op-view-choice button:first-child { border-radius:5px 0 0 5px; }
.oebai-programme .op-view-choice button:last-child { border-radius:0 5px 5px 0; border-left:0; }
.oebai-programme .op-view-choice button[aria-pressed=true],.oebai-programme .op-my-programme[aria-pressed=true] { background:#174c35; border-color:#174c35; color:white; }
.oebai-programme [data-saved-count] { font-size:10px; min-width:18px; padding:2px 4px; border:1px solid currentColor; border-radius:12px; }
.oebai-programme:not(.op-enhanced) .op-toolbar,.oebai-programme:not(.op-enhanced) .op-overview-save { display:none; }
/* 2. Room headers: overflow on the room container must stay visible for sticky. */
.oebai-programme .op-room { overflow:visible; }
.oebai-programme .op-room-head { position:sticky; top:var(--op-sticky-top,0px); z-index:7; color:var(--op-room-accent,#174c35); background:var(--op-room-tint,#f1f5ef); border-top:3px solid var(--op-room-accent,#174c35); padding:13px 18px; }
.oebai-programme .op-room-head h4 { font-size:17px; }
.oebai-programme .op-item { position:relative; }
.oebai-programme .op-item:has(> .op-overview-save) > details > summary { padding-right:48px; }
.oebai-programme .op-overview-save { top:15px; right:10px; }
.oebai-programme .op-is-saved { box-shadow:inset 3px 0 0 #9dc201; }
.oebai-programme .op-evening .op-quick-save { color:#174c35; background:#f5f7ec; }
.oebai-programme .op-generated-day { margin:24px 0; }
.oebai-programme .op-generated-day > h3 { font-size:20px; margin-bottom:18px; }
/* 3. The original item is moved into this dialog, preserving existing resource/edit handlers. */
.oebai-programme .op-item-dialog { width:min(820px,calc(100% - 28px)); max-height:88dvh; border:1px solid #cbd6c7; border-radius:10px; padding:0; color:#273d30; background:#fff; }
.oebai-programme .op-item-dialog::backdrop { background:rgb(19 42 28 / .5); }
.oebai-programme .op-item-dialog-bar { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 18px; background:#f1f5ed; }
.oebai-programme .op-item-dialog-bar button { min-height:40px; border:1px solid #bdccba; border-radius:5px; padding:7px 12px; color:#174c35; background:#fff; cursor:pointer; }
.oebai-programme .op-item-dialog .op-item { border:0; }
.oebai-programme .op-item-dialog .op-edit { margin:10px 20px 20px; display:inline-block; }
.oebai-programme .op-toolbar button:focus-visible,.oebai-programme .op-toolbar select:focus-visible { outline:3px solid #9dc201; outline-offset:2px; }
@media(max-width:600px) { .oebai-programme .op-toolbar { padding:12px; gap:10px; } .oebai-programme .op-toolbar .op-filter-field { flex:1 1 calc(50% - 10px); } .oebai-programme .op-toolbar .op-filter-field:first-child { flex:1 0 100%; } .oebai-programme .op-view-choice,.oebai-programme .op-my-programme { flex:1 1 calc(50% - 10px); } .oebai-programme .op-view-choice button { flex:1; } }
@media print { .oebai-programme .op-toolbar,.oebai-programme .op-generated,.oebai-programme .op-item-dialog { display:none!important; } .oebai-programme .op-room-head { position:static; } }
.oebai-programme .op-generated-streams { display:flex; flex-wrap:wrap; gap:10px; margin:12px 0; }
.oebai-programme .op-ui-status { font-size:12px; color:#174c35; }
.oebai-programme .op-ui-status:empty { display:none; }

/* Rooms deliberately displayed below the shared hall grid. */
.oebai-programme .op-separate-rooms > .op-room { margin-top:26px; }
.oebai-programme .op-rooms:empty,.oebai-programme .op-separate-rooms:empty { display:none; }

/* 1.6.3: highlight only the talk's title area inside the programme detail dialog.
   The original article is moved into the dialog; its list highlight must not
   colour biographies, abstract, resources, or the remainder of the popup. */
.oebai-programme .op-item-dialog article.op-item.op-highlight {
  background:#fff; border-left:0; box-shadow:none;
}
.oebai-programme .op-item-dialog article.op-highlight > details > summary {
  background:#f8f9e6; border-left:4px solid var(--op-lime,#9dc201);
}
.oebai-programme .op-item-dialog article.op-highlight > details > .op-details {
  background:#fff; padding-top:20px;
}
.oebai-programme .op-item-dialog article.op-highlight .op-abstract {
  background:transparent; border-left:0; padding:0;
}
