/* planflow-outputs.css — round 21 track A — outputs: the image-only card body, the media well, the expanded view, the files gallery (planflow-blocks.js / planflow-inspector.js output region).
   Owned by that track alone; loaded after planflow-inspector.css.
   Owner (2026-10-16): "I would rather have only the image on the preview displayed instead of the messy text";
   "when we expand the preview it does not show the image and the layout can be definitely improved";
   "the description and layout of the image or file output in the detail view should be nicer".
   Every rule overrides planflow-blocks.css / planflow-inspector.css by specificity or by this file's later
   source order — those files are not edited. Tokens (--well-bg, --radius, --muted, …) are the panel's own. */

/* =============================================================
   1. THE CARD — an image result shows ONLY the image, full width.
   The open body grows from 60 to 137 units (10 + 116 + 10 padding +
   1 border) and the card's output height from 88 to 144 units; the
   silhouettes follow (planflow-blocks.js syncCardHeight reads the
   same 144). The text stays in the DOM (the expanded view reads it)
   but is not shown; ⤢ floats over the image's top-right corner.
   ============================================================= */
.aw-newblocks .block.wf-block.has-output.has-image-output.is-output-open{ --output-h:144; }
.aw-newblocks .block.wf-block.has-image-output .wf-block__output__body{ position:relative; }
.aw-newblocks .block.wf-block.has-output.has-image-output.is-output-open .wf-block__output__body{ max-height:calc(137px * var(--scale)); }
.aw-newblocks .block.wf-block.has-image-output .wf-block__output__text{ display:none; }
.aw-newblocks .block.wf-block.has-image-output .wf-block__output__thumb{
  flex:1 1 auto; width:100%;
  height:calc(116px * var(--scale));
  border-radius:calc(7px * var(--scale));
  object-fit:cover;
}
.aw-newblocks .block.wf-block.has-image-output .wf-block__output__expand{
  position:absolute; z-index:2;
  top:calc(16px * var(--scale)); right:calc(19px * var(--scale));
  width:calc(24px * var(--scale)); height:calc(24px * var(--scale));
  background:rgba(255,255,255,.9);
  border:1px solid #D9DED9;
  box-shadow:0 1px 3px rgba(28,44,36,.16);
  color:#3C5247;
}
.aw-newblocks .block.wf-block.has-image-output .wf-block__output__expand:hover{ background:#fff; color:#1F6E45; }
/* several images: the first, with a small "+N" badge */
.aw-newblocks .wf-block__output__more{
  position:absolute; z-index:2;
  left:calc(19px * var(--scale)); bottom:calc(16px * var(--scale));
  padding:calc(2px * var(--scale)) calc(7px * var(--scale));
  border-radius:999px;
  background:rgba(31,45,38,.78);
  color:#fff;
  font-size:calc(10.5px * var(--scale)); font-weight:600; letter-spacing:.04em; line-height:1.5;
  pointer-events:none;
}

/* =============================================================
   2. THE WELL (inspector Output tab, the review card) — one row per
   artifact: the thumb or a type icon by extension | kind label, name
   + size muted, the chips | Open / Download; the Details fold.
   ============================================================= */
.pfi-root .wf-out__media{ align-items:flex-start; }
.pfi-root .wf-out__minfo{ flex:1; }
.pfi-root .wf-out__thumb--file{ flex-direction:column; gap:2px; }
.pfi-root .wf-out__thumb--file svg{ width:19px; height:19px; }
.pfi-root .wf-out__thumb--file i{ font-style:normal; font-size:8.5px; font-weight:700; line-height:1; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); }
.pfi-root .wf-out__mkind{ font-size:9.5px; font-weight:600; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); line-height:1.3; }
.pfi-root .wf-out__mline{ display:flex; align-items:baseline; gap:7px; min-width:0; }
.pfi-root .wf-out__mline .wf-out__mname{ min-width:0; }
.pfi-root .wf-out__msize{ flex:none; font-size:11px; font-weight:400; color:var(--muted); white-space:nowrap; }
.pfi-root .wf-out__macts{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; }   /* wraps before it ever overruns a narrow row */
.pfi-root .wf-out__minfo .wf-out__macts{ margin-top:7px; }
.pfi-root .wf-out__macts a.wf-btn{ text-decoration:none; }
.pfi-root .wf-out__dettog{ margin:0; }   /* .wf-grp__plantog's indent belongs to the plan widget */
.pfi-root .wf-out__details{ display:flex; flex-direction:column; gap:9px; padding:10px 11px; background:var(--well-bg); border:1px solid var(--well-line); border-radius:var(--radius); box-shadow:var(--well-shadow); }
.pfi-root .wf-out__kvs{ display:flex; flex-direction:column; gap:4px; }
.pfi-root .wf-out__kv{ display:flex; gap:10px; align-items:baseline; font-size:12px; line-height:1.45; }
.pfi-root .wf-out__kvk{ flex:0 0 38%; font-size:11px; font-weight:600; letter-spacing:.02em; color:var(--muted); }
.pfi-root .wf-out__kvv{ flex:1; min-width:0; color:var(--text); overflow-wrap:anywhere; }
.pfi-root .wf-out__trace{ width:100%; border-collapse:collapse; font-size:11.5px; }
.pfi-root .wf-out__trace th{ text-align:left; font-size:9.5px; font-weight:600; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); padding:0 6px 4px 0; border-bottom:1px solid var(--well-line); }
.pfi-root .wf-out__trace td{ padding:3px 6px 3px 0; color:var(--text); border-bottom:1px solid var(--well-line); font-variant-numeric:tabular-nums; }
.pfi-root .wf-out__trace tr:last-child td{ border-bottom:0; }
.pfi-root .wf-out__trace td:not(:first-child),.pfi-root .wf-out__trace th:not(:first-child){ text-align:right; white-space:nowrap; }

