/* matere / instagram
   Palette de la marque : Carbon Black, Evergreen, Dusty Olive, Ash Grey, Cinnamon Wood, Parchment.
   Le papier : fond Parchment avec un grain argentique discret, toujours derrière les images.
   L'accent : la date en Source Serif italique couleur cannelle, comme une annotation au crayon.
   Le geste fort : sur la fiche d'un post, les images reposent sur une table lumineuse sombre qui déborde à gauche. */

:root {
  --parchment: #f6f2ec;
  --carbon: #171b15;
  --evergreen: #263629;
  --olive: #6f7b69;
  --ash: #b7bfa9;
  --cinnamon: #a8755f;

  --bg: var(--parchment);
  --surface: #efe9e0;
  --surface-hot: #eadfd2;
  --ink: var(--carbon);
  --ink-soft: #4f5a4b;          /* olive assombri : 5:1 sur parchemin */
  --rule: #d9d6cb;
  --note: #8a5b47;              /* cannelle assombrie pour le texte : 4.9:1 */
  --mark: var(--cinnamon);
  --head-bg: var(--evergreen);
  --head-ink: var(--parchment);
  --btn-bg: var(--evergreen);
  --btn-ink: var(--parchment);
  --danger: #8f3b2c;
  --danger-soft: #f3e2dc;
  --warn-soft: #f2e6db;
  --ok: #3b5a40;
  --focus: var(--cinnamon);
  --lightbox: #1c201a;
  --grain-opacity: 0.075;

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;

  --gutter: clamp(16px, 4vw, 40px);
  --page-max: 1320px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--carbon);
    --surface: #1f251d;
    --surface-hot: #2a2a22;
    --ink: var(--parchment);
    --ink-soft: var(--ash);
    --rule: #333b30;
    --note: #c9967f;
    --head-bg: #10130f;
    --btn-bg: var(--parchment);
    --btn-ink: var(--carbon);
    --danger: #e08f7d;
    --danger-soft: #3a2420;
    --warn-soft: #33291f;
    --ok: #9fc0a2;
    --lightbox: #0e110d;
    --grain-opacity: 0.05;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.55;
}

/* Grain argentique : sous le contenu, il ne recouvre jamais une image. Désactivable dans Réglages. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
html[data-grain="off"] body::before { display: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

img, video { display: block; max-width: 100%; }

/* --- en-tête ------------------------------------------------------------------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 16px var(--gutter);
  background: var(--head-bg);
  color: var(--head-ink);
}

.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--parchment); }
.masthead .logo { display: block; height: 56px; width: auto; }
.brand-sub {
  padding-left: 16px;
  border-left: 1px solid rgba(246, 242, 236, 0.35);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.2;
  opacity: 0.8;
}

.nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.nav a:not(.btn) { text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: currentColor; }

/* --- page ----------------------------------------------------------------------- */

.page { padding: clamp(24px, 5vw, 56px) var(--gutter) 80px; max-width: var(--page-max); margin: 0 auto; }

.display {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  font-size: var(--step-3);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--step-1);
  margin: 0;
}

.narrow h2 { margin: 40px 0 12px; }

.muted { color: var(--ink-soft); margin: 4px 0 0; max-width: 64ch; }
.hint { color: var(--ink-soft); font-size: var(--step--1); margin: 4px 0 0; max-width: 64ch; }
.optional { color: var(--ink-soft); font-weight: 400; font-size: var(--step--1); }
.empty { color: var(--ink-soft); }

.narrow { max-width: 640px; }

/* --- messages -------------------------------------------------------------------- */

.flash { padding: 12px var(--gutter); font-size: 0.95rem; border-bottom: 1px solid var(--rule); }
.flash-ok { background: var(--surface); }
.flash-warn { background: var(--warn-soft); }
.flash-error { background: var(--danger-soft); color: var(--danger); }

.notice { padding: 12px 16px; border-left: 3px solid var(--mark); background: var(--surface); margin: 0 0 24px; max-width: 80ch; }
.notice-error { border-left-color: var(--danger); background: var(--danger-soft); }
.notice-warn { background: var(--warn-soft); }

/* --- boutons & champs --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--btn-bg);
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: 500 0.95rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.12); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; filter: none; }
.btn-ghost, .btn-on-dark { background: transparent; color: var(--ink); border-color: var(--ink-soft); }
.btn-light { background: var(--parchment); color: var(--evergreen); border-color: var(--parchment); min-height: 38px; }

.link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-danger { color: var(--danger); }

.stack { display: flex; flex-direction: column; gap: 6px; }
.stack label { font-weight: 500; margin-top: 14px; }
.stack label.inline { display: flex; gap: 10px; align-items: center; font-weight: 400; }

input[type="text"], input[type="password"], input[type="datetime-local"], input[type="number"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
input[type="file"] { font: inherit; color: var(--ink-soft); max-width: 100%; }
textarea { font-family: var(--sans); line-height: 1.6; resize: vertical; min-height: 10rem; }
input:disabled, textarea:disabled { opacity: 0.7; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; align-items: center; }
.toggle { display: flex; gap: 10px; align-items: center; }

/* --- zone de dépôt ---------------------------------------------------------------------- */

