/* Scroll affordance: a moving ink thumb with no painted track or arrow chrome. */
.scroll-frame { min-width: 0; }
.scroll-frame > .scroll-rail { scrollbar-width: none !important; }
.scroll-frame > .scroll-rail::-webkit-scrollbar { display: none; width: 0; height: 0; }
.scroll-frame > .scroll-rail:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.scroll-indicator { display: none; width: 100%; height: 3px; margin-top: 3px; pointer-events: none; }
.scroll-frame.has-scroll > .scroll-indicator { display: block; }
.scroll-indicator-thumb { display: block; height: 3px; border-radius: 2px; background: var(--ink); will-change: transform; }

/* The date counts sit in the tickets; their indicator gets separate space below. */
.date-strip { min-height: 90px; }
.day-filter-frame { min-width: 0; }
.day-filter-frame > .day-filter { height: 76px; }
.day-filter-frame .date-ticket { height: 76px; min-height: 76px; }
.day-filter-frame .date-ticket[aria-pressed="true"] { box-shadow: none; }
.day-filter-frame .scroll-indicator { margin-top: 3px; }

.time-filter-frame { width: min(100%, 410px); }
.time-filter-frame > .time-filter { width: 100%; }
.guide-examples-frame { margin: 10px 0 15px; }
.guide-examples-frame > .guide-examples { margin: 0; }
.radar-list-frame { min-width: 0; }
.radar-list-frame > .radar-list { width: 100%; }
.radar-list-frame .scroll-indicator { margin-top: 7px; }
.admin-tabs-frame .scroll-indicator { margin-top: 5px; }
.admin-tabs-frame > .admin-tabs { border-bottom: 0; padding-bottom: 0; }

/* Vertical scroll areas use the same ink thumb, without a light gutter. */
:is(html, body, .modal-card, .chat-messages, .event-chat-messages, .header-inbox-list,
    .pyap-crop-dialog, .pyap-map-card, #event-map.pyap-map-fallback,
    #event-map .leaflet-popup-content) {
  scrollbar-width: thin;
  scrollbar-color: var(--ink) transparent;
}
:is(html, body, .modal-card, .chat-messages, .event-chat-messages, .header-inbox-list,
    .pyap-crop-dialog, .pyap-map-card, #event-map.pyap-map-fallback,
    #event-map .leaflet-popup-content)::-webkit-scrollbar { width: 4px; height: 4px; }
:is(html, body, .modal-card, .chat-messages, .event-chat-messages, .header-inbox-list,
    .pyap-crop-dialog, .pyap-map-card, #event-map.pyap-map-fallback,
    #event-map .leaflet-popup-content)::-webkit-scrollbar-track { background: transparent; }
:is(html, body, .modal-card, .chat-messages, .event-chat-messages, .header-inbox-list,
    .pyap-crop-dialog, .pyap-map-card, #event-map.pyap-map-fallback,
    #event-map .leaflet-popup-content)::-webkit-scrollbar-thumb { border-radius: 2px; background: var(--ink); }
:is(html, body, .modal-card, .chat-messages, .event-chat-messages, .header-inbox-list,
    .pyap-crop-dialog, .pyap-map-card, #event-map.pyap-map-fallback,
    #event-map .leaflet-popup-content)::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
:is(html, body, .modal-card, .chat-messages, .event-chat-messages, .header-inbox-list,
    .pyap-crop-dialog, .pyap-map-card, #event-map.pyap-map-fallback,
    #event-map .leaflet-popup-content)::-webkit-scrollbar-corner { background: transparent; }

@media (max-width: 700px) {
  .date-strip { min-height: 90px; overflow: visible; }
  .guide-examples-frame > .guide-examples { padding-bottom: 0; }
}
@media (forced-colors: active) {
  .scroll-indicator-thumb { background: CanvasText; forced-color-adjust: none; }
}
