/* =====================================================================
   STF Taskboard — Content / STF Ideaboard
   Split view: content-task overview (left) + live Ideaboard embed (right)
   ===================================================================== */

/* ---------------------------------------------------------------------
   CONTENTS (unified) — matrix cards for Queue / Posted, and the
   Instagram/LinkedIn calendar pins.
   --------------------------------------------------------------------- */
.stf-contents { }
.stf-q-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.stf-q-card {
  border: 1px solid var(--border-1); border-radius: var(--radius-lg);
  background: var(--bg-2); overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur-base) var(--ease-stf), transform var(--dur-base) var(--ease-stf), opacity var(--dur-base) var(--ease-stf);
}
.stf-q-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stf-q-card.is-posted .stf-q-thumb { opacity: 0.5; }
.stf-q-card.is-posted:hover { transform: none; }
.stf-q-thumb {
  aspect-ratio: 4 / 5; background: var(--bg-3); background-size: cover; background-position: center;
  position: relative; display: block; width: 100%;
  transition: opacity var(--dur-base) var(--ease-stf);
}
.stf-q-thumb.is-over { outline: 2px dashed var(--stf-blueprint); outline-offset: -2px; }
.stf-q-readybtn {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.85); background: rgba(20,20,18,0.35); color: #fff;
  cursor: pointer; transition: background var(--dur-fast) var(--ease-stf), border-color var(--dur-fast) var(--ease-stf);
}
.stf-q-readybtn svg { opacity: 0; transition: opacity var(--dur-fast) var(--ease-stf); }
.stf-q-readybtn.on { background: var(--stf-success); border-color: var(--stf-success); }
.stf-q-readybtn.on svg { opacity: 1; }
.stf-q-readybtn:hover { border-color: #fff; }
.stf-q-readywash {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--stf-success) 24%, transparent);
}
.stf-q-readywash svg { color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35)); }
.stf-q-body { padding: 8px 11px 9px; display: flex; flex-direction: column; gap: 5px; }
.stf-q-title { font-size: 12.5px; font-weight: 500; color: var(--fg-1); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stf-q-plats { display: flex; flex-direction: row; gap: 10px; }
.stf-q-prow { display: flex; align-items: center; gap: 5px; min-width: 0; }
.stf-q-plat {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-1); background: var(--bg-1); color: var(--fg-3);
  border-radius: var(--radius-pill); width: 19px; height: 19px; flex: none; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-stf), border-color var(--dur-fast) var(--ease-stf), color var(--dur-fast) var(--ease-stf);
}
.stf-q-plat:hover { border-color: var(--fg-3); }
.stf-q-plat.insta.on { background: color-mix(in srgb, var(--stf-danger) 14%, var(--bg-1)); border-color: color-mix(in srgb, var(--stf-danger) 45%, var(--border-1)); color: var(--stf-danger); }
.stf-q-plat.lkn.on { background: color-mix(in srgb, var(--stf-info) 14%, var(--bg-1)); border-color: color-mix(in srgb, var(--stf-info) 45%, var(--border-1)); color: var(--stf-info); }
.stf-q-pdate { font-size: 9.5px; color: var(--fg-3); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stf-q-postedrow {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 0; padding-top: 5px; border-top: 1px solid var(--hairline);
  font-size: 11px; color: var(--fg-2); font-weight: 500;
}
.stf-q-sw {
  width: 32px; height: 18px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--border-1);
  position: relative; cursor: pointer; flex: none;
  transition: background var(--dur-fast) var(--ease-stf), border-color var(--dur-fast) var(--ease-stf);
}
.stf-q-sw .knob {
  position: absolute; top: 1px; left: 1px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-xs);
  transition: transform var(--dur-fast) var(--ease-stf);
}
.stf-q-sw.on { background: var(--stf-success); border-color: var(--stf-success); }
.stf-q-sw.on .knob { transform: translateX(14px); }

