.bbm-date-field { width: 100%; min-width: 0; }
.bbm-date-trigger { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--line, #28283c); border-radius: 6px; background: var(--surface, #fffefa); color: var(--muted, #5a586a); font: inherit; text-align: left; box-shadow: 2px 2px 0 var(--line, #28283c); cursor: pointer; }
.bbm-date-trigger.has-value { color: var(--ink, #222336); }
.bbm-date-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; background: var(--lavender, #d8cff0); border-radius: 4px; color: var(--ink, #222336); font-size: 24px; }
.bbm-date-value { flex: 1; }
.bbm-date-chevron { color: var(--ink, #222336); font-size: 24px; }
.bbm-date-trigger:disabled { background: var(--disabled-bg, #eae7f0); color: var(--muted, #5a586a); cursor: default; box-shadow: none; }
.bbm-date-help, .bbm-date-error { margin: 8px 0 0; font-size: 14px; line-height: 20px; font-weight: 400; }
.bbm-date-help { color: var(--muted, #5a586a); }
.bbm-date-error { color: var(--danger-text, #8b2535); }
.bbm-date-trigger[aria-invalid="true"] { border-color: var(--danger-text, #8b2535); }
.bbm-calendar { box-sizing: border-box; width: min(440px, calc(100vw - 48px)); max-width: none; max-height: min(90dvh, 900px); padding: 0; border: 2px solid var(--line, #28283c); border-radius: 8px; background: var(--surface, #fffefa); color: var(--ink, #222336); font-family: inherit; box-shadow: 6px 6px 0 var(--line, #28283c); overflow: hidden; }
.bbm-calendar::backdrop { background: rgb(34 35 54 / 48%); }
.bbm-calendar-shell { display: flex; flex-direction: column; max-height: inherit; }
.bbm-calendar-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; background: var(--lavender, #d8cff0); border-bottom: 2px solid var(--line, #28283c); }
.bbm-calendar-eyebrow { margin: 0 0 4px; font-size: 11px; line-height: 16px; letter-spacing: .08em; font-weight: 700; }
.bbm-calendar-header h2 { margin: 0; font-size: 24px; line-height: 30px; }
.bbm-calendar button { box-sizing: border-box; font-family: inherit; color: var(--ink, #222336); cursor: pointer; }
.bbm-calendar-close, .bbm-calendar-arrow { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1.5px solid var(--line, #28283c); border-radius: 4px; background: var(--surface, #fffefa); box-shadow: 2px 2px 0 var(--line, #28283c); font-size: 30px; line-height: 1; }
.bbm-calendar-arrow:disabled { cursor: default; opacity: .5; box-shadow: none; }
.bbm-calendar-content { overflow-y: auto; overscroll-behavior: contain; padding: 20px 12px; }
.bbm-calendar-shortcuts { display: flex; gap: 12px; padding: 0 8px; }
.bbm-calendar-shortcut { flex: 1; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line, #28283c); border-radius: 4px; background: var(--nav-active, #f5b8d6); font-size: 15px; font-weight: 600; box-shadow: 2px 2px 0 var(--line, #28283c); }
.bbm-calendar-monthbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 24px 0 12px; padding: 8px; background: var(--lavender, #d8cff0); border-radius: 6px; }
.bbm-calendar-monthbar h3 { margin: 0; text-align: center; font-size: 20px; line-height: 26px; }
.bbm-calendar-grid { width: 100%; min-width: 308px; table-layout: fixed; border-collapse: collapse; border: 0; }
.bbm-calendar-grid th, .bbm-calendar-grid td { width: calc(100% / 7); padding: 0; border: 0; text-align: center; }
.bbm-calendar-grid th { height: 32px; color: var(--muted, #5a586a); font-size: 13px; font-weight: 600; }
.bbm-calendar-grid td { height: 48px; }
.bbm-calendar-day { position: relative; width: 100%; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border: 2px solid transparent; border-radius: 6px; background: transparent; box-shadow: none; font-size: 16px; font-weight: 400; line-height: 1; }
.bbm-calendar-day.is-weekend { background: var(--warning-bg, #fff1cc); }
.bbm-calendar-day.is-outside { color: var(--muted, #5a586a); }
.bbm-calendar-day[aria-disabled="true"] { color: var(--muted, #5a586a); background: var(--disabled-bg, #eae7f0); cursor: default; }
.bbm-calendar-day.is-selected { border-color: var(--line, #28283c); background: var(--primary, #ffdf79); color: var(--ink, #222336); font-weight: 700; }
.bbm-calendar-day.is-today::after { content: ''; position: absolute; bottom: 4px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: var(--ink, #222336); }
.bbm-calendar-day:not([aria-disabled="true"]):hover { border-color: var(--line, #28283c); }
.bbm-calendar-legend { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; color: var(--muted, #5a586a); font-size: 13px; line-height: 20px; }
.bbm-calendar-legend-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink, #222336); }
.bbm-calendar-note { margin: 16px 8px 0; padding: 12px; background: var(--bg, #f4f1fa); border-radius: 6px; color: var(--muted, #5a586a); font-size: 14px; line-height: 20px; }
.bbm-calendar button:focus-visible, .bbm-date-trigger:focus-visible { outline: 3px solid var(--focus, #5440a7); outline-offset: 3px; z-index: 1; }
.bbm-calendar-day:focus-visible { outline-offset: -3px; }
.bbm-calendar button:active:not(:disabled), .bbm-date-trigger:active:not(:disabled) { box-shadow: none; }
@media (max-width: 599px) {
  .bbm-calendar { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .bbm-calendar-shell { height: 100%; max-height: 100%; }
  .bbm-calendar-header { padding: max(20px, env(safe-area-inset-top)) 16px 20px; }
  .bbm-calendar-content { padding: 24px 6px max(24px, env(safe-area-inset-bottom)); }
  .bbm-calendar-grid td { height: 52px; }
  .bbm-calendar-day { height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .bbm-calendar, .bbm-calendar *, .bbm-date-trigger { animation: none !important; transition: none !important; }
}
