.pi-file{display:flex;align-items:center;gap:12px}
.pi-ico{flex:none;width:34px;height:42px;border-radius:6px;background:#e5484d;color:#fff;font-size:10px;font-weight:800;display:grid;place-items:center}
.pi-meta{flex:1;min-width:0}
.pi-meta b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pi-meta small{color:var(--muted);font-size:13px}
.pi-seg{display:flex}
.pi-seg button{flex:1;min-height:38px}
.pi-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
@media (max-width:420px){.pi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.pi-page{display:flex;flex-direction:column;gap:8px;padding:8px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2)}
.pi-page canvas,.pi-page .pi-ph{width:100%;height:auto;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.15);border-radius:2px;display:block}
.pi-page .pi-ph{aspect-ratio:1/1.414;background:var(--surface)}
.pi-page .row{justify-content:space-between;gap:6px;flex-wrap:nowrap}
.pi-page .row span{font-size:13px;font-weight:600;color:var(--muted)}
@media (max-width:520px){.pi-opts{grid-template-columns:1fr}} /* long resolution labels (de/fr) need the full width */
