/* Bookmerce admin calendar, coded copy from the Bookmerce website (CalendarShowcase.astro), prefix cs- → bmc-. Script: js/bm-cal.js */
  .bmc { --bmc-line: #e3e3e3; --bmc-mut: #616161; --bmc-ink: #303030; }
  .bmc { margin-top: 0; }

  .bmc-win-wrap { position: relative; }
  .bmc-try { position: absolute; top: -13px; left: 24px; z-index: 4; background: var(--bm-mint); color: var(--bm-graphite-900); font-weight: 800; font-size: 11.5px; padding: 4px 11px; border-radius: 999px; }
  .bmc-win { background: #f1f1f1; color: var(--bmc-ink); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 50px 90px -30px rgba(0, 0, 0, 0.65); font: 13px/1.35 -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, system-ui, sans-serif; }
  .bmc-app { position: relative; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px; padding: 14px; height: 640px; }
  .bmc button { font: inherit; color: inherit; cursor: pointer; }

  .bmc-side { background: #fff; border-radius: 12px; padding: 14px; display: grid; align-content: start; gap: 18px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.07); }
  .bmc-mm-h { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--bmc-mut); margin-bottom: 6px; }
  .bmc-mm-h b { color: var(--bmc-ink); }
  .bmc-mm-g { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; row-gap: 2px; }
  .bmc-mm-g span { padding: 3px 0; border-radius: 6px; }
  .bmc-mm-g .dh { color: var(--bmc-mut); font-size: 10px; }
  .bmc-mm-g button { border: 0; background: none; padding: 3px 0; border-radius: 6px; font-size: 11px; }
  .bmc-mm-g button:hover { background: #e6e6e6; }
  .bmc-mm-g .wk { background: #f1f1f1; }
  .bmc-mm-g .pick { box-shadow: inset 0 0 0 1.5px #303030; }
  .bmc-mm-g .today { background: #e22c38; color: #fff; font-weight: 700; }
  .bmc-sec { display: grid; gap: 6px; }
  .bmc-sec-h { font-weight: 650; font-size: 12.5px; }
  .bmc-chk { display: flex; align-items: center; gap: 9px; border: 0; background: none; padding: 4px 2px; text-align: left; border-radius: 6px; font-size: 12.5px; }
  .bmc-chk:hover { background: #f6f6f6; }
  .bmc-chk i { width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--c); display: grid; place-items: center; }
  .bmc-chk.on i { background: var(--c); }
  .bmc-chk.on i::after { content: ''; width: 7px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
  .bmc-sec[hidden] { display: none; }
  .bmc-rq { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; border: 0; background: none; padding: 0 2px; text-align: left; font-size: 12px; line-height: 16px; font-weight: 550; color: var(--bmc-mut); }
  .bmc .bmc-rq { color: var(--bmc-mut); }
  .bmc-rq > span:first-child { text-decoration: underline; text-underline-offset: 2px; }
  .bmc-rq:hover > span:first-child { color: var(--bmc-ink); }
  .bmc-badge { padding: 2px 8px; border-radius: 8px; background: #ffd6a4; color: #5e4200; font-size: 12px; line-height: 16px; font-weight: 550; font-variant-numeric: tabular-nums; }
  .bmc-sw { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--bmc-mut); border: 0; background: none; padding: 2px 0; text-align: left; }
  .bmc-switch { width: 28px; height: 16px; border-radius: 999px; background: #d4d4d4; position: relative; }
  .bmc-switch::after { content: ''; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
  .bmc-sw[aria-checked='true'] .bmc-switch { background: #303030; }
  .bmc-sw[aria-checked='true'] .bmc-switch::after { transform: translateX(12px); }
  .bmc-sw[aria-checked='true'] { color: var(--bmc-ink); }

  .bmc-main { background: #fff; border-radius: 12px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.07); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
  .bmc-tool { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--bmc-line); }
  .bmc-sidebtn { border: 0; background: none; border-radius: 8px; padding: 5px; display: grid; place-items: center; color: var(--bmc-mut); }
  .bmc-sidebtn:hover { background: #f1f1f1; }
  .bmc-sidebtn svg { width: 18px; height: 18px; }
  .bmc-app.no-side { grid-template-columns: minmax(0, 1fr); }
  .bmc-app.no-side .bmc-side { display: none; }
  .bmc-today { border: 1px solid var(--bmc-line); background: #fff; color: var(--bmc-ink); border-radius: 8px; padding: 4px 11px; font-weight: 600; font-size: 12.5px; }
  .bmc-arr { border: 0; background: none; border-radius: 8px; width: 26px; height: 26px; font-size: 17px; color: var(--bmc-ink); }
  .bmc-arr:hover:not(:disabled), .bmc-today:hover:not(:disabled) { background: #f1f1f1; }
  .bmc-today:disabled { background: #f1f1f1; border-color: #f1f1f1; color: #8a8a8a; cursor: default; }
  .bmc-arr:disabled { color: #c4c4c4; cursor: default; }
  .bmc-title { font-size: 16px; margin-right: auto; }
  .bmc-seg { display: flex; gap: 2px; }
  .bmc-seg button, .bmc-list { border: 0; background: none; border-radius: 8px; padding: 6px 12px; font-weight: 550; font-size: 12.5px; color: var(--bmc-mut); }
  .bmc-seg button:hover, .bmc-list:hover { background: #f6f6f6; }
  .bmc-seg button.on, .bmc-list.on { background: #ebebeb; color: var(--bmc-ink); }
  .bmc-list { display: grid; place-items: center; padding: 5px 8px; border: 1px solid var(--bmc-line); }
  .bmc-list svg { width: 17px; height: 17px; }
  .bmc-view { flex: 1; overflow: auto; }

  .bmc-grid { --hw: 54px; }
  .bmc-gh { display: grid; grid-template-columns: var(--hw) repeat(var(--cols), minmax(0, 1fr)); border-bottom: 1px solid var(--bmc-line); position: sticky; top: 0; background: #fff; z-index: 2; }
  .bmc-gh span { padding: 9px 10px; font-size: 12.5px; color: var(--bmc-mut); }
  .bmc-gh span b { color: var(--bmc-ink); font-size: 14px; margin-left: 4px; }
  .bmc-gh span.today, .bmc-gh span.today b { color: #e22c38; }
  .bmc-gh .person { display: flex; align-items: center; gap: 7px; }
  .bmc-gh .person i { width: 9px; height: 9px; border-radius: 50%; }
  .bmc-gh .person b { margin: 0; font-size: 12.5px; }
  .bmc-gh .person small { color: var(--bmc-mut); margin-left: auto; }
  .bmc-gb { display: grid; grid-template-columns: var(--hw) repeat(var(--cols), minmax(0, 1fr)); position: relative; margin-top: 8px; }
  .bmc-hours { position: relative; }
  .bmc-hours span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; color: #8a8a8a; white-space: nowrap; }
  .bmc-col { position: relative; border-left: 1px solid #ededed; }
  .bmc-col.today { background: #fcfcfc; }
  .bmc-col > i { position: absolute; left: 0; right: 0; border-top: 1px solid #efefef; }
  .bmc-ev { position: absolute; display: grid; align-content: start; gap: 1px; text-align: left; overflow: hidden; border: 0; border-radius: 6px; padding: 4px 7px 4px 9px;
    background: color-mix(in srgb, var(--c) 13%, #fff); color: color-mix(in srgb, var(--c) 72%, #000); font-size: 11.5px; line-height: 1.3; transition: box-shadow 0.15s, transform 0.15s; }
  .bmc-ev::before { content: ''; position: absolute; left: 3px; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--c); }
  .bmc-ev b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bmc-ev span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.85; }
  .bmc-ev .sv { opacity: 0.7; }
  .bmc-ev:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12); z-index: 3; }
  .bmc-ev.sel { box-shadow: 0 0 0 2px var(--c); z-index: 3; }
  .bmc-ev.gone { background: #f4f4f4; color: #8a8a8a; }
  .bmc-ev.gone::before { background: #c9c9c9; }
  .bmc-ev.gone b { text-decoration: line-through; }
  .bmc-ev.req { background: #fff; outline: 1px solid color-mix(in srgb, var(--c) 45%, #fff); outline-offset: -1px; }
  .bmc-tag { font-style: normal; justify-self: start; margin-top: 3px; background: #ffd79d; color: #5e4200; border-radius: 6px; padding: 1px 7px; font-weight: 600; font-size: 11px; }

  .bmc-month { padding: 8px 10px 10px; }
  .bmc-mh { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); font-size: 12px; color: var(--bmc-mut); padding: 2px 6px 6px; }
  .bmc-mg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--bmc-line); border-left: 1px solid var(--bmc-line); }
  .bmc-mc { min-height: 104px; border-right: 1px solid var(--bmc-line); border-bottom: 1px solid var(--bmc-line); padding: 5px 6px; display: grid; align-content: start; gap: 3px; min-width: 0; }
  .bmc-mc.out { background: #fafafa; }
  .bmc-mc b { font-size: 12px; font-weight: 600; }
  .bmc-mc.today b { background: #e22c38; color: #fff; border-radius: 6px; padding: 0 6px; justify-self: start; }
  .bmc-mc span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: color-mix(in srgb, var(--c) 13%, #fff); color: color-mix(in srgb, var(--c) 72%, #000); border-radius: 4px; padding: 1px 5px; }
  .bmc-mc em, .bmc-mc small { font-style: normal; font-size: 11px; color: var(--bmc-mut); }

  .bmc-ls { padding: 4px 0 10px; }
  .bmc-ld { font-weight: 650; font-size: 12.5px; padding: 12px 16px 6px; position: sticky; top: 0; background: #fff; }
  .bmc-lr { display: grid; grid-template-columns: 120px minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 12px; align-items: center; width: 100%; border: 0; border-top: 1px solid #f0f0f0; background: none; padding: 9px 16px; text-align: left; font-size: 12.5px; }
  .bmc-lr:hover, .bmc-lr.sel { background: #f7f7f7; }
  .bmc-lr > span { text-align: left; justify-self: stretch; }
  .bmc-lr .bmc-pill { justify-self: end; }
  .bmc-lr .t { color: var(--bmc-mut); font-variant-numeric: tabular-nums; }
  .bmc-lr .w { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .bmc-lr .w i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
  .bmc-lr .sv { color: var(--bmc-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bmc-pill { justify-self: start; border-radius: 8px; padding: 2px 8px; font-size: 11.5px; font-weight: 550; white-space: nowrap; }
  .bmc-pill.ok { background: #cdfee1; color: #0c5132; }
  .bmc-pill.cau { background: #fff1e3; color: #5e4200; }
  .bmc-pill.warn { background: #ffd79d; color: #5e4200; }
  .bmc-pill.off { background: #ebebeb; color: #616161; }

  .bmc-panel { position: absolute; top: 14px; right: 14px; bottom: 14px; width: 320px; background: #fff; border-radius: 12px; padding: 18px; z-index: 5;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 20px 50px -10px rgba(0, 0, 0, 0.3); display: grid; align-content: start; gap: 12px; animation: bmc-in 0.22s ease-out; }
  .bmc-panel[hidden] { display: none; }
  @keyframes bmc-in { from { opacity: 0; transform: translateX(16px); } }
  .bmc-ph { display: flex; justify-content: space-between; align-items: center; }
  .bmc-ph b { font-size: 16px; }
  .bmc-x { border: 0; background: #f1f1f1; border-radius: 8px; width: 28px; height: 28px; font-size: 17px; line-height: 1; }
  .bmc-panel dl { margin: 0; display: grid; grid-template-columns: 76px 1fr; gap: 8px 10px; font-size: 12.5px; }
  .bmc-panel dt { color: var(--bmc-mut); }
  .bmc-panel dd { margin: 0; display: flex; align-items: center; gap: 6px; }
  .bmc-panel dd i { width: 8px; height: 8px; border-radius: 50%; }
  .bmc-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
  .bmc-btn { display: grid; place-items: center; min-height: 34px; border-radius: 9px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px #d4d4d4, 0 1px 0 rgba(0, 0, 0, 0.05); font-weight: 600; font-size: 12.5px; }
  .bmc-btn.pri { background: #303030; color: #fff; box-shadow: inset 0 -1px 0 #000, 0 1px 0 rgba(0, 0, 0, 0.1); }
  .bmc-note { color: var(--bmc-mut); font-size: 12px; }
  .bmc-move { display: grid; gap: 8px; border-top: 1px solid var(--bmc-line); padding-top: 12px; }
  .bmc-move[hidden] { display: none; }
  .bmc-mv-d { color: var(--bmc-mut); font-size: 12px; margin-top: -4px; }
  .bmc-mv-t { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .bmc-mv-t button { border: 1px solid #d4d4d4; background: #fff; border-radius: 8px; padding: 6px 0; font-size: 12px; }
  .bmc-mv-t button.on { background: #303030; border-color: #303030; color: #fff; }
  .bmc-btn:disabled { opacity: 0.45; cursor: default; }

  .bmc .bmc-tick { position: absolute; z-index: 6; display: flex; gap: 12px; align-items: center; text-align: left; background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); border: 1px solid rgba(255, 255, 255, 0.85); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 40px -14px rgba(0, 0, 0, 0.45); color: var(--bm-ink); color: var(--bm-ink); border-radius: 14px; padding: 12px 16px 12px 12px; white-space: nowrap; font-family: var(--bm-font); }
  .bmc-tick b { display: block; font-size: 14px; font-weight: 700; color: var(--bm-ink); }
  .bmc-tick small { display: block; font-size: 12.5px; color: var(--bm-muted); margin-top: 2px; }
  .bmc-tick.t-top { right: -24px; top: -42px; }
  button.bmc-tick:hover { transform: translateY(-1px); }
  .bmc-tick.t-bot { left: -24px; bottom: -28px; }
  .bmc-hot { position: absolute; left: 0; top: 0; z-index: 7; pointer-events: none; opacity: 0; transition: transform 0.6s cubic-bezier(.4, 0, .2, 1), opacity 0.3s; }
  .bmc-hot.show { opacity: 1; }
  .bmc-hot i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--bm-mint); box-shadow: 0 0 0 3px rgba(31, 39, 51, 0.9); }
  .bmc-hot i::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--bm-mint); animation: bmc-pulse 1.4s ease-out infinite; }
  .bmc-hot b { position: absolute; left: 16px; top: -34px; white-space: nowrap; background: var(--bm-graphite-900); color: #fff; font: 700 12px/1 var(--bm-font); padding: 7px 10px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
  @keyframes bmc-pulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } }
  .bmc-hot.flip b { left: auto; right: 16px; }
  @media (prefers-reduced-motion: reduce) { .bmc-hot i::after { animation: none; } }
  .bmc-ok { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--bm-teal); color: #fff; font-weight: 800; }
  .bmc-ok.warn { background: #ffd79d; color: #5e4200; }
  .bmc-ok.cal { background: var(--bm-teal-soft); color: var(--bm-teal); }
  .bmc-ok svg { width: 18px; height: 18px; }

  @media (max-width: 1000px) {
    .bmc-app { grid-template-columns: minmax(0, 1fr); }
    .bmc-side { display: none; }
  }
  @media (max-width: 760px) {
    .bmc-app { height: 560px; padding: 8px; }
    .bmc-tool { flex-wrap: wrap; gap: 8px; }
    .bmc-today, .bmc-arr { display: none; }
    .bmc-title { font-size: 14px; width: 100%; }
    .bmc-grid { --hw: 40px; }
    .bmc-gh span { padding: 8px 4px; font-size: 11px; }
    .bmc-gh span b { display: block; margin: 0; }
    .bmc-gh .person small { display: none; }
    .bmc-ev { font-size: 10.5px; padding: 3px 4px 3px 8px; }
    .bmc-ev span { display: none; }
    .bmc-mc { min-height: 70px; padding: 3px; }
    .bmc-mc span { font-size: 9.5px; padding: 0 3px; }
    .bmc-lr { grid-template-columns: 1fr auto; gap: 2px 10px; }
    .bmc-lr .t { grid-column: 1 / -1; }
    .bmc-lr .sv { display: none; }
    .bmc-panel { left: 8px; right: 8px; width: auto; top: 8px; bottom: 8px; }
    .bmc-win-wrap { display: flex; flex-direction: column; gap: 12px; }
    .bmc .bmc-tick { position: relative; inset: auto; white-space: normal; align-self: stretch; }
    .bmc .bmc-tick.t-top { order: -1; }
    .bmc-try { position: static; align-self: flex-start; order: -2; }
  }
