/* Personal calendar follows the app's green, paper and Golos typography. */
.cal-workspace { min-width: 0; }
.cal-workspace svg { width: 18px; height: 18px; flex-shrink: 0; }
.cal-heading { margin-bottom: 13px; }
.cal-heading > .button { flex-shrink: 0; }
.cal-timezone { display: flex; align-items: center; gap: 7px; margin: 0 0 25px; color: var(--muted); font-size: 12px; }
.cal-timezone svg { width: 15px; height: 15px; }
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cal-period { display: flex; gap: 20px; align-items: center; }
.cal-period-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 0; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 14px; }
.cal-period-button > span { min-width: 23px; padding: 1px 6px; border-radius: 6px; background: #e9ece6; color: #6d796a; font-size: 11px; }
.cal-period-button.is-active { border-color: var(--green); color: var(--dark); font-weight: 600; }
.cal-period-button.is-active > span { background: #dceadd; color: var(--green); }
.cal-tools { display: flex; gap: 12px; align-items: center; }
.cal-filter select { width: 172px; min-height: 39px; padding: 8px 28px 8px 12px; border-radius: 7px; font-size: 12px; }
.cal-view { display: flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 8px; background: #eef1e9; }
.cal-view-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 32px; padding: 6px 11px; color: #6c7e65; border: 1px solid transparent; border-radius: 5px; background: transparent; font-size: 12px; }
.cal-view-button.is-active { color: var(--dark); background: white; border-color: #dfe6d8; box-shadow: 0 1px 2px #173c2e05; }
.cal-view-button svg { width: 15px; height: 15px; }
.cal-result-note { padding: 12px 0 16px; font-size: 12px; color: var(--muted); }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 310px); gap: 20px; align-items: start; }
.cal-month { min-width: 0; }
.cal-month-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 18px; border-bottom: 1px solid var(--line); }
.cal-month-navigation { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cal-month-navigation h2 { margin: 0; min-width: 160px; text-align: center; color: var(--dark); font-size: 17px; font-weight: 550; text-transform: capitalize; letter-spacing: -.025em; }
.cal-arrow { display: grid; place-items: center; width: 32px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--green); }
.cal-arrow:hover { background: var(--mint); }
.cal-grid { table-layout: fixed; width: 100%; border-collapse: separate; border-spacing: 0; }
.cal-grid th { padding: 11px 0; text-align: center; background: #fafbf8; color: #87937f; font-size: 11px; letter-spacing: .02em; font-weight: 500; border-bottom: 1px solid var(--line); }
.cal-grid td { height: 101px; padding: 0; vertical-align: top; border-bottom: 1px solid var(--line); border-right: 1px solid #edf0e9; background: white; }
.cal-grid td:last-child { border-right: 0; }
.cal-grid tbody tr:last-child td { border-bottom: 0; }
.cal-grid .cal-outside { background: #fbfcf9; }
.cal-day { display: flex; flex-direction: column; gap: 6px; width: 100%; height: 100%; min-height: 101px; padding: 6px 5px 7px; border: 0; text-align: left; color: #53684b; background: transparent; box-shadow: inset 0 0 0 1.5px transparent; }
.cal-day:hover { background: #f4f8ef; }
.cal-day:focus-visible { position: relative; z-index: 1; outline-offset: -3px; }
.cal-selected .cal-day { background: #edf4e8; box-shadow: inset 0 0 0 1.5px #89ad75; }
.cal-day-number { display: inline-grid; place-items: center; width: 26px; height: 26px; margin: 0 0 0 1px; border-radius: 7px; font-size: 12px; }
.cal-outside .cal-day-number { color: #b0b9a9; }
.cal-day-number.is-today { background: var(--green); color: white; font-weight: 600; }
.cal-day-items { display: flex; flex-direction: column; gap: 3px; width: 100%; min-width: 0; }
.cal-day-item { display: flex; align-items: center; gap: 4px; max-width: 100%; padding: 3px 4px; border-radius: 3px; background: #edf2e8; color: #517444; font-size: 9px; line-height: 1.25; }
.cal-day-item > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-day-item > i, .cal-legend i { flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: #708f55; }
.cal-day-item--meeting { background: #eef1f8; color: #5a6c92; }
.cal-day-item--meeting > i, .cal-legend .is-meeting { background: #7e8fb3; }
.cal-day-item.is-cancelled { color: #977a79; background: #f6eded; text-decoration: line-through; }
.cal-day-item.is-cancelled > i { background: #ba9290; }
.cal-day-more { padding: 0 4px; font-size: 10px; color: var(--muted); }
.cal-month-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.cal-legend { display: flex; gap: 15px; flex-wrap: wrap; }
.cal-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.cal-agenda { min-width: 0; }
.cal-agenda-head { padding: 22px; border-bottom: 1px solid var(--line); background: #f8faf5; }
.cal-agenda-head p { margin: 0 0 5px; font-size: 11px; text-transform: capitalize; color: #8a977f; }
.cal-agenda-head h2 { margin: 0 0 4px; font-size: 22px; font-weight: 500; letter-spacing: -.04em; color: #4a663e; }
.cal-agenda-head > span { font-size: 11px; color: #87967b; }
.cal-entry { min-width: 0; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cal-entry:last-child { border-bottom: 0; }
.cal-entry-body { min-width: 0; }
.cal-entry-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.cal-type { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: #7e966a; }
.cal-type svg { width: 13px; height: 13px; }
.cal-type--meeting { color: #7787a8; }
.cal-entry-top .badge { padding: 2px 6px; font-size: 9px; }
.cal-entry h3 { margin: 0 0 8px; font-size: 14px; line-height: 1.55; font-weight: 550; }
.cal-title { padding: 0; border: 0; color: #38562e; background: transparent; font: inherit; text-align: left; overflow-wrap: anywhere; }
.cal-title:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.cal-entry.is-cancelled .cal-title { color: #8e7775; }
.cal-entry-time { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; margin: 0 0 8px; font-size: 12px; font-weight: 500; color: #5a714e; }
.cal-entry-time > span { font-size: 9px; color: #94a18a; font-weight: 400; }
.cal-entry-peer { margin: 0 0 5px; color: #6a7d5f; font-size: 12px; overflow-wrap: anywhere; }
.cal-entry-parent { margin: 0 0 8px; color: #919a8b; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.cal-entry-location { display: flex; align-items: flex-start; gap: 5px; margin: 0; color: #8a9680; font-size: 11px; line-height: 1.6; }
.cal-entry-location > span { min-width: 0; overflow-wrap: anywhere; }
.cal-entry-location svg { width: 13px; height: 13px; margin-top: 2px; }
.cal-entry-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 4px; margin: 13px -8px -7px; }
.cal-entry-actions .button { min-height: 32px; padding: 5px 8px; font-size: 11px; }
.cal-entry-actions svg { width: 13px; height: 13px; }
.cal-empty { display: flex; flex-direction: column; align-items: center; padding: 54px 22px; text-align: center; }
.cal-empty-mark { display: grid; place-items: center; width: 53px; height: 53px; margin-bottom: 20px; border: 1px solid #e0e8d8; border-radius: 15px; color: #97aa84; background: #f0f5e9; }
.cal-empty-mark svg { width: 24px; height: 24px; }
.cal-empty h3 { margin: 0 0 8px; color: #5e7652; font-size: 15px; font-weight: 500; }
.cal-empty p { max-width: 380px; margin: 0; color: #8f9b83; font-size: 12px; line-height: 1.75; }
.cal-empty .button { margin-top: 19px; font-size: 12px; }
.cal-agenda .cal-empty { min-height: 288px; padding: 38px 20px; }
.cal-agenda .cal-empty h3 { font-size: 14px; }
.cal-agenda .cal-empty p { max-width: 210px; font-size: 11px; }
.cal-list-month { margin: 0; padding: 16px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8faf5; color: #6d825e; font-size: 13px; font-weight: 500; text-transform: capitalize; letter-spacing: -.01em; }
.cal-list-month:first-child { border-top: 0; }
.cal-list .cal-entry { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 24px; padding: 23px 26px; }
.cal-entry-date { display: flex; flex-direction: column; align-items: center; align-self: start; gap: 1px; padding-top: 2px; }
.cal-entry-date strong { font-size: 28px; font-weight: 500; letter-spacing: -.055em; color: #577144; line-height: 1.2; }
.cal-entry-date > span { font-size: 11px; color: #8c9d7e; }
.cal-entry-date > small { margin-top: 8px; font-size: 10px; color: #a5b09a; }
.cal-list .cal-entry h3 { font-size: 16px; }
.cal-list .cal-entry-actions { justify-content: flex-start; gap: 16px; }
.cal-export-note { margin: 16px 0 0; max-width: 740px; color: #91a084; font-size: 10px; line-height: 1.7; }
.cal-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1180px) {
  .cal-layout { grid-template-columns: minmax(0, 1fr); }
  .cal-agenda-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 12px; padding: 17px 22px; }
  .cal-agenda-head p { flex-basis: 100%; margin: 0; }
  .cal-agenda-head h2 { margin: 0; }
  .cal-agenda-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-agenda-items > .cal-empty { grid-column: 1 / -1; width: 100%; min-height: 225px; padding: 28px; }
  .cal-agenda-items > .cal-empty p { max-width: 330px; }
  .cal-agenda-items > .cal-entry { border-bottom: 0; }
  .cal-agenda-items > .cal-entry:nth-child(even) { border-left: 1px solid var(--line); }
  .cal-agenda-items > .cal-entry:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .cal-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .cal-heading > .button { min-height: 36px; font-size: 12px; }
  .cal-heading p { line-height: 1.7; }
  .cal-timezone { font-size: 10px; line-height: 1.6; margin-bottom: 14px; }
  .cal-toolbar { gap: 13px; }
  .cal-period { gap: 22px; }
  .cal-period-button { font-size: 12px; }
  .cal-tools { width: 100%; gap: 9px; justify-content: space-between; }
  .cal-filter { flex: 1; max-width: 190px; min-width: 120px; }
  .cal-filter select { width: 100%; font-size: 11px; }
  .cal-view-button { gap: 5px; padding: 6px 7px; font-size: 11px; }
  .cal-view-button svg { width: 13px; height: 13px; }
  .cal-result-note { font-size: 10px; padding-bottom: 13px; }
  .cal-month-head { padding: 14px 9px; gap: 8px; }
  .cal-month-navigation { gap: 3px; }
  .cal-month-navigation h2 { min-width: 125px; font-size: 14px; }
  .cal-arrow { width: 25px; height: 31px; }
  .cal-month-head > .button { padding: 5px 8px; min-height: 32px; font-size: 10px; }
  .cal-grid th { padding: 10px 0; font-size: 10px; }
  .cal-grid td { height: 68px; }
  .cal-day { min-height: 68px; gap: 7px; padding: 5px 3px; align-items: center; }
  .cal-day-number { width: 25px; height: 25px; margin: 0; font-size: 11px; }
  .cal-day-items { flex-direction: row; gap: 4px; align-items: center; justify-content: center; flex-wrap: wrap; }
  .cal-day-item { padding: 0; background: transparent; }
  .cal-day-item > span { display: none; }
  .cal-day-item > i { width: 5px; height: 5px; }
  .cal-day-more { padding: 0; font-size: 8px; line-height: 1; }
  .cal-month-foot { padding: 12px; gap: 8px; font-size: 9px; }
  .cal-agenda-head { padding: 18px; }
  .cal-agenda-items { display: block; }
  .cal-agenda-items > .cal-entry { padding: 19px 18px; border: 0; border-bottom: 1px solid var(--line); }
  .cal-agenda-items > .cal-entry:nth-child(even), .cal-agenda-items > .cal-entry:nth-child(n+3) { border-left: 0; border-top: 0; }
  .cal-agenda-items > .cal-entry:last-child { border-bottom: 0; }
  .cal-list .cal-entry { grid-template-columns: 38px minmax(0, 1fr); gap: 15px; padding: 20px 15px; }
  .cal-list .cal-entry h3 { font-size: 14px; }
  .cal-entry-date strong { font-size: 25px; }
  .cal-list-month { padding: 14px 18px; font-size: 12px; }
  .cal-export-note { font-size: 9px; }
}
