.favorites-filter{
  appearance:none;border:1px solid var(--line);border-radius:20px;
  background:var(--bg);color:var(--ink);padding:8px 12px;
  font:600 12px/1.4 Inter,system-ui,sans-serif;max-width:100%;cursor:pointer
}
.favorites-filter[aria-pressed="true"]{background:var(--accent);color:var(--bg)}
/* Material UI notifications / clock controls with full 40px touch targets. */
.favorites-icon-button{
  width:40px;height:40px;min-width:40px;display:inline-flex;align-items:center;
  justify-content:center;appearance:none;background:var(--bg);border:1px solid var(--line);
  border-radius:50%;padding:8px;color:var(--ink);cursor:pointer;touch-action:manipulation
}
.favorites-icon-button svg{display:block;width:22px;height:22px;fill:currentColor;pointer-events:none}
.favorites-icon-button.is-active{color:var(--accent)}
.favorites-icon-button.is-pending{opacity:.55}
.favorites-icon-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.favorites-icon-button:disabled{opacity:.45;cursor:default}
.favorites-icon-button[hidden],.favorites-timing[hidden],.favorites-clock-menu[hidden]{display:none!important}
.favorites-timing{position:relative;display:inline-flex;align-items:center;flex:none}
.favorites-clock-menu{
  position:absolute;top:calc(100% + 9px);inset-inline-end:0;
  z-index:110;border:1px solid var(--line);background:var(--bg);color:var(--ink);
  border-radius:12px;padding:8px;min-width:178px;
  box-shadow:0 8px 25px rgb(0 0 0 / .2);
  display:flex;flex-direction:column;gap:2px
}
.favorites-clock-option{
  display:flex;align-items:center;gap:10px;padding:9px 8px;
  font:500 13px/1.3 Inter,system-ui,sans-serif;white-space:nowrap;
  cursor:pointer;border-radius:6px
}
.favorites-clock-option:hover{background:var(--surface,rgba(128,128,128,.12))}
.favorites-clock-option input{width:18px;height:18px;margin:0;accent-color:var(--accent);cursor:pointer;flex:none}
.favorites-clock-option span{flex:1}
.favorites-status{flex:1 1 100%;min-width:0;margin:0;font-size:12px;
  color:var(--muted);text-align:end;overflow-wrap:anywhere}
.favorites-status[hidden]{display:none!important}
#event-toolbar{flex-wrap:wrap;gap:10px}
/* Bookmark is pinned flush to the card's top edge; no top radius or gap. */
.event.has-favorite-ribbon .event-meta{padding-inline-end:52px;flex-wrap:wrap}
.favorite-ribbon{
  appearance:none;border:0;border-radius:0;background:transparent;color:var(--accent);
  width:44px;height:48px;min-width:44px;min-height:44px;padding:0 6px 0;
  display:inline-flex;align-items:flex-start;justify-content:center;cursor:pointer;
  vertical-align:top;touch-action:manipulation
}
.favorite-ribbon svg{width:32px;height:48px;display:block;overflow:visible}
.favorite-ribbon-shape,.favorite-ribbon-star{stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;fill:none}
.favorite-ribbon-star{fill:none}
.favorite-ribbon.is-saved .favorite-ribbon-shape{fill:none}
.favorite-ribbon.is-saved .favorite-ribbon-star{fill:var(--accent);stroke:var(--accent)}
.favorite-ribbon:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.event.has-favorite-ribbon>.favorite-ribbon,
.event.has-favorite-ribbon .favorite-ribbon{
  position:absolute;top:0;inset-inline-end:8px;z-index:3
}
@media(max-width:520px){.event.has-favorite-ribbon .event-meta{padding-inline-end:48px}}

/* Mobile: the bookmark hangs from the top of the content panel, below the poster. */
@media(max-width:767px){
  .event.has-favorite-ribbon .event-content{position:relative}
  .event.has-favorite-ribbon .event-content>.favorite-ribbon{
    top:0;inset-inline-end:8px
  }
  .event.has-favorite-ribbon .event-meta{padding-inline-end:52px}
}

/* Mobile stacked cards: anchor ribbon to WHITE text panel, never poster. */
@media (max-width:720px){
  .event.has-favorite-ribbon{position:relative}
  .event.has-favorite-ribbon>.event-content{position:relative;isolation:isolate}
  .event.has-favorite-ribbon>.event-content>.favorite-ribbon{
    position:absolute!important;top:0!important;right:8px!important;left:auto!important;
    inset-inline-end:8px!important;transform:none!important;margin:0!important;z-index:4
  }
  .event.has-favorite-ribbon>.event-image{z-index:0}
  .event.has-favorite-ribbon>.event-content>.event-meta{padding-inline-end:52px}
}

