.mbx-calendar-wrap{
  --mbx-red:#a71919;
  --mbx-red-dark:#690808;
  --mbx-bg:#050505;
  --mbx-panel:#141414;
  --mbx-line:rgba(255,255,255,.16);
  --mbx-text:#f5f2ec;
  --mbx-muted:#c0c0c0;
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:28px;
  box-sizing:border-box;
  color:var(--mbx-text);
  background:radial-gradient(circle at 15% 5%,rgba(167,25,25,.24),transparent 30%), radial-gradient(circle at 82% 12%, rgba(255,255,255,.08), transparent 22%), linear-gradient(180deg,#171717 0%,#080808 100%);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  box-shadow:0 18px 50px rgba(0,0,0,.38), 0 0 0 1px rgba(255,255,255,.04) inset;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.mbx-calendar-head{position:relative;display:flex;justify-content:center;align-items:center;min-height:92px;margin-bottom:14px;text-align:center}
.mbx-calendar-actions{position:absolute;right:0;top:0;display:flex;flex-direction:column;align-items:flex-end;gap:5px;text-align:right}
.mbx-brand-logo{position:absolute;left:0;top:0;display:block;width:auto;height:auto;max-width:175px;max-height:48px;object-fit:contain}
.mbx-calendar-head h2{margin:0;color:#fff;font-size:clamp(1.8rem,4vw,3.1rem);line-height:1;font-family:"Arial Black",Impact,sans-serif;text-transform:uppercase}
.mbx-calendar-controls{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:0 0 20px}
.mbx-nav-btn,.mbx-go-btn,.mbx-print-btn{border:1px solid rgba(255,255,255,.26);border-radius:999px;background:#1e1e1e;color:#fff!important;text-decoration:none!important;padding:9px 16px;font-weight:800;cursor:pointer;line-height:1.2;box-shadow:0 3px 10px rgba(0,0,0,.25)}
.mbx-nav-btn:hover,.mbx-go-btn:hover,.mbx-print-btn:hover{background:var(--mbx-red);border-color:var(--mbx-red);filter:brightness(1.1)}
.mbx-today-btn{background:var(--mbx-red-dark)}
.mbx-date-form{display:flex;align-items:center;gap:8px}
.mbx-date-form select{appearance:auto;background:#fff;color:#111;border:0;border-radius:999px;padding:9px 32px 9px 14px;font-weight:700}
.mbx-print-btn{background:transparent}
.mbx-print-btn:disabled{opacity:.5;cursor:not-allowed}
.mbx-export-wrap{text-align:right;max-width:240px}
.mbx-export-cancel{border:0;background:transparent;color:#c9c9c9!important;padding:2px 0;font-size:.75rem;font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.mbx-export-cancel:hover{color:#fff!important;background:transparent}
.mbx-export-form:not([hidden]){position:absolute;right:0;top:calc(100% + 10px);z-index:20;display:flex;flex-direction:column;align-items:flex-end;gap:7px;width:230px;padding:15px;border:1px solid rgba(255,255,255,.2);border-radius:12px;background:#202020;box-shadow:0 12px 30px rgba(0,0,0,.55)}
.mbx-export-form[hidden]{display:none!important}
.mbx-export-form label{font-size:.75rem;color:#dedede}
.mbx-export-form input{background:#fff;color:#111;border-radius:5px;padding:5px;border:1px solid #aaa;max-width:100%;box-sizing:border-box}
.mbx-export-form input{width:100%}
.mbx-export-choices{display:flex;flex-direction:column;gap:7px;width:100%;margin-top:4px}
.mbx-export-choices button{width:100%;border:1px solid rgba(255,255,255,.28);border-radius:7px;background:#333;color:#fff;padding:8px 10px;font-size:.8rem;font-weight:700;cursor:pointer}
.mbx-export-choices button:hover{background:#711313;border-color:#a71919}
.mbx-export-choices button:disabled{opacity:.55;cursor:wait}
.mbx-export-status{margin:3px 0 0;color:#fff;font-size:.74rem;line-height:1.25}
.mbx-export-status:empty{display:none}
.mbx-calendar-scroller{width:100%;overflow-x:auto;border:1px solid var(--mbx-line);border-radius:14px}
.mbx-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:720px}
.mbx-calendar-weekdays{background:#1a1a1a;border-bottom:1px solid var(--mbx-line)}
.mbx-calendar-weekdays>div{padding:11px 8px;text-align:center;text-transform:uppercase;font-size:.78rem;font-weight:900;letter-spacing:.08em;color:#f0f0f0;text-shadow:0 1px 0 rgba(0,0,0,.4)}
.mbx-calendar-days{background:#0b0b0b}
.mbx-day{position:relative;min-height:150px;padding:9px;border-right:1px solid var(--mbx-line);border-bottom:1px solid var(--mbx-line);background:rgba(255,255,255,.028);box-sizing:border-box}
.mbx-day:nth-child(7n){border-right:0}
.mbx-day-muted{opacity:.58;background:#060606}
.mbx-day-today{box-shadow:inset 0 0 0 2px var(--mbx-red), inset 0 0 22px rgba(167,25,25,.18)}
.mbx-day-number{font-weight:900;font-size:1rem;text-align:right;color:#fff;margin-bottom:6px;text-shadow:0 1px 0 rgba(0,0,0,.45)}
.mbx-day-events{display:flex;flex-direction:column;gap:6px}
.mbx-event{--mbx-event-color:#a71919;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 6px 7px;border-top:3px solid color-mix(in srgb,var(--mbx-event-color) 88%, #fff 12%);border-radius:10px;background:linear-gradient(180deg, color-mix(in srgb,var(--mbx-event-color) 25%, #1d1d1d 75%) 0%, color-mix(in srgb,var(--mbx-event-color) 16%, #111 84%) 100%);box-shadow:0 6px 16px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06);text-align:center}
.mbx-event-sticker{width:100%;min-height:32px;display:flex;align-items:center;justify-content:center;margin-bottom:2px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.35))}
.mbx-event-sticker-img{display:block;width:auto;height:auto;max-width:97%;max-height:38px;object-fit:contain}
.mbx-event-sticker-text{font-size:1.15rem;line-height:1}
.mbx-event-title{width:100%;font-size:.79rem;line-height:1.15;font-weight:900;color:#fff;text-transform:uppercase;overflow-wrap:anywhere;text-shadow:0 1px 0 rgba(0,0,0,.35)}
.mbx-event-city{width:100%;font-size:.68rem;line-height:1.15;font-weight:700;color:#efefef;overflow-wrap:anywhere}
.mbx-event-note{width:100%;font-size:.61rem;line-height:1.15;color:#d0d0d0;overflow-wrap:anywhere}
.mbx-available-badge{display:flex;align-items:center;justify-content:center;min-height:50px;padding:5px 2px;box-sizing:border-box}
.mbx-available-badge img{display:block;max-width:100%;width:auto;max-height:42px;object-fit:contain}
.mbx-calendar-legend{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px;justify-content:center}
.mbx-legend-item{--mbx-event-color:#a71919;display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:5px 10px;border:1px solid color-mix(in srgb,var(--mbx-event-color) 75%,#fff 25%);border-radius:999px;background:rgba(255,255,255,.05);font-size:.76rem;font-weight:800;color:#fff;box-shadow:0 3px 10px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.04)}
.mbx-legend-sticker-img{display:block;max-width:78px;max-height:24px;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 1px 2px rgba(0,0,0,.25))}
.mbx-legend-sticker-text{color:var(--mbx-event-color);font-size:1rem}
@media(max-width:900px){
  .mbx-calendar-head{min-height:0;flex-direction:column;gap:12px;margin-bottom:16px}
  .mbx-brand-logo{position:static;max-width:155px;max-height:45px;margin:0 auto 9px}
  .mbx-calendar-actions{position:relative;right:auto;top:auto;align-items:center;text-align:center}
  .mbx-export-wrap{text-align:center}
  .mbx-export-form:not([hidden]){position:static;transform:none;width:min(230px,calc(100vw - 80px));margin-top:8px;align-items:center;text-align:center}
}
@media(max-width:700px){
  .mbx-calendar-wrap{padding:16px 10px;border-radius:12px}
  .mbx-calendar-controls{gap:7px}
  .mbx-nav-btn,.mbx-go-btn{padding:8px 11px;font-size:.82rem}
  .mbx-date-form{order:3;width:100%;justify-content:center}
  .mbx-calendar-grid{min-width:700px}
  .mbx-day{min-height:135px;padding:7px}
  .mbx-event-sticker-img{max-height:30px}
  .mbx-event-title{font-size:.7rem}
  .mbx-event-city{font-size:.62rem}
}
@media print{
  @page{size:A4 landscape;margin:5mm}
  html,body{
    margin:0!important;
    padding:0!important;
    width:287mm!important;
    height:200mm!important;
    background:#fff!important;
    overflow:hidden!important;
  }
  body *{visibility:hidden!important}
  .mbx-calendar-wrap,.mbx-calendar-wrap *{visibility:visible!important}
  .mbx-calendar-wrap{
    position:fixed!important;
    left:0!important;
    top:0!important;
    width:287mm!important;
    max-width:287mm!important;
    height:200mm!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
    background:#fff!important;
    color:#000!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
  }
  .mbx-calendar-controls,.mbx-calendar-actions,.mbx-brand-logo,.mbx-calendar-legend{display:none!important}
  .mbx-calendar-head{
    height:13mm!important;
    margin:0!important;
    padding:0 1mm!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    text-align:left!important;
    box-sizing:border-box!important;
  }
  .mbx-calendar-head h2{
    color:#000!important;
    font-size:25px!important;
    line-height:1!important;
    margin:0!important;
  }
  .mbx-calendar-scroller{
    width:100%!important;
    height:187mm!important;
    overflow:hidden!important;
    border:1px solid #777!important;
    border-radius:0!important;
    box-sizing:border-box!important;
  }
  .mbx-calendar-grid{min-width:0!important;width:100%!important}
  .mbx-calendar-weekdays{
    height:8mm!important;
    background:#eee!important;
    border-bottom:1px solid #888!important;
    box-sizing:border-box!important;
  }
  .mbx-calendar-weekdays>div{
    color:#000!important;
    padding:0!important;
    font-size:9px!important;
    letter-spacing:.04em!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  .mbx-calendar-days{
    height:179mm!important;
    background:#fff!important;
    grid-auto-rows:1fr!important;
  }
  .mbx-day{
    min-height:0!important;
    height:auto!important;
    padding:4px!important;
    background:#fff!important;
    border-color:#aaa!important;
    page-break-inside:avoid!important;
    break-inside:avoid!important;
    overflow:hidden!important;
  }
  .mbx-day-muted{opacity:.48!important}
  .mbx-day-number{color:#000!important;font-size:10px!important;margin-bottom:2px!important;text-shadow:none!important}
  .mbx-day-events{gap:2px!important}
  .mbx-event{
    padding:2px 3px 3px!important;
    gap:0!important;
    border-top-width:2px!important;
    border-radius:4px!important;
    background:#f2f2f2!important;
    box-shadow:none!important;
    border-right:1px solid #ccc!important;
    border-bottom:1px solid #ccc!important;
    border-left:1px solid #ccc!important;
  }
  .mbx-event-sticker{min-height:15px!important;margin-bottom:0!important;filter:none!important}
  .mbx-event-sticker-img{max-height:18px!important;max-width:88%!important}
  .mbx-event-sticker-text{font-size:10px!important}
  .mbx-event-title{color:#000!important;font-size:7.5px!important;line-height:1.05!important;text-shadow:none!important}
  .mbx-event-city{color:#222!important;font-size:6.7px!important;line-height:1.05!important}
  .mbx-event-note{color:#444!important;font-size:6px!important;line-height:1.05!important}
  .mbx-available-badge{min-height:0!important;padding:1px!important}
  .mbx-available-badge img{max-width:86%!important;max-height:14px!important;border:1px solid #aaa!important;border-radius:999px!important}
}