.dropzone { display: flex; flex-direction: column; gap: 14px; }
.js .dropzone-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.no-js .dropzone-surface { display: none; }

.dropzone-surface {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 184px;
  padding: 32px 24px;
  border: 0;
  border-radius: 2px;
  background: var(--surface);
  outline: 1px solid var(--rule);
  outline-offset: -12px;
  color: var(--ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s, outline-color 0.15s;
}
.dropzone-surface:hover, .dropzone.is-over .dropzone-surface { background: var(--surface-hot); outline-color: var(--mark); }
.dropzone-surface:focus-visible { outline: 2px solid var(--focus); outline-offset: -12px; }
.dropzone-title { font-family: var(--serif); font-style: italic; font-size: 1.375rem; line-height: 1.25; }
.dropzone-sub { font-size: 0.875rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.dropzone.has-files .dropzone-surface { min-height: 76px; padding: 18px; }
.dropzone.has-files .dropzone-title { font-size: 1.0625rem; }
.dropzone-compact .dropzone-surface { min-height: 96px; padding: 20px; }
.dropzone-compact .dropzone-title { font-size: 1.125rem; }

.dropzone-sheet {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 18px 14px;
}
.dz-item { display: flex; flex-direction: column; min-width: 0; }
.dz-thumb { position: relative; aspect-ratio: 4 / 5; background: var(--surface); outline: 1px solid var(--rule); overflow: hidden; }
.dz-thumb img, .dz-thumb video { width: 100%; height: 100%; object-fit: cover; }
.dz-n {
  position: absolute; left: 7px; top: 5px;
  font-family: var(--serif); font-style: italic; font-size: 0.9375rem;
  color: var(--parchment);
  text-shadow: 0 1px 3px rgba(23, 27, 21, 0.85);
}
.dz-name { margin-top: 7px; font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-meta { font-family: var(--serif); font-style: italic; font-size: 0.875rem; line-height: 1.3; color: var(--note); }
.dz-item.is-bad .dz-thumb { outline: 2px solid var(--danger); }
.dz-item.is-bad .dz-meta { font-family: var(--sans); font-style: normal; font-size: 0.8125rem; color: var(--danger); }
.dz-tools { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 3px; font-size: 0.8125rem; }
.dropzone-summary { margin: 0; font-size: 0.9375rem; }
.dropzone-summary.is-bad { color: var(--danger); }

.progress { margin: 12px 0 0; font-size: 0.9rem; color: var(--note); font-family: var(--serif); font-style: italic; }
.progress.progress-error { color: var(--danger); font-family: var(--sans); font-style: normal; }

/* --- planche ----------------------------------------------------------------------- */

.band { margin-bottom: 56px; }
.band-alert .section-head h2 { color: var(--danger); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.section-head .display { width: 100%; }

.planche {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 28px 20px;
}

.frame { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.frame-img {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  overflow: hidden;
  outline: 1px solid var(--rule);
}
.frame-img img, .frame-img video { width: 100%; height: 100%; object-fit: cover; }
.frame:hover .frame-img { outline: 2px solid var(--ink); }
.frame-empty { display: grid; place-items: center; height: 100%; color: var(--ink-soft); font-size: var(--step--1); }
.frame-kind {
  position: absolute; left: 8px; bottom: 8px;
  padding: 2px 8px;
  background: rgba(23, 27, 21, 0.72);
  color: var(--parchment);
  font-size: 0.75rem;
}

.frame-note {
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.25;
  color: var(--note);
}
.frame-n { font-family: var(--sans); font-style: normal; font-size: 0.75rem; color: var(--ink-soft); margin-right: 6px; }
.frame-title { font-size: 0.9rem; line-height: 1.35; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-status { font-size: 0.8125rem; color: var(--danger); margin-top: 2px; }
.frame-draft .frame-img img, .frame-draft .frame-img video { filter: saturate(0.85); }
.planche-quiet .frame-note { color: var(--ink-soft); }

/* Révélation : une fois par session, les épreuves montent comme un tirage dans le bain. */
@keyframes develop {
  0% { filter: brightness(2.3) contrast(0.18) grayscale(1); }
  55% { filter: brightness(1.22) contrast(0.82) grayscale(0.35); }
  100% { filter: brightness(1) contrast(1) grayscale(0); }
}
.develop .planche .frame-img img,
.develop .planche .frame-img video {
  animation: develop 1500ms cubic-bezier(0.2, 0.6, 0.2, 1) backwards;
  animation-delay: calc(min(var(--i, 0), 14) * 85ms + 120ms);
}

.empty-start { max-width: 56ch; margin-bottom: 48px; }
.empty-start p { margin: 0 0 20px; }

/* --- grille du profil ---------------------------------------------------------------- */

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  max-width: 720px;
}
.ig-cell { position: relative; aspect-ratio: 3 / 4; background: var(--surface); overflow: hidden; }
.ig-cell img, .ig-cell video { width: 100%; height: 100%; object-fit: cover; }
.ig-upcoming::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -3px 0 var(--mark); pointer-events: none; }
.ig-when {
  position: absolute; left: 6px; bottom: 9px;
  font-family: var(--serif); font-style: italic; font-size: 0.875rem;
  color: var(--parchment);
  text-shadow: 0 1px 3px rgba(23, 27, 21, 0.8);
}

/* --- fiche d'un post : table lumineuse + fiche de tirage ------------------------------------ */

.page-post { padding-top: 0; padding-bottom: 0; }

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

/* La table lumineuse déborde jusqu'au bord gauche de la fenêtre. */
.post-media {
  --bleed: calc(max(0px, (100vw - var(--page-max)) / 2) + var(--gutter));
  /* Couleurs locales : tout ce qui est posé sur la table passe en clair sur sombre. */
  --surface: #262b24;
  --surface-hot: #30352b;
  --rule: #3c4338;
  --ink: var(--parchment);
  --ink-soft: var(--ash);
  --note: #d0a28c;
  --danger: #e59a88;
  --danger-soft: #3a2420;

  align-self: stretch;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-left: calc(-1 * var(--bleed));
  padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 44px) 56px clamp(16px, 3vw, 44px);
  background: var(--lightbox);
  color: var(--ink);
}

.epreuves { display: flex; flex-direction: column; gap: 36px; }
.epreuve { margin: 0; }
.epreuve img, .epreuve video {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 82vh;
  margin: 0 auto;
  object-fit: contain;
}
.epreuve figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.epreuve-n { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--note); margin-right: 10px; }
.epreuve-tools { display: flex; gap: 14px; }
.epreuve-tools form { display: inline; }
.epreuve-cover { max-width: 260px; }
.add-media { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid var(--rule); }
.add-media .btn { align-self: flex-start; }

.fiche { padding: clamp(28px, 4vw, 52px) 0 80px; min-width: 0; }
.back { display: inline-block; margin-bottom: 14px; color: var(--ink-soft); font-size: 0.9rem; }

.status-line { display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; margin: 0 0 20px; color: var(--ink-soft); }
.status-mark { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--ink-soft); margin-right: 6px; }
.status-approved .status-mark { background: var(--mark); border-color: var(--mark); }
.status-published .status-mark { background: var(--ok); border-color: var(--ok); }
.status-failed .status-mark { background: var(--danger); border-color: var(--danger); }
.status-publishing .status-mark { border-color: var(--mark); border-style: dashed; }

/* La fiche de tirage : ce qui part réellement, réglé comme un bordereau d'atelier. */
.tirage { margin: 0 0 10px; border-top: 1px solid var(--ink); }
.tirage > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
}
.tirage dt { font-size: var(--step--1); color: var(--ink-soft); }
.tirage dd { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.0625rem; line-height: 1.35; }

