/* Packshot Flow — outputs (right column) + generating states */
  /* ========= RIGHT COL ========= */
  .right-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
  }

  .outputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-height: 0;
    flex: 1 1 0;
    max-height: 550px;
  }
  /* A set rendered as separate images adds a third card: top · bottom · model. */
  .outputs.three { grid-template-columns: repeat(3, 1fr); }
  .output-card {
    border: 2px solid var(--border);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
  }
  .output-card:hover { box-shadow: var(--shadow-md); }
  .output-card.targeted {
    border-color: var(--target-ring);
    box-shadow: 0 0 0 3px var(--target-soft), var(--shadow-md);
  }
  .output-card.dimmed {
    opacity: 0.55;
    transform: scale(0.99);
  }
  .target-badge { display: none; }

  .output-head {
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }
  .output-head-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
  }
  .output-head-title svg { color: var(--text-2); }
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.15s;
  }
  .pill:hover:not(:disabled) { transform: translateY(-1px); }
  .pill:disabled { background: #ededed; color: #aaa; cursor: not-allowed; }
  .output-head .head-actions { display: flex; align-items: center; gap: 6px; }
  /* Ghost pill — secondary action next to Download */
  .pill.ghost { background: #fff; color: var(--text-1); border: 1px solid var(--border); }
  .pill.ghost:hover:not(:disabled) { border-color: var(--border-strong); }
  .pill.ghost:disabled { background: #fff; color: #c4c4c4; border: 1px solid var(--border); }

  .output-body {
    flex: 1;
    min-height: 0;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
  }
  .output-body img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
  .output-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.45;
    pointer-events: none;
  }
  .output-body.has-content::before { display: none; }
  .output-body.has-content { background: #fff; }
  /* ===== Generating state — card ===== */
  /* Keep the card calm: just a slightly firmer border while it works. */
  .output-card.is-generating {
    border-color: var(--border-strong);
  }

  /* ===== Generating state — skeleton shimmer ===== */
  .output-body.loading {
    position: relative;
    background: var(--surface-2);
    overflow: hidden;
  }
  .output-body.loading::before { display: none; }

  /* A soft light band sweeping across the panel — the classic skeleton
     shimmer. Uses transform for a hardware-accelerated, 60fps animation. */
  .output-body.loading .skeleton-sweep {
    position: absolute;
    top: 0; bottom: 0;
    width: 55%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
      100deg,
      transparent 0%,
      rgba(255, 255, 255, 0.85) 50%,
      transparent 100%);
    will-change: transform;
    animation: skeleton-sweep 1.7s ease-in-out infinite;
  }
  @keyframes skeleton-sweep {
    0%   { transform: translateX(-160%); }
    100% { transform: translateX(320%); }
  }

  /* Center widget — clean neutral card, on-brand with the rest of the app */
  .generating-widget {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    z-index: 5;
    padding: 22px 30px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
    animation: widget-pop 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  @keyframes widget-pop {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* Simple monochrome spinner */
  .generating-spinner {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2.5px solid var(--border);
    border-top-color: var(--accent);
    will-change: transform;
    animation: spin-cw 0.7s linear infinite;
  }
  @keyframes spin-cw { to { transform: rotate(360deg); } }

  .generating-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
    text-align: center;
    line-height: 1.3;
    min-height: 1.3em;
    transition: opacity 0.3s ease;
  }
  .generating-sub {
    font-size: 9.5px;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: 0.12em;
    text-align: center;
  }
  /* Indeterminate progress bar */
  .generating-bar {
    width: 134px;
    height: 3px;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
    position: relative;
  }
  .generating-bar::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 40%;
    border-radius: 999px;
    background: var(--accent);
    /* transform (not `left`) so the compositor keeps this gliding smoothly
       even while the in-browser cutout model blocks the main thread. */
    will-change: transform;
    animation: bar-slide 1.5s ease-in-out infinite;
  }
  @keyframes bar-slide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
  }

  /* Respect reduced-motion: swap the sweep for a calm fade pulse */
  @media (prefers-reduced-motion: reduce) {
    .output-body.loading .skeleton-sweep {
      width: 100%;
      transform: none;
      background: rgba(255, 255, 255, 0.7);
      animation: skeleton-pulse 1.8s ease-in-out infinite;
    }
    @keyframes skeleton-pulse {
      0%, 100% { opacity: 0.15; }
      50%      { opacity: 0.6; }
    }
    .generating-spinner { animation-duration: 1.3s; }
    .generating-bar::after {
      animation: none;
      width: 100%;
      opacity: 0.55;
    }
  }
  .generating-dots::after {
    content: '';
    display: inline-block;
    width: 1ch;
    text-align: left;
    animation: dots 1.4s steps(4, end) infinite;
  }
  @keyframes dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
  }

  .output-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-3);
    z-index: 1;
    padding: 16px;
    text-align: center;
  }
  .output-empty-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    animation: float 4s ease-in-out infinite;
  }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
  .output-empty-text { font-size: 11.5px; font-weight: 500; color: var(--text-2); }

  .output-foot {
    padding: 7px 12px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10.5px;
    color: var(--text-3);
    flex-shrink: 0;
  }