/* ---- unified content calendar (cal2-*) ------------------------------ */
.cal2-grid { display: block; }
.cal2-wdrow { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal2-week { position: relative; }
.cal2-cells { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal2-week + .cal2-week .cal2-cells .cal2-cell { border-top: 1px solid var(--border-1); }
.cal2-cell { min-width: 0; min-height: 96px; border-left: 1px solid var(--border-1); padding: 7px 7px 8px; position: relative; }
.cal2-cell:first-child { border-left: none; }
.cal2-cell.out { background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.cal2-cell.out .cal2-cellnum .n { color: var(--fg-4); }
.cal2-cell.today { background: color-mix(in srgb, var(--stf-blueprint) 6%, var(--bg-1)); }
.cal2-cellnum { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.cal2-cellnum .n { font-size: 12px; font-weight: 500; color: var(--fg-2); font-variant-numeric: tabular-nums; line-height: 1; }
.cal2-cell.today .cal2-cellnum .n { background: var(--stf-blueprint); color: #fff; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.cal2-cellnum .td { font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stf-blueprint); font-weight: 600; }
.cal2-daypins { display: flex; flex-direction: column; gap: 5px; }
.cal2-pinrow { display: flex; gap: 5px; }
.cal2-pin {
  position: relative; flex: 0 0 calc(50% - 2.5px); min-width: 0; aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm); overflow: hidden; cursor: grab;
  border: 1px solid var(--border-1); background: var(--bg-3); box-shadow: var(--shadow-xs);
}
.cal2-pin:active { cursor: grabbing; }
.cal2-pin.insta { border-color: color-mix(in srgb, var(--stf-danger) 45%, var(--border-1)); }
.cal2-pin.lkn { border-color: color-mix(in srgb, var(--stf-info) 45%, var(--border-1)); }
.cal2-pin-thumb { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cal2-pin-badge {
  position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: rgba(20,20,18,0.55);
}
.cal2-pin.insta .cal2-pin-badge { background: var(--stf-danger); }
.cal2-pin.lkn .cal2-pin-badge { background: var(--stf-info); }
.cal2-legend { display: flex; align-items: center; gap: 16px; }
.cal2-legend .k { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; color: var(--fg-3); }
.cal2-legend .k.insta { color: var(--stf-danger); }
.cal2-legend .k.lkn { color: var(--stf-info); }

/* split fills the content viewport; left scrolls, right embed stays put */
.stf-cnt-split {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 408px;
  min-height: 0;
  transition: grid-template-columns var(--dur-base) var(--ease-glide);
}
.stf-cnt-split.embed-collapsed { grid-template-columns: minmax(0, 1fr) 46px; }
/* Instagram: the Ideaboard fills its whole panel edge-to-edge rather than
   sitting inside a simulated phone, so it gets more room to breathe */
.stf-cnt-split.ig-embed-window { grid-template-columns: minmax(0, 1fr) 520px; }
.stf-cnt-split.ig-embed-window.embed-collapsed { grid-template-columns: minmax(0, 1fr) 46px; }
.stf-cnt-main {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 34px 64px;
  min-width: 0;
}

/* ---- left: content tasks ------------------------------------------- */
.stf-cnt-tophead {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 16px;
}
.stf-cnt-h1 {
  font-family: var(--font-display); font-weight: 300; font-size: 34px;
  letter-spacing: -0.03em; line-height: 1.05; color: var(--fg-1); margin: 8px 0 0;
}
/* content cards follow the frame-scale slider, like the project board */
.stf-ccards {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(calc(214px * var(--frame-scale, 1)), 1fr));
}
/* LinkedIn board uses the same card footprint as the Human Content board */
.stf-cnt-split.lk-cards .stf-ccards {
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.stf-ccard {
  border: 1px solid var(--border-1); border-radius: var(--radius-lg);
  background: var(--bg-2); overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease-stf), transform var(--dur-base) var(--ease-stf), border-color var(--dur-base) var(--ease-stf);
}
.stf-ccard:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stf-ccard-thumb {
  aspect-ratio: 4 / 5; background: var(--bg-3); background-size: cover; background-position: center;
  position: relative; cursor: pointer; display: block; width: 100%;
}
/* replace icon removed — drag-drop only */
.stf-ccard-replace { display: none; }

/* assigned user avatar — top-left, always visible */
.stf-ccard-av-pin {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  width: 26px; height: 26px; border-radius: 999px; flex: none;
  display: grid; place-items: center;
  color: #fff; font-size: 10px; font-weight: 600;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.25);
}

/* hover overlay — title + date, fades in from bottom */
.stf-ccard-over {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 28px 10px 10px;
  background: linear-gradient(to top, rgba(12,12,14,0.82) 0%, rgba(12,12,14,0) 100%);
  opacity: 0; transition: opacity 160ms var(--ease-stf);
  pointer-events: none;
}
.stf-ccard:hover .stf-ccard-over { opacity: 1; pointer-events: auto; }
.stf-ccard-over-title {
  font-size: 12.5px; font-weight: 500; color: #fff; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px; outline: none;
}
.stf-ccard-over-title[contenteditable] { cursor: text; }
.stf-ccard-over-title[contenteditable]:focus { box-shadow: 0 1px 0 rgba(255,255,255,0.4); }
.stf-ccard-over-date { display: none; }

/* hide old body section if ever rendered */
.stf-ccard-body { display: none; }
.stf-ccard-badge {
  position: absolute; top: 9px; left: 9px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 999px;
  background: color-mix(in srgb, var(--stf-success) 88%, #000); color: #fff;
}
.stf-ccard-badge svg { width: 11px; height: 11px; }
.stf-ccard-body { padding: 11px 13px 12px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.stf-ccard-title { font-size: 13.5px; font-weight: 500; color: var(--fg-1); line-height: 1.3; text-wrap: pretty; }
.stf-ccard-title[contenteditable] { outline: none; border-radius: 5px; margin: -2px -5px; padding: 2px 5px; cursor: text; transition: background var(--dur-fast) var(--ease-stf), box-shadow var(--dur-fast) var(--ease-stf); }
.stf-ccard-title[contenteditable]:hover { background: var(--bg-3); }
.stf-ccard-title[contenteditable]:focus { background: var(--bg-1); box-shadow: 0 0 0 2px var(--stf-blueprint-faint, color-mix(in srgb, var(--stf-blueprint) 30%, transparent)); }
.stf-ccard-meta { font-size: 11px; }
.stf-ccard-meta .sched { display: inline-flex; align-items: center; gap: 5px; color: var(--stf-blueprint); font-variant-numeric: tabular-nums; }
.stf-ccard-meta .sched svg { width: 12px; height: 12px; }
.stf-ccard-meta .unsched { color: var(--fg-4); letter-spacing: 0.02em; }
.stf-ccard-foot { margin-top: auto; }

/* ---- weekly content manager banner --------------------------------- */
.stf-mgr {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px; padding: 7px 12px;
  border: 1px solid var(--border-1); border-radius: var(--radius-md);
  background:
    radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--stf-blueprint) 9%, transparent), transparent 58%),
    var(--bg-2);
}
.stf-mgr-cap { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; }
.stf-mgr-who { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.stf-mgr-who .av {
  width: 24px; height: 24px; border-radius: 999px; flex: none;
  display: grid; place-items: center; color: #fff; font-size: 9px; font-weight: 600;
}
.stf-mgr-who .meta { display: flex; flex-direction: column; line-height: 1.25; }
.stf-mgr-who .nm { font-size: 12px; font-weight: 600; color: var(--fg-1); letter-spacing: -0.01em; white-space: nowrap; }
.stf-mgr-who .role { font-size: 11.5px; color: var(--fg-3); }
.stf-mgr-note { margin-left: auto; font-size: 11px; color: var(--fg-4); letter-spacing: 0.02em; }

/* ---- who's-on-content roster (per person + their pieces) ----------- */
.stf-roster {
  border: 1px solid var(--border-1); border-radius: var(--radius-lg);
  background: var(--bg-2); padding: 14px 16px;
}
.stf-roster-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.stf-roster-head .lbl { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; }
.stf-roster-head .cnt { font-size: 11.5px; color: var(--fg-4); font-variant-numeric: tabular-nums; }
.stf-roster-list { display: flex; flex-direction: column; }
.stf-roster-person {
  display: grid; grid-template-columns: 168px 1fr; gap: 16px; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--border-1);
}
.stf-roster-person:first-child { border-top: none; }
.stf-roster-person .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.stf-roster-person .av {
  width: 28px; height: 28px; border-radius: 999px; flex: none;
  display: grid; place-items: center; color: #fff; font-size: 10.5px; font-weight: 600;
}
.stf-roster-person .meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.stf-roster-person .nm { font-size: 13px; font-weight: 500; color: var(--fg-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stf-roster-person .role { font-size: 10.5px; color: var(--fg-3); }
.stf-roster-person .tasks { display: flex; flex-wrap: wrap; gap: 6px; }
.stf-roster-person .ctag {
  font-size: 11px; color: var(--fg-2); background: var(--bg-1);
  border: 1px solid var(--border-1); border-radius: var(--radius-pill); padding: 3px 10px;
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}

/* ---- right: Ideaboard embed panel ---------------------------------- */
.stf-cnt-side {
  position: relative;
  border-left: 1px solid var(--border-1);
  background: var(--bg-2);
  display: flex; flex-direction: column;
  padding: 20px 22px 18px;
  min-height: 0;
}
/* collapse handle — mirrors the left sidebar's grip handle */
.stf-embed-handle {
  position: absolute; top: 0; left: 0; width: 14px; height: 100%;
  border: none; background: none; padding: 0; cursor: ew-resize; z-index: 6;
  display: flex; align-items: center; justify-content: center;
}
.stf-embed-handle .grip {
  width: 4px; height: 32px; border-radius: 999px; background: var(--border-2);
  transition: background var(--dur-fast) var(--ease-stf), height var(--dur-fast) var(--ease-stf);
}
.stf-embed-handle:hover .grip { background: var(--fg-3); height: 52px; }
.stf-embed-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; margin-bottom: 4px;
}
.stf-embed-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.stf-embed-id .dot {
  width: 9px; height: 9px; border-radius: 999px; flex: none;
  background: var(--stf-success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--stf-success) 18%, transparent);
}
.stf-embed-id .meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.stf-embed-id .nm { font-size: 14px; font-weight: 600; color: var(--fg-1); letter-spacing: -0.01em; }
.stf-embed-id .url { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
.stf-embed-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.stf-embed-open {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  border: 1px solid var(--border-1); background: var(--bg-1); border-bottom: 1px solid var(--border-1);
  border-radius: var(--radius-pill); padding: 6px 12px;
  font-size: 12px; font-weight: 500; color: var(--fg-2); cursor: pointer;
  transition: color var(--dur-fast) var(--ease-stf), border-color var(--dur-fast) var(--ease-stf);
}
.stf-embed-open:hover { color: var(--fg-1); border-color: var(--fg-3); }
.stf-embed-open svg { width: 13px; height: 13px; }

/* collapsed rail — click anywhere to bring the board back; same grip motif */
.stf-cnt-rail {
  position: relative;
  border-left: 1px solid var(--border-1); background: var(--bg-2);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 18px 0; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-stf);
}
.stf-cnt-rail:hover { background: var(--bg-3); }
.stf-rail-handle {
  position: absolute; top: 0; left: 0; width: 14px; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.stf-rail-handle .grip {
  width: 4px; height: 32px; border-radius: 999px; background: var(--border-2);
  transition: background var(--dur-fast) var(--ease-stf), height var(--dur-fast) var(--ease-stf);
}
.stf-cnt-rail:hover .grip { background: var(--fg-3); height: 52px; }
.stf-rail-dot {
  width: 8px; height: 8px; border-radius: 999px; flex: none; background: var(--stf-success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--stf-success) 18%, transparent);
}
.stf-rail-label {
  writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3);
  white-space: nowrap;
}

.stf-embed-stage {
  flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
  container-type: size;
}
/* full-window variant (Instagram): no device chrome */
.stf-embed-stage.full-window { display: block; }
/* the 9:16 device — always exactly 9:16, sized to the binding dimension so
   it never stretches down to fill a tall side panel */
.stf-embed-frame {
  position: relative;
  height: min(100cqh, calc(100cqw * 16 / 9));
  width: auto;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  background: var(--stf-ink);
  padding: 8px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
}
/* Instagram: whole-window embed — a plain hairline panel, no phone bezel,
   filling 100% of the available stage instead of a clamped 9:16 shape */
.stf-embed-frame.full-window {
  height: 100%;
  width: 100%;
  max-width: none;
  aspect-ratio: auto;
  border-radius: var(--radius-lg);
  background: var(--bg-1);
  padding: 0;
  box-shadow: none;
  border: 1px solid var(--border-1);
}
/* fallback media surface */
.stf-embed-fallback {
  position: absolute; inset: 8px; z-index: 1;
  border-radius: 19px; background: var(--bg-1);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; padding: 28px;
}
.stf-embed-frame.full-window .stf-embed-fallback { inset: 0; border-radius: inherit; }
.stf-embed-fallback .mark {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: grid; place-items: center; background: var(--bg-3); color: var(--fg-2);
}
.stf-embed-fallback .ttl { font-family: var(--font-display); font-weight: 300; font-size: 22px; letter-spacing: -0.02em; color: var(--fg-1); }
.stf-embed-fallback .sub { font-size: 12px; color: var(--fg-3); line-height: 1.5; }
.stf-embed-fallback a {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  font-size: 12px; color: var(--stf-blueprint); border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--stf-blueprint) 40%, transparent);
}
.stf-embed-fallback a:hover { border-color: var(--stf-blueprint); }

