/* ==========================================================================
   Choukhat Frame · DS-006 · TheLayoutLoft Parts Line — .ck- prefixed
   ========================================================================== */
.ck-frame {
  position: relative; margin: 34px 6px 6px; /* top room for the badge */
  border: 1.5px dashed #8B84EA; border-radius: 4px;
  background: rgba(109,100,240,.06);
  touch-action: none;
}
.ck-frame.ck-drag { border-color: #F59E0B;
  background: rgba(245,158,11,.06); }
.ck-h {
  position: absolute; width: 11px; height: 11px; z-index: 3;
  background: #F5F1E8; border: 1.5px solid #4F46E5; border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.ck-frame.ck-drag .ck-h { border-color: #F59E0B; }
.ck-nw { top: -6px; left: -6px; cursor: nwse-resize; }
.ck-ne { top: -6px; right: -6px; cursor: nesw-resize; }
.ck-sw { bottom: -6px; left: -6px; cursor: nesw-resize; }
.ck-se { bottom: -6px; right: -6px; cursor: nwse-resize; }
.ck-badge {
  position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
  font: 600 11px/1 ui-monospace, monospace; white-space: nowrap;
  color: #0B0E14; background: #F5F1E8; border: none; border-radius: 6px;
  padding: 6px 10px; cursor: text;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.ck-badge:hover { background: #FCD34D; }
.ck-badge::after { /* pointer tail */
  content: ''; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent; border-top-color: #F5F1E8;
}
.ck-edit {
  position: absolute; top: -32px; left: 50%; transform: translateX(-50%);
  display: none; width: 90px; text-align: center;
  font: 600 12px/1 ui-monospace, monospace; color: #0B0E14;
  background: #FCD34D; border: none; border-radius: 6px; padding: 7px 8px;
  outline: none;
}
.ck-nomotion, .ck-nomotion * { transition: none !important; }

/* phone view: demo stage is designed ~900px wide — zoom the page down on small screens */
@media (max-width: 430px) { body { zoom: .40; } }
@media (min-width: 431px) and (max-width: 560px) { body { zoom: .52; } }
@media (min-width: 561px) and (max-width: 720px) { body { zoom: .65; } }
@media (min-width: 721px) and (max-width: 860px) { body { zoom: .78; } }