.counter { margin: 0; text-align: right; font-size: var(--step--1); color: var(--ink-soft); }
.counter.over { color: var(--danger); }

.feed-preview { margin-top: 12px; padding: 14px 16px; background: var(--surface); border-radius: 2px; }
.feed-label { margin: 0 0 6px; font-size: var(--step--1); color: var(--ink-soft); }
.feed-text { margin: 0; font-size: 0.9375rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.feed-text strong { font-weight: 600; }
.feed-more { color: var(--ink-soft); }

.checks { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; }
.check { padding-left: 18px; position: relative; color: var(--ink-soft); }
.check::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink-soft); }
.check-label { font-weight: 500; color: var(--ink); }
.check-ok::before { background: var(--ok); border-color: var(--ok); }
.check-warn::before { background: var(--mark); border-color: var(--mark); }
.check-error { color: var(--danger); }
.check-error .check-label { color: var(--danger); }
.check-error::before { background: var(--danger); border-color: var(--danger); }

.decision { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); }
.decision form { margin: 0; }
.dirty-note { color: var(--note); font-size: var(--step--1); margin: 0; }

.journal { margin-top: 32px; font-size: var(--step--1); color: var(--ink-soft); }
.journal summary { cursor: pointer; color: var(--ink); font-size: 0.9rem; }
.journal ol, .log { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.log { font-size: 0.9rem; }
.journal time, .log time { color: var(--note); font-family: var(--serif); font-style: italic; margin-right: 6px; }
.event-warn { color: var(--note); }
.event-error { color: var(--danger); }

/* --- réglages & connexion --------------------------------------------------------------- */

.facts { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 8px 20px; margin: 0; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; word-break: break-word; }
.logout { margin-top: 48px; }

.login { max-width: 400px; margin: 7vh auto 0; }
.login-mark { margin-bottom: clamp(40px, 8vh, 72px); color: var(--evergreen); }
.login-mark .logo { display: block; width: 100%; height: auto; }
.login .btn { margin-top: 18px; }
@media (prefers-color-scheme: dark) {
  .login-mark { color: var(--parchment); }
}

/* --- mobile ----------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .post-media {
    align-self: auto;
    margin: 0 calc(-1 * var(--gutter));
    padding: 20px var(--gutter) 32px;
    gap: 28px;
  }
  /* Sur téléphone, les images d'un carrousel défilent à l'horizontale, comme sur Instagram. */
  .epreuves {
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 6px;
    scrollbar-width: thin;
  }
  .epreuves > .epreuve { flex: 0 0 auto; width: 100%; scroll-snap-align: center; }
  .epreuves > .epreuve:only-child { width: 100%; }
  .epreuves:has(> .epreuve + .epreuve) > .epreuve { width: 86%; }
  .epreuve img, .epreuve video { max-height: 62vh; }
  .fiche { padding-bottom: 56px; }
  .display { font-size: var(--step-2); }
}