.stf-embed-note {
  font-size: 11px; color: var(--fg-4); line-height: 1.5; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid var(--border-1); text-align: center;
}

/* the Calendar / Gantt sub-views render full-width inside the left column */
.stf-cnt-main .tb-cal,
.stf-cnt-main .tb-gantt { margin-top: 2px; }
/* frame-scale also sets calendar roominess in the content view */
.stf-cnt-main .tb-cal-day { min-height: calc(108px * var(--frame-scale, 1)); }

[data-theme="dark"] .stf-embed-frame { background: #000; }

/* ---- add-content picker (approved Ideaboard pieces) ---------------- */
.stf-pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 6px 0 10px; }
.stf-pick {
  display: flex; flex-direction: column; gap: 8px; text-align: left;
  border: 1px solid var(--border-1); border-radius: var(--radius-lg); background: var(--bg-1);
  padding: 8px; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-stf), box-shadow var(--dur-fast) var(--ease-stf), transform var(--dur-fast) var(--ease-stf);
}
.stf-pick:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--fg-3); }
.stf-pick.is-sel { border-color: var(--stf-blueprint); box-shadow: 0 0 0 2px var(--stf-blueprint); }
.stf-pick .thumb {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-md);
  background: var(--bg-3); background-size: cover; background-position: center;
}
.stf-pick .tick {
  position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 999px;
  display: grid; place-items: center; background: var(--stf-blueprint); color: #fff;
}
.stf-pick .t { font-size: 12px; font-weight: 500; color: var(--fg-1); line-height: 1.3; text-wrap: pretty; }

