/* Calendar. Uses the shared tokens and components from ../styles.css; everything here starts with .cl */
.cl { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cl h1 { margin: 0; }
.cl .grow { flex: 1 1 auto; min-width: 0; }

/* post state colours (same words and colours as the legend) */
.cl .k-posted .cl-s, .cl-legend .k-posted { color: var(--ok-ink); }
.cl .k-scheduled .cl-s, .cl-legend .k-scheduled { color: var(--info); }
.cl .k-review .cl-s, .cl-legend .k-review, .cl .k-manual .cl-s { color: var(--warn); }
.cl .k-bad .cl-s { color: var(--bad); }
.cl .k-draft .cl-s { color: var(--ink-2); }

/* header buttons */
.cl .cl-arrow { width: var(--tap); padding: 0; flex: none; }
.cl .seg { padding: 0; gap: 0; overflow: hidden; border-radius: var(--r-sm); background: var(--paper); }
.cl .seg button { min-height: var(--tap); border-radius: 0; padding: 0 14px; font-size: 14px; color: var(--ink); }
.cl .seg button[aria-pressed='true'] { background: var(--dark); color: var(--dark-ink); box-shadow: none; }
.cl-hint { color: var(--ink-2); font-size: 14px; }

/* ------------------------------------------------------------ desktop */
.cl.desk .cl-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cl.desk h1 { font-size: 26px; font-weight: 800; margin-right: 4px; }
.cl-scroll { overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
.cl-week { min-width: 900px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.cl-day { min-height: 520px; border-radius: 14px; padding: 12px 10px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  background: color-mix(in srgb, var(--line) 55%, var(--panel)); border: 1px solid color-mix(in srgb, var(--line) 55%, var(--panel)); }
.cl-day.today { background: var(--blue-soft); border-color: var(--blue); }
.cl-day.drop, .cl-mcell.drop { outline: 2px dashed var(--blue); outline-offset: -3px; }
.cl-dh { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.cl-dh h2 { margin: 0; font-size: 15px; font-weight: 800; }
.cl-note { font-size: 13px; color: var(--ink-2); }
.cl-day.today .cl-note { color: var(--info); font-weight: 700; }
.cl-add { margin-top: auto; border: 1.5px dashed var(--ink-3); background: transparent; border-radius: var(--r); font-size: 13px; }
.cl-add:hover { background: var(--paper); }

/* post card */
.cl-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 0; }
.cl-card[draggable='true'] { cursor: grab; }
.cl-card.dragging, .cl-chip.dragging { opacity: .5; }
.cl-card:focus-within { outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent); outline-offset: 1px; }
.cl-media .thumb { width: 100%; height: 70px; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.cl-body { padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-stat { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.cl-s { font-size: 12px; font-weight: 800; }
.cl-t { color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: var(--tap); }
.cl-t::after { content: ''; position: absolute; inset: 0; }
.cl-t:focus-visible { outline: none; }
.cl-w { font-size: 12px; color: var(--ink-2); }
.cl-time-ic { position: relative; z-index: 1; width: var(--tap); min-height: var(--tap); padding: 0; margin: -12px -10px -12px 0; color: var(--ink-2); }

.cl-legend { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }

.cl-emptycard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }

/* month */
.cl-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cl-dow { background: var(--panel); padding: 6px 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); text-align: center; }
.cl-mcell { background: var(--paper); min-height: 112px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cl-mcell.out { background: var(--panel); }
.cl-mcell.out .cl-mnum { color: var(--ink-3); }
.cl-mnum { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--ink); text-decoration: none; min-width: 24px; text-align: center; border-radius: 999px; padding: 0 4px; }
.cl-mcell.today .cl-mnum { background: var(--blue); color: #fff; }
.cl-chip { position: relative; font-size: 12px; padding: 3px 6px; border-radius: 5px; border-left: 4px solid var(--c, var(--ink-3)); background: color-mix(in srgb, var(--c, var(--ink-3)) 10%, var(--paper)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-chip[draggable='true'] { cursor: grab; }
.cl-chip a { color: var(--ink); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; }
.cl-chip a::after { content: ''; position: absolute; inset: 0; }
.cl-chip.k-posted { opacity: .75; }
.cl-chip.p-facebook { --c: var(--fb); } .cl-chip.p-instagram { --c: var(--ig); } .cl-chip.p-tiktok { --c: var(--tt); } .cl-chip.p-xhs { --c: var(--xhs); } .cl-chip.p-linkedin, .cl-chip.p-linkedin_org { --c: var(--li); }
.cl-more { font-size: 12px; font-weight: 700; color: var(--blue); }

/* ------------------------------------------------------------ phone */
.cl.phone { gap: 12px; }
.cl.phone .cl-head { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 6px 12px; display: flex; flex-direction: column; gap: 12px; }
.cl.phone .cl-r1, .cl.phone .cl-r2 { padding: 0 6px; }
.cl-r1 { display: flex; align-items: center; gap: 8px; }
.cl-r1 h1 { flex: 1 1 auto; min-width: 0; font-size: 20px; font-weight: 800; }
.cl-r2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cl-r2 .cl-today { flex: 1 1 auto; }
.cl-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.cl-sd { min-height: 64px; min-width: 0; padding: 0; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.cl-sd .w { font-size: 12px; font-weight: 600; }
.cl-sd .n { font-size: 17px; font-weight: 800; }
.cl-sd[aria-pressed='true'] { background: var(--blue); border-color: var(--blue); color: #fff; }
.cl-sd.today:not([aria-pressed='true']) { border-color: var(--blue); }
.cl-dot { width: 6px; height: 6px; border-radius: 3px; background: transparent; display: block; }
.cl-dot.on { background: var(--blue); }
.cl-sd[aria-pressed='true'] .cl-dot.on { background: #fff; }
.cl-mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.cl-mgrid .cl-dow { background: none; padding: 2px 0; font-size: 12px; }
.cl-md { min-height: 48px; }
.cl-md.out:not([aria-pressed='true']) { color: var(--ink-3); background: var(--panel); }

.cl-list { display: flex; flex-direction: column; gap: 12px; }
.cl-dsec { display: flex; flex-direction: column; gap: 12px; }
.cl-lh { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.cl-lh h2 { margin: 0; font-size: 16px; font-weight: 800; }
.cl-card.ph { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; }
.cl-card.ph .cl-media .thumb { width: 60px; height: 60px; border-radius: 10px; border: 1px solid var(--line); }
.cl-card.ph .cl-body { padding: 0; flex: 1 1 auto; gap: 1px; }
.cl-card.ph .cl-s { font-size: 13px; }
.cl-card.ph .cl-t { font-size: 15px; display: flex; align-items: center; min-height: var(--tap); margin: -8px 0; }
.cl-card.ph .cl-w { font-size: 13px; }
.cl-time-btn { position: relative; z-index: 1; align-self: flex-start; margin: 4px 0 -8px -12px; }
.cl-addwide { border: 1.5px dashed var(--ink-3); background: transparent; border-radius: 14px; min-height: 48px; width: 100%; }
.cl-empty { background: var(--blue-soft); border-radius: 14px; padding: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cl-empty .grow { flex: 1 1 160px; }
.cl-empty .b { font-weight: 700; }
.cl-empty .s { font-size: 13px; color: var(--ink-2); }

/* time sheet */
.cl-sheet-t { margin: 0; font-weight: 700; }
.cl-err:empty { display: none; }

.cl-vis { display: inline-block; font-size: 11px; font-weight: 700; line-height: 1.5; padding: 0 7px; border-radius: 999px; background: var(--panel); color: var(--ink-2); white-space: nowrap; }
.cl-card.ph .cl-vis { font-size: 12px; }

/* 2.4 account filter */
.cl-acct { max-width: 360px; margin: 8px 0; }