@media (max-width: 480px) {
  .masthead .logo { height: 46px; }
  .brand { gap: 12px; }
  .brand-sub { padding-left: 12px; font-size: 0.9375rem; }
  .planche { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  .nav { width: 100%; }
  .dropzone-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .develop .planche .frame-img img,
  .develop .planche .frame-img video { animation: none; }
}

/* --- grille prévisionnelle --------------------------------------------------------------- */

.planner .ig-grid { max-width: 760px; }
.planner-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 14px; }
.planner-status { margin: 0; font-size: 0.9rem; color: var(--note); font-family: var(--serif); font-style: italic; }
.planner-status.is-bad { color: var(--danger); font-family: var(--sans); font-style: normal; }

.ig-cell { display: block; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ig-cell.is-movable { cursor: grab; }
.ig-cell:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; z-index: 1; }
.ig-when { left: 7px; bottom: 26px; }
.ig-state {
  position: absolute; left: 7px; bottom: 8px;
  font-size: 0.6875rem;
  color: var(--parchment);
  text-shadow: 0 1px 3px rgba(23, 27, 21, 0.85);
  opacity: 0.85;
}
.ig-approved::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -3px 0 var(--mark); pointer-events: none; }
.ig-draft img, .ig-draft video { filter: saturate(0.75) brightness(0.92); }
.ig-draft::after { content: ""; position: absolute; inset: 0; outline: 1px dashed rgba(246, 242, 236, 0.7); outline-offset: -6px; pointer-events: none; }
.ig-failed::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -3px 0 var(--danger); pointer-events: none; }
.ig-published .ig-when, .ig-published .ig-state { display: none; }

.is-arranging .ig-cell.is-movable { touch-action: none; }
.is-arranging .ig-cell.is-movable img, .is-arranging .ig-cell.is-movable video { filter: none; }
.ig-cell.is-placeholder { opacity: 0.25; }
.ig-ghost {
  position: fixed; left: 0; top: 0; z-index: 50;
  pointer-events: none;
  box-shadow: 0 12px 28px rgba(23, 27, 21, 0.35);
  cursor: grabbing;
}

.unplaced { margin: 0 0 28px; max-width: 760px; }
.unplaced h2 { margin-bottom: 2px; }
.unplaced-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 3px; margin-top: 12px; }
.unplaced-strip .ig-when { font-family: var(--sans); font-style: normal; font-size: 0.75rem; }

.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.post-nav .back { margin-bottom: 0; }
.post-nav-steps { display: flex; gap: 14px; font-size: 0.9rem; color: var(--ink-soft); }
.post-nav-steps a { color: var(--ink); }
.post-nav-steps [aria-disabled] { opacity: 0.45; }
.post-nav-pos { font-family: var(--serif); font-style: italic; color: var(--note); }
.slot-fill { align-self: flex-start; font-size: var(--step--1); margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
  .ig-ghost { box-shadow: none; }
}