/* Muse P1 2026-11-16: smaller gray open-top ribbon; star centered on time row. */
.favorite-ribbon{color:var(--muted);width:44px;height:44px;min-width:44px;min-height:44px;padding:0 8px;transition:color .15s ease}
.favorite-ribbon svg{width:28px;height:44px}
.favorite-ribbon-shape,.favorite-ribbon-star{stroke-width:1.45}
.favorite-ribbon:hover,.favorite-ribbon:active{color:var(--accent)}
.favorite-ribbon.is-saved{color:var(--muted)}
.favorite-ribbon.is-saved:hover,.favorite-ribbon.is-saved:active{color:var(--accent)}
.favorite-ribbon.is-saved .favorite-ribbon-shape{stroke:currentColor;fill:none}
.favorite-ribbon.is-saved .favorite-ribbon-star{stroke:var(--accent);fill:var(--accent)}
/* Event content padding places time at ~27px; translated star center at ~28px. */

/* Owner 15:xx: extend tail only; star stays at the same SVG coordinates. */
.favorite-ribbon svg{width:28px;height:53px;overflow:visible}
.favorite-ribbon{overflow:visible}

/* Owner refinement: thinner contours, slightly smaller star, unchanged center. */
.favorite-ribbon-shape,.favorite-ribbon-star{stroke-width:1.05;stroke-linecap:round;stroke-linejoin:round}

/* Match calendar/language header icon stroke: 1.6 SVG units at 18/24 = 1.2 CSS px.
   Bookmark renders 28/32, so use 1.3714 SVG units for identical visible weight. */
.favorite-ribbon{color:var(--ink)}
.favorite-ribbon-shape,.favorite-ribbon-star{stroke-width:1.3714}
.favorite-ribbon:hover,.favorite-ribbon:active{color:var(--accent)}
.favorite-ribbon.is-saved{color:var(--ink)}
.favorite-ribbon.is-saved:hover,.favorite-ribbon.is-saved:active{color:var(--accent)}

/* Match header calendar/language BUTTON borders (not their icon strokes).
   Header .control border is 1 CSS px solid var(--line) in both themes.
   Ribbon SVG scales 28/32 horizontally, hence 32/28 SVG stroke units. */
.favorite-ribbon-shape{stroke:var(--line)!important;stroke-width:1.142857}
.favorite-ribbon:hover .favorite-ribbon-shape,
.favorite-ribbon:active .favorite-ribbon-shape,
.favorite-ribbon.is-saved .favorite-ribbon-shape,
.favorite-ribbon.is-saved:hover .favorite-ribbon-shape,
.favorite-ribbon.is-saved:active .favorite-ribbon-shape{stroke:var(--line)!important}

/* Wider ribbon; its outline begins at the image/content-panel top edge. */
.favorite-ribbon svg{position:relative;top:-1px}
.event.has-favorite-ribbon>.favorite-ribbon,
.event.has-favorite-ribbon .event-content>.favorite-ribbon{top:0}
@media(max-width:720px){
  .event.has-favorite-ribbon>.event-content>.favorite-ribbon{top:0!important}
}

/* Bring opening time closer to the bookmark, retaining a clear touch/visual gap.
   Applies to desktop and mobile content panels; no ribbon/star movement. */
.event.has-favorite-ribbon .event-meta,
.event.has-favorite-ribbon .event-content>.event-meta{padding-inline-end:32px}
@media(max-width:720px){
  .event.has-favorite-ribbon .event-content>.event-meta{padding-inline-end:32px}
}

/* Event details: the ribbon is positioned against .details itself, whose border-top
   IS the horizontal divider. No viewport-dependent offsets or clipping. */
main.shell[data-event-id] .details{position:relative}
main.shell[data-event-id] .details>.favorite-ribbon-event-detail{
  position:absolute;top:-1px;inset-inline-end:0;z-index:4;margin:0;
  transform:none;min-height:53px;height:53px;overflow:visible;clip-path:none
}
main.shell[data-event-id] .details>.favorite-ribbon-event-detail svg{
  width:28px;height:53px;top:0;overflow:visible
}

/* Desktop-only optical alignment: one additional pixel above the shared border anchor. */
@media (min-width:1024px){main.shell[data-event-id] .details>.favorite-ribbon-event-detail{top:-2px}}