/* =============================================================
   4. THE FILES GALLERY under an output block's report — every image
   as a preview with its name, every other file as a row.
   ============================================================= */
.pfi-root .wf-out__gallery{ display:flex; flex-direction:column; gap:9px; }
/* an image row: the same anatomy as a file row, with a large picture in place of the 52px thumb */
.pfi-root .wf-out__gitem{ display:flex; align-items:flex-start; gap:11px; min-width:0; padding:9px; background:var(--well-bg); border:1px solid var(--well-line); border-radius:var(--radius); box-shadow:var(--well-shadow); }
.pfi-root .wf-out__gpic{ flex:none; display:block; width:72px; border-radius:7px; overflow:hidden; background:#fff; border:1px solid var(--well-line); line-height:0; }   /* 72 x 54: leaves the info column 190px in the 320px panel, so Open + Download sit on one line */
.pfi-root .wf-out__gpic img{ display:block; width:100%; aspect-ratio:4/3; object-fit:cover; }
.pfi-root .wf-out__gname{ min-width:0; font-size:13px; font-weight:600; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* =============================================================
   3. THE EXPANDED VIEW (card ⤢) — the overlay carries pfi-root, so the
   well, chip and button rules above dress it; the modal's own box is
   planflow-blocks.css's. A media result gets a wider box, the title in
   the header, the image large (contain, at most 70vh), a strip for
   further images, a PDF inline, the files with Open / Download.
   ============================================================= */
/* the header (label, title, ×) stays put; the body scrolls — × is reachable however far one has read */
.aw-newblocks .wf-output-overlay .wf-output-modal{ box-sizing:border-box; display:flex; flex-direction:column; overflow:hidden; }
.aw-newblocks .wf-output-modal__label{ flex:none; }
.aw-newblocks .wf-output-modal__body{ flex:1 1 auto; min-height:0; overflow-y:auto; padding-right:2px; }
.aw-newblocks .wf-output-overlay .wf-output-modal--media{ max-width:860px; }
.aw-newblocks .wf-output-modal__label{ padding-right:30px; }
.aw-newblocks .wf-output-modal__title{
  margin-left:auto; padding-left:12px; min-width:0;
  font-size:13px; font-weight:600; letter-spacing:0; text-transform:none; color:#1F2D26;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.aw-newblocks .wf-output-modal--media .wf-output-modal__text{ max-width:none; margin:0 0 14px; }
.pfi-root .wf-output-modal__media{ margin:0 0 12px; }
.pfi-root .wf-output-modal__media img{ max-height:70vh; }
.pfi-root .wf-output-modal__strip{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 12px; }
.pfi-root .wf-output-modal__strip .wf-out__preview{ flex:0 0 auto; width:120px; }
.pfi-root .wf-output-modal__strip .wf-out__preview img{ height:90px; max-height:90px; object-fit:cover; }
.aw-newblocks .wf-output-modal__pdf{ display:block; width:100%; height:50vh; margin:0 0 12px; border:1px solid rgba(70,92,80,.16); border-radius:9px; background:#fff; }
.pfi-root .wf-output-modal .wf-out__facts{ margin:0 0 12px; }
.pfi-root .wf-output-modal .wf-out__details{ margin:0 0 12px; }
.pfi-root .wf-output-modal__files{ display:flex; flex-direction:column; gap:8px; }
.pfi-root .wf-output-modal__files .wf-out__media{ align-items:center; }
.pfi-root .wf-output-modal__files .wf-out__macts{ flex:none; margin-left:auto; }