/* ---- responsive: stack the embed under the board ------------------- */
@media (max-width: 980px) {
  .stf-cnt-split { display: block; height: auto; }
  .stf-cnt-split.embed-collapsed { grid-template-columns: none; }
  .stf-cnt-rail {
    border-left: none; border-top: 1px solid var(--border-1);
    flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 18px;
  }
  .stf-rail-handle { display: none; }
  .stf-rail-label { writing-mode: horizontal-tb; text-orientation: initial; transform: none; }
  .stf-cnt-main { overflow: visible; padding-bottom: 28px; }
  .stf-cnt-side {
    border-left: none; border-top: 1px solid var(--border-1);
    flex-direction: row; align-items: stretch; gap: 20px;
  }
  .stf-embed-head { flex-direction: column; align-items: flex-start; gap: 12px; padding: 0; border: none; width: 180px; flex: none; }
  .stf-embed-stage { flex: 1; container-type: normal; }
  .stf-embed-frame { height: auto; width: 320px; max-width: 100%; aspect-ratio: 9 / 16; }
  .stf-embed-frame.full-window { height: 420px; width: 100%; max-width: none; aspect-ratio: auto; }
  .stf-embed-note { display: none; }
}
@media (max-width: 720px) {
  .stf-cnt-main { padding: 22px 18px 28px; }
  .stf-cnt-side { flex-direction: column; padding: 20px 18px; }
  .stf-embed-head { width: auto; flex-direction: row; align-items: center; justify-content: space-between; }
  .stf-embed-frame { width: 100%; max-width: 360px; margin: 0 auto; }
  .stf-embed-frame.full-window { max-width: none; height: 360px; }
}