/* Shared native Web Share button; list cards replace the timezone footer text. */
.favorite-share-button{
 appearance:none;display:inline-flex;align-items:center;justify-content:center;
 border:0;border-radius:50%;background:transparent;color:var(--muted);
 width:44px;height:42px;min-width:44px;min-height:42px;padding:8px;
 cursor:pointer;touch-action:manipulation;z-index:4
}
.favorite-share-button svg{display:block;width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8}
.favorite-share-button:hover,.favorite-share-button:active{color:var(--accent)}
.favorite-share-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.event.has-favorite-ribbon .event-content .event-foot>.favorite-share-button{
 position:static;flex:none;margin-inline-start:auto;
 width:34px;height:34px;min-width:34px;min-height:34px;padding:5px
}
.event.has-favorite-ribbon .event-content .event-foot>.favorite-share-button svg{
 width:21px;height:21px
}
/* Shared event page and popup: gallery and Share share a flexible line.
   Long gallery names wrap naturally and move Share onto a new line above the
   poster; the ribbon bookmark remains at the top of the details panel. */
main.shell[data-event-id] .event-venue dd.event-venue-inline{
 display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px;min-width:0
}
main.shell[data-event-id] .event-venue .event-venue-name{
 flex:0 0 auto;max-width:100%;overflow-wrap:anywhere
}
main.shell[data-event-id] .event-venue .event-share-row{
 display:flex;align-items:center;justify-content:flex-end;
 flex:0 0 44px;width:44px;min-width:44px;min-height:44px;
 margin:0;margin-inline-start:auto;padding:0
}
main.shell[data-event-id] .event-venue .event-share-row>.favorite-share-button{
 position:static!important;inset:auto!important;
 flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;
 margin:0;padding:10px;z-index:2
}
main.shell[data-event-id] .details .event-date-row{padding-inline-end:46px}
/* Week only: bookmark rises from each event's BOTTOM divider, not from
   the metadata. Reserve a clean action strip so long addresses, route pills,
   full-width editorial copy and RTL cannot overlap the controls. */
.week-event.favorite-week-bottom-actions,
.agenda-saturday-event.favorite-week-bottom-actions{
 position:relative!important;
 /* Align Route with the bookmark/share row, rather than leaving a deep gap
    between the button and the horizontal separator. */
 padding-bottom:10px!important;
 margin-bottom:58px!important
}
/* The legacy authored version sometimes has no outer .week-event wrapper. */
.agenda-meta-with-pin.favorite-week-bottom-actions{
 position:relative!important;
 padding-bottom:10px!important;
 margin-bottom:58px!important;
 border-bottom:1px solid var(--line)!important
}
/* Keep Route in its original event for map-focus and editorial handling.
   Its bottom margin is now part of the same action strip as bookmark/Share. */
.muse-native-body .week-event.favorite-week-bottom-actions .agenda-meta-with-pin>.btnrow,
.muse-native-body .agenda-saturday-event.favorite-week-bottom-actions .agenda-meta-with-pin>.btnrow,
.muse-native-body .agenda-meta-with-pin.favorite-week-bottom-actions>.btnrow,
.week-event.favorite-week-bottom-actions>.btnrow,
.agenda-saturday-event.favorite-week-bottom-actions>.btnrow{
 margin-top:10px!important;
 margin-bottom:2px!important
}
/* Saturday has an ID-scoped route margin in week-layout.js; override that
   as well so its bottom row lines up identically to weekday cards. */
.muse-native-body #day-sat .agenda-saturday-events
 .agenda-saturday-event.favorite-week-bottom-actions .agenda-meta-with-pin>.btnrow{
 margin:10px 0 2px!important
}
/* On a narrow card the route takes the free left portion of the shared bottom
   row, rather than the narrow metadata column where it could touch Share. */
@media(max-width:720px){
 .muse-native-body .favorite-week-bottom-actions .agenda-meta-with-pin>.btnrow,
 .muse-native-body .agenda-meta-with-pin.favorite-week-bottom-actions>.btnrow{
  grid-column:1/-1!important;
  grid-row:2!important;
  justify-content:flex-start!important;
  max-width:calc(100% - 122px)!important
 }
 .muse-native-body .favorite-week-bottom-actions .agenda-meta-with-pin>.ev-fig,
 .muse-native-body .agenda-meta-with-pin.favorite-week-bottom-actions>.ev-fig{
  grid-row:1!important
 }
 .muse-native-body .favorite-week-bottom-actions .agenda-meta-with-pin>.btnrow>:is(a.btn.primary,button.btn.primary,[data-week-event-route]),
 .muse-native-body .agenda-meta-with-pin.favorite-week-bottom-actions>.btnrow>:is(a.btn.primary,button.btn.primary,[data-week-event-route]){
  left:0!important
 }
}

