/* Shared schedule and room accents; scoped to the programme and the optional app. */
:is(.oebai-programme,.oca-app) [data-room-tone="0"] { --op-room-accent:#174c35; --op-room-tint:#f1f5ef; }
:is(.oebai-programme,.oca-app) [data-room-tone="1"] { --op-room-accent:#788238; --op-room-tint:#f5f6ed; }
:is(.oebai-programme,.oca-app) [data-room-tone="2"] { --op-room-accent:#5b8475; --op-room-tint:#eff5f2; }
:is(.oebai-programme,.oca-app) [data-room-tone="3"] { --op-room-accent:#9a884e; --op-room-tint:#f7f5ed; }
:is(.oebai-programme,.oca-app) [data-room-tone="4"] { --op-room-accent:#456c58; --op-room-tint:#f1f5f1; }
:is(.oebai-programme,.oca-app) [data-room-tone="5"] { --op-room-accent:#697e73; --op-room-tint:#f3f5f3; }
.op-schedule { --op-room-accent:#174c35; --op-room-tint:#f1f5ef; margin:18px 0 32px; }
.op-schedule-sticky { position:sticky; top:var(--op-sticky-top,0px); z-index:8; background:#fff; border:1px solid #dce3db; border-bottom:0; border-radius:8px 8px 0 0; }
.op-schedule-head-track { overflow:hidden; border-radius:8px 8px 0 0; }
.op-schedule-head { display:grid; }
.op-schedule-room-head { background:var(--op-room-tint); color:var(--op-room-accent); border-top:3px solid var(--op-room-accent); border-left:1px solid #dce3db; padding:12px 11px; font-size:13px; font-weight:700; line-height:1.4; overflow-wrap:anywhere; }
.op-schedule-axis-head { font-size:10px; padding:16px 6px; color:#637168; }
.op-schedule-scroll { overflow-x:auto; border:1px solid #dce3db; padding-bottom:14px; background:#fff; }
.op-schedule-grid { display:grid; position:relative; margin-top:12px; margin-bottom:10px; }
.op-schedule-axis { position:relative; background:#fff; z-index:1; }
.op-schedule-tick { position:absolute; left:6px; font:11px/1 Arial,sans-serif; font-variant-numeric:tabular-nums; color:#637168; transform:translateY(-50%); }
.op-schedule-column { position:relative; border-left:1px solid #dce3db; background:repeating-linear-gradient(to bottom,#e7ebe3 0,#e7ebe3 1px,transparent 1px,transparent 120px); }
.op-schedule-item { position:absolute; box-sizing:border-box; border:1px solid #dce3db; border-left:3px solid var(--op-room-accent); border-radius:6px; background:var(--op-room-tint); overflow:hidden; }
.op-schedule-open { display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; width:100%; height:100%; padding:7px 35px 7px 8px; border:0; background:transparent; color:#263a30; font:inherit; text-align:left; cursor:pointer; overflow:hidden; }
.op-schedule-time { display:block; font-size:10px; line-height:1.4; font-weight:600; }
.op-schedule-title { display:block; font-size:12px; line-height:1.35; margin:4px 0; font-weight:700; overflow-wrap:anywhere; }
.op-schedule-person,.op-schedule-note { display:block; font-size:10px; line-height:1.35; margin-top:4px; color:#58665c; }
.op-schedule-short .op-schedule-open { padding:2px 31px 2px 5px; }
.op-schedule-short .op-schedule-time { display:none; }
.op-schedule-short .op-schedule-title { margin:0; font-size:10px; line-height:1.3; }
.op-schedule-short .op-schedule-person,.op-schedule-short .op-schedule-note { display:none; }
.op-schedule-break { --op-room-accent:#9ca49b; background:#f6f7f4; border-color:#e0e4dc; }
.op-schedule-highlight { box-shadow:inset 0 3px 0 #9dc201; }
.op-quick-save { display:flex; align-items:center; justify-content:center; position:absolute; right:5px; top:5px; width:31px; height:31px; padding:0; color:#52675a; background:#fff; border:1px solid #cfdbce; border-radius:6px; cursor:pointer; z-index:2; text-decoration:none; }
.op-quick-save::after { content:""; position:absolute; inset:-6px; }
.op-quick-save svg { width:17px; height:17px; pointer-events:none; }
.op-quick-save[aria-pressed="true"] { background:#e9f0df; color:#11683b; border-color:#79996a; }
.op-quick-save[aria-pressed="true"] svg { fill:currentColor; }
.op-quick-save:disabled { opacity:.6; cursor:wait; }
.op-schedule-item .op-quick-save { width:27px; height:27px; right:3px; top:3px; }
.op-schedule-short .op-quick-save { width:20px; height:20px; top:0; }
.op-schedule-short .op-quick-save svg { width:13px; height:13px; }
.op-compact { display:flex; position:relative; margin:9px 0; border:1px solid #dce3db; border-left:3px solid var(--op-room-accent,#174c35); background:#fff; border-radius:8px; }
.op-compact-open { flex:1; padding:13px 49px 13px 15px; color:#263a30; border:0; border-radius:8px; background:transparent; text-align:left; font:inherit; cursor:pointer; }
.op-compact-time { display:block; font-size:11px; color:#637168; }
.op-compact-title { display:block; font-size:15px; line-height:1.4; margin:4px 0; }
.op-compact-room { display:inline-block; font-size:11px; color:var(--op-room-accent,#174c35); background:var(--op-room-tint,#f1f5ef); border-radius:4px; padding:3px 6px; }
.op-compact-person { display:block; font-size:12px; color:#637168; margin-top:5px; }
.op-compact .op-quick-save { top:12px; right:12px; }
.op-conflict-badge { display:inline-block; margin-top:6px; font-size:10px; font-weight:600; color:#786025; background:#fcf3d9; border:1px solid #eadba7; padding:3px 6px; border-radius:4px; }
.op-schedule-help { font-size:11px; line-height:1.5; color:#637168; margin:10px 0; }
.op-unscheduled { margin-top:22px; }
.op-unscheduled h4 { font-size:15px; color:#174c35; }
:is(.op-schedule,.op-compact) button:focus-visible { outline:3px solid #9dc201; outline-offset:2px; }
@media print { .op-schedule-sticky { position:static; } .op-quick-save { display:none!important; } }
/* Availability icons reflect the already-authorised server payload only. */
.op-shared-resources { display:inline-flex; gap:4px; margin-inline-start:6px; vertical-align:middle; }
.op-shared-resources > span { display:inline-flex; }
.op-shared-resources svg { width:13px; height:13px; }
.op-shared-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

/* 1.6.1: deliberately outrank .site-content button and its hover rule.
   These are whole-card open controls, not the template's green action buttons. */
:is(.oebai-programme,.oca-app) .op-schedule button.op-schedule-open,
:is(.oebai-programme,.oca-app) .op-compact button.op-compact-open {
  background:transparent; background-image:none; color:#263a30; border:0;
  box-shadow:none; text-transform:none; letter-spacing:normal; min-height:0;
  font:inherit; text-align:left; cursor:pointer;
}
:is(.oebai-programme,.oca-app) .op-schedule button.op-schedule-open { padding:7px 35px 7px 8px; border-radius:0; }
:is(.oebai-programme,.oca-app) .op-schedule-short button.op-schedule-open { padding:2px 31px 2px 5px; }
:is(.oebai-programme,.oca-app) .op-compact button.op-compact-open { padding:13px 49px 13px 15px; border-radius:8px; }
:is(.oebai-programme,.oca-app) .op-schedule button.op-schedule-open:hover,
:is(.oebai-programme,.oca-app) .op-schedule button.op-schedule-open:focus-visible,
:is(.oebai-programme,.oca-app) .op-compact button.op-compact-open:hover,
:is(.oebai-programme,.oca-app) .op-compact button.op-compact-open:focus-visible { background:rgb(23 76 53 / .035); color:#263a30; }
:is(.oebai-programme,.oca-app) button.op-quick-save {
  padding:0; min-height:0; border:1px solid #cfdbce; border-radius:6px;
  background:#fff; color:#52675a; box-shadow:none;
}
:is(.oebai-programme,.oca-app) button.op-quick-save[aria-pressed="true"] { background:#e9f0df; color:#11683b; border-color:#79996a; }
:is(.oebai-programme,.oca-app) button.op-quick-save:hover { background:#edf3e7; color:#174c35; }
:is(.oebai-programme,.oca-app) .op-outside-grid { margin-top:26px; }
:is(.oebai-programme,.oca-app) .op-outside-heading { margin:0 0 12px; padding:12px 14px; border-top:3px solid var(--op-room-accent,#174c35); background:var(--op-room-tint,#f1f5ef); color:#263a30; font-size:16px; }
.op-compact-evening { background:#faf8ed; border-left-color:#9a884e; }
.op-compact-break { background:#f6f7f4; border-left-color:#9ca49b; }
.op-compact-registration { display:block; margin-top:5px; color:#58665c; font-size:11px; }

/* A sticky room row ends with its time grid, before the separate programme areas. */
.op-schedule-timed { position:relative; }
:is(.oebai-programme,.oca-app) .op-compact button.op-compact-open { display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; }

/* 1.6.2: the same highlight treatment as the original list: pale lime, left accent,
   dark label. Room accents remain on the hall headings and ordinary cards. */
:is(.oebai-programme,.oca-app) .op-schedule-item.op-schedule-highlight,
:is(.oebai-programme,.oca-app) .op-compact.op-compact-highlight {
  background:#f8f9e6; border-left:4px solid #9dc201; box-shadow:none;
}
.op-shared-highlight-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:5px 0 2px; }
.op-shared-kind { font-size:9px; line-height:1.4; letter-spacing:.06em; text-transform:uppercase; color:#4e6555; }
.op-shared-highlight-badge { display:inline-block; padding:3px 7px; background:#174c35; color:#fff; border-radius:3px; font-size:9px; font-weight:500; line-height:1.3; text-transform:uppercase; letter-spacing:.04em; }
/* Keep true block duration. Very short slots retain colour/stripe and their full
   editorial highlight label in the accessible button name and tooltip. */
.op-schedule-short .op-shared-highlight-meta { display:none; }