/* ---- date-slot strip — always-visible post date below each card thumb ---- */
.stf-ccard-date {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 5px 8px 6px;
  font-family: var(--font-mono); font-size: 10px; font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em; color: var(--fg-3);
  border-top: 1px solid var(--hairline);
}
.stf-ccard-date.unset { color: var(--fg-4); letter-spacing: 0.02em; }
.stf-ccard-date svg { flex: none; opacity: 0.55; }

/* ---- drag-to-swap: dates are slots, content moves between them (leads) ---- */
.stf-ccard-slot {
  position: relative;
  transition: opacity var(--dur-fast) var(--ease-glide);
}
.stf-ccard-slot[draggable="true"] { cursor: grab; }
.stf-ccard-slot[draggable="true"]:active { cursor: grabbing; }

/* grip handle — two horizontal pips at top-centre, appear on hover */
.stf-ccard-slot[draggable="true"]::before {
  content: "";
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 2px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 5px 0 rgba(255, 255, 255, 0.6);
  z-index: 10; pointer-events: none;
  opacity: 0; transition: opacity var(--dur-fast) var(--ease-glide);
}
.stf-ccard-slot[draggable="true"]:hover::before { opacity: 1; }

/* source card while dragging */
.stf-ccard-slot.is-dragging { opacity: 0.28; }
.stf-ccard-slot.is-dragging .stf-ccard {
  box-shadow: none !important;
  transform: none !important;
}

/* drop-target card */
.stf-ccard-slot.is-drop-target .stf-ccard {
  border-color: var(--stf-blueprint) !important;
  box-shadow: 0 0 0 2px var(--stf-blueprint-faint), var(--shadow-md) !important;
  transform: translateY(-3px) !important;
}
.stf-ccard-slot.is-drop-target .stf-ccard-date {
  color: var(--stf-blueprint);
  border-top-color: var(--stf-blueprint-faint);
}