/* Owner-approved geometry: both controls sit in the physical bottom-right
   corner of EACH week card on desktop and mobile, including RTL pages.
   The inverted contour stays flush with the lower separator line. */
.favorite-week-bottom-actions>.favorite-ribbon-week{
 position:absolute!important;
 top:auto!important;bottom:0!important;
 /* Do not reset the physical right offset via inset-inline-end:auto. */
 left:auto!important;right:8px!important;
 width:44px!important;height:53px!important;min-height:53px!important;
 padding:0 8px!important;margin:0!important;z-index:4!important;
 align-items:flex-start!important;justify-content:center!important
}
.favorite-week-bottom-actions>.favorite-ribbon-week svg{
 position:relative!important;top:0!important;
 width:28px!important;height:53px!important;overflow:visible!important
}
/* The star itself is NOT rotated; only its ribbon contour is inverted in JS. */
.favorite-week-bottom-actions>.favorite-share-button{
 position:absolute!important;
 top:auto!important;bottom:5px!important;
 left:auto!important;right:58px!important;
 width:44px!important;height:44px!important;
 padding:10px!important;margin:0!important;z-index:4!important
}
.favorite-week-bottom-actions>.favorite-share-button svg{
 width:24px!important;height:24px!important
}

/* Owner 17 Nov: weekday, Saturday and authored week event footer contracts.
   Match the divider's start to the actual Route button on every viewport. */
.week-event.favorite-week-bottom-actions,
.agenda-saturday-event.favorite-week-bottom-actions,
.agenda-meta-with-pin.favorite-week-bottom-actions{
 border-bottom:0!important;
 --agenda-week-divider-left:0px
}
.favorite-week-bottom-actions::after{
 content:"";position:absolute;pointer-events:none;z-index:1;
 left:var(--agenda-week-divider-left,0px);right:0;bottom:0;
 height:1px;background:var(--line,#393433)
}
/* The controls remain absolutely anchored on the physical right,
   including RTL, as defined above; no conflicting logical inset is set. */
/* No trailing blank event margin when the LAST day directly precedes the
   site footer. Other events keep their 58px breathing room before headings. */
.muse-native-body article.day:last-of-type .week-event.favorite-week-bottom-actions:last-of-type,
.muse-native-body article.day:last-of-type .agenda-saturday-event.favorite-week-bottom-actions:last-of-type,
.muse-native-body article.day:last-of-type .agenda-meta-with-pin.favorite-week-bottom-actions:last-of-type{
 margin-bottom:0!important
}
.muse-native-body article.day:last-of-type{padding-bottom:0!important}

/* Keep the final horizontal rule, too. Spacing before the global footer
   is applied to #week-panel (outside this Shadow DOM), rather than removing
   the final separator or adding space between Route and the rule. */
.muse-native-body .favorite-week-bottom-actions.agenda-week-terminal-event::after{
 content:""!important;display:block!important
}
.muse-native-body .favorite-week-bottom-actions.agenda-week-terminal-event{
 border-bottom:0!important
}

/* One visual icon specification across Today, All Openings, Week and event
   details/popups. The ribbon BORDER remains a separate 1px decorative line.
   Glyphs share their neutral color, ~18px visible footprint and 1.7px strokes;
   saved stars alone retain the green fill that communicates their state. */
.favorite-ribbon,
.favorite-share-button{
 color:var(--ink)!important
}
.favorite-ribbon:hover,
.favorite-ribbon:active,
.favorite-share-button:hover,
.favorite-share-button:active{
 color:var(--accent)!important
}
.favorite-ribbon.is-saved .favorite-ribbon-star{
 stroke:var(--accent)!important;
 fill:var(--accent)!important
}
/* Share is drawn in a 24px viewBox: its 18-unit mark renders at 18px.
   The 32-unit ribbon SVG draws the star at 28px/32 × 0.94 × ~22 = ~18px. */
.favorite-share-button svg{
 width:24px!important;height:24px!important;
 stroke-width:1.7px!important;stroke:currentColor!important;
 flex:none!important
}
.favorite-ribbon-star,
.favorite-share-button svg :is(path,circle){
 stroke-width:1.7px!important;
 stroke-linecap:round!important;
 stroke-linejoin:round!important;
 vector-effect:non-scaling-stroke
}
/* The existing permanent-page Share button gets the same neutral appearance
   instead of its old green-on-green hover background. */
.event-share.favorite-share-button:hover,
.event-share.favorite-share-button:focus-visible{
 background:transparent!important;
 color:var(--accent)!important
}
/* In Week, star center ≈27.16px and Share center = 5+44/2 = 27px
   above the lower rule. This holds at every breakpoint. */
