.bm-events { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.bm-event { border: 1px solid #e2e2e2; border-radius: 10px; padding: 18px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.bm-event-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.bm-type-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef; color: #225; }
.bm-type-match .bm-type-badge { background: #fee; color: #822; }
.bm-type-tavling .bm-type-badge { background: #ffe6b3; color: #663; }
.bm-invited-badge { font-size: 12px; color: #555; }
.bm-event h3 { margin: 0 0 6px; }
.bm-meta { color: #555; font-size: 14px; line-height: 1.6; }
.bm-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bm-btn { padding: 6px 12px; border: 1px solid #ccc; background: #f7f7f7; border-radius: 6px; cursor: pointer; font-size: 13px; }
.bm-btn:hover { background: #efefef; }
.bm-btn.active.bm-btn-yes { background: #2e7d32; color: #fff; border-color: #2e7d32; }
.bm-btn.active.bm-btn-maybe { background: #f9a825; color: #fff; border-color: #f9a825; }
.bm-btn.active.bm-btn-no { background: #c62828; color: #fff; border-color: #c62828; }
.bm-status-msg { font-size: 12px; color: #2e7d32; margin-left: 6px; }
.bm-box { padding: 12px; background: #f7f7f7; border-radius: 6px; }

.bm-team-badge { font-size:12px; padding:3px 10px; border-radius:999px; background:#e6f4ea; color:#1b5e20; }
.bm-login-wrap { max-width:420px; margin:0 auto; padding:20px; border:1px solid #e2e2e2; border-radius:10px; background:#fff; }
.bm-calendar { margin:20px 0; }
.bm-cal-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.bm-cal-head h3 { margin:0; }
.bm-cal-nav { text-decoration:none; font-size:22px; padding:2px 12px; border:1px solid #ddd; border-radius:6px; color:#333; }
.bm-cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.bm-cal-dow { font-weight:600; text-align:center; padding:6px; background:#f4f4f4; border-radius:4px; font-size:12px; }
.bm-cal-cell { min-height:90px; border:1px solid #eee; border-radius:6px; padding:4px; background:#fff; font-size:12px; }
.bm-cal-empty { background:transparent; border:none; }
.bm-cal-today { border-color:#2e7d32; background:#f1f8e9; }
.bm-cal-day { font-weight:700; color:#555; margin-bottom:4px; }
.bm-cal-event { background:#eef; color:#225; padding:2px 4px; border-radius:3px; margin-bottom:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bm-cal-event.bm-type-match { background:#fee; color:#822; }
.bm-cal-event.bm-type-tavling { background:#ffe6b3; color:#663; }
.bm-cal-time { font-weight:700; }
.bm-team-card { border:1px solid #e2e2e2; border-radius:10px; padding:16px; background:#fff; margin-bottom:12px; }
.bm-team-card-head { display:flex; gap:8px; align-items:center; margin-bottom:6px; }
.bm-team-card h4 { margin:6px 0; }
.bm-team-block { margin-bottom:24px; }
.bm-team-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:12px; }
.bm-results-table { width:100%; border-collapse:collapse; margin-top:8px; font-size:13px; }
.bm-results-table th, .bm-results-table td { border:1px solid #eee; padding:4px 6px; text-align:center; }
.bm-results-table th { background:#fafafa; }
.bm-muted { color:#777; font-style:italic; }

/* ==========  Matchtavla (Kommande matcher / Senaste resultat)  ========== */
.bm-board { background:#fff; border:1px solid #e6e6e6; border-radius:6px; overflow:hidden; margin:0 0 28px; max-width:420px; font-family:inherit; }
.bm-board-head { background:#152a52; color:#fff; font-weight:700; font-size:15px; padding:12px 16px; letter-spacing:.2px; }
.bm-board-row { padding:12px 16px; border-bottom:1px solid #ededed; }
.bm-board-row:last-child { border-bottom:none; }
.bm-board-meta { font-size:12px; margin-bottom:8px; }
.bm-board-date { font-weight:700; color:#222; }
.bm-board-comp { color:#9a9a9a; margin-left:4px; }
.bm-board-team { display:flex; align-items:center; gap:10px; padding:3px 0; }
.bm-board-name { font-size:15px; color:#1c1c1c; flex:1; }
.bm-board-score { font-weight:700; font-size:15px; color:#111; }
.bm-board-logo { width:22px; height:22px; object-fit:contain; flex:0 0 22px; }
.bm-board-logo-empty { display:inline-block; border-radius:3px 3px 11px 11px; background:#eceff4; border:1px solid #dcdfe5; }
.bm-board-logo-club { background:#2b4a8b; border-color:#223c72; }
.bm-boards { display:grid; gap:24px; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); align-items:start; }

/* ==========  Matchtavla: flikar + mobil  ========== */
.bm-board { width:100%; box-sizing:border-box; }
.bm-tabs { max-width:420px; width:100%; }
.bm-tabs .bm-tab-input { position:absolute; opacity:0; pointer-events:none; }
.bm-tab-nav { display:grid; grid-template-columns:1fr 1fr; border-bottom:1px solid #e6e6e6; }
.bm-tab-nav label { text-align:center; padding:14px 8px; font-weight:700; font-size:17px; color:#3d4b5c; cursor:pointer; border-bottom:3px solid transparent; margin-bottom:-1px; }
.bm-tabs .bm-tab-input:first-of-type:checked ~ .bm-tab-nav label[for$="-a"],
.bm-tabs .bm-tab-input:nth-of-type(2):checked ~ .bm-tab-nav label[for$="-b"] { color:#15607e; border-bottom-color:#15607e; }
.bm-tab-panel { display:none; }
.bm-tabs .bm-tab-input:first-of-type:checked ~ .bm-tab-panel-a,
.bm-tabs .bm-tab-input:nth-of-type(2):checked ~ .bm-tab-panel-b { display:block; }
.bm-tab-panel .bm-board { border:none; border-radius:0; margin:0; background:#f7f8f9; }
.bm-tab-panel .bm-board-row { background:#f7f8f9; padding:16px; }
.bm-tab-panel .bm-board-meta { font-size:15px; }
.bm-tab-panel .bm-board-name { font-size:18px; }
.bm-tab-panel .bm-board-logo { width:30px; height:30px; flex:0 0 30px; }

@media (max-width:600px) {
  .bm-tabs, .bm-board { max-width:100%; }
  .bm-boards { grid-template-columns:1fr; }
  .bm-tab-nav label { font-size:15px; padding:12px 6px; }
  .bm-tab-panel .bm-board-name { font-size:16px; }
  .bm-tab-panel .bm-board-meta { font-size:13px; }
}

/* ===== Kalenderlista & lagblock (1.3.0) ===== */
.bm-cal-filter{display:flex;gap:8px;flex-wrap:wrap;padding:10px 12px;border-bottom:1px solid rgba(0,0,0,.08)}
.bm-cal-month{padding:10px 12px;font-weight:700;text-transform:capitalize;opacity:.75}
.bm-cal-item{display:flex;gap:12px;align-items:center;padding:10px 12px;border-top:1px solid rgba(0,0,0,.06)}
.bm-cal-item-date{display:flex;flex-direction:column;align-items:center;min-width:46px;line-height:1.1}
.bm-cal-item-day{font-size:20px;font-weight:700}
.bm-cal-item-dow{font-size:11px;text-transform:uppercase;opacity:.6}
.bm-cal-item-title{font-weight:600}
.bm-cal-item-meta{display:flex;gap:8px;flex-wrap:wrap;font-size:12px;opacity:.8;margin-top:2px}
.bm-cal-item.bm-type-match{border-left:3px solid #d92b2b}
.bm-cal-item.bm-type-traning{border-left:3px solid #2b7fd9}
.bm-cal-item.bm-type-tavling{border-left:3px solid #d99b2b}
.bm-team-block{margin-bottom:22px}
.bm-team-title{display:flex;align-items:center;gap:8px;margin:0 0 8px}
.bm-team-title .bm-board-logo{max-width:32px;height:auto}
.bm-team-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}
