/*
 The marketing studio (studio.js, 23 November 2026). The ds- pieces Sam
 approved on Search for the frame; hairlines, not boxes; the pictures are
 the point, so they get the room.
*/
.st-page { max-width: 1240px; }
.st-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.st-new { padding: 10px 18px; font-size: 14.5px; border-radius: 12px; }
.st-setup { margin: 0 0 14px; padding: 2px 0 8px; border-bottom: 1px solid var(--line); }
.st-setup-line { margin: 6px 0; font-size: 13.5px; line-height: 1.5; color: var(--wait); }
.st-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.st-seg::-webkit-scrollbar { display: none; }
.st-count { margin-left: 6px; font-size: 11.5px; font-weight: 700; opacity: .8; font-variant-numeric: tabular-nums; }
.st-error { margin: 8px 0; font-size: 14px; line-height: 1.5; color: var(--stop); }
.st-note { margin: 6px 0 10px; font-size: 13px; line-height: 1.5; max-width: 660px; }

/* Status, in words, quietly coloured. */
.st-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
           background: var(--fill); color: var(--ink-2); }
.st-needs_approval, .st-generating { background: var(--wait-soft); color: var(--wait); }
.st-scheduled, .st-approved, .st-publishing { background: var(--accent-soft); color: var(--accent); }
.st-published { background: var(--ok-soft); color: var(--ok); }
.st-failed { background: var(--stop-soft); color: var(--stop); }

/* The week. Seven columns on a monitor, one under another on a phone; what
   has no time sits beside it, or after it. */
.st-weeknav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.st-weeklabel { font-weight: 600; font-size: 15px; margin: 0 6px; color: var(--ink); }
.st-weekwrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 22px; align-items: start; }
.st-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.st-day { min-height: 160px; padding: 8px 6px 10px; border-right: 1px solid var(--line); }
.st-day:last-child { border-right: 0; }
.st-day-head { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 0 0 8px; }
.st-day.today .st-day-head { color: var(--accent); }
.st-day-none { font-size: 12px; color: var(--ink-3); margin: 0; }
.st-day-list { display: flex; flex-direction: column; gap: 10px; }
.st-side { border-top: 1px solid var(--line); padding-top: 8px; }
/* Beside the week, what has no time is a list, not a column of posters. */
.st-side-list .st-card { flex-direction: row; gap: 12px; align-items: flex-start; }
.st-side-list .st-thumb { flex: none; width: 64px; max-height: 114px; }

.st-card { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; }
.st-card:hover .st-card-cap { color: var(--ink); }
.st-thumb { display: block; width: 100%; border-radius: var(--r-xs); object-fit: cover; background: var(--fill); }
.st-r-4x5 { aspect-ratio: 4 / 5; }
.st-r-1x1 { aspect-ratio: 1 / 1; }
.st-r-9x16 { aspect-ratio: 9 / 16; max-height: 260px; }
.st-thumb-empty { position: relative; overflow: hidden; background: var(--fill); }
.st-card-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.st-card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.st-card-time { font-size: 13px; font-weight: 600; color: var(--ink); }
.st-card-meta { font-size: 12px; color: var(--ink-2); }
.st-card-cap { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* While a picture is drawn: a slow wave of light across the space it will fill. */
.st-wave { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(110, 64, 103, .16) 45%, rgba(255, 255, 255, .35) 50%, rgba(110, 64, 103, .16) 55%, transparent 80%);
           background-size: 220% 100%; animation: st-wave 1.8s ease-in-out infinite; }
@keyframes st-wave { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .st-wave { animation: none; } }

