/* Yoyo Takvim */
.cl-wrap { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.cl-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex: none; }
.cl-title { margin: 0 0 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -.01em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-views { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex: none; }
.cl-views button { border: 0; background: none; padding: 6px 12px; font-size: 13px; font-weight: 600; color: #334155; border-inline-start: 1px solid var(--line); }
.cl-views button:first-child { border-inline-start: 0; }
.cl-views button:hover { background: #f8fafc; }
.cl-views button.on { background: var(--blue-l); color: var(--blue-d); }
.cl-viewsel { display: none; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; background: #fff; font-size: 13px; font-weight: 600; flex: none; }
.cl-view { flex: 1; min-height: 0; overflow-y: auto; position: relative; }

/* Sol menu */
.cl-new { align-self: flex-start; padding-inline: 18px 22px; }
.cl-mini { padding: 0 2px; }
.cl-mini-h { display: flex; align-items: center; gap: 2px; padding: 0 0 4px 8px; }
.cl-mini-h b { flex: 1; font-size: 14px; font-weight: 600; }
.cl-mini-g { display: grid; grid-template-columns: repeat(7, 1fr); justify-items: center; row-gap: 1px; }
.cl-mini-g span { font-size: 11px; color: var(--mute); font-weight: 600; height: 22px; line-height: 22px; }
.cl-mini-g button { width: 28px; height: 28px; border: 0; background: none; border-radius: 50%; font-size: 12px; color: #334155; padding: 0; }
.cl-mini-g button:hover { background: #e2e8f0; }
.cl-mini-g .out { color: #a3afc0; }
.cl-mini-g .sel { background: var(--blue-l); color: var(--blue-d); font-weight: 700; }
.cl-mini-g .today { background: var(--blue); color: #fff; font-weight: 700; }
.cl-cals { display: grid; gap: 1px; }
.cl-cals-h { display: flex; align-items: center; justify-content: space-between; padding-inline-end: 2px; }
.cl-cal { display: flex; align-items: center; border-radius: 10px; padding-inline: 12px 2px; min-width: 0; }
.cl-cal:hover { background: #e9eef6; }
.cl-cal label { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 0; font-weight: 500; color: #334155; cursor: pointer; }
.cl-cal label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-cal input { width: 16px; height: 16px; margin: 0; flex: none; }
.cl-cal .ys-icon { visibility: hidden; }
.cl-cal:hover .ys-icon, .cl-cal .ys-icon:focus-visible { visibility: visible; }
.cl-cal .ys-icon:hover { background: #d5dde9; }

/* Ay */
.cl-month { display: flex; flex-direction: column; height: 100%; min-height: 420px; }
.cl-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); flex: none; }
.cl-dow div { font-size: 12px; font-weight: 600; color: var(--mute); padding: 6px 8px 2px; border-inline-start: 1px solid var(--line); }
.cl-dow div:first-child { border-inline-start: 0; }
.cl-weeks { flex: 1; min-height: 0; display: grid; }
.cl-week { position: relative; min-height: 0; min-width: 0; }
.cl-weeks .cl-week + .cl-week { border-top: 1px solid var(--line); }
.cl-cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); }
.cl-cell { border-inline-start: 1px solid var(--line); min-width: 0; cursor: pointer; }
.cl-cell:first-child { border-inline-start: 0; }
.cl-cell.sel, .cl-cell.drop { background: var(--blue-l); }
.cl-num { border: 0; background: none; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 500; color: #334155; padding: 0; margin: 2px 0 0 4px; }
.cl-num:hover { background: #e2e8f0; }
.cl-cell.out .cl-num { color: #a3afc0; }
.cl-cell.today .cl-num, .cl-dh.today .cl-num { background: var(--blue); color: #fff; font-weight: 700; }
.cl-lanes { position: relative; display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); grid-auto-rows: 20px; row-gap: 2px; pointer-events: none; }
.cl-weeks .cl-lanes { margin-top: 30px; }
.cl-chip { pointer-events: auto; display: flex; align-items: center; gap: 5px; min-width: 0; margin: 0 3px; padding: 0 6px; border-radius: 5px; font-size: 12px; line-height: 20px; color: var(--ink); cursor: pointer; white-space: nowrap; overflow: hidden; user-select: none; -webkit-user-select: none; }
.cl-chip:hover { background: #eef2f7; }
.cl-chip i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.cl-chip .t { color: var(--mute); flex: none; font-variant-numeric: tabular-nums; }
.cl-chip .n { overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.cl-chip.strip { color: #fff; }
.cl-chip.strip:hover { filter: brightness(.94); }
.cl-chip.strip .t { color: #fff; opacity: .85; }
.cl-chip.strip.cl { border-start-start-radius: 0; border-end-start-radius: 0; margin-inline-start: 0; }
.cl-chip.strip.cr { border-start-end-radius: 0; border-end-end-radius: 0; margin-inline-end: 0; }
.cl-chip.drag, .cl-ev.drag { opacity: .45; }
.cl-more { pointer-events: auto; border: 0; background: none; text-align: start; margin: 0 3px; padding: 0 6px; border-radius: 5px; font-size: 12px; line-height: 20px; font-weight: 600; color: var(--mute); min-width: 0; }
.cl-more:hover { background: #eef2f7; color: var(--ink); }

/* Hafta ve gun */
.cl-tg { height: 100%; overflow-y: auto; position: relative; --gut: 52px; user-select: none; -webkit-user-select: none; }
.cl-tg-top { position: sticky; top: 0; z-index: 5; background: var(--panel); border-bottom: 1px solid var(--line); }
.cl-tg-head, .cl-tg-all, .cl-tg-body { display: flex; }
.cl-gut { width: var(--gut); flex: none; position: relative; }
.cl-dhs { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.cl-dh { display: flex; align-items: center; gap: 2px; padding: 6px 0 2px 8px; min-width: 0; }
.cl-dh span { font-size: 12px; font-weight: 600; color: var(--mute); }
.cl-dh .cl-num { margin: 0 0 0 2px; font-size: 15px; width: 30px; height: 30px; }
.cl-dh.today span { color: var(--blue-d); }
.cl-tg-all .cl-week { flex: 1; padding: 2px 0 4px; }
.cl-tg-body { position: relative; }
.cl-tg-body .cl-gut span { position: absolute; inset-inline-end: 8px; transform: translateY(-50%); font-size: 11px; color: var(--mute); font-variant-numeric: tabular-nums; }
.cl-cols { flex: 1; min-width: 0; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.cl-hl { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); pointer-events: none; }
.cl-col { position: relative; border-inline-start: 1px solid var(--line); min-width: 0; cursor: pointer; }
.cl-ev { position: absolute; border-radius: 6px; color: #fff; padding: 2px 6px; font-size: 12px; line-height: 15px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--panel); }
.cl-ev b { font-weight: 600; overflow: hidden; overflow-wrap: anywhere; flex: 0 1 auto; min-height: 15px; }
.cl-ev span { opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.cl-ev.short { flex-direction: row; gap: 6px; align-items: center; padding-block: 0; }
.cl-ev.short b { flex: 0 1 auto; min-width: 0; white-space: nowrap; text-overflow: ellipsis; }
.cl-ev.short span { flex: 0 100 auto; min-width: 0; }
.cl-ev:hover { filter: brightness(.94); }
.cl-ev.moving { z-index: 4; opacity: .9; pointer-events: none; filter: none; }
.cl-rz { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; cursor: ns-resize; }
.cl-ghost { position: absolute; left: 1px; right: 3px; border-radius: 6px; background: var(--blue-l); border: 1px solid var(--blue); color: var(--blue-d); font-size: 12px; font-weight: 600; padding: 1px 6px; overflow: hidden; z-index: 3; pointer-events: none; font-variant-numeric: tabular-nums; }
.cl-now { position: absolute; height: 2px; background: var(--red); z-index: 2; pointer-events: none; transform: translateY(-1px); }
body.cl-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
body.cl-dragging.cl-resizing { cursor: ns-resize; }

/* Ajanda ve arama */
.cl-agenda { display: grid; align-content: start; }
.cl-aday { display: flex; align-items: flex-start; border-bottom: 1px solid var(--line); padding: 6px 0; }
.cl-adate { flex: none; width: 124px; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 5px 0 5px 16px; text-align: start; color: var(--mute); font-size: 12px; font-weight: 600; }
.cl-adate b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 15px; font-weight: 600; color: var(--ink); flex: none; }
.cl-adate:hover b { background: #e2e8f0; }
.cl-aday.today .cl-adate b { background: var(--blue); color: #fff; }
.cl-aday.today .cl-adate { color: var(--blue-d); }
.cl-arows { flex: 1; min-width: 0; display: grid; }
.cl-row { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 8px 14px 8px 8px; border-radius: 8px; text-align: start; min-width: 0; width: 100%; font-size: 14px; }
.cl-row:hover { background: #f1f5f9; }
.cl-row i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cl-row .tm { flex: none; width: 104px; color: #334155; font-variant-numeric: tabular-nums; }
.cl-row .n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cl-row .loc { color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
.cl-row .dt { flex: none; width: 104px; color: var(--mute); font-size: 13px; font-weight: 600; }
.cl-found .cl-row { border-radius: 0; border-bottom: 1px solid var(--line); padding: 11px 16px; }

/* Acilir pencereler */
.cl-pop { position: fixed; z-index: 90; width: min(340px, calc(100vw - 16px)); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(15, 23, 42, .14); padding: 14px; display: grid; gap: 10px; }
.cl-pop-foot { display: flex; justify-content: space-between; gap: 8px; }
.cl-when { font-size: 13px; color: #334155; }
.cl-detail { padding: 8px 16px 16px; gap: 8px; }
.cl-pop-acts { display: flex; justify-content: flex-end; gap: 2px; margin-inline-end: -8px; }
.cl-d-title { display: flex; align-items: flex-start; gap: 10px; }
.cl-d-title i { width: 12px; height: 12px; border-radius: 3px; flex: none; margin-top: 6px; }
.cl-d-title h2 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.cl-d-when { font-size: 14px; color: #334155; padding-inline-start: 22px; }
.cl-detail dl { margin: 0; padding-inline-start: 22px; font-size: 14px; }
.cl-detail dt { font-size: 12px; font-weight: 600; color: var(--mute); }
.cl-detail dd { margin: 0; overflow-wrap: anywhere; }
.cl-detail dd.pre { white-space: pre-wrap; max-height: 180px; overflow-y: auto; }

/* Form */
.cl-form { display: grid; gap: 12px; }
.cl-f-title { font-size: 17px; font-weight: 600; }
.cl-check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #334155; justify-self: start; cursor: pointer; }
.cl-check input { width: 16px; height: 16px; margin: 0; }
.cl-f-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cl-dt { display: flex; gap: 6px; align-items: center; min-width: 0; }
.cl-dt > * { min-width: 0; }
.cl-dt input[type=date], .cl-dt select { flex: 1 1 0; }
.ys-field .cl-time { flex: none; width: 96px; padding-inline: 10px 4px; font-variant-numeric: tabular-nums; }
.cl-dt input[type=number] { flex: none; width: 76px; }
.cl-times-l { font-weight: 400; color: var(--mute); flex: none; }
.cl-form textarea { resize: vertical; min-height: 72px; }
.cl-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.cl-swatches button { width: 28px; height: 28px; border-radius: 50%; border: 0; padding: 0; }
.cl-swatches button.on { outline: 2px solid var(--ink); outline-offset: 2px; }
.cl-scope { display: grid; gap: 10px; }
.cl-scope label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.cl-scope input { width: 16px; height: 16px; margin: 0; }
.cl-set-row { display: flex; align-items: center; gap: 12px; }
.cl-set-row > div { flex: 1; min-width: 0; display: grid; }
.cl-set-row span { font-size: 13px; }

/* Hatirlatma */
.cl-reminders { position: fixed; right: 16px; bottom: 16px; z-index: 150; display: grid; gap: 8px; width: min(340px, calc(100vw - 32px)); }
.cl-reminder { display: flex; align-items: flex-start; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(15, 23, 42, .14); padding: 12px 8px 12px 14px; }
.cl-reminder > i { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 6px; }
.cl-reminder > div { flex: 1; min-width: 0; display: grid; }
.cl-reminder b { font-weight: 600; overflow-wrap: anywhere; }
.cl-reminder span { font-size: 13px; color: var(--mute); overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .cl-bar { padding: 8px 10px; gap: 2px; }
  .cl-title { font-size: 16px; margin-inline-start: 4px; }
  .cl-views { display: none; }
  .cl-viewsel { display: block; }
  .cl-tg { --gut: 40px; }
  .cl-tg-body .cl-gut span { inset-inline-end: 5px; font-size: 10px; }
  .cl-dh { flex-direction: column; gap: 0; padding: 4px 0 2px; }
  .cl-dh .cl-num { margin: 0; width: 28px; height: 28px; font-size: 14px; }
  .cl-dow div { padding-inline: 0; text-align: center; font-size: 11px; }
  .cl-num { margin-inline-start: 1px; }
  .cl-chip { margin: 0 1px; padding: 0 3px; font-size: 11px; gap: 3px; }
  .cl-weeks .cl-chip .t, .cl-weeks .cl-chip i { display: none; }
  .cl-weeks .cl-chip:not(.strip) { background: #eef2f7; }
  .cl-more { margin: 0 1px; padding: 0 3px; font-size: 11px; }
  .cl-ev { padding: 1px 3px; font-size: 11px; }
  .cl-adate { width: 92px; padding-inline-start: 10px; }
  .cl-row { flex-wrap: wrap; row-gap: 0; }
  .cl-row .tm { width: auto; }
  .cl-row .loc { flex-basis: 100%; padding-inline-start: 20px; font-size: 13px; }
  .cl-f-row { grid-template-columns: minmax(0, 1fr); }
  .cl-cal .ys-icon { visibility: visible; }
}
@media (max-width: 760px) {
  .cl-tg[style*="--n:7"] .cl-ev span { display: none; }
}
