/* Alpha Boardroom — uses the Alpha Research Labs design tokens (navy #011C70, orange #EF8C14,
   Inter + Plus Jakarta Sans) taken from the main website's tailwind.config.js. */
:root {
  --navy: #011c70; --navy-700: #01175c; --navy-800: #011048; --navy-900: #010f3d; --navy-50: #eef0fa; --navy-100: #d6daf1; --navy-200: #b0b8e3;
  --orange: #ef8c14; --orange-600: #d97a0a; --orange-50: #fef6ea; --orange-100: #fce7c3;
  --canvas: #fbfbfe; --blush: #f4f6fc; --ink: #1b2240; --muted: #5d6585; --line: #e3e6f2;
  --ok: #17794a; --ok-bg: #e5f5ec; --warn: #9a5b00; --warn-bg: #fff1d6; --bad: #b3261e; --bad-bg: #fde8e6;
  --shadow: 0 1px 2px 0 rgba(1,15,61,.04), 0 2px 8px -2px rgba(1,15,61,.08);
  --shadow-hover: 0 6px 20px -6px rgba(1,15,61,.18);
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root { color-scheme: light; } }
* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--canvas); line-height: 1.55; font-size: 15px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.75rem; font-weight: 800; } h2 { font-size: 1.25rem; font-weight: 700; } h3 { font-size: 1.05rem; font-weight: 700; }
a { color: var(--navy); } a:hover { color: var(--orange-600); }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* header */
.topbar { background: var(--navy); color: #fff; }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { height: 38px; width: auto; background: #fff; border-radius: 8px; padding: 4px 6px; }
.brand b { font-family: var(--display); font-size: 1.05rem; letter-spacing: .06em; display: block; line-height: 1.1; }
.brand span { font-size: .72rem; opacity: .8; letter-spacing: .04em; }
.topbar-inner { flex-wrap: nowrap; }
.navwrap { flex: 1; min-width: 0; }
.navtoggle { display: none; cursor: pointer; color: #fff; font: 600 .9rem var(--font); padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(255,255,255,.12); }
.menu > summary::-webkit-details-marker { display: none; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav > a, .nav .menu > summary { color: #dfe3f7; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .92rem; white-space: nowrap; cursor: pointer; list-style: none; display: block; }
.nav > a:hover, .nav > a.active, .nav .menu > summary:hover, .nav .menu > summary.active, .nav .menu[open] > summary { background: rgba(255,255,255,.14); color: #fff; }
.nav > a.active { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 999px; }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu-panel { position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-hover); padding: 6px; z-index: 50; }
.menu.right .menu-panel { left: auto; right: 0; }
.menu-panel a, .menu-panel button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--navy); text-decoration: none; font: 500 .9rem var(--font); background: none; border: 0; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--navy-50); color: var(--navy); }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
.userbox { display: flex; align-items: center; gap: 8px; font-size: .85rem; flex-shrink: 0; }
.who-btn { display: flex; align-items: center; gap: 10px; cursor: pointer; color: #fff; padding: 4px 10px 4px 4px; border-radius: 999px; }
.who-btn:hover, .menu[open] > .who-btn { background: rgba(255,255,255,.12); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xl { width: 84px; height: 84px; font-size: 2rem; }
.person { display: flex; align-items: center; gap: 10px; }
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.danger-zone { border-color: #e6b3af; background: #fffafa; } .danger-zone h2 { color: var(--bad); }
input[type=file] { width: 100%; padding: 8px; border: 1px dashed #c9cee4; border-radius: 10px; background: #fff; font: inherit; }
.userbox .who { text-align: left; line-height: 1.2; font-weight: 600; } .userbox .who small { opacity: .75; display: block; font-weight: 400; font-size: .72rem; }

/* dashboard */
.hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, var(--navy), var(--navy-700)); color: #fff; border-radius: var(--radius); padding: 24px 28px; margin-bottom: 20px; border-bottom: 4px solid var(--orange); }
.hero h1 { color: #fff; margin-bottom: 2px; } .hero p { margin: 0; opacity: .9; } .hero .hero-sub { font-size: .85rem; opacity: .7; margin-top: 6px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tiles { margin-bottom: 20px; }
.stat.free { border-top: 3px solid var(--ok); } .stat.free .n { color: var(--ok); }
.stat.busy { border-top: 3px solid var(--bad); } .stat.busy .n { color: var(--bad); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 28px 0 12px; } .section-title h2 { margin: 0; }
.card-link { margin: 12px 0 0; font-size: .88rem; }
.bell { position: relative; color: #fff; text-decoration: none; padding: 6px 8px; border-radius: 999px; }
.bell:hover { background: rgba(255,255,255,.12); color: #fff; }
.badge-dot { position: absolute; top: -2px; right: -4px; background: var(--orange); color: #fff; border-radius: 999px; font-size: .68rem; font-weight: 700; padding: 1px 6px; }
.subbar { height: 4px; background: linear-gradient(90deg, var(--orange), var(--orange-600)); }
main { max-width: 1240px; margin: 0 auto; padding: 28px 20px 56px; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; padding: 20px; text-align: center; background: #fff; }

/* components */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; }
.card h2 { margin-bottom: 14px; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .n { font-family: var(--display); font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat .l { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.stat.accent { border-top: 3px solid var(--orange); }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 999px; padding: 9px 18px; font: 600 .92rem var(--font); cursor: pointer; text-decoration: none; background: var(--orange); color: #fff; }
.btn:hover { background: var(--orange-600); color: #fff; }
.btn.navy { background: var(--navy); } .btn.navy:hover { background: var(--navy-700); }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--navy-200); } .btn.ghost:hover { background: var(--navy-50); color: var(--navy); }
.btn.danger { background: #fff; color: var(--bad); border-color: #e6b3af; } .btn.danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn.sm { padding: 5px 12px; font-size: .82rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.pill.confirmed, .pill.accepted { background: var(--ok-bg); color: var(--ok); }
.pill.pending { background: var(--warn-bg); color: var(--warn); }
.pill.cancelled, .pill.rejected, .pill.revoked { background: var(--bad-bg); color: var(--bad); }
.pill.expired { background: #eceef6; color: var(--muted); }
.pill.org-ac { background: var(--navy-50); color: var(--navy); } .pill.org-arl { background: var(--orange-50); color: var(--orange-600); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:hover td { background: var(--blush); }
.table-wrap { overflow-x: auto; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty b { display: block; color: var(--navy); font-family: var(--display); font-size: 1.05rem; margin-bottom: 4px; }

/* forms */
label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 4px; color: var(--navy); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #c9cee4; border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: 3px solid rgba(239,140,20,.35); }
.field { margin-bottom: 14px; } .help { color: var(--muted); font-size: .8rem; margin-top: 3px; }
.errorlist { list-style: none; margin: 4px 0 0; padding: 0; color: var(--bad); font-size: .83rem; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; } .checks label { font-weight: 500; display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.checks ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.filters { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; margin-bottom: 14px; }
.inline { display: inline; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* messages */
.messages { list-style: none; padding: 0; margin: 0 0 20px; }
.messages li { padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; border: 1px solid; font-weight: 500; }
.messages .success { background: var(--ok-bg); color: var(--ok); border-color: #b9e0c9; }
.messages .error { background: var(--bad-bg); color: var(--bad); border-color: #f0c3bf; }
.messages .warning { background: var(--warn-bg); color: var(--warn); border-color: #f1d49a; }
.messages .info { background: var(--navy-50); color: var(--navy); border-color: var(--navy-100); }
.alert { padding: 12px 16px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); border: 1px solid #f0c3bf; margin-bottom: 14px; }
.avail { padding: 10px 14px; border-radius: 10px; margin: 6px 0 14px; font-size: .9rem; display: none; }
.avail.ok { display: block; background: var(--ok-bg); color: var(--ok); } .avail.bad { display: block; background: var(--bad-bg); color: var(--bad); }
.suggest { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, var(--navy-900), var(--navy) 60%, var(--navy-700)); padding: 20px; }
.auth-card { background: #fff; width: 100%; max-width: 430px; border-radius: 18px; padding: 32px; box-shadow: 0 20px 60px -20px rgba(0,0,0,.5); }
.auth-card .logo { height: 54px; margin-bottom: 14px; }
.auth-card h1 { font-size: 1.4rem; margin-bottom: 2px; } .auth-card .tag { color: var(--orange-600); font-weight: 600; font-size: .85rem; margin-bottom: 20px; }
.auth-card .btn { width: 100%; justify-content: center; }

/* calendar */
.cal-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.seg { display: inline-flex; border: 1px solid var(--navy-200); border-radius: 999px; overflow: hidden; background: #fff; }
.seg a { padding: 7px 16px; text-decoration: none; font-weight: 600; font-size: .88rem; color: var(--navy); }
.seg a.on { background: var(--navy); color: #fff; }
.tl { display: grid; grid-template-columns: 54px repeat(var(--cols), minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow-x: auto; }
.tl-head { display: contents; } .tl-head > div { padding: 8px 6px; text-align: center; font-weight: 600; font-size: .85rem; border-bottom: 1px solid var(--line); background: var(--blush); }
.tl-head .today { background: var(--orange-50); color: var(--orange-600); }
.tl-hours { position: relative; } .tl-hours span { position: absolute; right: 6px; font-size: .72rem; color: var(--muted); transform: translateY(-50%); }
.tl-col { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--ph) - 1px), var(--line) calc(var(--ph) - 1px), var(--line) var(--ph)); }
.tl-col.closed { background-color: #f1f2f8; }
.ev { position: absolute; border-radius: 8px; padding: 4px 7px; font-size: .76rem; line-height: 1.25; overflow: hidden; text-decoration: none; color: #fff; border-left: 4px solid var(--orange); background: var(--navy); box-shadow: var(--shadow); }
.ev:hover { box-shadow: var(--shadow-hover); color: #fff; z-index: 3; }
.ev { padding: 5px 8px; font-size: .8rem; line-height: 1.3; }
.ev b, .ev span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev span { opacity: .95; font-size: .76rem; }
.ev.org-arl { background: var(--orange-600); border-left-color: var(--navy); }
.ev.pending { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 6px, transparent 6px 12px); border-left-style: dashed; }
.ev.cancelled, .ev.rejected { opacity: .45; text-decoration: line-through; }
.blockbar { position: absolute; left: 2px; right: 2px; background: repeating-linear-gradient(45deg, #dfe2f0 0 8px, #eceef7 8px 16px); border: 1px dashed #aab0cf; border-radius: 6px; font-size: .72rem; color: var(--muted); padding: 2px 6px; overflow: hidden; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin: 10px 0; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.month { width: 100%; table-layout: fixed; } .month td { height: 112px; padding: 4px 6px; border: 1px solid var(--line); background: #fff; }
.month td.out { background: var(--blush); color: #a0a6c2; } .month td.closed { background: #f1f2f8; } .month td.today { outline: 2px solid var(--orange); outline-offset: -2px; }
.month .d { font-weight: 700; font-size: .82rem; } .month a.m { display: block; font-size: .72rem; padding: 1px 5px; border-radius: 5px; margin-top: 2px; color: #fff; background: var(--navy); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.month a.m.org-arl { background: var(--orange-600); } .month a.m.pending { opacity: .75; }
.free-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* charts */
.bars { display: grid; gap: 8px; } .bar { display: grid; grid-template-columns: 170px 1fr 50px; gap: 10px; align-items: center; font-size: .88rem; }
.bar .track { background: var(--navy-50); border-radius: 999px; height: 14px; overflow: hidden; } .bar .fill { height: 100%; background: var(--navy); border-radius: 999px; } .bar .fill.o { background: var(--orange); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 8px; } .spark div { flex: 1; background: var(--navy); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; } .spark div:hover { background: var(--orange); }
.meter { height: 18px; background: var(--navy-50); border-radius: 999px; overflow: hidden; } .meter div { height: 100%; background: linear-gradient(90deg, var(--navy), var(--orange)); }
dl.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; margin: 0; } dl.kv dt { color: var(--muted); font-size: .85rem; } dl.kv dd { margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0; } .timeline li { padding: 8px 0 8px 16px; border-left: 3px solid var(--navy-100); font-size: .88rem; }
.notif { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); } .notif.unread { background: var(--orange-50); margin: 0 -12px; padding: 12px; border-radius: 10px; }
.pager { display: flex; gap: 12px; justify-content: center; margin-top: 14px; align-items: center; }

@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } .bar { grid-template-columns: 110px 1fr 40px; } }
@media (max-width: 1100px) { .userbox .who small, .brand span { display: none; } }
@media (max-width: 860px) {
  .topbar-inner { flex-wrap: wrap; gap: 10px; }
  .navwrap { order: 3; flex-basis: 100%; } .navtoggle { display: inline-block; }
  .navwrap:not(.open) > .nav { display: none; }
  .nav { flex-direction: column; align-items: stretch; margin-top: 8px; }
  .nav .menu-panel { position: static; box-shadow: none; margin-top: 4px; }
  .userbox { margin-left: auto; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; } main { padding: 18px 14px 40px; } .userbox .who { display: none; }
  dl.kv { grid-template-columns: 1fr; } .tl { --colmin: 120px; } .month td { height: 78px; } .month a.m { font-size: .62rem; }
  h1 { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: no-preference) { .btn, .ev, .nav a { transition: background .15s, box-shadow .15s; } }
@media print { .topbar, .subbar, footer, .btn, .filters { display: none; } }

/* day view: bookings list */
.bk-list { display: grid; gap: 10px; }
.bk { display: flex; gap: 16px; padding: 12px 14px; border: 1px solid var(--line); border-left: 5px solid var(--navy); border-radius: 12px; text-decoration: none; color: var(--ink); background: #fff; }
.bk:hover { box-shadow: var(--shadow-hover); color: var(--ink); }
.bk.org-arl { border-left-color: var(--orange-600); }
.bk.cancelled, .bk.rejected { opacity: .6; }
.bk-time { min-width: 120px; } .bk-time b { display: block; font-family: var(--display); font-size: 1.1rem; color: var(--navy); } .bk-time span { font-size: .8rem; color: var(--muted); }
.bk-main { flex: 1; min-width: 0; } .bk-title { font-weight: 700; color: var(--navy); font-size: 1rem; }
.bk-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; font-size: .85rem; }
.bk-meta i, .bk-note i { font-style: normal; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; margin-right: 4px; }
.bk-note { margin-top: 4px; font-size: .85rem; color: var(--ink); }
.alert-block { background: #eceef7; border: 1px dashed #aab0cf; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; font-size: .88rem; }
@media (max-width: 640px) { .bk { flex-direction: column; gap: 6px; } }
.more { margin: 4px 0 10px; } .more summary { cursor: pointer; color: var(--navy); font-weight: 600; font-size: .88rem; }

/* "Get the mobile app" banner on the dashboard */
.appbanner { position: relative; display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; padding: 18px 44px 18px 18px; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, var(--navy), var(--navy-700)); border-bottom: 4px solid var(--orange); box-shadow: var(--shadow); }
.appbanner[hidden] { display: none; }
.appbanner__logo { flex: none; width: 52px; height: 52px; display: grid; place-items: center; background: #fff; border-radius: 14px; }
.appbanner__logo img { width: 36px; }
.appbanner h2 { color: #fff; font-size: 1.15rem; margin: 0 0 4px; }
.appbanner p { margin: 0 0 12px; color: rgba(255, 255, 255, .88); font-size: .92rem; }
.appbanner .appbanner__fine { margin: 10px 0 0; font-size: .78rem; opacity: .75; }
.appbanner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.appbanner .btn.ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.appbanner .btn.ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.appbanner__steps { margin: 0 0 12px; padding-left: 20px; color: #fff; font-size: .9rem; }
.appbanner__steps li { margin-bottom: 4px; }
.appbanner__close { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; opacity: .8; }
.appbanner__close:hover { background: rgba(255, 255, 255, .15); opacity: 1; }
@media (max-width: 520px) { .appbanner { padding-right: 40px; gap: 12px; } .appbanner__logo { width: 44px; height: 44px; } }

/* ---- Booking calendar (calendar.html + js/calendar.js): tap a free time, book, done ---- */
.bc-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bc-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bc-today { padding: 8px 20px; border: 1px solid var(--navy-200); border-radius: 999px; background: #fff; font-weight: 600; text-decoration: none; color: var(--navy); }
.bc-today:hover { background: var(--navy-50); }
.bc-arrow { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; text-decoration: none; font-size: 1.5rem; line-height: 1; color: var(--navy); }
.bc-arrow:hover { background: var(--navy-50); }
.bc-range { margin: 0; font-size: 1.3rem; font-weight: 600; min-width: 0; }
.bc-pick { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--navy-200); border-radius: 50%; background: #fff; cursor: pointer; margin: 0; overflow: hidden; }
.bc-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; padding: 0; border: 0; }
.bc-pick input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.bc-hint { color: var(--muted); font-size: .88rem; margin: 0 0 10px; }
.bc-scroll { max-height: calc(100vh - 250px); min-height: 440px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.bc-grid { border: 0; border-radius: 0; overflow: visible; min-width: calc(54px + var(--cols) * 96px); }
.bc-grid .tl-head > div { position: sticky; top: 0; z-index: 6; background: #fff; padding: 8px 4px 10px; }
.bc-grid .tl-head a { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--muted); }
.bc-grid .tl-head small { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.bc-grid .tl-head b { font: 600 1.35rem var(--display); color: var(--navy); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.bc-grid .tl-head .today { background: #fff; color: inherit; }
.bc-grid .tl-head .today b { background: var(--orange); color: #fff; }
.bc-grid .tl-hours span { font-size: .74rem; }
.bc-grid .tl-col { cursor: pointer; touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; }
.bc-grid .tl-col:hover { background-color: #fcfcff; }
.bc-past { position: absolute; left: 0; right: 0; top: 0; background: repeating-linear-gradient(135deg, rgba(1,28,112,.035) 0 6px, transparent 6px 12px); pointer-events: none; }
.bc-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--orange); z-index: 4; pointer-events: none; }
.bc-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.bc-grid .ev { border: 0; border-radius: 10px; box-shadow: none; padding: 6px 9px; z-index: 2; cursor: pointer; }
.bc-grid .ev b { font: 700 .86rem var(--display); }
.bc-grid .ev span { font-size: .78rem; opacity: .85; }
.bc-grid .ev:hover { filter: brightness(.97); box-shadow: var(--shadow-hover); }
.bc-grid .ev.mine { box-shadow: inset 0 0 0 2px var(--navy); }
.c0 { background: #bfe6f8 !important; color: #0a3a5c !important; }
.c1 { background: #fcc6d3 !important; color: #6b1430 !important; }
.c2 { background: #f1d4fb !important; color: #4a1862 !important; }
.c3 { background: #f8dc95 !important; color: #553a00 !important; }
.c4 { background: #c6efd5 !important; color: #0f4a2b !important; }
.c5 { background: #fdd2b4 !important; color: #692e07 !important; }
.ev.c0:hover, .ev.c1:hover, .ev.c2:hover, .ev.c3:hover, .ev.c4:hover, .ev.c5:hover { color: inherit; }
.month a.m[class*=" c"] { font-weight: 600; }
.bc-legend i.bc-mine-key { background: #fff; box-shadow: inset 0 0 0 2px var(--navy); }
.bc-ghost { position: absolute; left: 3px; right: 3px; z-index: 3; border: 2px dashed var(--navy); background: rgba(1,28,112,.08); border-radius: 10px; font: 700 .78rem var(--font); color: var(--navy); padding: 4px 8px; pointer-events: none; }
.bc-ghost.bad { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
.bc-flash { position: absolute; left: 6px; right: 6px; top: 8px; z-index: 7; background: var(--ink); color: #fff; font-size: .78rem; border-radius: 8px; padding: 6px 8px; text-align: center; pointer-events: none; }
.bc-pop { position: fixed; z-index: 60; width: 300px; background: #fff; border-radius: 16px; box-shadow: 0 18px 50px -12px rgba(1,15,61,.35), 0 0 0 1px var(--line); padding: 14px 16px 16px; }
.bc-pop[hidden] { display: none; }
.bc-pop-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.bc-pop-head b { font: 700 1.05rem var(--display); color: var(--navy); }
.bc-x { border: 0; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.bc-times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bc-times label { font-size: .78rem; color: var(--muted); font-weight: 600; margin: 0; }
.bc-times input { margin-top: 4px; font-size: 1.05rem; font-weight: 600; padding: 8px 10px; }
.bc-durs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.bc-durs button, .bc-sugg button { border: 1px solid var(--navy-200); background: #fff; color: var(--navy); border-radius: 999px; padding: 6px 11px; font: 600 .8rem var(--font); cursor: pointer; }
.bc-durs button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.bc-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; } .bc-sugg:empty { display: none; }
.bc-msg { font-size: .84rem; min-height: 1.3em; margin-bottom: 10px; } .bc-msg.ok { color: var(--ok); } .bc-msg.bad { color: var(--bad); }
.bc-go { width: 100%; justify-content: center; padding: 12px; font-size: 1rem; }
.bc-go:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 640px) {
  .bc-nav { flex-wrap: nowrap; gap: 4px; width: 100%; }
  .bc-today { padding: 7px 14px; }
  .bc-range { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; text-align: center; }
  .bc-arrow { width: 32px; flex-shrink: 0; }
  .bc-scroll { max-height: calc(100vh - 230px); }
  .bc-grid { min-width: calc(54px + var(--cols) * 72px); }
  .bc-pop { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; border-radius: 18px 18px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
