/* calendar — grila lunară, pastilele și tooltip-ul */
.cal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px; padding: 0 0 14px; }
.cal-head h1 { margin: 0; }
.cal-head p { margin: 4px 0 0; }
.cal-month { display: flex; align-items: center; gap: 8px; }
.cal-month__name { font-weight: 700; font-size: 22px; min-width: 9ch; text-align: center; }
.cal-count { margin-left: auto; font-size: 13px; color: var(--mute); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--mute); margin: 0 0 12px; }
.cal-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--dot); margin-right: 5px; vertical-align: -1px; }
.cal-legend em { font-style: normal; }
.cal-empty { margin-bottom: 12px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.cal-week div { text-align: center; padding: 8px 2px; font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--g500); background: var(--g100); border-radius: var(--r-sm); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day { background: var(--card); border: 1px solid var(--g100); box-shadow: var(--shadow-sm); border-radius: var(--r); min-height: 116px; padding: 7px 7px 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day--empty { background: transparent; border: 0; }
.cal-day--weekend { background: #fcfcfd; }
.cal-day--today { border: 2px solid var(--pri); }
.cal-day__num { font-weight: 700; font-size: 16px; color: var(--ink); }
.cal-day__wd { display: none; font-size: 12px; font-weight: 600; color: var(--mute); }
.cal-pill { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.25; padding: 3px 7px; border-radius: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); background: var(--pill-bg); border: 1px solid var(--pill-bg); }
.cal-pill:hover { border-color: var(--pill-bd); text-decoration: none; }
.cal-pill--cont { opacity: .7; }
.cal-pill--deadline { background: var(--card); border: 1.5px dashed var(--pill-bd); }
.cal-pill--mine { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--pri); }
.cal-pill__until { font-weight: 400; opacity: .85; }
.cal-more summary { list-style: none; cursor: pointer; font-size: 11.5px; font-weight: 700; color: var(--pri); padding: 2px; }
.cal-more summary::-webkit-details-marker { display: none; }
.cal-more > div { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.cal-monthonly { margin-top: 16px; }
.cal-monthonly summary { cursor: pointer; }
.cal-monthonly h2 { display: inline; font-size: 16px; }
.cal-monthonly__list { display: flex; flex-wrap: wrap; gap: 5px; }
.cal-tip { position: fixed; z-index: 1000; width: min(340px, calc(100vw - 24px)); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgba(36, 36, 58, .18); padding: 12px 14px; font-size: 13px; line-height: 1.45; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.cal-tip.is-on { opacity: 1; pointer-events: auto; transform: none; }
.cal-tip__type { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); }
.cal-tip__type i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cal-tip__name { font-weight: 800; font-size: 15px; margin: 3px 0 8px; }
.cal-tip dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 10px; margin: 0; }
.cal-tip dt { color: var(--mute); }
.cal-tip dd { margin: 0; overflow-wrap: anywhere; }
.cal-tip__notes { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); color: var(--soft); font-size: 12px; max-height: 7.5rem; overflow: auto; }
.cal-tip__more { display: inline-block; margin-top: 8px; font-weight: 700; }
@media (max-width: 760px) {
  .cal-week { display: none; }
  .cal-grid { display: flex; flex-direction: column; }
  .cal-day--empty, .cal-day--none { display: none; }
  .cal-day { min-height: 0; }
  .cal-day__wd { display: inline; }
  .cal-pill { white-space: normal; }
  .cal-count { margin-left: 0; width: 100%; }
}
