    /* W13 — media cards */
    .media-card {
      position: relative;
      display: flex;
      gap: 12px;
      padding: 12px 0;
      border-bottom: 1px solid #f0f0f3;
    }
    .media-card:last-child { border-bottom: none; }
    .media-card-icon {
      width: 48px;
      height: 48px;
      border-radius: 7px;
      background: #ebebf2;
      border: 1px solid #d4d4de;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      color: #777;
      flex-shrink: 0;
      align-self: flex-start;
      cursor: pointer;
      user-select: none;
      transition: background 0.1s, color 0.1s, border-color 0.1s;
    }
    .media-card-icon:hover  { background: #d8d8e8; border-color: #b8b8cc; color: #444; }
    .media-card-icon:active { background: #c4c4d8; border-color: #a8a8bc; color: #222; }
    .media-card-icon:focus-visible { outline: 2px solid #6666aa; outline-offset: 2px; }
    .media-card-icon svg { width: 20px; height: 20px; display: block; }
    .media-card.type-photo .media-card-icon {
      background: #eff6ff;
      border-color: #bfdbfe;
      color: #1d4ed8;
    }
    .media-card.type-photo .media-card-icon:hover  { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }
    .media-card.type-photo .media-card-icon:active { background: #bfdbfe; border-color: #60a5fa; color: #1e40af; }
    .media-card.type-video .media-card-icon {
      background: #fff7ed;
      border-color: #fdba74;
      color: #c2410c;
    }
    .media-card.type-video .media-card-icon:hover  { background: #ffedd5; border-color: #fb923c; color: #c2410c; }
    .media-card.type-video .media-card-icon:active { background: #fed7aa; border-color: #f97316; color: #9a3412; }
    .media-card-body { flex: 1; min-width: 0; }
    .media-card-title {
      font-size: 13px;
      font-weight: 600;
      color: #111;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      margin-bottom: 3px;
    }
    /* DISPLAY_TITLE_V1 — always-visible editable title input */
    .mc-title-input {
      display: block;
      width: 100%;
      box-sizing: border-box;
      font-size: 14px;
      font-weight: 700;
      color: #111;
      font-family: inherit;
      background: #fff;
      border: 1px solid #d6d9e3;
      border-radius: 6px;
      outline: none;
      padding: 6px 9px;
      margin-bottom: 6px;
    }
    .mc-title-input:focus {
      background: #fff;
      border-color: #94a3b8;
    }
    .mc-title-input::placeholder { color: #8b95a7; font-weight: 500; }
    .media-card-meta {
      display: flex;
      gap: 6px;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 4px;
    }
    .media-card-footer { margin-top: 6px; }
    .media-card-caption-row {
      display: flex;
      gap: 6px;
      align-items: center;
      margin-bottom: 5px;
    }
    .media-card-actions { display: flex; gap: 6px; }

    /* W14 — media card action controls */
    .mc-caption-input {
      flex: 1;
      min-width: 0;
      font-size: 12px;
      padding: 3px 6px;
      border: 1px solid #ddd;
      border-radius: 3px;
      font-family: inherit;
    }
    .mc-btn {
      font-size: 11px;
      padding: 3px 8px;
      border: 1px solid #ddd;
      border-radius: 3px;
      background: #f7f7f9;
      color: #555;
      cursor: pointer;
      white-space: nowrap;
    }
    .mc-btn:hover { background: #ebebf0; }
    .mc-btn:disabled { color: #bbb; cursor: default; border-color: #e8e8ec; background: #f7f7f9; }
    .mc-btn-primary { border-color: #bbb; color: #111; font-weight: 600; }
    .mc-btn-del { color: #b91c1c; border-color: #f5c6cb; }
    .mc-btn-del:hover { background: #fff5f5; border-color: #f5b7bb; color: #9b1c1c; }
    .mc-btn-retry { color: #92400e; border-color: #fcd34d; }
    .mc-btn-retry:hover { background: #fffbeb; border-color: #fbbf24; color: #78350f; }
    /* O_SVG — icon alignment inside action buttons */
    .mc-btn svg { display: block; }
    /* O_META — de-emphasize file size to match badge/kind scale */
    .media-card-meta .media-size { font-size: 11px; color: #bbb; }
    .media-type-chip,
    .media-kind {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 8px;
      border-radius: 999px;
      border: 1px solid #dbe3f3;
      background: #f8fafc;
      color: #334155;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }
    .media-type-chip--photo {
      background: #eff6ff;
      border-color: #bfdbfe;
      color: #1d4ed8;
    }
    .media-type-chip--video {
      background: #fff7ed;
      border-color: #fdba74;
      color: #c2410c;
    }

    /* Runway rail */
    :root {
      --runway-green:     #2f9e44;
      --state-shared:     #2f9e44;
      --state-processing: #d97706;
      --state-failed:     #dc2626;
      --state-uploading:  #2563eb;
    }
    /* MG — media group wrappers (shared for tech + admin) */
    .media-group { background: transparent; }
    .media-group + .media-group { margin-top: 14px; }
    .media-group__summary-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 10px;
    }
    .media-group__summary {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
      padding: 10px 12px;
      border: 1px solid rgba(148, 163, 184, 0.28);
      border-radius: 8px;
      background: rgba(255,255,255,0.92);
      color: #111827;
      text-align: left;
      cursor: pointer;
    }
    .media-group__summary:hover { background: #fff; border-color: rgba(100, 116, 139, 0.34); }
    .media-group__summary-copy {
      min-width: 0;
      display: grid;
      gap: 2px;
      flex: 1;
    }
    .media-group__summary-label {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: #334155;
    }
    .media-group__summary-helper,
    .media-group__summary-detail {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 12px;
      line-height: 1.3;
    }
    .media-group__summary-helper { color: #475569; font-weight: 700; }
    .media-group__summary-detail { color: #64748b; }
    .media-group__summary-chevron {
      flex: 0 0 auto;
      color: #64748b;
      font-size: 13px;
      line-height: 1;
    }
    .media-group__summary-thumb {
      flex: 0 0 auto;
      width: 64px;
      height: 40px;
      overflow: hidden;
      border-radius: 6px;
      border: 1px solid rgba(148, 163, 184, 0.28);
      background: #e2e8f0;
    }
    .media-group__summary-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .media-group__header {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: #aaa;
      display: flex;
      align-items: center;
      gap: 5px;
      margin: 0 0 4px;
      padding-left: 8px;
    }
    .media-group__body { /* default: no additional treatment */ }
    /* Rail lives on #media-list — spans exactly first row to last row,
       no overlap with card title or status area above it. */
    #media-list {
      position: relative;
      padding-left: 21px;
    }
    /* Solid guide lines: far-left faintest, near-card strongest */
    #media-list::before {
      content: '';
      position: absolute;
      left: 11px;
      top: 4px;
      bottom: 4px;
      width: 10px;
      pointer-events: none;
      background:
        linear-gradient(
          to right,
          rgba(47,158,68,0.10) 0 1px,
          transparent 1px 9px,
          rgba(47,158,68,0.55) 9px 10px
        );
    }
    /* Dashed centerline — medium emphasis */
    #media-list::after {
      content: '';
      position: absolute;
      left: 16px;
      top: 4px;
      bottom: 4px;
      width: 1px;
      pointer-events: none;
      background:
        repeating-linear-gradient(
          to bottom,
          rgba(47,158,68,0.42) 0 6px,
          transparent 6px 18px
        );
    }
    /* Card state ownership — pill accent + faint wash, never touches rail */
    .media-card::before {
      content: '';
      position: absolute;
      left: 0;
      top: 10px;
      bottom: 10px;
      width: 3px;
      border-radius: 999px;
      background: transparent;
    }
    .media-card.state-shared {
      background: linear-gradient(to right, rgba(47,158,68,.06), transparent 24px), #fff;
    }
    .media-card.state-shared::before     { background: var(--state-shared); }
    .media-card.state-unshared {
      background: linear-gradient(to right, rgba(148,163,184,.08), transparent 24px), #fff;
    }
    .media-card.state-unshared::before   { background: #94a3b8; }
    .media-card.state-processing {
      background: linear-gradient(to right, rgba(217,119,6,.08), transparent 24px), #fff;
    }
    .media-card.state-processing::before { background: var(--state-processing); }
    .media-card.state-failed {
      background: linear-gradient(to right, rgba(220,38,38,.08), transparent 24px), #fff;
    }
    .media-card.state-failed::before     { background: var(--state-failed); }
    .media-card.state-uploading {
      background: linear-gradient(to right, rgba(37,99,235,.08), transparent 24px), #fff;
    }
    .media-card.state-uploading::before  { background: var(--state-uploading); }

    /* MM-2 — in-app media viewer */
    #media-viewer {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.88);
      z-index: 200;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 16px;
    }
    #media-viewer.mv-open { display: flex; }
    #mv-close {
      position: absolute;
      top: 12px;
      right: 14px;
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.22);
      border-radius: 5px;
      color: #fff;
      font-size: 16px;
      line-height: 1;
      padding: 6px 10px;
      cursor: pointer;
      z-index: 1;
    }
    #mv-close:hover { background: rgba(255,255,255,0.22); }
    #mv-identity {
      color: rgba(255,255,255,0.55);
      font-size: 12px;
      font-family: monospace;
      margin-bottom: 10px;
      max-width: min(90vw, 648px);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    #mv-content {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      max-width: min(90vw, 648px);
      min-height: 120px;
    }
    #mv-content img  { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 4px; display: block; animation: mv-fadein 0.18s ease; }
    #mv-content video { max-width: 100%; max-height: 80vh; border-radius: 4px; display: block; }
    #mv-content.mv-content--photo { touch-action: pan-y; }
    @keyframes mv-fadein { from { opacity: 0; } to { opacity: 1; } }
    /* MM-2C — photo switcher nav */
    #mv-nav {
      display: flex;
      gap: 0;
      align-items: center;
      margin-top: 16px;
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.18);
      border-radius: 7px;
      overflow: hidden;
    }
    #mv-nav.mv-nav--hidden { display: none; }
    #mv-prev, #mv-next {
      background: transparent;
      border: none;
      color: #fff;
      font-size: 18px;
      line-height: 1;
      padding: 8px 20px;
      cursor: pointer;
      min-width: 52px;
      transition: background 0.1s;
    }
    #mv-counter {
      border-left: 1px solid rgba(255,255,255,0.18);
      border-right: 1px solid rgba(255,255,255,0.18);
      color: rgba(255,255,255,0.6);
      font-size: 12px;
      font-family: monospace;
      padding: 8px 14px;
      white-space: nowrap;
      min-width: 52px;
      text-align: center;
    }
    #mv-prev:hover, #mv-next:hover { background: rgba(255,255,255,0.14); }
    #mv-prev:disabled, #mv-next:disabled {
      opacity: 0.2;
      cursor: default;
      pointer-events: none;
    }
    @media (max-width: 640px) {
      #mv-close { top: 8px; right: 8px; padding: 5px 9px; font-size: 15px; }
      #mv-content img, #mv-content video { max-height: 75vh; }
      #mv-prev, #mv-next { font-size: 16px; padding: 8px 14px; min-width: 40px; }
      #mv-counter { font-size: 11px; padding: 8px 10px; min-width: 40px; }
    }

    /* Cover Photo section — job identity layer, distinct from baseline/pending groups */
    .media-group--cover { background: transparent; border: none; border-radius: 0; padding: 0; margin-bottom: 4px; box-shadow: none; }
    .media-group--cover .media-group__summary { border-color: rgba(148, 163, 184, 0.32); background: #fff; }
    .media-group--cover .media-group__summary:hover { border-color: rgba(59, 95, 160, 0.34); background: #fff; }
    .media-group--cover .media-group__summary-label { color: #0f172a; }
    .media-group--cover .media-group__summary-helper { color: #64748b; font-weight: 600; }
    .media-group--cover .media-group__summary-detail { color: #64748b; }
    .media-group__summary-row--cover { margin-bottom: 8px; }
    .media-group__summary--cover { padding-right: 10px; align-items: center; }
    .media-group__summary--cover .media-group__summary-copy { gap: 4px; }
    .media-group__summary-thumb--cover { width: 96px; height: 60px; border-radius: 10px; border-color: rgba(148, 163, 184, 0.34); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); }
    .media-group__summary-thumb--cover-empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #f8fafc, #e2e8f0); }
    .cover-photo-thumb-placeholder { font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #64748b; }
    .cover-photo-panel { display: grid; gap: 12px; }
    .cover-photo-preview { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 180px; overflow: hidden; border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.3); background: #e8eef8; margin-bottom: 0; }
    .cover-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .cover-photo-preview--empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #f8fafc, #eef2f7); }
    .cover-photo-preview--actionable { appearance: none; cursor: pointer; padding: 0; transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease; }
    .cover-photo-preview--actionable:hover { border-color: rgba(59, 95, 160, 0.38); background: linear-gradient(180deg, #ffffff, #eef4fb); box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08); }
    .cover-photo-preview--actionable:focus-visible { outline: none; border-color: rgba(37, 99, 235, 0.52); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18), 0 10px 22px rgba(15, 23, 42, 0.10); background: linear-gradient(180deg, #ffffff, #eef4fb); }
    .cover-photo-preview--actionable:active { transform: translateY(1px); }
    .cover-photo-preview-empty-copy { display: grid; gap: 4px; text-align: center; padding: 18px; }
    .cover-photo-preview-meta { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.72)); }
    .cover-photo-preview-label { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
    .cover-photo-preview-status { font-size: 12px; line-height: 1.3; color: rgba(255,255,255,0.82); }
    .cover-photo-preview-label--empty { color: #0f172a; }
    .cover-photo-preview-status--empty { color: #64748b; }
    .cover-photo-preview-helper { font-size: 12px; line-height: 1.3; color: #475569; font-weight: 600; }
    .cover-photo-actions { display: flex; justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
    .mc-btn-cover-clear { background: #fff; border: 1px solid #c7d3f5; color: #1e3a8a; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 4px 10px; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
    .mc-btn-cover-clear:hover { background: #e8eef8; border-color: #93aae8; }
    .mc-btn-cover-retake { background: #fff; border: 1px solid #d1d5db; color: #334155; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 8px 12px; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
    .mc-btn-cover-retake:hover { background: #f8fafc; border-color: #94a3b8; color: #0f172a; }
    .mc-btn-cover-remove { background: #fff; border: 1px solid #ead0d0; color: #9f1239; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 8px 12px; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
    .mc-btn-cover-remove:hover { background: #fff5f7; border-color: #d8a4a8; color: #881337; }
    .mc-btn-cover { font-size: 10px; font-weight: 700; padding: 2px 7px; border: 1px solid #c7d3f5; border-radius: 3px; background: #e8eef8; color: #1e3a8a; cursor: pointer; white-space: nowrap; }
    .mc-btn-cover:hover { background: #c7d3f5; }
    .badge-cover { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }

    /* MG themed containers — tech locked shell baseline/pending */
    .media-group--baseline {
      background: #f6f8fc;
      border: 1px solid rgba(95, 122, 176, 0.14);
      border-radius: 8px;
      padding: 10px 10px 12px;
    }
    .media-group--pending {
      background: #fdf4e2;
      border-radius: 8px;
      padding: 10px 10px 12px;
    }
    .media-group--baseline .media-group__header { color: #3d5280; padding-left: 0; margin-bottom: 8px; }
    .media-group--baseline .media-group__summary { border-color: rgba(95, 122, 176, 0.22); background: rgba(255,255,255,0.92); }
    .media-group--baseline .media-group__summary:hover { border-color: rgba(77, 104, 156, 0.34); }
    .media-group--baseline .media-group__summary-label { color: #334155; }
    .media-group--baseline .media-group__summary-helper { color: #64748b; font-weight: 600; }
    .media-group--pending .media-group__header {
      color: #7a4500;
      padding-left: 0;
      margin-bottom: 8px;
    }
    @media (max-width: 640px) {
      .media-group__summary { padding: 9px 10px; gap: 10px; }
      .media-group--cover .media-group__summary { padding: 9px 10px; }
      .media-group__summary-thumb--cover { width: 78px; height: 52px; }
      .cover-photo-panel { gap: 8px; }
      .cover-photo-preview { min-height: 0; aspect-ratio: 4 / 3; }
      .cover-photo-preview-meta { left: 10px; right: 10px; bottom: 10px; padding: 8px 10px; }
      .cover-photo-actions > .mc-btn { width: 100%; justify-content: center; }
    }
    /* Media Manager pending update action */
    .mm-pending-action {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      background: #fff;
      border: 1px solid rgba(122, 69, 0, 0.2);
      border-radius: 6px;
      padding: 10px;
      margin-bottom: 10px;
    }
    .mm-pending-action__body {
      min-width: 0;
      display: grid;
      gap: 2px;
    }
    .mm-pending-action__title {
      color: #171717;
      font-size: 13px;
      font-weight: 800;
      line-height: 1.2;
    }
    .mm-pending-action__copy {
      color: #6f4a10;
      font-size: 12px;
      line-height: 1.3;
    }
    .mm-pending-action__btn {
      flex: 0 0 auto;
      border: 1px solid #111;
      border-radius: 6px;
      background: #111;
      color: #fff;
      font-size: 13px;
      font-weight: 800;
      line-height: 1.2;
      padding: 9px 12px;
      cursor: pointer;
      white-space: nowrap;
    }
    .mm-pending-action__btn:hover {
      background: #333;
      border-color: #333;
    }
    .mm-pending-action__btn:focus-visible {
      outline: 2px solid #111;
      outline-offset: 2px;
    }
    @media (max-width: 560px) {
      .mm-pending-action {
        align-items: stretch;
        flex-direction: column;
      }
      .mm-pending-action__btn {
        width: 100%;
      }
    }
    /* Media Manager released-content unlock action */
    .mm-lock-action {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      background: #fff;
      border: 1px solid rgba(61, 82, 128, 0.22);
      border-radius: 6px;
      padding: 10px;
      margin-bottom: 10px;
    }
    .mm-lock-action__body {
      min-width: 0;
      display: grid;
      gap: 2px;
    }
    .mm-lock-action__title {
      color: #171717;
      font-size: 13px;
      font-weight: 800;
      line-height: 1.2;
    }
    .mm-lock-action__copy {
      color: #3d5280;
      font-size: 12px;
      line-height: 1.3;
    }
    .mm-lock-action__btn {
      flex: 0 0 auto;
      border: 1px solid #111;
      border-radius: 6px;
      background: #111;
      color: #fff;
      font-size: 13px;
      font-weight: 800;
      line-height: 1.2;
      padding: 9px 12px;
      cursor: pointer;
      white-space: nowrap;
    }
    .mm-lock-action__btn:hover {
      background: #333;
      border-color: #333;
    }
    .mm-lock-action__btn:focus-visible {
      outline: 2px solid #111;
      outline-offset: 2px;
    }
    .mm-lock-action__btn--secondary {
      background: #fff;
      color: #171717;
    }
    .mm-lock-action__btn--secondary:hover {
      background: #f3f4f6;
      border-color: #111;
    }
    @media (max-width: 560px) {
      .mm-lock-action {
        align-items: stretch;
        flex-direction: column;
      }
      .mm-lock-action__btn {
        width: 100%;
      }
    }
    /* Cards inside themed groups: transparent shell — group background carries the visual family */
    .media-group--baseline .media-card,
    .media-group--pending .media-card {
      background: transparent;
      border-bottom: none;
      margin-bottom: 5px;
    }
    .media-group--baseline .media-card:last-child,
    .media-group--pending .media-card:last-child { margin-bottom: 0; }
    /* Icon tile contrast: white surface so tile stands out against tinted group background */
    .media-group--baseline .media-card-icon,
    .media-group--pending .media-card-icon { background: #fff; border-color: #d4d4de; }
    /* Icon and chip */
    .msr-group-icon { flex-shrink: 0; }
    .msr-chip {
      display: inline-block;
      font-size: 9px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      border-radius: 3px;
      padding: 2px 5px;
      vertical-align: middle;
      margin-left: 2px;
    }
    .msr-chip--locked { background: rgba(61, 82, 128, 0.14); color: #3d5280; }
    .msr-chip--staged { background: rgba(122, 69, 0, 0.12); color: #7a4500; }