/* The lists. */
.st-list { border-top: 1px solid var(--line); }
.st-row { display: flex; gap: 14px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; color: inherit; }
.st-row-thumb { flex: none; width: 64px; height: 80px; border-radius: var(--r-xs); object-fit: cover; background: var(--fill); }
.st-row-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.st-row-when { font-size: 14px; font-weight: 600; color: var(--ink); }
.st-row-cap { font-size: 13.5px; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-row-err { font-size: 13px; color: var(--stop); }

/* One post. */
.st-detail { max-width: 980px; }
.st-state { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; }
.st-state-when { font-size: 15px; color: var(--ink); }
.st-brief { margin: 4px 0 10px; font-size: 14px; line-height: 1.55; color: var(--ink-2); max-width: 700px; }
.st-went { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; margin: 4px 0; font-size: 14px; color: var(--ok); }
.st-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.st-actions .btn { padding: 10px 16px; font-size: 14px; border-radius: 12px; text-decoration: none; }
.st-head { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.st-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.st-pic { display: flex; flex-direction: column; gap: 6px; }
.st-pic-img { display: block; position: relative; width: 100%; border-radius: var(--r-sm); overflow: hidden; background: var(--fill); }
.st-pic-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-pic.chosen .st-pic-img { box-shadow: 0 0 0 3px var(--accent); }
.st-pic.rejected { opacity: .55; }
.st-pic-fail { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14px; text-align: center; font-size: 13px; line-height: 1.45; color: var(--stop); }
.st-pic-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.st-pic.chosen .st-pic-label { color: var(--accent); }
.st-pic-note { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.st-pic-actions { display: flex; gap: 6px; }
.st-more { margin-top: 14px; }
.st-words textarea { min-height: 140px; line-height: 1.5; }
.st-words .so-count { display: block; text-align: right; margin-top: 4px; }
.st-rewrite { display: flex; gap: 8px; margin: 8px 0; max-width: 700px; }
.st-rewrite input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; }
.st-ticks { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 2px 0 6px; }
.st-ticks .field.tick { margin-bottom: 0; }
.field.tick.off > span { color: var(--ink-3); }
.st-at { max-width: 320px; margin-top: 8px; }
.st-history { border-top: 1px solid var(--line); }
.st-note-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; }
.st-note-when { color: var(--ink-2); }
.st-note-body { color: var(--ink); }

/* The new post sheet. */
.st-sheet .st-q { margin: 0 0 18px; }
.st-sheet .st-q-label { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.st-sheet textarea { width: 100%; min-height: 96px; line-height: 1.5; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 14.5px; }
.st-sheet input[type="text"], .st-sheet input[type="datetime-local"], .st-sheet select { width: 100%; max-width: 360px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 14.5px; }
.st-choice { flex-wrap: wrap; }
.st-own { margin-top: 8px; }
.st-variants { margin: 6px 0 0; }

@media (max-width: 900px) {
  .st-weekwrap { grid-template-columns: minmax(0, 1fr); }
  .st-week { grid-template-columns: minmax(0, 1fr); }
  .st-day { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 0; }
  /* On a phone each day is a short list: a small picture beside its words. */
  .st-day-list { display: flex; flex-direction: column; gap: 12px; }
  .st-card { flex-direction: row; gap: 12px; align-items: flex-start; }
  .st-card .st-thumb { flex: none; width: 76px; max-height: 135px; }
  .st-day-none { display: none; }
  .st-day:has(.st-day-none) { padding: 8px 0; }
  .st-day:has(.st-day-none) .st-day-head { margin: 0; color: var(--ink-3); }
  .st-note-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 520px) {
  .st-pics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .st-new { width: 100%; }
  .st-rewrite { flex-wrap: wrap; }
  .st-rewrite input { flex-basis: 100%; }
  .st-weeklabel { flex-basis: 100%; margin: 4px 0 0; order: -1; }
}

/* A blank left in the words ("[time]"), said where it cannot be missed (Sam's first post, 23 November). */
.st-blank { margin: 8px 0; padding: 10px 12px; border-left: 3px solid var(--stop); background: var(--stop-soft); color: var(--stop);
            font-size: 14px; line-height: 1.5; font-weight: 600; border-radius: 0 var(--r-xs) var(--r-xs) 0; max-width: 700px; }

/* What the picture carries, line for line: a week's post is four lines, one of them Hebrew. */
.st-onpic { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 4px; max-width: 700px; }
.st-onpic-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.st-onpic-text { display: flex; flex-direction: column; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--ink); }

/* A picture opens in the lightbox: the whole cell is the button. */
button.st-pic-img { padding: 0; border: 0; cursor: zoom-in; }
button.st-pic-img:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* "In the style of": the earlier posts, small; the new pictures are the point. */
.st-refs { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 760px; }
.st-ref { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.st-ref.dropped { opacity: .5; }
.st-ref-thumb { flex: none; width: 64px; height: 64px; padding: 0; border: 0; border-radius: var(--r-xs); overflow: hidden; background: var(--fill); cursor: zoom-in; }
.st-ref-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-ref-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.st-ref-when { font-size: 13px; font-weight: 600; color: var(--ink); }
.st-ref-cap { font-size: 13px; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-ref-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 2px; font-size: 13px; }

/* The lightbox: the picture at full size on a dark backdrop, the decision beneath it. */
html.st-lb-open, html.st-lb-open body { overflow: hidden; }
.st-lb { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; background: #0e0a0e; color: #f4efe9; }
.st-lb-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 0 18px; min-height: 52px; }
.st-lb-count { font-size: 13px; color: rgba(244, 239, 233, .7); font-variant-numeric: tabular-nums; }
.st-lb-close { width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); color: inherit; font-size: 28px; line-height: 1; cursor: pointer; }
.st-lb-close:hover { background: rgba(255, 255, 255, .16); }
.st-lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px 72px; touch-action: pan-y; }
.st-lb-img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 12px 48px rgba(0, 0, 0, .45); user-select: none; }
.st-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
             border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); color: inherit; cursor: pointer; }
.st-lb-nav:hover { background: rgba(255, 255, 255, .2); }
.st-lb-nav[hidden] { display: none; }
.st-lb-prev { left: 14px; }
.st-lb-next { right: 14px; }
.st-lb-close:focus-visible, .st-lb-nav:focus-visible, .st-lb-foot .btn:focus-visible, .st-lb-sub a:focus-visible { outline: 2px solid #e9c9e2; outline-offset: 2px; }
.st-lb-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 12px 18px max(16px, env(safe-area-inset-bottom)); }
.st-lb-text { min-width: 0; flex: 1 1 260px; }
.st-lb-title { font-size: 15px; font-weight: 600; }
.st-lb-sub { margin-top: 2px; font-size: 13px; line-height: 1.45; color: rgba(244, 239, 233, .72); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-lb-sub a { color: #e9c9e2; }
.st-lb-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.st-lb-actions .btn { padding: 9px 16px; font-size: 14px; border-radius: 12px; text-decoration: none; }
.st-lb-actions .btn:not(.primary) { background: rgba(255, 255, 255, .1); color: #f4efe9; border-color: rgba(255, 255, 255, .18); }
.st-lb-link { margin-top: 4px; font-size: 13.5px; }
.st-lb-link:empty { display: none; }
.st-lb-link a { color: #e9c9e2; }
.st-lb-link a:focus-visible { outline: 2px solid #e9c9e2; outline-offset: 2px; }
@media (max-width: 600px) {
  .st-lb-stage { padding: 4px 8px; }
  .st-lb-nav { width: 40px; height: 40px; background: rgba(14, 10, 14, .55); }
  .st-lb-prev { left: 6px; }
  .st-lb-next { right: 6px; }
  .st-lb-actions { width: 100%; }
  .st-lb-actions .btn { flex: 1; text-align: center; }
}
