.bbccg { max-width: 980px; margin: 28px auto; padding: 0 12px; font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif; }
.bbccg-header { margin-bottom: 12px; }
.bbccg-title { font-size: 22px; margin: 0 0 6px; }
.bbccg-sub { margin: 0; opacity: .75; font-size: 13px; }

.bbccg-panel { border: 1px solid #ddd; border-radius: 14px; padding: 14px; background: #fff; }
.bbccg-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 10px 0; }
.bbccg-label { display: inline-flex; flex-direction: column; gap: 6px; font-size: 12px; }
.bbccg-label-inline { font-size: 12px; opacity: .8; }
.bbccg-input { padding: 8px 10px; border: 1px solid #ccc; border-radius: 10px; min-width: 140px; }
.bbccg-week label { font-size: 13px; }
.bbccg-btn { padding: 10px 12px; border-radius: 12px; border: 1px solid #111; background: #111; color: #fff; cursor: pointer; }
.bbccg-btn:disabled { opacity: .45; cursor: not-allowed; }
.bbccg-btn-ghost { background: transparent; color: #111; }
.bbccg-actions { margin-top: 8px; }
.bbccg-hint { font-size: 12px; opacity: .85; line-height: 1.5; margin-top: 8px; }

.bbccg-preview-wrap { margin-top: 16px; }
.bbccg-preview { border-radius: 18px; border: 1px solid #ddd; overflow: hidden; }

.bbccg-export-root { position: fixed; left: -99999px; top: 0; width: 1px; height: 1px; overflow: hidden; }

/* ====== Calendar card ====== */
.bbcard { width: 100%; aspect-ratio: 4/3; padding: 28px; box-sizing: border-box; }
.bbtop { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.bblogo { width: 78px; height: 78px; border-radius: 16px; object-fit: contain; display: none; }
.bblogo.show { display: block; }

.bbtitle { font-weight: 800; font-size: 28px; line-height: 1.2; margin: 0; }
.bbmeta { font-size: 14px; opacity: .85; margin-top: 6px; }

.bbgrid { margin-top: 18px; width: 100%; border-collapse: collapse; table-layout: fixed; }
.bbgrid th, .bbgrid td { border: 1px solid rgba(0,0,0,.12); text-align: center; padding: 10px 0; }
.bbgrid th { font-size: 14px; }
.bbcell { position: relative; font-size: 16px; font-weight: 650; height: 54px; cursor: pointer; user-select: none; }
.bbtag { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.bbcell.off { opacity: .55; }
.bbcell.closed { opacity: 1; }
.bbcell.openOverride { opacity: 1; }
.bbcell.today { outline: 2px solid currentColor; outline-offset: -2px; border-radius: 10px; }

/* ====== Themes ====== */
.theme-minimal { background: #fff; color: #111; }
.theme-minimal .bbgrid th, .theme-minimal .bbgrid td { border-color: rgba(0,0,0,.12); }
.theme-minimal .bbtag { background: #111; color: #fff; }
.theme-minimal .bbcell.closed { background: rgba(0,0,0,.06); }
.theme-minimal .bbcell.openOverride { background: rgba(0,0,0,.04); }

.theme-cute { background: #fff7fb; color: #2a1f2a; }
.theme-cute .bbgrid th, .theme-cute .bbgrid td { border-color: rgba(74, 39, 74, .16); }
.theme-cute .bbtag { background: #ff4fa1; color: #fff; }
.theme-cute .bbcell.closed { background: rgba(255, 79, 161, .10); }
.theme-cute .bbcell.openOverride { background: rgba(0, 160, 120, .10); }
.theme-cute .bbtitle { letter-spacing: .2px; }

.theme-dark { background: #0f1115; color: #f2f4f8; }
.theme-dark .bbgrid th, .theme-dark .bbgrid td { border-color: rgba(255,255,255,.14); }
.theme-dark .bbtag { background: #f2f4f8; color: #0f1115; }
.theme-dark .bbcell.closed { background: rgba(255,255,255,.08); }
.theme-dark .bbcell.openOverride { background: rgba(255,255,255,.06); }
.theme-dark .bbmeta { opacity: .9; }
