.streams-date-filter { position: relative; flex: none; max-width: 310px; font-family: "Inter", "Segoe UI", Arial, sans-serif; }
.streams-date-filter__trigger { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px; border: 0; border-radius: 4px; background: transparent; color: #003c71; font-family: inherit; font-size: 14px; font-weight: 500; line-height: 20px; cursor: pointer; }
.streams-date-filter__trigger img { flex: none; width: 20px; height: 20px; }
.streams-date-filter__trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.streams-date-filter__trigger:hover, .streams-date-filter__trigger--selected { background: #e5eeff; }
.streams-date-filter__error { max-width: 300px; margin-top: 4px; color: #b42318; font-size: 12px; line-height: 1.4; }
.streams-calendar { position: absolute; z-index: 10; top: calc(100% + 20px); right: 0; display: grid; grid-template-columns: 158px minmax(0, 1fr); width: 585px; max-width: calc(100vw - 48px); overflow: hidden; border: 1px solid #fff; border-radius: 12px; background: #f5f5f5; box-shadow: 0 2px 8px #0000001a; color: #1f1f1f; }
.streams-calendar[hidden] { display: none; }
.streams-calendar__modes { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; margin: 0; padding: 16px; border: 0; border-right: 1px solid #e6e6e6; background: #f2f2f2; }
.streams-calendar__modes label { display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 8px; border-radius: 4px; color: #171717; font-size: 14px; font-weight: 500; line-height: 22px; letter-spacing: .14px; white-space: nowrap; cursor: pointer; }
.streams-calendar__modes label:has(input:checked) { background: #0047ff1a; color: #176af6; font-weight: 600; }
.streams-calendar__modes input { appearance: none; flex: none; width: 18px; height: 18px; margin: 0 0 0 2px; border: 1px solid #171717; border-radius: 50%; background: #fff; }
.streams-calendar__modes input:checked { border: 5px solid #003c71; }
.streams-calendar__clear { align-self: flex-start; padding: 6px 0; border: 0; background: transparent; color: #0153cc; font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; }
.streams-calendar__main { min-width: 0; padding: 24px; }
.streams-calendar__navigation { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.streams-calendar__arrow { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 42px; padding: 0; border: 0; border-radius: 4px; background: transparent; cursor: pointer; }
.streams-calendar__arrow:hover { background: #e5eeff; }
.streams-calendar__arrow img { width: 24px; height: 24px; }
.streams-calendar__period { display: flex; align-items: center; gap: 8px; min-width: 0; }
.streams-calendar__month, .streams-calendar__year { position: relative; min-width: 0; }
.streams-calendar__period select { appearance: none; field-sizing: content; max-width: 100%; min-height: 42px; padding: 8px 40px 8px 16px; border: 1px solid #ccc; border-radius: 8px; background: #fff; color: #0153cc; font: 600 14px/24px "Inter", "Segoe UI", Arial, sans-serif; cursor: pointer; }
.streams-calendar__period img { position: absolute; top: 50%; right: 8px; width: 24px; height: 24px; transform: translateY(-50%) rotate(-90deg); pointer-events: none; }
.streams-calendar__weekdays, .streams-calendar__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.streams-calendar__weekdays { margin-bottom: 12px; color: #1f1f1f; font-size: 14px; font-weight: 700; line-height: 44px; text-align: center; }
.streams-calendar__days { display: flex; flex-direction: column; gap: 4px; }
.streams-calendar__cell { min-width: 0; }
.streams-calendar__cell--range-start { background: linear-gradient(to right, transparent 50%, #e5eeff 50%); }
.streams-calendar__cell--range-end { background: linear-gradient(to left, transparent 50%, #e5eeff 50%); }
.streams-calendar__day { display: block; width: calc(100% - 4px); height: 44px; margin: 0 2px; padding: 0; border: 0; border-radius: 6px; background: #fff; box-shadow: 0 1px .5px #000e330d; color: #1f1f1f; font: inherit; font-size: 16px; cursor: pointer; }
.streams-calendar__day--other { background: transparent; box-shadow: none; color: #999; }
.streams-calendar__day--range { width: 100%; margin: 0; border-radius: 0; background: #e5eeff; box-shadow: none; color: #0153cc; }
.streams-calendar__day:hover { background: #cbdfff; }
.streams-calendar__day--selected, .streams-calendar__day--selected:hover { background: #0153cc; box-shadow: 0 1.5px 1px #001f7040, 0 3px 2px #0047ff33; color: #fff; }
.streams-calendar__day[aria-current="date"] { text-decoration: underline; text-underline-offset: 4px; }
.streams-calendar__hint { margin: auto 0 0; padding-top: 16px; color: #61737b; font-size: 11px; line-height: 16px; }
.streams-date-filter :is(button, input, select):focus-visible { outline: 2px solid #0153cc; outline-offset: 2px; }
.streams-calendar__sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
  .streams-container .library-search { position: relative; }
  .streams-date-filter { position: static; max-width: calc(100% - 105px); margin-left: auto; }
  .streams-calendar { top: calc(100% + 8px); right: 0; width: 585px; max-width: 100%; }
}
@media (max-width: 560px) {
  .streams-calendar { grid-template-columns: minmax(0, 1fr); }
  .streams-calendar__modes { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px; border-right: 0; border-bottom: 1px solid #e6e6e6; }
  .streams-calendar__clear { margin: 0 0 0 auto; }
  .streams-calendar__hint { order: 1; flex-basis: 100%; margin: 0; padding: 0; }
  .streams-calendar__main { padding: 16px; }
  .streams-calendar__period select { padding-left: 12px; padding-right: 36px; }
}
