/* "How this was made" sheet for the versions page (16/11): a copy of the rules of choices.css (13/10 to 22/10, the mk-*
   classes), so the sheet looks the same as on the revision pages; choices.css stays as it is. */
body.is-zoomed { overflow: hidden; }
.mk-btn {
  position: absolute; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 999px; background: transparent;
  color: var(--faint); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.mk-btn:hover, .mk-btn:focus-visible { color: var(--action); background: var(--action-soft); }
.mk-btn:focus-visible { outline: 2px solid var(--action); outline-offset: 1px; }
.mk-btn::before { content: ""; position: absolute; inset: -7px; } /* a 44 px target around a 30 px mark */
.rv-clip > .mk-btn { top: -7px; right: -5px; }
.ch-opt > .mk-btn { top: 6px; right: 6px; }
.ch-opt.has-made .ch-opt__head { padding-right: 28px; }
/* 22/10 : several sounds in one option, an ⓘ on each (top right of its play button) */
.ch-audio.has-made { position: relative; }
.ch-audio > .mk-btn { top: -10px; right: -8px; width: 26px; height: 26px; background: var(--surface); }

.mk { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.mk[hidden] { display: none; }
.mk__scrim { position: absolute; inset: 0; background: rgba(25, 29, 43, 0.42); animation: mk-fade 0.18s ease; }
.mk__sheet {
  position: relative; width: 100%; max-height: 88svh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px -12px rgba(25, 29, 43, 0.35);
  padding-bottom: env(safe-area-inset-bottom); animation: mk-up 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mk__head {
  display: flex; align-items: flex-start; gap: 12px; padding: 18px 16px 12px; border-bottom: 1px solid var(--line-2);
}
.mk__head::before { /* the grab handle of a sheet */
  content: ""; position: absolute; top: 7px; left: 50%; width: 36px; height: 4px; margin-left: -18px;
  border-radius: 999px; background: var(--line);
}
.mk__titles { flex: 1; min-width: 0; }
.mk__title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.mk__for { margin-top: 2px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.mk__close {
  flex: none; width: 36px; height: 36px; margin: -4px -6px 0 0; border: 0; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); font-size: 22px; line-height: 1; cursor: pointer;
}
.mk__close:hover { background: var(--line-2); }
.mk__scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; position: relative; }
.mk__content { padding: 4px 16px 18px; }
.mk-body { display: flex; flex-direction: column; }
.mk-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 0 2px; font-size: 14.5px; color: var(--ink-2); }
.mk-meta__k, .mk-sec__label {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted);
}
.mk-meta del { color: var(--danger); }
.mk-meta ins { color: var(--ok); text-decoration: none; font-weight: 650; }
.mk-sec { padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.mk-sec + .mk-sec { margin-top: 14px; border-top: 1px solid var(--line-2); }
.mk-sec__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.mk-refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mk-ref {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 0; border: 0; background: none;
  text-align: left; cursor: zoom-in; font: inherit; color: inherit;
}
.mk-ref__img {
  position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 9px; overflow: hidden;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.mk-ref__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 20/10 : une image d'entrée (planche, photo du pot) se montre entière, tête et pieds compris ; un clip garde son cadrage */
.mk-ref:not(.mk-ref--clip) .mk-ref__img img { object-fit: contain; }
.mk-ref__why { white-space: normal; color: var(--muted); }
.mk-brand { display: inline-block; padding: 0 6px; margin: 0 1px; border-radius: 4px; background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 0.88em; font-weight: 650; letter-spacing: 0.02em; }
.mk-ref__role { font-size: 13.5px; font-weight: 650; color: var(--ink); line-height: 1.25; }
.mk-ref__n { color: var(--faint); font-weight: 600; }
.mk-ref__name { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-ref__mark {
  position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 999px; display: flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: #fff;
}
.mk-ref--added .mk-ref__mark { background: var(--ok); }
.mk-ref--removed .mk-ref__mark { background: var(--danger); }
.mk-ref--removed .mk-ref__img img { opacity: 0.55; filter: grayscale(0.6); }
.mk-none, .mk-sub { font-size: 14px; color: var(--muted); }
.mk-prompt {
  font-size: 14.5px; line-height: 1.55; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere;
  padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
}
.mk-diff ins { background: var(--ok-soft); color: var(--ok); text-decoration: none; border-radius: 3px; }
.mk-diff del { background: var(--danger-soft); color: var(--danger); border-radius: 3px; }
.mk-same { font-size: 14.5px; color: var(--ink-2); padding: 10px 12px; background: var(--action-soft); border-radius: var(--radius-sm); }
.mk-copy {
  min-height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--action); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer;
}
.mk-copy:hover { border-color: var(--action); }
.mk-foot { margin-top: 18px; font-size: 12.5px; color: var(--faint); }
/* 20/10: a clone video, one collapsed row per shot (its time in the media, its take), the inputs inside */
.mk-shots { display: flex; flex-direction: column; gap: 8px; }
.mk-shot { border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); }
.mk-shot[open] { border-color: var(--line); box-shadow: var(--shadow-sm); }
.mk-shot__sum {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; cursor: pointer;
  list-style: none; font-size: 14.5px; -webkit-tap-highlight-color: transparent;
}
.mk-shot__sum::-webkit-details-marker { display: none; }
.mk-shot__sum::after {
  content: ""; flex: none; width: 7px; height: 7px; margin: 0 4px 3px 0; border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint); transform: rotate(45deg); transition: transform 0.15s ease;
}
.mk-shot[open] > .mk-shot__sum::after { transform: rotate(-135deg); margin-bottom: -3px; }
.mk-shot__sum:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; border-radius: var(--radius-sm); }
.mk-shot__at { flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mk-shot__main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.mk-shot__title { min-width: 0; font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }
.mk-shot__body { display: flex; flex-direction: column; padding: 0 12px 14px; border-top: 1px solid var(--line-2); }
.mk-shot__body > .mk-same { margin-top: 12px; }
.mk-tag {
  flex: none; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 650;
  background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
.mk-tag--new { background: var(--action-soft); color: var(--action); }
.mk-tag--flag { background: var(--amber-soft); color: var(--amber); }
.mk-list { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); list-style: disc; }
.mk-check { font-size: 14.5px; color: var(--ink-2); padding: 10px 12px; background: var(--ok-soft); border-radius: var(--radius-sm); }
.mk-check--flag { background: var(--amber-soft); }
.mk-note { font-size: 14px; color: var(--ink-2); padding: 8px 0 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.mk-note + .mk-note { border-top: 1px solid var(--line-2); }
.mk-note__date { font-size: 12px; font-weight: 650; color: var(--muted); }
.mk-note__why { color: var(--muted); }
.mk-lines { display: flex; flex-direction: column; gap: 8px; }
.mk-lines li { display: grid; grid-template-columns: 88px 1fr; gap: 8px; font-size: 14.5px; }
.mk-lines__at { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.mk-lines__t { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; color: var(--ink); overflow-wrap: anywhere; }
.mk-lines__meta { font-size: 12.5px; color: var(--faint); }
.mk-ref__play {
  position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 999px;
  background: rgba(17, 19, 28, 0.55);
}
.mk-ref__play::after {
  content: ""; position: absolute; left: 13px; top: 10px; border-style: solid; border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
}
.mk-zoom video { max-width: 100%; min-height: 0; flex: 0 1 auto; max-height: calc(100% - 60px); border-radius: 8px; background: #000; cursor: default; }
.mk-zoom {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 56px 16px calc(16px + env(safe-area-inset-bottom)); background: #11131c;
  border-radius: inherit; cursor: zoom-out; outline: none;
}
.mk-zoom[hidden] { display: none; }
.mk-zoom img { max-width: 100%; min-height: 0; flex: 0 1 auto; max-height: calc(100% - 60px); object-fit: contain; border-radius: 8px; }
.mk-zoom__cap { color: #fff; font-size: 14px; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.mk-zoom__hint { color: rgba(255, 255, 255, 0.6); font-size: 12.5px; }
.mk-zoom__close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.16); color: #fff; font: inherit; font-size: 24px; line-height: 40px; text-align: center;
}
.mk-zoom__close:hover, .mk-zoom__close:focus-visible { background: rgba(255, 255, 255, 0.28); outline: none; }
@keyframes mk-up { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@keyframes mk-fade { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 640px) {
  .mk { align-items: center; padding: 24px; }
  .mk__sheet { max-width: 600px; max-height: 86vh; border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(25, 29, 43, 0.45); }
  .mk__head::before { display: none; }
  .mk__content { padding: 4px 22px 22px; }
  .mk__head { padding: 18px 22px 12px; }
  .mk-refs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .mk__sheet, .mk__scrim { animation: none; } }
