/* Social media demo: "Your month at a glance" (Builder S). Prefix: cd- */
.cd__body { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: clamp(22px, 3vw, 44px); align-items: start; }
.cd__cal { min-width: 0; }
.cd__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-bottom: 14px; }
.cd__legend { display: flex; gap: 16px; font: 400 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cd__legend li { display: inline-flex; align-items: center; gap: 7px; }
.cd__legend i, .cd__chip-p i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #fff; }
.cd__legend .ig, .cd__chip[data-p="ig"] .cd__chip-p i { border-radius: 2px; }
.cd__legend .li, .cd__chip[data-p="li"] .cd__chip-p i { border-radius: 0; background: #fff; border-color: #fff; transform: rotate(45deg) scale(.82); }
.cd__legend .fb, .cd__chip[data-p="fb"] .cd__chip-p i { background: transparent; }
.cd__wk, .cd__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cd__wk span { padding: 0 0 8px 4px; font: 400 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cd__day { position: relative; min-height: 92px; padding: 8px 6px 6px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .015); cursor: pointer; transition: border-color .25s, background .25s, box-shadow .3s; }
.cd__day--blank { border-color: transparent; background: none; cursor: default; }
.cd__day:not(.cd__day--blank):hover { border-color: var(--line-2); background: rgba(255, 255, 255, .03); }
.cd__d { position: absolute; right: 8px; top: 7px; font: 400 10px/1 var(--mono); letter-spacing: .04em; color: rgba(245, 245, 244, .38); }
.cd__day.is-sel { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .05); }
.cd__day.is-over { border-color: var(--lime); background: rgba(198, 244, 50, .06); box-shadow: 0 0 0 1px rgba(198, 244, 50, .2), 0 0 30px rgba(198, 244, 50, .1); }
.cd__chip { position: relative; display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 16px; padding: 7px 8px 8px; border: 1px solid var(--line-2); border-radius: 9px; background: #121212; cursor: grab; text-align: left; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: border-color .25s, background .25s, transform .4s var(--ease), opacity .25s; }
.cd__chip:hover { border-color: rgba(255, 255, 255, .45); background: #181818; }
.cd__chip.is-sel { border-color: var(--lime); background: linear-gradient(rgba(198, 244, 50, .06), rgba(198, 244, 50, .06)), #121212; box-shadow: 0 0 0 1px rgba(198, 244, 50, .15); }
.cd__chip.is-lift { opacity: .25; }
.cd__chip-p { display: inline-flex; align-items: center; gap: 6px; font: 400 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cd__chip-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font: 500 11.5px/1.25 var(--sans); letter-spacing: -.01em; color: rgba(245, 245, 244, .9); }
.cd__chip:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
html[data-motion="on"] .cd__chip.is-new { animation: cd-drop .6s var(--ease); }
@keyframes cd-drop { from { transform: translateY(-10px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.cd__ghost { position: fixed; z-index: 9990; width: 128px; pointer-events: none; margin: 0; transform: translate(-50%, -50%) rotate(-3deg); box-shadow: 0 24px 60px rgba(0, 0, 0, .7); border-color: var(--lime); }
.cd__hint { margin-top: 18px; }
.cd__h-touch { display: none; }
@media (hover: none) { .cd__h-fine { display: none; } .cd__h-touch { display: inline; } }

/* side: phone + move buttons */
.cd__side { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cd__phone { position: relative; width: 100%; max-width: 300px; padding: 11px; border: 1px solid var(--line-2); border-radius: 38px; background: #0e0e0e; box-shadow: 0 40px 100px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .1); }
.cd__notch { position: absolute; left: 50%; top: 18px; z-index: 2; width: 70px; height: 6px; margin-left: -35px; border-radius: 3px; background: rgba(255, 255, 255, .14); }
.cd__screen { height: 470px; padding: 34px 0 0; border-radius: 28px; background: #050505; overflow: hidden; }
.cd__post { animation: none; }
html[data-motion="on"] .cd__post { animation: cd-post .55s var(--ease); }
@keyframes cd-post { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.cd__ph { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.cd__av { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #050505; font: 600 10px/1 var(--mono); }
.cd__nm b { display: block; font: 600 13px/1.2 var(--sans); letter-spacing: -.01em; }
.cd__nm small { display: block; margin-top: 2px; font: 400 10px/1.2 var(--mono); letter-spacing: .02em; color: var(--muted); }
.cd__plat { margin-left: auto; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 999px; font: 400 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cd__cap { padding: 2px 14px 12px; font-size: 13px; line-height: 1.45; color: rgba(245, 245, 244, .9); }
.cd__cap--top { padding-top: 4px; }
.cd__img { position: relative; display: grid; place-items: center; margin: 0; background-color: #0e0e0e; background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.3px); background-size: 14px 14px; border-block: 1px solid var(--line); }
.cd__img svg { width: 56px; height: 56px; fill: none; stroke: #fff; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 14px rgba(198, 244, 50, .25)); }
.cd__img::after { content: ""; position: absolute; right: 14px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.cd__post--fb .cd__img { aspect-ratio: 16 / 10; }
.cd__post--ig .cd__img { aspect-ratio: 1; border-top: 0; }
.cd__post--li .cd__img { aspect-ratio: 16 / 9; }
.cd__act { display: flex; gap: 18px; padding: 10px 14px; font: 400 11px/1 var(--mono); letter-spacing: .04em; color: var(--muted); }
.cd__post--ig .cd__act { gap: 12px; padding-bottom: 6px; }
.cd__act svg { width: 18px; height: 18px; fill: none; stroke: rgba(245, 245, 244, .85); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cd__sk { display: grid; gap: 8px; padding: 8px 14px; }
.cd__sk i { display: block; height: 7px; width: 88%; border-radius: 4px; background: rgba(255, 255, 255, .07); }
.cd__sk i:last-child { width: 56%; }
.cd__empty { display: grid; place-content: center; gap: 10px; height: 100%; padding: 24px 28px 60px; text-align: center; }
.cd__empty b { font: 500 17px/1.2 var(--sans); letter-spacing: -.025em; }
.cd__empty span { font-size: 13px; line-height: 1.5; color: var(--muted); }
.cd__move { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; max-width: 300px; }
.cd__mv { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: none; cursor: pointer; font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(245, 245, 244, .85); transition: background .3s, color .3s, border-color .3s; }
.cd__mv svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cd__mv:hover:not(:disabled) { background: #fff; color: #050505; border-color: #fff; }
.cd__mv:disabled { opacity: .35; cursor: not-allowed; }
.cd__when { text-align: center; }
html[data-motion="off"] .cd__chip, html[data-motion="off"] .cd__day { transition: none; }

@media (max-width: 1100px) {
  .cd__body { grid-template-columns: 1fr; }
  .cd__side { flex-direction: row; align-items: flex-start; justify-content: center; flex-wrap: wrap; }
  .cd__phone { max-width: 300px; }
  .cd__move { align-self: center; flex-direction: column; max-width: 200px; }
}
@media (max-width: 700px) {
  .cd__wk, .cd__grid { gap: 3px; }
  .cd__wk span { padding-left: 1px; font-size: 8.5px; letter-spacing: .02em; text-align: center; }
  .cd__day { min-height: 56px; padding: 6px 2px 4px; border-radius: 8px; }
  .cd__d { right: 50%; top: 5px; transform: translateX(50%); }
  .cd__chip { margin-top: 20px; padding: 6px 0; align-items: center; border-radius: 7px; }
  .cd__chip-t { display: none; }
  .cd__chip-p { font-size: 0; gap: 0; }
  .cd__chip-p i { width: 9px; height: 9px; }
  .cd__hint { font-size: 10px; }
  .cd__legend { gap: 12px; }
  .cd__move { max-width: 300px; flex-direction: row; align-self: stretch; }
}
