.month-select.is-custom::after { display: none; }
.month-select select[hidden] { display: none; }
.month-trigger {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 45px; min-width: 186px; padding: 10px 14px 10px 17px;
  border: 1px solid rgba(207, 232, 251, .18); border-radius: 13px;
  background: rgba(180, 223, 255, .045); color: #dcebf6; font-size: 17px;
  box-shadow: inset 0 1px 0 rgba(234, 246, 255, .045);
  transition: background .24s, border-color .24s;
}
.month-trigger svg { width: 18px; height: 18px; flex: none; transition: transform .3s; }
.month-trigger:hover, .month-trigger[aria-expanded=true] { background: rgba(180, 223, 255, .085); border-color: rgba(199, 235, 255, .35); }
.month-trigger[aria-expanded=true] svg { transform: rotate(180deg); }
.month-picker.dialog {
  position: fixed; left: var(--picker-left, 20px); top: var(--picker-top, 110px); margin: 0;
  width: min(312px, calc(100% - 24px)); padding: 16px; border-radius: 23px;
  border: 1px solid rgba(186, 222, 246, .21);
  background: linear-gradient(140deg, rgba(20, 36, 49, .91), rgba(5, 17, 29, .94));
  -webkit-backdrop-filter: blur(30px) saturate(135%); backdrop-filter: blur(30px) saturate(135%);
  box-shadow: 0 24px 80px #0008, inset 0 1px 0 rgba(227, 245, 255, .08);
}
.month-picker[open] { animation: glass-open .32s cubic-bezier(.22, .9, .28, 1) both; }
.month-picker::backdrop { background: rgba(0, 5, 10, .25); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.month-picker-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.month-picker-top h2 { font-size: 14px; font-weight: 500; color: #9db7c9; }
.month-picker .icon-button { width: 40px; height: 40px; font-size: 17px; }
.month-year-navigation { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 12px; }
#month-picker-year { font-size: 23px; font-weight: 500; font-variant-numeric: tabular-nums; }
.month-year-navigation button:disabled { opacity: .25; cursor: default; }
.month-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.month-option { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 49px; padding: 7px; border-radius: 12px; border: 1px solid transparent; color: #b4cadb; font-size: 14px; text-transform: capitalize; transition: background .2s, border-color .2s; }
.month-option:hover { background: rgba(153, 209, 247, .07); }
.month-option[aria-current=date] { color: #c3e5ff; }
.month-option.is-selected { color: #e3f4ff; border-color: rgba(139, 208, 255, .30); background: linear-gradient(135deg, rgba(79, 164, 227, .25), rgba(51, 120, 171, .11)); box-shadow: inset 0 1px 0 rgba(216, 242, 255, .06); }
.month-record-dot, .month-picker-footer i { width: 3px; height: 3px; border-radius: 50%; background: #9ad5ff; opacity: 0; }
.month-record-dot.has-records { opacity: .85; }
.month-picker-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(190, 218, 240, .09); margin-top: 14px; padding-top: 8px; }
.month-picker-footer span { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: #869fb3; }
.month-picker-footer i { display: inline-block; opacity: .85; }
#month-current { min-height: 40px; padding: 8px 0 8px 8px; font-size: 12px; color: #b9dfff; }
.month-picker :is(button):focus-visible { outline: 2px solid #a9e2ff; outline-offset: 2px; }
@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  .panel::after {
    display: block; inset: 0; z-index: 1; padding: 1px; border-radius: inherit; pointer-events: none;
    background: radial-gradient(210px circle at var(--edge-x, 50%) var(--edge-y, 0%), rgba(171, 229, 255, .76), rgba(75, 176, 247, .20) 45%, transparent 75%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .4s ease; animation: none;
  }
  .panel.has-edge-light::after { opacity: .85; }
}
.bonya-empty.empty-state { display: flex; flex-direction: column; align-items: center; padding: 24px 12px 28px; color: #9cb5c8; }
.bonya-empty .empty-cat { width: 92px; height: 66px; margin: 0 0 7px; color: #8cb4d1; opacity: .72; flex: none; }
.empty-cat .cat-floor { opacity: .2; }
.empty-cat .cat-dream { opacity: .46; }
.bonya-empty h3 { color: #c6d9e7; font-size: 18px; font-weight: 500; line-height: 1.4; }
.bonya-empty p { max-width: 330px; font-size: 14px; line-height: 1.65; margin-top: 6px; }
.bonya-empty .secondary-button { font-size: 14px; min-height: 44px; margin-top: 17px; border-color: rgba(170, 214, 243, .15); background: rgba(164, 213, 247, .035); }
.bonya-empty.is-compact { padding-top: 16px; padding-bottom: 18px; }
.bonya-empty.is-compact .empty-cat { width: 66px; height: 47px; }
.bonya-empty.is-compact h3 { font-size: 15px; }
.bonya-empty.is-compact p { font-size: 13px; }
.account-preview { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--card-border); }
.preview-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 14px; font-size: 15px; min-height: 44px; }
html[data-motion=off] .panel::after { display: none; }
@keyframes glass-open { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 750px) {
  .month-trigger { font-size: 14px; min-width: 150px; padding: 9px 11px 9px 13px; gap: 10px; }
  .bonya-empty p { font-size: 13px; }
}
@media (max-width: 500px) {
  .summary-panel .panel-heading { flex-direction: column; align-items: stretch; gap: 12px; }
  .summary-panel .month-select { display: block; width: 100%; }
  .month-trigger { width: 100%; }
  .month-picker.dialog { left: 0; right: 0; top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); margin: 0 auto; width: calc(100% - 24px); max-width: 360px; padding: 18px; }
  .month-picker .icon-button { width: 44px; height: 44px; }
  .month-option { min-height: 52px; }
  #month-current { min-height: 44px; }
}
@media (max-width: 390px) { .month-trigger { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .month-picker[open] { animation: none; } .panel::after { display: none; } }
