/* Baseline layout for the interactive calendar (separate from app.css so Gemini's main
   stylesheet is untouched). Functional only — Gemini may restyle; keep the cc-cal-* hooks. */
.cc-cal-nav { display: flex; gap: 8px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.cc-cal-btn { background: var(--panel, #fff); color: var(--fg, #0f172a);
  border: 1px solid var(--line, #e2e8f0); border-radius: var(--r, 4px); padding: 6px 10px;
  cursor: pointer; font: inherit; }
.cc-cal-btn:hover { border-color: var(--accent, #2563eb); }
.cc-cal-cur { font-weight: 700; min-width: 150px; text-align: center; }
.cc-cal-latest { margin-left: auto; }

.cc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cc-cal-dow { margin-bottom: 4px; }
.cc-cal-dowcell { text-align: center; color: var(--muted, #64748b); font-size: 12px;
  text-transform: uppercase; letter-spacing: .04em; padding: 4px 0; }
.cc-cal-cell { min-height: 64px; border: 1px solid var(--line, #e2e8f0);
  border-radius: var(--r, 4px); padding: 4px 6px; position: relative; background: var(--panel, #fff); }
.cc-cal-empty { background: transparent; border: none; }
.cc-cal-cell.has-events { cursor: pointer; }
.cc-cal-cell.has-events:hover { border-color: var(--accent, #2563eb); }
.cc-cal-cell.sel { outline: 2px solid var(--accent, #2563eb); }
.cc-cal-daynum { font-size: 12px; color: var(--muted, #64748b); }
.cc-cal-count { position: absolute; top: 4px; right: 6px; font-size: 11px; font-weight: 700;
  font-family: var(--mono, monospace); }
.cc-cal-dots { position: absolute; bottom: 6px; left: 6px; display: flex; gap: 3px; }
.cc-cal-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); }

/* strength color tiers (events, dots, cells) */
.cc-cal-cell.has-events.ai-high { box-shadow: inset 0 3px 0 var(--neg, #dc2626); }
.cc-cal-cell.has-events.ai-mid  { box-shadow: inset 0 3px 0 var(--mixed, #d97706); }
.cc-cal-cell.has-events.ai-low  { box-shadow: inset 0 3px 0 var(--muted, #94a3b8); }
.cc-cal-dot.ai-high { background: var(--neg, #dc2626); }
.cc-cal-dot.ai-mid  { background: var(--mixed, #d97706); }
.cc-cal-dot.ai-low  { background: var(--muted, #94a3b8); }
.cc-cal-event.ai-high { border-left: 3px solid var(--neg, #dc2626); }
.cc-cal-event.ai-mid  { border-left: 3px solid var(--mixed, #d97706); }
.cc-cal-event.ai-low  { border-left: 3px solid var(--line, #e2e8f0); }

/* Event list: Gemini's app.css makes .cc-cal-list a card GRID and .cc-cal-event a card; we only
   lay out the card INTERIOR (.cc-cal-link) as a vertical stack so the title doesn't collapse. */
.cc-cal-events { margin-top: 24px; }
.cc-cal-link { display: flex; flex-direction: column; gap: 4px; padding: 16px; height: 100%;
  color: var(--fg, #0f172a); text-decoration: none; }
@media (max-width: 720px) { .cc-cal-cell { min-height: 44px; } }

/* legend for strength colors */
.cc-cal-legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px;
  margin: 8px 0; }
.cc-cal-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block;
  margin-right: 5px; vertical-align: middle; }
